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.
My code for external interrupt is not working.Please help me. I am able to compile the code but nothing happens when i pull down port p0.14
#include "lpc214x.h" // Header file for Phillips LPC2148 controller void EXTINTVectoredIRQ (void)__irq; int main(void) { IODIR1=0xFFFFFFFF; IODIR0 = 0x00000001; //Turn OFF the LED pins //Set P0.14 to EINT1 PINSEL0 = 0x20000000; VICVectCntl0 = 0x0000002F; VICVectAddr0 = (unsigned)EXTINTVectoredIRQ; VICIntEnable = 0x00008000; while(1); } void EXTINTVectoredIRQ (void) __irq { int z; z=IO0PIN&0x00000001; if(z) { IO0CLR=0x00000001; } else { IO0SET=0x00000001; } //Clear the peripheral interrupt flag EXTINT = 0x00000002; //Dummy write to signal end of interrupt VICVectAddr = 0x00000000; }