It sounds like you have a watchdog flag already lodged, ie even though not enabled the watchdog still runs, and, as soon as it becomes enabled , with ints enabled the old pending flag is executed. Try clearing any pending flags before enabling the watchdog. Al jane highland wrote: > Yes I got fed up too. Get an external watchdog > chip...you want to be able to 'scope' a real reset > signal from something independent of the the LPC chip > when the CPU screws up. > > If anything it will let you sleep at night, when > you've got thousands of products out there in the > field. > > > Jane > --- itsjustimpossible <simonjh@...> wrote: > > --------------------------------- > > Hi > I am nearing the end of our first project with the > LPC2294 and need > to implement the watchdog. > > I am pretty sure I have it setup correctly, and with > it in its debug > mode I can cause a jump to the watchDog IRQ routine > when I put the > uP into an endless loop. > > As part of its functionality external interrupts are > disabled until > the equipment is set to GO, and this where the > problems start. As > soon as I enable the external interrupt the watchdog > timer jumps to > its ISR. (The external interrupts are set to FIQ and > at 8uS > intervals) > > Even with the watchdog timer set to a very very long > timeout (i.e. > ten seconds) as soon as external interrupts are > enabled we jump to > the WatchDog ISR. > > With the watchdog set to Off everything else works as > expected. > With the watchdog set to On but no external interrupts > everything > works as expected. > > When I kick the watchdog I am disabling all the > interrupts using the > VIC. Do I have to jump to system mode and disable the > global IRQ and > FIQ flags? This would probably be too slow... > > Has anyone else seen anything like this? > At the moment its driving me nuts. > > many thanks > Simon > > > > > Yahoo! Groups Sponsor ADVERTISEMENT > > > --------------------------------- > Yahoo! Groups Links > > To visit your group on the web, go to: > http://groups.yahoo.com/group/lpc2000/ > > To unsubscribe from this group, send an email to: > lpc2000-unsubscribe@yahoogroups.com > > Your use of Yahoo! Groups is subject to the Yahoo! > Terms of Service. > > > Send instant messages to your online friends > http://uk.messenger.yahoo.com > > Yahoo! Groups Sponsor > ADVERTISEMENT > <http://us.ard.yahoo.com/SIG=129n7ip18/M=298184.6018725.7038619.3001176/D=groups/S=1706554205:HM/EXP=1109717862/A=2593423/R=0/SIG=11el9gslf/*http://www.netflix.com/Default?mqso=60190075> > > > > ------------------------------------------------------------------------ > Yahoo! Groups Links > > * To visit your group on the web, go to: > http://groups.yahoo.com/group/lpc2000/ > > * To unsubscribe from this group, send an email to: > lpc2000-unsubscribe@yahoogroups.com > <mailto:lpc2000-unsubscribe@yahoogroups.com?subject=Unsubscribe> > > * Your use of Yahoo! Groups is subject to the Yahoo! Terms of > Service <http://docs.yahoo.com/info/terms/>. > > >------------------------------------------------------------------------ > >No virus found in this incoming message. >Checked by AVG Anti-Virus. >Version: 7.0.300 / Virus Database: 266.5.2 - Release Date: 28/02/2005 > >
Message
Re: [lpc2000] Watchdog and external Interrupt problem
2005-03-01 by Onestone
Attachments
- No local attachments were found for this message.