Interrupt on LPC812

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Interrupt on LPC812

575 Views
theodorosveryki
Contributor II

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?

Tags (3)
0 Kudos
1 Reply

407 Views
kerryzhou
NXP TechSupport
NXP TechSupport

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!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos