GPIO IRQ

I’m trying to set a zero-cross detection using an 4n35 and the interrupt pin of the programmable xbee.

The issue is that smart editor on sdk only permit us to trigger the interrupt handler by rise edge or by fall edge, not for both, which is what I need.

The same happens if you try to set the interrupt by level.

Is there a way to use the interrupt to detect both fall and rise edges?

It is something very common for most all micro controllers families.

Many thanks,

Danilo

Hello Danilo,

Current GPIO IRQ driver does not support both edges. But give it a try with Input Capture component, it works on both edges and is triggered faster than GPIOs. Best regards,