EasyManua.ls Logo

Advantech PCA-684 - B.4 USB Connector (CN6); B.5 VGA Connector (CN7)

Advantech PCA-684
116 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
85 Appendix A
A.1.4 Example Program
1. Enable watchdog timer and set 10 sec. as timeout interval
;-----------------------------------------------------------
Mov dx,2eh ; Unlock W83627HF
Mov al,87h
Out dx,al
Out dx,al
;-----------------------------------------------------------
Mov al,07h ; Select registers of watchdog timer
Out dx,al
Inc dx
Mov al,08h
Out dx,al
;-----------------------------------------------------------
Dec dx ; Enable the function of watchdog timer
Mov al,30h
Out dx,al
Inc dx
Mov al,01h
Out dx,al
;-----------------------------------------------------------
F7 (hex) read/write Bit 6: Write 1 to enable
keyboard to reset the
timer, 0 to dis-
able.[default]
Bit 5: Write 1 to generate
a timeout signal immedi-
ately and automatically
return to 0. [default=0]
Bit 4: Read status of
watchdog timer, 1 means
timer is ""time out""."
AA (hex) ----- Write this address to I/O
port 2E (hex) to lock the
watchdog timer.2

Table of Contents

Related product manuals