Appendix A - Watchdog Sample Code - DFI-ITOX EL109-N User Manual

Table of Contents

Advertisement

Appendix A - Watchdog Sample Code

;Software programming example:
;----------------------------------------------------------------
;(1) Enter Superio Configuration mode
;----------------------------------------------------------------
MOV
DX,4EH
MOV
AL,87H
OUT
DX,AL
OUT
DX,AL
;--------------------------------------------------------------------------------
;(2) Configuration Logical Device 8, register CRF5/CRF6/CRF7
;
(WDT count mode / count value / control mode)
;--------------------------------------------------------------------------------
MOV
DX,4EH
MOV
AL,07H
OUT
DX,AL
MOV
DX,4FH
MOV
AL,08H
OUT
DX,AL
MOV
DX,4EH
MOV
AL,F5H
OUT
DX,AL
MOV
DX,4FH
IN
AL,DX
OR
AL,08H
OUT
DX,AL
MOV
DX,4EH
MOV
AL,F6H
OUT
DX,AL
MOV
DX,4FH
MOV
AL,02H
OUT
DX,AL
MOV
DX,4EH
MOV
AL,F7H
OUT
DX,AL
;Ready to Program Logical Device
;Select Logical Device 8
;Select CRF5
;Set CRF5[Bit:3]=1, WDT count mode=Minute mode
;Select CRF6
;Set CRF6 value=02 => Watch Dog Timer=2 (unit:Min)
;Select CRF7
Watchdog Timer
A
95

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents