User`s guide

Watchdog and Utilities 37
5.1.1 WDT Programming
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.2 How to Test the WDT?
Under DOS, Windows 95 or 98
Open a DOS command prompt and execute the following utility on the CD.
X: NuPRO\NuPRO800\WDT\test <n>
/* n = second value. This program can auto detect which Super
I/O chip you use. */
Under Windows NT
Before you executing the program under NT, you must run the setup
program under Windows NT in advance. Open a DOS command prompt
window and execute the following command.
test977 <n> : n = second value. For W83977EF