Appendix B - Watchdog Sample Code - DFI-ITOX LR905-B User Manual

Compact (micro) com express board
Table of Contents

Advertisement

B
Watchdog Timer

Appendix B - Watchdog Sample Code

;Software programming example:
;---------------------------------------------
;(1) Enter Super IO Configuration mode
;---------------------------------------------
MOV
MOV
OUT
OUT
;-------------------------------------------------------------------------------------------
;(2) Configuration 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
88
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