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

[nRF51422] Sense mechanism - detect more than one pin

Is there any possibility to detect active state on the more than one pin using sense mechanism? GPIOTE_IRQHandler is blocked when it detect active state on the one of the used pins. How to deal with it?

Parents
  • The sense part of GPIOTE (PORT event) will not give you an individual event for each pin. You will get a generic interrupt when the port event is triggered. The way to detect which pin triggered the port interrupt is to manually read the GPIO IN register. If you need an individual interrupt for your pins, you will have to use GPIOTE IN/OUT tasks and events (which will use 16M clock, and therefore draw more power than PORT event)

Reply
  • The sense part of GPIOTE (PORT event) will not give you an individual event for each pin. You will get a generic interrupt when the port event is triggered. The way to detect which pin triggered the port interrupt is to manually read the GPIO IN register. If you need an individual interrupt for your pins, you will have to use GPIOTE IN/OUT tasks and events (which will use 16M clock, and therefore draw more power than PORT event)

Children
No Data
Related