Example Program - Advantech PCA-6186VE User Manual

Table of Contents

Advertisement

F7 (hex)
AA (hex)
A.1.4 Example Program
1.
Enable watchdog timer and set 10 sec. as timeout interval
;-----------------------------------------------------------
Mov dx,2eh
Mov al,87h
Out dx,al
Out dx,al
;-----------------------------------------------------------
Mov al,07h
Out dx,al
Inc
dx
Mov al,08h
Out dx,al
;-----------------------------------------------------------
Dec dx
Mov al,30h
Out dx,al
Inc
dx
Mov al,01h
Out dx,al
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
read/write
-----
Table A.1: Watchdog timer registers
; Unlock W83627HF
; Select registers of watchdog timer
; Enable the function of watchdog timer
97
Bit 6: Write 1 to enable key-
board to reset the timer, 0
to disable.[default]
Bit 5: Write 1 to generate a
timeout signal immediately
and automatically return to
0. [default=0]
Bit 4: Read status of watch-
dog timer, 1 means timer is
""time out""."
Write this address to I/O
port 2E (hex) to lock the
watchdog timer.2
Appendix A

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pca-6186

Table of Contents