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

GPIOTE rising and falling edge detection at the same time

Hi,

I'm writing a decoder for a custom radio protocol and I need to measure the rising and falling edges of a signal with high precision. I'm currently using the COMP peripheral since it can generate both UP and DOWN events that I use with PPI and a TIMER to capture a timestamp of the edges.

I would have preferred to use GPIOTE since the signal is digital, but according to the datasheet, "Only one GPIOTE channel can be assigned to one physical pin. Failing to do so may result in unpredictable behavior." And I would need to use two GPIOTE events, one for HiToLo and one for LoToHi.

In this question (https://devzone.nordicsemi.com/f/nordic-q-a/33273/what-s-the-maximum-frequency-for-a-pin-event-on-rising-edge-or-falling-edge/128113#128113) Edvin recommends using multiple GPIOTE channels on the same pin.

What issues could I run into if I use one GPIOTE to detect HiToLo and one to detect LoToHi, both connected to the same GPIO?

Parents Reply Children
No Data
Related