Dialog Semiconductor customer support - GPIO Interruption Edge detection https://support.dialog-semiconductor.com/resource-keywords/gpio-interruption-edge-detection en Edge interrupt detection on GPIO https://support.dialog-semiconductor.com/edge-interrupt-detection-gpio

Hello,

Please let me ask the interruption behavior on GPIO especially edge detection.

I would like to detect the rising edge for GPIO, and I configure the GPIO_EnableIRQ() function as followings:

GPIO_EnableIRQ( GPIO_PORT_x, GPIO_PIN_x, GPIO1_IRQn,
false, // logic-High detection
true, // wait for key release after interrupt ( use as edge detection)
0 );

If the target Port/Pin has been already "High-signal" when I call above function, I get the interruption immediately.
Is this behavior expected? It works like as level-interruption...
(Regarding on the manual, the description for EDGE_LEVELNx register is defined as "wait for key release after interrupt was reset for IRQx." <-- there are no edge describing... but name is EDGE_LEVEL...)

Perhaps, I made a mistake for configuration before I call GPIO_EnableIRQ() function.

I would like to know whether this is a correct behavior or not. If you could feed any comments to me, it would be much helpful.

Best regards,
CD

Device: 
Tue, 01 Mar 2016 12:25:55 +0000 CD 2759 at https://support.dialog-semiconductor.com https://support.dialog-semiconductor.com/edge-interrupt-detection-gpio#comments