Programming Example
The following program is an examples of how to enable,
disable and refresh the Watchdog timer:
WDT_EN_RF
equ
444H
WDT_DIS equ
044h
WT_Enable
push AX
; Save AX,DX
push DX
mov DX,WDT_EN_RF
; Enable Timer
mov AX,INTERVAL ; Set Timeout Value
out DX,AX
pop DX
; Restore DX,AX
pop AX
ret
WT_ Refresh
push AX
; Save AX,DX
push DX
mov DX,WDT_EN_RF
; Refresh Timer
mov AX,INTERVAL ; Set Timout Value
out DX,AX
pop DX
; Restore DX,AX
pop AX
ret
WT_Disable
push AX
; Save AX,DX
push DX
mov DX,WDT_DIS
; Disable Timer
in AX,DX
pop DX
; Restore DX,AX
pop AX
ret
WT_Disable
push AX
; save AX,DX
push DX
mov DX,WDT_DIS
; Disable Timer
in AX,DX
pop DX
; restore DX,AX
pop AX
ret
14
3312400 User's Manual