[PROBLEM]LPC1343 external interrupt on rising edge

Discussion created by lpcware Employee on Jun 15, 2016
Latest reply on Jun 15, 2016 by lpcware
Content originally posted in LPCWare by fantomas2002ro on Tue Jun 26 13:37:14 MST 2012
Hello guys,

I try to catch the rising edge but I didn't succeed. I manage to catch only the LOW level.

After I set the PIN4 of  PORT2 as input the value of the pin was still high. Is this ok?
I try different configuration of the GPIOSetInterrupt, but I didn't manage to catch the HIGH level(rising edge).

void main()
    GPIOSetInterrupt(PORT2, 4, 0, 0, 1);
    GPIOIntEnable(PORT2, 4);


void PIOINT2_IRQHandler(void)
     //do something
   bool regVal = 0;
    regVal = GPIOIntStatus(PORT2, 4));
        GPIOIntClear(PORT2, 4);