--- In lpc2000@yahoogroups.com, "Leighton Rowe" <leightonsrowe@y...> wrote: > 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 Thanks Leighton but I'd already modified my IAR header file for the lpc2129. Clearing the interrupt before the EXTMODE = 0x08 command did not do anything either. The external interrupt works fine in level sensitive mode, but as soon as I write the EXTMODE register with 0x08 to enable level sensitive mode on interrupt 3 the processor goes into deep space. The EXTMODE register I'm writing is at 0xE01FC148 which agrees with the manual. Something is going very wrong with the processor since I have to reprogram the flash with the ISP to get it working again. No matter what I do the JTAG is finished.
Message
Re: external interrupt problem
2004-07-22 by douglasbolton
Attachments
- No local attachments were found for this message.