Appendix B - Watchdog Timer - DFI-ITOX LR101 SERIES User Manual

Table of Contents

Advertisement

B
Watchdog Timer

Appendix B - Watchdog Timer

Watchdog Timer
The following parameters are references for setting the time interval of the
Watchdog Timer function. The system will regularly be "cleared" according to the
set time interval. If the system hangs or fails to function, it will also reset ac-
cording to the time interval so that your system will continue to operate.
.model small
.386
;-------------------
;Port defination
;-------------------
SuperIo_CFG_Port EQU
SuperIo_DAT_Port EQU
WDT_Counter
mSuperio_Enter_Config
mov
mov
out
NEWIODELAY
out
endM
mSuperio_Exit_Config
mov
mov
out
endM
mSuperio_GetSet_Reg
mov
mov
out
NEWIODELAY
mov
in
NEWIODELAY
mov
and
or
out
NEWIODELAY
endM
mSuperio_Get_Reg Macro RegIndex
mov
mov
out
154
2Eh
;Super I/O Config port. (2Eh/4Eh)
SuperIo_CFG_Port + 1
EQU
10
; 1 to 255 (Sec./Min), 0 means disabled
Macro
dx, SuperIo_CFG_Port
al, 87h
dx, al
dx, al
Macro
dx, SuperIo_CFG_Port
al, 0AAh
dx, al
Macro RegIndex, AndMask, OrValue
dx, SuperIo_CFG_Port
al, RegIndex
dx, al
dx, SuperIo_DAT_Port
al, dx
ah, al
al, AndMask
al, OrValue
dx, al
dx, SuperIo_CFG_Port
al, RegIndex
dx, al

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lr101-b16dLr101-b16s

Table of Contents