Appendix B - Watchdog Sample Code - DFI-ITOX SB331-IPM User Manual

Table of Contents

Advertisement

Appendix B - Watchdog Sample Code

;Software programming example:
;---------------------------------------------
;(1) Enter Super IO Confi guration mode
;---------------------------------------------
MOV
DX,2EH
MOV
AL,87H
OUT
DX,AL
OUT
DX,AL
;-------------------------------------------------------------------------------------------
;(2) Confi guration Logical Device 7, register CRF5/CRF6 (WDT Control /WDT
timer)
;-------------------------------------------------------------------------------------------
MOV
DX,2EH
MOV
AL,07H
OUT
DX,AL
MOV
DX,2FH
MOV
AL,07H
OUT
DX,AL
MOV
DX,2EH
MOV
AL, F6H
OUT
DX,AL
MOV
DX,2FH
MOV
AL,10H
OUT
DX,AL
MOV
DX,2EH
MOV
AL, F5H
OUT
DX,AL
MOV
DX,2FH
MOV
AL,61H
OUT
DX,AL
;----------------------------------------------------------------
;(1) Exit extended function mode
;----------------------------------------------------------------
MOV
DX,2EH
MOV
AL,AAH
OUT
DX,AL
;Ready to Program Logical Device
;Select Logical Device 7
;Select watchdog timer register
;Set watchdog timer value
;Select watchdog Control Register
;Set Watchdog Control Value
Watchdog Timer
B
149

Advertisement

Table of Contents
loading

Table of Contents