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

Dfi cr100-crm system board user’s manual
Hide thumbs Also See for CR100-CRM:
Table of Contents

Advertisement

A
Watchdog Timer

Appendix B - Watchdog Sample Code

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

Advertisement

Table of Contents
loading

Table of Contents