Appendix B - Watchdog Sample Code - DFI SB600-C User Manual

Hide thumbs Also See for SB600-C:
Table of Contents

Advertisement

Appendix B - Watchdog Sample Code

;Software programming example:
;---------------------------------------------
;(1) Enter Super IO Configuration mode
;---------------------------------------------
MOV
DX,2EH
MOV
AL,87H
OUT
DX,AL
OUT
DX,AL
;-------------------------------------------------------------------------------------------
;(2) Configuration 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
127

Advertisement

Table of Contents
loading

Table of Contents