Hello I am using nrf52832. I would like to write a custom ISR for GPIO based interrupt. Are there any examples/documentation i could use to get started on this.?
Hello I am using nrf52832. I would like to write a custom ISR for GPIO based interrupt. Are there any examples/documentation i could use to get started on this.?
you can consider the pin_change_int example under nRF5_SDK_15.2.0_9412b96\examples\peripheral\ folder.
jing
I found the
nrfx_gpiote_irq_handler
Could i make changes in this to perform tasks when a gpio interrupt is fired ?
I found the
nrfx_gpiote_irq_handler
Could i make changes in this to perform tasks when a gpio interrupt is fired ?
Hi,
Yes, but you need to mind how you change the driver when doing so. You can also use the in_pin_handler used when initializing pin input is initalized.
Depending on what you are wanting to do you might also want to try to avoid the interrupt altogether. A lot of problems can be solved more efficiently using PPI and/or shorts instead.
Best regards,
Andreas