Appendix B Programming The Watchdog Timer - Advantech UNO-3072A User Manual

Intel dual core atom embedded automation computer with two/four pci slot extensions
Table of Contents

Advertisement

Appendix B Programming the Watchdog
B.1
Below is a sample of programming code for controlling the Watchdog
Timer function.
-----------------------------------------------------------------------------------
Enter the extended function mode, interruptible double-write |
-----------------------------------------------------------------------------------
MOV DX,4EH
MOV AL,87H
OUT DX,AL
OUT DX,AL
-----------------------------------------------------------------------------
Configured logical device 8, configuration register CRF6 |
-----------------------------------------------------------------------------
MOV DX,4EH
MOV AL,2BH
OUT DX,AL
MOV DX,4FH
IN AL,DX
AND AL.OEFH;Setbit 4=0 Pin 89=WDTO
OUT DX,AL
MOV DX,4EH
MOV AL,07H; point to Logical Device Number Reg.
OUT DX,AL
MOV DX,4FH
MOV AL,08H; select logical device 8
OUT DX,AL;
MOV DX,4EH
MOV AL,30H;Set watch dog activate or inactivate
UNO-3072A/3074A User Manual
Timer
72

Advertisement

Table of Contents
loading

This manual is also suitable for:

Uno-3074a

Table of Contents