Example Program; A.1.4 Example Program - Advantech PCA-6186 User Manual

Full-size socket 478 intelæ pentiumæ 4/ celeron processor-based pci/isa cpu card
Hide thumbs Also See for PCA-6186:
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
read/write
-----
Table A.1: Watchdog timer registers
; Enable the function of watchdog timer
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
; Unlock W83627HF
; Select registers of watchdog timer
103
Appendix A

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents