Lawrence Lile wrote: > > After thoroughl;y answering Kat's basic question on watchdogs, Tjaart > wrote: > > > 3) a) Never (ever) tag the watchdog in more than one place > > in your program. If you do, you might as well leave it. > > I often use the CLRWDT instruction at the beginning of the main loop. > Are you implying that might not be the best place? > > I often am forced to use CLRWDT in the middle of long timing loops as > well. Many of my programs just "sit around" for seconds or minutes > at a time running a timing loop. Your statement indicates this might > be a bad idea. Can you elaborate? It is definitely a bad idea. Say your reload value for the 'golden brown' setting on a toaster got corrupted. It could stay in the loop until the guy's house is also turning golden brown ;) Long loops are dangerous, as a small difference in a reload value could make a biiiig difference in the timing. See my other post on how to avoid this. -- Friendly Regards /"\ \ / Tjaart van der Walt X ASCII RIBBON CAMPAIGN mailto:tjaart@wasp.co.za / \ AGAINST HTML MAIL |--------------------------------------------------| | WASP International | |R&D Engineer : GSM peripheral services development| |--------------------------------------------------| |SMS mailto: tjaart@sms.wasp.co.za (160 chars max)| | http://www.wasp.co.za/~tjaart/index.html | |Voice: +27-(0)11-622-8686 Fax: +27-(0)11-622-8973| | WGS-84 : 26¡10.52'S 28¡06.19'E | |--------------------------------------------------|