![]() ZBasic System Library
345
ZBasic Microcontrollers
Type
Subroutine
Invocation
WatchDog()
Discussion
This routine resets the watchdog timer, preventing it from resetting the system. A watchdog timer is
useful to ensure that your program continues to operate normally.
To implement a watchdog timer you first call OpenWatchDog() to prepare the watchdog timer for use.
Thereafter, if your program doesnt call WatchDog() often enough, the watchdog will eventually time out
and cause a system reset.
See Also
|