PCAvionics pea-6005 Computer Hardware User Manual


 
PCA-6005 User’s Manual 92
Appendix A Programming the watchdog
A.1 Programming the watchdog
The PCA-6005's watchdog timer can be used to monitor system software
operation and take corrective action if the software fails to function after
the programmed period. This section describes the operation of the
watchdog timer and how to program it.
A.1.1 Watchdog timer overview
The watchdog timer is built-in in the super I/O controller IT8705F. It pro-
vides the following functions for user programming:
• Can be enabled and disabled by user's program.
• Timer can be set from 1 to 255 seconds or 1 to 255 minutes.
• Resets the system signal if the software fails to reset the timer before
time-out.
A.1.2 Programming the Watchdog Timer
The I/O port address of the watchdog timer is 2E(hex) and 2F(hex). 2E
(hex) is the address port. 2F(hex) is the data port. You must first assign
the address of register by writing address value into address port 2E(hex),
then write/read data to/from the assigned register through data port 2F
(hex).
A.1.3 Unlock the Super I/O IT8705F
Unlock the super I/O controller by writing the special key 087h, 001h,
055h and 055h before starting programming the watchdog timer.
A.1.4 Select and program the watchdog timer
Select watchdog timer by writing the logical device number (LDN) 05h
to the I/O port. Then you can enable WDT and set the timer by writing
value to the registers..
A.1.5 Select and enable the game port
The game port is used to reset the watchdog timer. Select game port by
writing the logical device number (LDN) 06h to the I/O port. Enable the
game port to enable the read/write action to reset the WDT.
Note: The interrupt output of the watchdog timer is a
low level signal. It will be held low until the
watchdog timer is reset.