116
A
Watchdog Sample Code
MOV
DX,4FH
MOV
AL,02H
;Set CRF6 value=02 => Watch Dog Timer=2
(unit:Min)
OUT
DX,AL
MOV
DX,4EH
MOV
AL,F7H
;Select CRF7
OUT
DX,AL
MOV
DX,4FH
MOV
AL,02H
;Set CRF7[Bit:7,6]=11, WDT reset by mouse/key-
board interrupt
OUT
DX,AL
;-------------------------------------------
;(3) Exit extended function mode
;-------------------------------------------
MOV
DX,4EH
MOV
AL,AAH
OUT
DX,AL