Watchdog Timer - Boser HS-2621 Manual

Intel atom n270 processor embedded engine board
Table of Contents

Advertisement

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.
3.17.1 Assembly Language Code
W83627EHG
WDT 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
--------------------------------------
Configure time mode
--------------------------------------
MOV DX,2EH
19

Advertisement

Table of Contents
loading

Table of Contents