Summary of the content on the page No. 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
B&B Electronics Mfg. Co. Inc.
707 Dayton Road -- P.O. Box 1040 -- Ottawa, IL 61350 USA
Phone (815) 433-5100 -- General Fax (815) 433-5105
Home Page: www.bb-elec.com
Sales e-mail: orders@bb-elec.com -- Fax (815) 433-5109
Technical Support e-mail: support@bb.elec.com -- Fax (815) 43
Summary of the content on the page No. 2
Table of Contents CHAPTER 1: GENERAL INFORMATION...................................1 INTRODUCTION..................................................................................1 FEATURES..........................................................................................1 SPECIFICATIONS ................................................................................1 CHAPTER 2: SETUP AND INSTALLATION...............................2 INSPECTION ........................................
Summary of the content on the page No. 3
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. The ATRWDT uses the reset pins from the motherboard to reset the computer, where as the ATXWDT uses the ATX power s
Summary of the content on the page No. 4
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. Save the packaging for storage or shipping if the card needs repair. Address Switch Setup The WDT can be set for any I/O address using a seven position DIP switch to program the binary I/O address
Summary of the content on the page No. 5
Figure 1. ATRWDT/ATXWDT PCB Silk Screen Documentation Number ATxWDT-1303 3 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
Summary of the content on the page No. 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. Table 1. Address Switches S1 Position 7 6 5 4 3 2 1 Bus SA9 SA8 SA7 SA6 SA5 SA4 SA3 Connection Decimal 512 256 128 64 32 16 8 Weight Hex Weight 200 100 80 40 20 10 8 Any I/O address may be used, but it
Summary of the content on the page No. 7
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. 2. Convert the hex address to its binary equivalent. 3. Throw away the 3 least significant bits. 4. The remaining 7 digits represent the s
Summary of the content on the page No. 8
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. If your computer has a RESET switch, the switch's jumper wires should already be connected to the motherboard reset pins. Remove the switch wires from the motherboard pins and connect
Summary of the content on the page No. 9
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. The ATX daughter board also allows the computer to bypass the ON/OFF button. Setting the jumper to ON/OFF will allow the ON/OFF button to work as normal. Setting the jumper to ALWAYS ON will bypass the ON/OFF button,
Summary of the content on the page No. 10
contains a historic description of the product. The file, READ.ME, contains corrections and additions to the printed user’s manual. 8 Documentation Number ATxWDT-1303 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
Summary of the content on the page No. 11
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" to the least significant bit of the latch at any time will stop the timers. Note that since the least significant bit is used to start and stop the counters, any even number written to the latch will result in the coun
Summary of the content on the page No. 12
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 is used to read from the WDT. The top three bits are not used and can be masked out. In the ATRWDT thefifth bitisthe resetflag. It will bea1when the ATRWDT resets thecomputer anda0ifthe computer has not been reset by the ATRWDT. This bit will be cleared if the computer is turned off or after the bit has been read. A small example program,
Summary of the content on the page No. 13
Figure 2. Output Schematic Documentation Number ATxWDT-1303 11 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
Summary of the content on the page No. 14
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 communicate with the watchdog timer. A device driver, for use with Windows NT
Summary of the content on the page No. 15
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 order to update these keys under Windows NT Server, the user must be logged in as the administrator or have administrator rights. Windows NT Workstation and Windows 95 allow all users to modify these
Summary of the content on the page No. 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. U
Summary of the content on the page No. 17
Command Reference BBPCWDT_Startup Purpose: Begin communications with the watchdog timer. HANDLE BBPCWDT_Startup(void); C Syntax: Function BBPCWDTStartup () As Long BASIC 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. The Windows NT version of this function establishes communications with the PCWDT device driver. The Windows 3.11 / 95 version of this function
Summary of the content on the page No. 18
BBPCWDT_Reset Purpose: Reset the timeout of the watchdog timer. BOOL BBPCWDT_Reset(HANDLE hDev, BYTE C Syntax: bResetValue); Function BBPCWDTReset (ByVal hDev As BASIC Long, ByVal bResetValue As Byte) As Syntax: Byte Remarks: hDev is the handle to the watchdog timer that was returned by BBPCWDT_Startup. bResetValue is the reset value that is sent to the watchdog timer. The values are: Value (hex) Timeout 0 disabled 1 0.5 seconds 3 2 seconds 5 6 seconds 7 14 seconds 9 30 seconds B 126 second
Summary of the content on the page No. 19
BBPCWDT_ReadRegister Purpose: Read the value of the reset register. BOOL BBPCWDT_ReadRegister(HANDLE hDev, C Syntax: 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. value is a pointer to a byte that will receive the register value. Return Value: TRUE (non-zero) if successful, otherwise FALSE (zero). 18 Documentation Number ATxWDT-1303 B&B Electronics Mfg Co
Summary of the content on the page No. 20
Appendix A: Hardware I/O Maps I/O Map of XT Class Machines Hex Address Address Function in XT Class Machines 000-00F DMA controller (8237A) 020-021 Interrupt controller (8259A) 040-043 timer (8253) 060-063 PPI(8255A) 080-083 DMA page register (74LS612) 0A0-0AF NMI – non maskable interrupt 200-20F game port joystick controller 210-217 Expansion unit 2E8-2EF COM4 serial port 2F8-2FF COM2 serial port 300-31F Prototype card 320-32F hard disk 378-37F Parallel print 380-38F SDLC 3B0-3BF MDA - monochro