In many systems the checker can just go at the top of the main loop. Oh, and there is no reason it can't go into a function that is called instead of the raw CLRWDT instruction. Bob Ammerman RAm Systems ----- Original Message ----- From: "Peter L. Peres" To: Sent: Thursday, April 24, 2003 5:04 AM Subject: Re: [PIC]: WatchDog Timer Routines and Implemenations??? > Bob Ammerman wrote: > >You can improve the probability of the watchdog biting on a software > >error by using a technique like this: ... > > Yes, that is a good idea, it's just that the 'checker' must run in an > often-executed piece of code to be aware of all the bits in time. I find > the effort required to code it like that too great. Unless you have a > timer isr that runs all the time and you can put it in it it's hard to > maintain when writing code in higher languages (like C). > > Peter > > -- > http://www.piclist.com hint: The PICList is archived three different > ways. See http://www.piclist.com/#archives for details. > -- http://www.piclist.com hint: The PICList is archived three different ways. See http://www.piclist.com/#archives for details.