We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
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.
People get easily offended when you throw unformatted code into their faces. Right above the textarea is a list of tips, when you write a post.
Read them and you may actually find help.