Yahoo Groups archive

Lpc2000

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

Message

Re: external interrupt problem

2004-07-22 by Leighton Rowe

Are u using IAR? I had to modify the header file I got (iolpc2129.h) 
because apparently the EINT3 channel wasn't defined.

Well assuming that you're using channel 17 for EINT3... 

#define VIC_EINT3       17

...the code looks ok. 


Otherwise try clearing the EINT3 flag before enabling the interrupt 
and let me know what happens.

Leighton



--- In lpc2000@yahoogroups.com, "douglasbolton" <doug@c...> wrote:
> When I set up an external edge sensitive interrupt EINT3 on an 
> lpc2129 all sorts of problems happen. The jtag stops working and 
> won't work again until I reprogram through the ISP.
> 
> The pin is sitting stable at about 2.8 volts when I run the 
following 
> code. If I set up for level sensitive it is ok.
> 
> // initialise pin 0.30 (EINT3) to have a negative edge 
> // triggered interrupt
> 
> PINSEL1_bit.P0_30=0x2; 
> EXTMODE = 0x08;
> 
> // enable the interrupt control	
> VICIntSelect &= ~(1<<VIC_EINT3);  // IRQ on external interrupt
> VICVectAddr3 = (uint32_t)&ShutdownRamInterrupt;
> VICVectCntl3 = 0x20 | VIC_EINT3; // vector interrupt for external 3
> VICIntEnable = (1<<VIC_EINT3);    // Enable external 3 interrupt.
> 		
> Anybody used EINT3 edge sensitive on an lpc2129
> 
> thanks Doug

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.