Hi,
A few months ago, I used to set an interrupt on pin 0.13 with the following code:
LPC_SYSCON->PINTSEL[0] = (uint32_t) 0;
GPIOSetDir(0, 13, 0);
LPC_PIN_INT->ISEL &= ~((1 << 13) | (~0xff));
LPC_PIN_INT->SIENF = 1;
NVIC_EnableIRQ(PININT0_IRQn);
and even though I have not changed any parts of the code since then, I find it impossible to enter the ISR even though a breakpoint is placed inside the routine.
Could you please let me know whether I am missing something in this case?
Hello Theodoros Verykios,
I have attached a project, which already contains the pio0_13 pin interrupt.
I find your code:
LPC_SYSCON->PINTSEL[0] = (uint32_t) 0;
It should be:
LPC_SYSCON->PINTSEL[0] = (uint32_t) 13;
More details, please check my attached code.
Wish it helps you!
If you still have question, after you check it, please let me know!
Have a great day,
Kerry
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------