This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

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.?

Parents
  • you can consider the pin_change_int example under nRF5_SDK_15.2.0_9412b96\examples\peripheral\ folder.

    jing

Reply
  • you can consider the pin_change_int example under nRF5_SDK_15.2.0_9412b96\examples\peripheral\ folder.

    jing

Children
  • 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