Appendix A - Watchdog Timer - DFI-ITOX EL330-DR User Manual

Hide thumbs Also See for EL330-DR:
Table of Contents

Advertisement

A
Watchdog Timer

Appendix A - 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 according to the time interval so that your
system will continue to operate.
.model small
.386
;----------------
;Port defination
;----------------
SuperIo_CFG_Port
SuperIo_DAT_Port
WDT_Counter EQU
mSuperio_Enter_Config
mov
mov
out dx, al
NEWIODELAY
out dx, al
endM
mSuperio_Exit_Config
mov
mov
out dx, al
endM
mSuperio_GetSet_Reg
mov
mov
out dx, al
NEWIODELAY
mov
in al, dx
NEWIODELAY
mov
and al, AndMask
or al, OrValue
out dx, al
NEWIODELAY
endM
mSuperio_Get_Reg
mov
mov
out dx, al
NEWIODELAY
mov
in al, dx
NEWIODELAY
138
EQU
EQU
10
Macro
dx, SuperIo_CFG_Port
al, 87h
Macro
dx, SuperIo_CFG_Port
al, 0AAh
Macro RegIndex, AndMask, OrValue
dx, SuperIo_CFG_Port
al, RegIndex
dx, SuperIo_DAT_Port
ah, al
Macro RegIndex
dx, SuperIo_CFG_Port
al, RegIndex
dx, SuperIo_DAT_Port
2Eh
;Super I/O Config port. (2Eh/4Eh)
SuperIo_CFG_Port + 1
; 1 to 255 (Sec./Min), 0 means disabled

Advertisement

Table of Contents
loading

Table of Contents