Summary of Contents for B&B Electronics PC Watchdog Timer Card ATRWDT
Page 1
PC Watchdog Timer Card CE Models: ATRWDT and ATXWDT Documentation Number ATxWDT-1303 This product designed and manufactured in Ottawa, Illinois USA of domestic and imported parts by International Headquarters 707 Dayton Road -- P.O. Box 1040 -- Ottawa, IL 61350 USA Phone (815) 433-5100 -- General Fax (815) 433-5105 Sales e-mail: Technical Support e-mail:...
Table of Contents CHAPTER 1: GENERAL INFORMATION...1 ...1 NTRODUCTION ...1 EATURES ...1 PECIFICATIONS CHAPTER 2: SETUP AND INSTALLATION...2 ...2 NSPECTION DDRESS WITCH ...5 ELAY ETUP ...5 NSTALLATION ATRWDT M ONNECTING THE ATX R ONNECTING THE NSTALLING THE OFTWARE CHAPTER 3: OPERATION ...9 OMMUNICATING WITH THE ...10 INOUTS...
Chapter 1: GENERAL INFORMATION Introduction B&B Electronics' Watchdog Timer (WDT) Cards, Models ATRWDT and ATXWDT, are hardware devices designed to overcome the dangers or annoyances associated with a PC "locking up." Your software periodically resets the WDT. If the watchdog doesn't receive the reset trigger within a software selectable timeout period, the WDT resets the computer.
Chapter 2: SETUP AND INSTALLATION Inspection Your WDT has been tested for proper operation. It should be in perfect electrical and mechanical condition upon receipt. Remove the card from its protective packaging. Handle the card only by its edges being careful not to touch the gold connection fingers.
Page 6
Switch positions 1 - 7 of S1 configure the I/O address of the WDT. Switches represent a binary 0 in the ON position, a binary 1 when OFF. Least significant bit (LSB) and most significant bit (MSB) are labeled on the card. Table 1 shows the numerical weight and electrical connection of each switch.
If you want to install at another address, use the following procedure. 1. Select the address: Using an I/O port usage table (one is included in Appendix A) select an unused hex address space. Note that the WDT card occupies 8 bytes of I/O space. Use caution when selecting a port address, it is important that nothing else is installed at the selected address.
Connecting the ATRWDT Motherboard Reset Option To use the ATRWDT to reboot the host computer, a connection must be made from the ATRWDT to the motherboard. The jumper wire supplied with the ATRWDT must be connected between the MOTHEBOARD RESET PINS jumper on the ATRWDT and the RESET pins on the host motherboard.
Connecting the ATX Reset Option for the ATXWDT The ATXWDT uses the ATX Power supply to reset the computer. The ATXWDT sends a 5 volt, 10 second signal on the PS-ON data line to turn off the computer for 10 seconds. Then when this signal goes back to zero the computer turns back on.
Page 10
contains a historic description of the product. The file, READ.ME, contains corrections and additions to the printed user’s manual. Documentation Number ATxWDT-1303...
Chapter 3: OPERATION Communicating with the WDT The WDT uses a four-bit latch to start and stop the timers and set the timeout period. Regardless of the mode of operation of the WDT, a "1" must be written to the least significant bit of the latch to start the timers. Writing a "0"...
The four bit latch values are also readable. Reading these bits is recommended to verify the presence and setup of the WDT. The BASIC command INP <WDTaddress> is used to read from the WDT. The top three bits are not used and can be masked out. In the ATRWDT the fifth bit is the reset flag.
Page 13
Figure 2. Output Schematic Documentation Number ATxWDT-1303...
Chapter 4: SOFTWARE The software shipped with the ATRWDT and ATXWDT includes example software for Windows 3.11, Windows 95 and Windows NT written for Borland C++ 5.01, Microsoft Visual C++ 4.0 and Microsoft Visual BASIC 4.0. Also included is a Windows NT 4.0 device driver. Windows NT and Windows 95 Windows NT restricts access to the I/O ports of the computer to device drivers, so a simple OUT command cannot be used to...
Changing the I/O Port Address The setup program, WDTSETUP.EXE, changes the I/O port address that the software uses to communicate with watchdog timer. This address must match the setting of the jumper switches on the watchdog timer. The program updates keys in the registry for the device driver.
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.
Command Reference BBPCWDT_Startup Purpose: Begin communications with the watchdog timer. C Syntax: HANDLE BBPCWDT_Startup(void); BASIC Function BBPCWDTStartup () As Long Syntax: Remarks: This function reads the watchdog timer’s I/O port value that the setup program stored in the registry for Windows 95 / NT or in the file, PCWDT.INI, for Windows 3.11.
BBPCWDT_Reset Purpose: Reset the timeout of the watchdog timer. BOOL BBPCWDT_Reset(HANDLE hDev, BYTE C Syntax: bResetValue); BASIC Function BBPCWDTReset (ByVal hDev As Long, ByVal bResetValue As Byte) As Syntax: Byte Remarks: hDev is the handle to the watchdog timer that was returned by BBPCWDT_Startup.
BBPCWDT_ReadRegister Purpose: Read the value of the reset register. C Syntax: BOOL BBPCWDT_ReadRegister(HANDLE hDev, BYTE* value); Function BBPCWDTShutdown (ByVal hDev BASIC As Long, value As Byte) As Byte Syntax: Remarks: hDev is the handle to the watchdog timer that was returned by BBPCWDT_Startup.
Appendix B: QuickBASIC Example Note: An additional test program for the WDT is available on B&B’s ftp site at ftp.bb-elec.com/bb-elec/software. B&B Electronics Mfg. Co. Watchdog Timer QuickBASIC Example Program This code is an example of how the WDT is addressed from within a program.
Appendix C: Declaration of Conformity Statement DECLARATION OF CONFORMITY Manufacturer’s Name: Manufacturer’s Address: Model Numbers: Description: Type: Application of Council Directive: 89/336/EEC Standards: William H. Franklin III, Director of Engineering Documentation Number ATxWDT-1303 B&B Electronics Manufacturing Company P.O. Box 1040 707 Dayton Road Ottawa, IL 61350 USA ATRWDT, ATXWDT...