Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Query in External interrupt of LPC2106

2006-01-10 by Saravanakumar.S@ansaldo-signal.co.in

Hi , 
        
I am having problem with the EINT0 interrupt in LPC2106 .I have searched the posts,and i tried all the procedures in the User manual.Still the interrupt is not rised in the IRQ mode.I used  the Keil IDE for my application. 

Code: 
int main(void) 
{ 
        PINSEL1=0X00000001; 
        VICIntSelect &= ~0x4000; 
      VICVectAddr0 = (unsigned int)int0ISR; 
      VICVectCntl0 = 0x2E; 
        VICIntEnable = 0x4000; 
        while (1) 
        { 
         ; 
        } 
} 
ISR ROUTINE: 
static void int0ISR(void) 
{ 
        IODIR=0X01; 
        IOSET=0X01; 
        delay(); 
        IOCLR=0X01; 
        EXINT=0X01; 
        VICVectAddr = 0; 
} 
I dont know why this simple program is not working.Can you tell me your valuable suggestions. 


Regards , 
S.kumar

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.