Appendix D - Watchdog Sample Code; Watchdog Sample Code - DFI G7L332-L User Manual

System board
Table of Contents

Advertisement

Appendix D - Watchdog Sample Code

;Software programming example:
;----------------------------------------------------------------
;(1)Enter Superio Configuration mode
;----------------------------------------------------------------
MOV
DX,2Eh
MOV
AL,87h
OUT
DX,AL
MOV
AL,01h
OUT
DX,AL
MOV
AL,55h
OUT
DX,AL
MOV
AL,55h
OUT
DX,AL
;--------------------------------------------------------------------------
;(2) Configuration Logical Device 7,register CR72 & CR73
;
(Watch Dog Timer enable & Time-Out Value Register)
;--------------------------------------------------------------------------
MOV
DX,2Eh
MOV
AL,07h
OUT
DX,AL
MOV
DX,2Fh
MOV
AL,07h
OUT
DX,AL
MOV
DX,2Eh
MOV
AL,72h
OUT
DX,AL
MOV
DX,2Fh
IN
AL,DX
OR
AL,40h
OUT
DX,AL
;Ready to Program Logical Device
;Select Logical Device 7
;Select CR72
;Set CR72[Bit:6]=1, WDT output through KRST
enable

Watchdog Sample Code

D
113

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents