5. Each Component Function
User’s Manual
75
How to Use the Watchdog Timer
YES
*WDT: Watch Dog Timer
Read port 4002h, stop the WDT, and turn off alarm output.
Output set data to port 4003h.
Output of A5h to port 4002h starts the WDT and output
of A5h to the same port clears the timer.
To modify the timer value during operation, the WDT
needs to be stopped temporarily.
...
...
...
Output data to ports 4001h and 4004h to set the counter clock.
...
NO
BIOS setting
Power ON
Instruct
WDT to stop
Set timer value
Start & clear WDT
Modify timer
value?
Set event
output control
Application
...
Figure 5.3. How to Use the Watchdog Timer
Example usage
:
To assign IRQ5 to the event whose time-up value is 15sec:
Out 4004h 01h
: Set the event at the time of WDT expiration to IRQ5.
In 4002h
: Stop the WDT timer and cancel the alarm.
Out 4003h 0Fh
: Set the WDT expiration time to 15sec.
Out 4002h A5h
: Start and clear the WDT.
In 4002h
: Stop the WDT and cancel the alarm.