19
3.17 Watchdog Timer
A user can set a value of Watchdog Timer in his software to reboot their
hardware system. It is forced to reboot once user’s software fails to
reset the Watchdog Timer before the counter of Watchdog Timer
meets user’s setting value. This function, Watchdog Timer, prevents
user’s software from crashing.
W83627EHG Watch Dog Timer
1. Assembly sample code:
------------------------------------
Extended function mode
------------------------------------
MOV DX,2EH
MOV AL,87H
OUT DX,AL
OUT DX,AL
-------------------------------------
Configure logical device 8
-------------------------------------
MOV DX,2EH
MOV AL,07H
OUT DX,AL
MOV DX,2FH
MOV AL,08H
OUT DX,AL
MOV DX,2EH ; Define Reset
MOV AL,2DH
OUT DX,AL
MOV DX,2FH
MOV AL,21H
OUT DX,AL
MOV DX,2EH
MOV AL,30H ; Enable WDT
OUT DX,AL
MOV DX,2FH
MOV AL,01H
OUT DX,AL
Summary of Contents for HS-7280
Page 46: ...40 This page is the blank page...