Appendix B - Watchdog Sample Code; Watchdog Timer - DFI EC200 Series User Manual

Hide thumbs Also See for EC200 Series:
Table of Contents

Advertisement

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 defi nation
;-------------------
SuperIo_CFG_Port EQU
SuperIo_DAT_Port EQU
WDT_Counter
EQU
mSuperio_Enter_Confi g
mov
dx, SuperIo_CFG_Port
mov
al, 87h
out
dx, al
NEWIODELAY
out
dx, al
endM
mSuperio_Exit_Confi g
mov
dx, SuperIo_CFG_Port
mov
al, 0AAh
out
dx, al
endM
mSuperio_GetSet_Reg
mov
dx, SuperIo_CFG_Port
mov
al, RegIndex
out
dx, al
NEWIODELAY
mov
dx, SuperIo_DAT_Port
in
al, dx
NEWIODELAY
mov
ah, al
and
al, AndMask
or
out
dx, al
NEWIODELAY
endM
mSuperio_Get_Reg Macro RegIndex
mov
dx, SuperIo_CFG_Port
mov
al, RegIndex
out
dx, al
2Eh
;Super I/O Confi g port. (2Eh/4Eh)
SuperIo_CFG_Port + 1
10
; 1 to 255 (Sec./Min), 0 means disabled
Macro
Macro
Macro RegIndex, AndMask, OrValue
al, OrValue
Watchdog Timer
B
197

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ec210 seriesEc220 seriesEc221 series

Table of Contents