I'm not using softdevice, What is maximum GPIOTE Peripheral clock frequency for Interrupts for nrf52832? [Without PPI]
Thanks
I'm not using softdevice, What is maximum GPIOTE Peripheral clock frequency for Interrupts for nrf52832? [Without PPI]
Thanks
Hi,
this is quite expected - in polling mode, CPU needs to execute one port read, compare and one port write in a loop. In interrupt mode, there is an overhead of interrupt handler (take a look at nrfx_gpiote_irq_handler in SDK\modules\nrfx\drivers\src\nrfx_gpiote.c to see amount of code executed at each interrupt occurence). The advantage of interrupt mode is that you can do other tasks or put CPU to sleep while waiting for pin change, but polling will be faster in any case.
Hi,
this is quite expected - in polling mode, CPU needs to execute one port read, compare and one port write in a loop. In interrupt mode, there is an overhead of interrupt handler (take a look at nrfx_gpiote_irq_handler in SDK\modules\nrfx\drivers\src\nrfx_gpiote.c to see amount of code executed at each interrupt occurence). The advantage of interrupt mode is that you can do other tasks or put CPU to sleep while waiting for pin change, but polling will be faster in any case.