Application Instructions

Universal Driver Documentation
To use the watchdog timer, you must first decide if you want to enable hardware retriggering with an external signal. To use hardware retriggering:

Next select the desired activity for the end of timer WD1. You can select any combination of the options listed in the DSCUD.H code block.

Now call the function dscWatchdogEnable() to enable and configure the watchdog timer. Once this function is called, one of two things must happen continually at a rate faster than the timeout value of WD1:

If neither event happens before WD1 times out, the watchdog circuit will reset the system.

If needed you can use signal WDO to drive external circuitry or provide an indication of pending system reset.

To disable the watchdog timer, call dscWatchdogDisable() at any time. To reenable the watchdog timer with the same parameters, you can simply call dscWatchdogTrigger() again. To reenable the watchdog timer with different parameters, you must call dscWatchdogEnable() with the new parameters.

Example programs are provided with the CPU DSCUD examples zip file to illustrate watchdog timer operation. This program will reset the system in order to demonstrate the functionality of the watchdog timer circuit!


This page was last modified 12:02, 13 Feb 2004.
Copyright (c) 2004 Diamond Systems. All Rights Reserved.