sir I have seen u r message,regarding this I made some modifications in my programme.but there is no change.my will stop in while loop.plz some one help me my programme is #include <LPC214X.H> #include <stdio.h> #define led 0x00000001;
void init_Eint1(void); __irq void IRQ_Handler(void); int main(void) { PINSEL0=0X00000000; IODIR0=0X00000001; init_Eint1(); while(1);
}
__irq void IRQ_Handler(void) //irq subroutine {
//initialize the EINT0 if(EXTINT==0) { IOSET0=0X00000001; } else { IOCLR0=0X00000001; } EXTINT=0X00000001; VICVectAddr=0x00000000; }
void init_Eint1(void) {
PINSEL1=0X00000001; IOCLR0=0X00000001; EXTMODE=0X00000000; //level sensitive mode EXTPOLAR=0X0000000; //falling edge VICIntEnable=0x00004000; VICVectAddr0=(unsigned long) IRQ_Handler; VICVectCntl0=0x0000002E; VICIRQStatus=0x00004000; EXTINT=0X00000001;//Clear the eint0