
5.1.1 WDT Programming
In order to simplify the programming code, we have provided a sub function for programmers to implement with their software. For DOS, Windows 95, 98 and Windows NT, the sub function format is as follows:
out_port (int IOport_number, int Counter_value)
IOport_number:0x3F0
Counter_value: 0 ~ 15300 (255 minutes)
(write a zero to disable the timer)
Under DOS, Windows 95 or 98
Make a project program called 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 to the DOS sources we have provided.
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:\CHIPDRV\WDT\test <n>
/* n = second value. This program can
Under Windows NT
Before you executing this 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