In Borland C++, a program using the watchdog timer must include PCWDT.H and PCWDT16.LIB in the project to use the watchdog timer commands. The example program uses Borland’s EasyWin to demonstrate the use of the DLL functions. A Borland C++ project file is included to make it easier to recompile the example program.

Changing the I/O Port Address

The I/O port address that the software uses to communicate with the watchdog timer is stored in the file, PCWDT.INI, located in the Windows directory. Use NOTEPAD to open this file and change the values for the parameter IoPortAddress. The default value for IoPortAddress is 0x0200 (hexadecimal 200). This value must match the settings of the jumper switches on the watchdog timer. The format of the PCWDT.INI file is:

[Parameters]

IoPortAddress=0x0200

IoPortCount=0x0001

Currently the value of IoPortCount is ignored, but may be used in future versions of this software, so it should not be changed. These changes take effect immediately when they are saved; however, if the program that uses the watchdog timer is running at the time of the change, the changes will not recognize until the program is restarted. There is no need to reboot the computer for the changes to take effect.

Disk Caching

If you are using SmartDrive, or any other disk caching software, with write behind caching enabled, you may lose all data in the write behind cache by rebooting the computer with the watchdog timer. Disable the write behind cache before running an application that uses the watchdog timer to reboot the computer.

Documentation Number ATxWDT-1303

15

B&B Electronics Mfg Co – 707 Dayton Rd - PO Box 1040 - Ottawa IL 61350 - Ph 815-433-5100 - Fax 815-433-5104 B&B Electronics Ltd – Westlink Comm. Pk – Oranmore, Galway, Ireland – Ph +353 91-792444 – Fax +353 91-792445

Page 16
Image 16
B&B Electronics ATXWDT, ATRWDT manual Parameters IoPortAddress=0x0200 IoPortCount=0x0001