Appendix b - watchdog timer, Watchdog timer – DFI NP100-N16C User Manual

Page 141

Advertising
background image

141

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

2Eh

;Super I/O Config port. (2Eh/4Eh)

SuperIo_DAT_Port EQU

SuperIo_CFG_Port + 1

WDT_Counter

EQU

10

; 1 to 255 (Sec./Min), 0 means disabled

mSuperio_Enter_Config

Macro

mov

dx, SuperIo_CFG_Port

mov

al, 87h

out

dx, al

NEWIODELAY

out

dx, al

endM

mSuperio_Exit_Config

Macro

mov

dx, SuperIo_CFG_Port

mov

al, 0AAh

out

dx, al

endM

mSuperio_GetSet_Reg

Macro RegIndex, AndMask, OrValue

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

al, OrValue

out

dx, al

NEWIODELAY

endM

Advertising
This manual is related to the following products: