Yahoo Groups archive

Lpc2000

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

Message

Re: [lpc2000] Re: Problem with watchdog

2005-12-07 by Ake Hedman, eurosource

WD story update

I changed the code to have the watchdog raising an IRQ instead of a 
RESET.  I initialize stuff and then go in in a while loop.

1.) With interrupts enabled but no interrupt channel active this will 
not trigger the watchdog. Why?

2.) With one of the interrupt channels active ( UART0 writing some 
characters ) the watchdog works. Without a dog feed the watchdog is 
triggered and with a feed it runs fine. However what I initialize WDTC 
with does to seem to matter. I always get about 4 ms period when I 
toggle a pin in the WD interrupt (60MHz clock).

Is this behaviour recognized by anyone? Please!

BTW the chip is LPC2138

/Ake


dr_danish_ali wrote:

> Ok Ake, here's my dumb suggestion:
>
> Try enabling the watchdog, but just to interrupt not reset?
> You'll need an interrupt handler / VIC channel to do it - can you 
> spare one?
> That ISR need just raise a flag for now.
>
> Once the watchdog is fed and running happily, you might then be able 
> to enable resets on
> it.
>
> Hope this helps,
> Danish
>
> --- In lpc2000@yahoogroups.com, "Ake Hedman, eurosource" <akhe@b...> 
> wrote:
> >
> > I am still trying to solve my problems with the watchdog.
> >
> > I have now scaled away most stuff of my application and can see that 
> the
> > problem occurs when either of three interrupts occur (UART0/UART1/I2C0)
> > in the system. Without the watchdog everything works fine but if I
> > enable the watchdog everything crashes. I have tried to just enable and
> > trig one of the interrupts in turn but the situation is the same.
> >
> > I'm totally out of clues at the moment so any (also things that 
> might be
> > considered dumb) are very welcome.
> >
> > Regards
> > /Ake
>
>
>
>
>
> SPONSORED LINKS
> Microprocessor 
> <http://groups.yahoo.com/gads?t=ms&k=Microprocessor&w1=Microprocessor&w2=Microcontrollers&w3=Pic+microcontrollers&w4=8051+microprocessor&c=4&s=93&.sig=tsVC-J9hJ5qyXg0WPR0l6g> 
> 	Microcontrollers 
> <http://groups.yahoo.com/gads?t=ms&k=Microcontrollers&w1=Microprocessor&w2=Microcontrollers&w3=Pic+microcontrollers&w4=8051+microprocessor&c=4&s=93&.sig=DvJVNqC_pqRTm8Xq01nxwg> 
> 	Pic microcontrollers 
> <http://groups.yahoo.com/gads?t=ms&k=Pic+microcontrollers&w1=Microprocessor&w2=Microcontrollers&w3=Pic+microcontrollers&w4=8051+microprocessor&c=4&s=93&.sig=TpkoX4KofDJ7c6LyBvUqVQ> 
>
> 8051 microprocessor 
> <http://groups.yahoo.com/gads?t=ms&k=8051+microprocessor&w1=Microprocessor&w2=Microcontrollers&w3=Pic+microcontrollers&w4=8051+microprocessor&c=4&s=93&.sig=1Ipf1Fjfbd_HVIlekkDP-A> 
>
>
>
> ------------------------------------------------------------------------
> YAHOO! GROUPS LINKS
>
>     *  Visit your group "lpc2000
>       <http://groups.yahoo.com/group/lpc2000>" on the web.
>        
>     *  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/>.
>
>
> ------------------------------------------------------------------------
>


-- 
 ---
Ake Hedman (YAP - Yet Another Programmer)
eurosource, Brattbergavägen 17, 820 50 LOS, Sweden
Phone: (46) 657 413430 Cellular: (46) 73 84 84 102
Company home: http://www.eurosource.se      
Kryddor/Te/Kaffe: http://www.brattberg.com
Personal homepage: http://www.eurosource.se/akhe
Automated home: http://www.vscp.org



[Non-text portions of this message have been removed]

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.