Appendix B - Watchdog Sample Code - DFI CR100-CRM User Manual

Hide thumbs Also See for CR100-CRM:
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
A
171

Advertisement

Table of Contents
loading

Table of Contents