On Sun, Mar 14, 2010 at 9:47 AM, erikc <firewevr@airmail.net> wrote: > > > > My understanding is that you have to feed the watchdog from time to > time in various parts of the programme, and that would include > software timer or stall loops as well. > http://www.ganssle.com/watchdogs.htm >You could feed the watchdog from inside the counter loop. Then, you'd >still get the timeout. Bad idea to feed watchdog from inside of loops. Better to set a time out that is long enough for the loop to complete, then refresh the watchdog before entering the loop and right after exiting the loop. Look at the link above for better ideas. -- http://www.wearablesmartsensors.com/ http://www.softwaresafety.net/ http://www.designer-iii.com/ http://www.unusualresearch.com/ [Non-text portions of this message have been removed]
Message
Re: [AVR-Chat] Code stuck waiting for SPI transmission but only after power-up. (ATMega644P)
2010-03-14 by Bob Paddock