Example Program; A.1.3 Example Program - Advantech PCE-3028 User Manual

Lga1150 intel xeon, core i7/i5/i3/celeron/pentium picmg 1.3 half-size system host board with vga / dvi-d /ddr3 /sata3.0 / usb3.0 / dual gbe
Hide thumbs Also See for PCE-3028:
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
PCE-3028/4128 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
96

Advertisement

Table of Contents
loading

This manual is also suitable for:

Pce-4128

Table of Contents