
WATCHDOG TIMER CHAPTER 11
Page 30
Figure 11-1 W5 Watchdog jumper
DESCRIPTION
The watchdog timer is used to reset the RPC-52 if the
program or CPU "cr ashes" . W hen jump er W 5 is
installed, the WDOG command must be executed at least
once ever y 1.2 seconds to avoid a reset. The timeout is
not adjustable.
The watchdog should not be used if using a RPBASIC-52
INPUT statement. Also, loops which do not end quickly
or are of indeterminate dur ation should be avoided unless
a timer reset pulse is included. An example of an
indeterminate loop is one that waits for a port condition
to change.
The watchdog is enabled by jumpering W 5. T he timer is
reset by executing a WDOG command.
The watchdog timer is part of a voltage monitor, battery
backup controller, and reset chip U16.
PROGRAM EXAMPLE
The follow ing progr am fragment resets the tim er while
the program is running.
5000 WDOG
Comentarios a estos manuales