ÛZIATECH
71
12. WATCHDOG TIMER
The primary function of the watchdog timer is to monitor ZT 8907 operation and to take
corrective action if the system fails to function as programmed. The major features of
the watchdog timer are listed below.
•
Enabled and disabled through software control
•
Armed and strobed through software control
•
Generates a CPU reset if allowed to time out
WATCHDOG TIMER OPERATION
The watchdog timer is armed and strobed with bit 0 of the Digital I/O ASIC's System
Register 3 (E5h) (refer to Chapter 11, "
"). The watchdog timer is
disabled after power on or system reset. Writing a logical 1 to the watchdog timer bit
arms the watchdog timer.
Once armed, the watchdog timer must be strobed with a periodic frequency less than
the timeout period or a system reset is generated. The factory configured timeout period
is 550 ms. The watchdog timer is strobed by first writing a logical 0 to WDE,
immediately followed by writing a logical 1 to WDE.
The following code shows the procedure for arming and strobing the watchdog timer.
;--------------------------------------
; The multiple master interrupt is
; a bi-directional bit. The current
; software state of multiple master
; interrupt is maintained in the
; multiple master state bit. Input_e5
; updates the multiple master bit with
; the current software state maintained
; in the multiple master state bit.
;--------------------------------------
input_e5
macro
local
multiple_on
in
al,0e5h
test
al,8