Example Program; A.1.3 Example Program - Advantech PCA-6028 User Manual

Intel core i7/i5/i3/pentium picmg 1.0 single host board with vga/ dvi-d/ ddr3 /sata3.0 / usb3.0 / dual gb
Hide thumbs Also See for PCA-6028:
Table of Contents

Advertisement

F6 (hex)
F7 (hex)
AA (hex)
A.1.3

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
In
al,dx
Or
al,01h
Out
dx,al
;-----------------------------------------------------------
Dec dx
Mov
al,0f5h
Out
dx,al
Inc
dx
In
al,dx
And al,not 08h
Out
dx,al
;-----------------------------------------------------------
Dec dx
Mov
al,0f6h
PCA-6028 User Manual
0: stop timer [default]
01~FF (hex): The amount of the count, in seconds or
minutes, depends on the value set in register F5 (hex).
write
This number decides how long the watchdog timer waits
for strobe before generating an interrupt or reset signal.
Writing a new value to this register can reset the timer to
count with the new value.
Bit 6: Write 1 to enable keyboard to reset the timer, 0 to
disable.[default]
Bit 5: Write 1 to generate a timeout signal immediately
read/write
and automatically return to 0. [default=0]
Bit 4: Read status of watchdog timer, 1 means timer is
"timeout".
Write this address to I/O port 2E (hex) to lock the
-----
NCT6776D.
; Unlock NCT6776D
; Select registers of watchdog timer
; Enable the function of watchdog timer
; Set second as counting unit
; Set timeout interval as 10 seconds and start counting
80

Advertisement

Table of Contents
loading

Table of Contents