AnsweredAssumed Answered

LPC1517, Pin interrupt

Question asked by Martin Pelletier on May 17, 2019
Latest reply on May 24, 2019 by Martin Pelletier


i want an external interrupt on PIO0_28.

Here is my configuration:

LPC_SYSCON->SYSAHBCLKCTRL0 |= (1UL << 11); //enable clock for MUX
LPC_INMUX->PINTSEL[3] = 0x10; //Pin interrupt select register (PI0_28)
LPC_SYSCON->SYSAHBCLKCTRL0 |= (1UL << 18); //enable clock for PINT
LPC_SYSCON->STARTERP0 |= (1UL << 10); //enable PINT3 (GPIO pin interrupt 3 wake-up)
LPC_PINT->ISEL = 0x08; //edge sensitive
LPC_PINT->IENR = 0x08; //enable interrupt PINTSEL3
LPC_PINT->SIENR = 0x08; //set interrupt 
 LPC_PINT->IST = 0x08; //clear flag rising or falling edge


And on my interrupt file, i have


void PIN_INT3_IRQHandler()
LPC_PINT->IST = 0x08; //clear flag rising or falling edge
powerDown ^= 1;
GPIO_SetPin ( OUT_DIG2, powerDown ); 


My OUT_DIG2 output pin dont toggle!!! Mean no interrupt when i change the input level on PIO0,28

Do i miss something???


Thx for your helps