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

Page 16

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

Image 16
Contents PC Watchdog Timer Card CE Table of Contents Specifications FeaturesGeneral Information Introduction Setup and Installation Inspection Address Switch SetupATRWDT/ATXWDT PCB Silk Screen Address Switches S1 Position Bus Weight Hex WeightConnection Decimal 200Relay Setup InstallationConnecting the Atrwdt Motherboard Reset Option Connecting the ATX Reset Option for the Atxwdt Installing the SoftwareDocumentation Number ATxWDT-1303 Operation Communicating with the WDT Pinouts RegistersOutput Schematic Software Windows NT and WindowsWindows Changing the I/O Port AddressDisk Caching Existing DOS ProgramsParameters IoPortAddress=0x0200 IoPortCount=0x0001 BBPCWDTStartup Command ReferenceBBPCWDTShutdown BBPCWDTReset Value hex TimeoutBBPCWDTReadRegister Bool BBPCWDTReadRegisterHANDLE hDevBYTE* value As Long, value As Byte As ByteAppendix a Hardware I/O Maps SdlcMap of AT Class Machines Parallel printer on monochrome adapterAppendix B QuickBASIC Example Do While INKEY$ =Appendix C Declaration of Conformity Statement Declaration of Conformity