Yahoo Groups archive

Lpc2000

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

Message

Re: [lpc2000] Strange LPC2138 EXTINT0 behavior

2005-10-29 by Bill Knight

You may be getting a spurious interrupt.  Suggest you disable
global interrupts just before disabling the VIC interrupt, then
re-enable them right afterwards.

Regards
-Bill Knight
R O SoftWare &
http://www.theARMPatch.com


On Sat, 29 Oct 2005 11:32:00 -0000, r_bottleneck wrote:

>Hello,

>I'm rather new with LPC21xx,  therefore I would like to ask the
>experts a question regarding a strange behavior I discovered in my
>application.

>I'm using a LCP2138 which gets external interrupts via EXT0 and some
>other internal interrupts. Basically my application works so far.

>However, it seems that something strange  happens  if the interrupt
>occurs around the instruction   
>   ....
>  VICIntEnClear = INT_EXT0;   // disable EXT0 (INT_EXT0=0x4000)
>     ....

>I need to disable the interrupt at the beginning of some certain
>functions and I need to enable the interrupt again at the end of these
>functions.

>Thousands of time it works pretty well. The result in this particular
>case however is , the program continues anywhere (I don't know where)
>and after hundreds of microseconds it comes back anywhere in my
>application. 

>I checked the external interrupt line, there are no spikes etc.

>My question now is, what reason can cause that behavior and how can it
>be prevented ?

>Thanks a lot for any help.

>Regards






> 
>Yahoo! Groups Links



>

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.