This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

LPC2368 (ARM7) External Interrupt concept

Dear all,

We are using the LPC2368 processor for our application. For this, need to configure the external interrupt (EINT1). For configure the interrupt, we wrote the code as below shown,

__irq void isr_handler_eint1(void) //Interrupt function
{

VICIntEnClr = (1 << 15);

InterruptCounter++; //For checking, whether the interrupt occurs or not.

EXTINT |= 0x02;

VICIntEnable = (1 << 15);

VICVectAddr = 0;
}

void inpt_init1()
{

PINSEL4 |= 0x00400000; //select the pin for the external interrupts_0

EXTMODE |= 0x02; //INT 1 is configure as edge sensitive mode

VICVectAddr15 = (unsigned int) &isr_handler_eint1;

EXTPOLAR = 0x00; //INT 1 is falling edge, default

EXTINT |= 0x02; // in edge sensitive mode, if this bit is set, the interrupt occurs while the selected edge is occurs in this pin

VICIntEnable |= 0x00008000; //enable the vector interrupt
}

In application, we are continuously checking the InterruptCounter. But the interrupt counter is not incrementing. It was showing always '0'. But, we are providing the interrupt pulse to the EINT1 pin continuously.

ETM interface also disable. We didn't understood the problem where it happening. Our code was correct or not?
Please give us a solution to solve this issue.

Regards,
Vijay.

0