Aaeon PCM-5890 Manual page 77

All-in-one single board pentium computer with svga, ethernet and 4 serial ports
Table of Contents

Advertisement

Jumpers J23, J24, and J25 control the watchdog settings. The
default configuration of the timer is enabled with system reset.
To enable the watchdog timer, you must write a program which
reads I/O port address 443 (hex) at regular intervals. The first time
your program reads the port, it enables the watchdog timer. After
that, your program must read the port at time interval of less than
1.6 seconds, otherwise the watchdog timer will activate and reset
the CPU or generate an interrupt on IRQ15. When you want to
disable the watchdog timer, your program should read I/O port 043
(hex).
If CPU processing comes to a standstill because of EMI or a
software bug, your program's signals to I/O port address 443 to the
timer will be interrupted. The timer will then automatically reset the
CPU or invoke an IRQ, and data processing will continue normally.
You must write your program so that it reads I/O port address 443
at an interval shorter than the timer's preset interval. The timer's
intervals have a tolerance of ±30%, so you should program an
instruction that will refresh the timer about every second.
The following program shows how you might program the watch-
dog timer in BASIC:
1 0
2 0
dog
3 0
plete
4 0
5 0
plete
6 0
7 0
1000
1070
2000
2090
68 PCM-5890 User's Manual
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
REM
Watchdog timer example program
X=INP (&H443) REM
GOSUB 1000 REM
X=INP (&H443) REM
GOSUB 2000 REM
X=INP (&H043) REM
END
REM
Subroutine #1, takes 1 second to complete
.
.
.
RETURN
REM
Subroutine #2, takes 1 second to complete
.
.
.
RETURN
Enable and refresh the watch-
Task #1, takes 1 second to com-
Refresh the watchdog
Task #2, takes 1 second to com-
Disable the watchdog

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents