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

GPIOTE Toggle interrupt direction

We have a GPIO configured in the GPIOTE to generate an interrupt on the LotoHi and HitoLo transitions (Toggle). Inside the interrupt handler we would like to perform a slightly different operation on the rising edge vs. the falling edge. Is there any way to find out what transition caused the interrupt?

The only solution we have come up with so far is to have the incoming signal drive two GPIO and have the HitoLo and LotoHi interrupts independent of each other with two GPIOTE channels.

Is there more information contained in the EVENTS_IN registers than is documented? i.e. is one of those bits tied to the transition that caused the interrupt?

Thanks in advance for your help.

Parents Reply Children
No Data
Related