Hello,
I have been searching for GPIO documentation, particularly on interrupt configuration, and I have come up short. Can someone send me a link where I can find more information?
Thanks, Matt
Hello,
I have been searching for GPIO documentation, particularly on interrupt configuration, and I have come up short. Can someone send me a link where I can find more information?
Thanks, Matt
Hopefully the nRF51 Series Reference Manual can help you out a bit. You should be able to find it on Nordic's site. I go here for HW documentation www.nordicsemi.com/.../mypage
Hi Matt
Yes, as pointed out earlier, check the documentation in nRF51 Series Reference Manual v2.1, chapter 14. For a code reference on how to set the GPIOTE interrupt, check the pin_change_int_example in the nRF51 SDK v5.2.0. GPIOTE module will give you an interrupt on GPIO pin state change (when going low or high, it is configurable).
Enabling the GPIOTE.IN events consumes a lot of current. If your requirement for your application is low current consumption, I would recommend to use the GPIOTE.PORT event instead of the GPIOTE.IN events, because that consumes very little current (<1uA). For a code reference on how to set the GPIOTE interrupt with a PORT event, see the system-on-wakeup-on-gpio example here