Ttelmah Guest
|
|
Posted: Tue Feb 22, 2005 9:10 am |
|
|
The 128 prescaler gives, a nominal 2.3 seconds timeout.
Remember the watchdog is running of it's own internal 'clock', not your crrystal. The watchdog interval is nominally 18mSec (caveat though, this changes a _lot_ with wide temperature excursions...). Hence the 128 prescaler gives 18E-3 * 128 = 2.304 seconds.
If you want longer watchdog times than this, the alternative is to have a system 'tick', running at say 100Hz, then in this reset the watchdog, if a counter is not zero, and decrement the counter. Set the counter to any value you require to give longer watchdog timeouts.
Best Wishes |
|