Watchdog and Utilities
•
31
5.1.1
WDT1 Programming
The function of the watchdog timer is to res et the system automatically. It
contains a one-second (or one-minute) resolution down counter (in CRF2 of
logical device 8 of super I/O chip) and two Watchdog control registers (CRF4
and CRF3 of logical device 8).
We provides the WDT function call for easy use under DOS, Windows
95/98/2000, and Windows NT, please refer the information under
X : \CHIPDRV \WDT.
In order to simplify the programming code, we provide a sub function for the
programmers to implement their software. For DOS, Windows 95 or 98 and
Window NT, the sub function format is as follow:
out_port (int IOport_number, int Counter_value)
IOport_number:0x3F0 -->W83977EF's configuration port.
0x2E -->W83627HF's configuration port.
Counter_value: 0 ~ 15300 (255 minutes)
(write a zero to disable the timer)
Under DOS, Windows 95 or 98
Make a project program with
wdt.cpp
under Turbo C/C++.
Under Windows NT
The library installation procedure:
(1) run the setup program under NT environment.
(2) reboot the system.
You can also write your own DLL by referring the DOS source we provide.
5.1.1.1 How to Test the WDT1?
Under DOS, Windows 95 or 98
Open a DOS command prompt and execute the following utility on the CD.
X : \CHIPRRV\WDT\test
<n>
/* n = second value. This program can auto detect which Super
I/O chip you use. */
StockCheck.com
Содержание NuIPC cPCI-3500A Series
Страница 2: ...S t o c k C h e c k c o m...