23
The following sample program shows how to Enable, Disable and
Refresh the Watchdog Timer:
WDT_EN_RF EQU 0433H
WDT_DIS EQU
0045H
WT_Enable
PUSH
AX
; keep AX DX
PUSH
DX
MOV
DX,WDT_EN_RF
; enable the WDT
IN
AL,DX
POP
DX
; get back AX, DX
POP
AX
RET
WT_Refresh
PUSH
AX
; keep AX, DX
PUSH
DX
MOV
DX,WDT_ET_RF
; refresh the WDT
IN
AL,DX
POP
DX
; get back AX, DX
POP
AX
RET
WT_DISABLE PUSH AX
PUSH
DX
MOV
DX,WDT_DIS
; disable the WDT
IN
AL,DX
POP
DX
; get back AX, DX
POP
AX
RET
Summary of Contents for HS-6050
Page 6: ...This Page is intentionally left blank...
Page 10: ...4 1 3 Board Dimensions...
Page 14: ...8 3 2 Board Layout...