DSCLP/SSCLP-200/300 Two and One Channel RS-422/485 Low Profile Asynchronous Communications Adapter for PCI bus User's Manual QUATECH, INC. 5675 Hudson Industrial Parkway Hudson, Ohio 44236 TEL: (330) 655-9000 FAX: (330) 655-9010 http://www.quatech.
WARRANTY INFORMATION Quatech, Inc. warrants the DSCLP-200/300 or SSCLP-200/300 to be free of defects for five (5) years from the date of purchase. Quatech, Inc. will repair or replace any board that fails to perform under normal operating conditions and in accordance with the procedures outlined in this document during the warranty period. Any damage that results from improper installation, operation, or general misuse voids all warranty rights.
2006 Quatech, Inc. NOTICE The information contained in this document cannot be reproduced in any form without the written consent of Quatech, Inc. Likewise, any software programs that might accompany this document can be used only in accordance with any license agreement(s) between the purchaser and Quatech, Inc. Quatech, Inc. reserves the right to change this documentation or the product to which it refers at any time and without notice.
Declaration of Conformity Manufacturer's Name: Quatech Inc.
Table of Contents 1 General Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 Hardware Configuration . . . . . . . . . . . . . . . . . . . . . . . . . 8 9 2.1 RS-422 or RS-485 Signal Line Termination . . . . . . . . . . . 9 2.2 Signal Connections . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10 2.3 Full-duplex/Half-duplex Operation . . . . . . . . . . . . . . . . . . 10 2.3.1 CTS0_SEL, CTS1_SEL (J10, 17) . . . . . . . . . . . . . . . . . 12 2.3.
.1 OS/2 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35 6.2 DOS and other operating systems . . . . . . . . . . . . . . . . . . . 35 6.2.1 QTPCI.EXE . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36 7 External Connections ............................ 7.1 RTS/cts Handshake . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7.2 RCLK . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
DSCLP/SSCLP-200/300 User's Manual 7
1 General Information The Quatech, Inc. DSCLP-200/300 (two-port) and SSCLP-200/300 (one-port) provide RS-422 or RS-485 asynchronous serial communication interfaces for IBM-compatible personal computer systems using the PCI expansion bus. For general purposes, this manual usually makes reference only to the DSCLP-200/300. All information pertains equally to the SSCLP-200/300, with the exception that with the SSCLP there is just one port instead of two.
2 Hardware Configuration The DSCLP-200/300 is automatically configured at boot time by the computer's BIOS or operating system. There are no required switches or jumpers to set for installation. This chapter lists a number of optional jumper settings that control various hardware features. Jumpers J1-J4, located in a column near the D-type connector (D-25 for DSCLP, D-9 for SSCLP), control the RS-422 or RS-485 signal line termination.
2.2 Signal Connections The DSCLP-200/300 provides each of two serial ports with four differential signal pairs: TxD, RxD, AUXOUT, and AUXIN. TxD and RxD are always present at the connector. The AUXOUT and AUXIN signals can be used to support RTS/CTS handshaking, external clocking, or external signal loopback. The factory default configuration, as shown in Figure 2, is a loopback of AUXOUT to AUXIN at the connector, with RTS and CTS looped back on the board.
Jumpers J10-J23 define the options for this card: SPAD J2 J3 X8 J4 X4 J5 X2 J10 CTS0_SEL J11 AUX0_SEL0 J12 AUX0_SEL1 J13 RCLK0_SEL J14 TGL0_SEL0 J15 TGL0_SEL1 J16 RXEN0_SEL J17 CTS1_SEL J18 AUX1_SEL0 J19 AUX1_SEL1 J20 RCLK1_SEL J21 TGL1_SEL0 J22 TGL1_SEL1 J23 RXEN1_SEL Figure 2 - Right Card Edge Jumpers DSCLP/SSCLP-200/300 User's Manual 11
2.3.1 CTS0_SEL, CTS1_SEL (J10, 17) With NO jumpers on J10 or J17 the mode selection is CTS=AUXIN. With Jumpers installed the mode selection is CTS=RTS. 2.3.2 AUX0_SEL1,0, AUX1_SEL1,0 (J12, 11, 19, 18) With NO jumpers on J12 or J19 the mode selection is AUXOUT=RTS. With Jumpers installed on J12 or J19 and NO jumpers installed on J11 or J18, the mode selection is AUXOUT=TCLK. With Jumpers installed on J12, J11 or J19, J18, the mode selection is AUXOUT=AUXIN. 2.3.
2.4 Clock Rate and Optional Registers Figure 3 shows the jumper configuration as shipped from the factory, with two spare jumpers applied in neutral positions. Remove one or both and apply as shown in following subsections to set optional features. SPAD J2 J3 X8 J4 X4 J5 X2 Figure 3 --- Factory default clock rate and options settings 2.4.
The factory default is none of these jumpers applied, which allows for software control of the clock multiplier via the Options Register. The Options Register powerup default is for a standard times-1 clock of 1.8432 MHz for compatibility with standard serial ports.
3 Hardware Installation 1. Turn off the power of the computer system in which the DSCLP-200/300 is to be installed. 2. Remove the system cover according to the instructions provided by the computer manufacturer. 3. Make any desired optional jumper setting changes. 4. Install the DSCLP-200/300 in any empty PCI expansion slot. The board should be secured by installing the Option Retaining Bracket (ORB) screw. 5. Replace the system cover according to the instructions provided by the computer manufacturer. 6.
4 Address Map and Special Registers This chapter explains how the two UARTs and special registers are addressed, as well as the layout of those registers. This material will be of interest to programmers writing driver software for the DSCLP-200/300. 4.1 Base Address and Interrupt Level (IRQ) The base address and IRQ used by the DSCLP-200/300 are determined by the BIOS or operating system. Each serial port uses 8 consecutive I/O locations.
4.2 Enabling the Special Registers The DSCLP-200/300 contains two unique registers, an Interrupt Status Register and an Options Register. These registers are enabled when the SPAD jumper (J13) is removed (factory default). They replace the UART Scratchpad Register on accesses to register address 7. The Interrupt Status Register and Options Register are accessed through the scratchpad location of any UART. The DLAB bit of the UART (Line Control Register, bit 7) is used to select between the two registers.
4.4 Quatech Modem Control Register The Quatech Modem Control Register can be used to set up each port. To access the QMCR write a 0xBF to the LCR (base + 3) and a 0x10 to the Options Register (base+7). This will allow the user read/write access to the QMCR. The QMCR of the entire DSCLP-200/300 is shown in Figure 9a.
4.5 Options Register The Options Register allows software to identify the DSCLP-200/300 as a Quatech Enhanced Serial Adapter. It also allows software to set the UART clock rate multiplier. Figure 10 shows the structure of the Options Register. The powerup default of the Options Register is all bits zero.
4.5.2 Clock Rate Multiplier A standard serial port operates at a clock speed of 1.8432 MHz. In order to achieve higher data rates, Quatech Enhanced Serial Adapters can operate at two, four, or eight times this standard clock speed. This is controlled by the clock rate multiplier bits in the Options Register. Software can determine the UART clock frequency by reading the clock rate multiplier bits RR1 and RR0 in the Options Register as shown in Figure 12.
5 Windows Configurations 5.1 Windows Millennium 1. After inserting the DSCLP-200/300 for the first time the "Add New Hardware Wizard" will begin. Select "Search for the best driver for your device.". Check the "Removable media" and "Specify location" box. Click the "Next" button. 2. 3. Window will locate the proper INF file and copy the file from the CD. Click the "Next" button. The final dialog screen will verify the file copy from the CD. Click the "Finish" button.
5.2 Windows 2000 1. After inserting a DSCLP-200/300 for the first time, the "Add New Hardware Wizard will appear at start up. Click the "OK" button. 2. The following dialog box insert the Quatech COM CD (shipped with the device). Click the "OK" button. 3. The following dialog box will display the appropriate INF file from the CD in the drive. Click the "OK" button. 4. Window will copy the INF file from the CD and display a final dialog indication that the process is complete.
5.3 Windows 98 1. After inserting a DSCLP-200/300 for the first time, the "Add New Hardware Wizard will appear at start up. Click the "Next" button. 2. Select "Search for the best driver for you device". Click the "Next" button. 3. On the next dialog, select the "CD-ROM DRIVE" check box. Insert the Quatech COM CD (shipped with the device) into the CD-ROM drive. Click the "Next" button.
4. The following dialog box will display the appropriate INF file on the diskette in the drive. Click the "Next" button. 5. Window will copy the INF file from the diskette and display a final dialog indication that the process is complete. Click the "Finish" button.
5.4 Windows 95 Windows 95 maintains a registry of all known hardware installed in your computer. Inside this hardware registry Windows 95 keeps track of all of your system resources, such as I/O locations, IRQ levels, and DMA channels. The "Add New Hardware Wizard" utility in Windows 95 was designed to add new hardware and update this registry. An "INF" configuration file is included with the DSCLP-200/300 to allow easy configuration in the Windows 95 environment.
8. The installation utility will ask for your Windows 95 installation disks. Serial communication ports require two drivers supplied by Microsoft to function: SERIAL.VXD and SERIALUI.DLL. Insert the disk or CD and click "OK". NOTE: You may be able to skip this step if you are certain that your system has the latest version of these files installed. If you do not have your Windows 95 install disks immediately available, click "OK" anyway. A dialog box appears with an option to Skip the files.
5.6 Viewing Resources with Device Manager This discussion applies equally to Windows 95/98/ME and 2000/XP. Windows maintains a registry of all known hardware installed within the computer. Inside this hardware registry Windows keeps track of all the computer's resources, such as base I/O addresses, IRQ levels, and DMA channels. In the case of a PCI plug-in card, Windows configures the new hardware using free resources it finds within the hardware registry, and updates the registry automatically.
3. Double click the device group "Multi-function Adapters". The DSCLP-200/300 “parent device” belongs to this hardware class. The full device name for the DSCLP-200/300 is Quatech DSCLP-200/300 PCI Two-Port RS-422/RS485 Serial Adapter. 4. Double click the DSCLP-200/300 name and a properties dialog should open for the hardware adapter. 5. Click the "Resources" tab located along the top of the properties box to view the resources Windows has allocated for Input/Output Range and Interrupt Request.
dialog for the specific COM port on the DSCLP-200/300. Then click the Resources tab to view the Input/Output Range and Interrupt Request resource allocations. These will match those of the “parent device.” Click "Cancel" to exit without making changes. 8. Click the "Port Settings" tab and then click the "Advanced" button. The DSCLP-200/300 driver will display a custom Advanced Port Settings control, which allows the ports UART compatibility mode and FIFO threshold levels to be configured.
5.6.1 Changing Resource Settings with Device Manager 1. Start the Windows 95/98/ME Device Manager. 2. Double click on the hardware class Multi-Port Serial Adapters to list hardware devices in the class. 3. The DSCLP-200/300 “parent device” belongs to this hardware class. The full device name for the DSCLP-200/300 is Quatech DSCLP-200/300: Two-Port RS-422/485 Serial Adapter. 4.
Clock Mode Auto X1 X2 X4 X8 Data Rate Multiplier Max bps Description Auto clock mode enables applications to request any baud rate up to 921,600. 921,600 The hardware drivers will select the correct clock multiplier based on the baud rate requested The X1 clock mode mimics a standard COM port. The hardware drivers lock 115,200 the clock to the standard rate. The port will run at the baud rate requested by the application. The X2 clock mode locks the ports hardware clock at double the standard rate.
RS-422/485 Connector Setup RTS routed to CTS, AUXIN routed to AUXOUT, and TCLK Loopback All routed to RCLK. Used when external handshaking or clocking signals are not available. RTS routed to AUXOUT, AUXIN routed to CTS, and Modem Control TCLK routed to RCLK. Used when RTS/CTS handshaking is required. RTS routed to CTS, AUXIN routed to RCLK, and TCLK routed to AUXOUT. Used to Clocks connect ports transmitting at different baud rates. In order to function, all ports must have and use this feature.
Receive Control Receivers are always enabled. In a Half Duplex mode, you will Always Receive receive what you transmit (sometimes called echo). Receivers are only enabled when not transmitting. In a Half When NOT Tranmitting Duplex mode, you will not receive what you transmit. RS-422/485 Duplex Mode Transmitters and receivers are always enabled; ports can send Full Duplex and receive simultaneously. Used in four-wire communication. RTS is set to enable the Half Duplex using RTS transmitters.
full-scale for the transmit buffer and ¾-scale for the receive buffer are optimal for most applications. Note that the FIFO option for each of the DSCLP-200/300's two ports is configured independently.
6 Other Operating Systems Device drivers for Windows NT and OS/2 are also available for the DSCLP-200/300. The board can be used under DOS and other operating systems as well in many circumstances. The software described below can be obtained from the Quatech web site if it did not come with the board. 6.1 OS/2 The OS/2 device driver supports up to 32 serial ports in a system. Installation is a manual, but simple, process.
6.2.1 QTPCI.EXE Quatech's "QTPCI" utility supplies the information required when modifying the serial port settings of the application. This program should be run from real DOS, not in a Windows DOS box. Figure 13 shows the Basic Mode display for the DSCLP-200/300 after the "Q" key has been pressed. In this example, the DSCLP-200/300 uses I/O base address FFA0 hex and IRQ 3. The hardware revision of the DSCLP-200/300 is also displayed.
Figure 14 shows the Expert Mode display for the DSCLP-200/300 after the "Q" key has been pressed. The information from the Basic Mode display is presented along with more details such as the Vendor and Device IDs, PCI Class Code, size of memory and I/O regions, etc. Pressing the "N" key will show similar information for all non-Quatech PCI devices in the system, including those devices integrated on the motherboard. In this example, the "Base addr 0" resource is reserved.
7 External Connections The DSCLP-200/300 provides four differential communication signals per channel. The two output signals are Transmit Data (TxD) and Auxiliary Output (AUXOUT). The two input signals are Receive Data (RxD) and Auxiliary Input (AUXIN). A ground signal is also provided. The available input signals for AUXIN are Clear To Send (CTS) and the Receive Clock (RCLK). The available output signals for AUXOUT are Request To Send (RTS), the Transmit Clock (TCLK), and the AUXIN signal (for loopback).
7.1 RTS/CTS Handshake Transmission of RTS, combined with reception of CTS, allows for hardware handshaking (data flow control) between the UART and the external device. RTS is transmitted on AUXOUT by not connecting pins 1 and 2 of the jumper blocks J11-12. CTS is received on AUXIN by not connecting pins 1 and 2 of the jumper block J10. If RTS/CTS handshaking is not desired, the RTS output can be looped back to the CTS input by connecting pins 1 and 2 of the jumper block J10.
7.3 TCLK This is the output clock signal used by the transmitter portion of the UART. It is generally connected to the UART's own receive clock input (RCLK). This is done by not connecting pins 1 and 2 of the jumper block J13. If desired, TCLK can be transmitted to an external source over the AUXOUT line by connecting pins 1 and 2 of the jumper block J12. Figure 18 shows how to select the TCLK mode.
7.5 Half-Duplex/Full-Duplex/Auto-Toggle Selection Using jumper blocks J14 thru J16, the transmitters and receivers of each channel can be enabled and disabled by modem control signals. This allows operation in both half-duplex, full-duplex or Auto-Toggle modes. The transmit drivers can be controlled by either the Data Terminal Ready (DTR) or the Request to Send (RTS) output from the UART.
Jumpers J14-16 J14 TGL0_SEL0 J15 TGL0_SEL1 J16 RXEN0_SEL J14 TGL0_SEL0 J15 TGL0_SEL1 J16 RXEN0_SEL J14 TGL0_SEL0 J15 TGL0_SEL1 J16 RXEN0_SEL J14 TGL0_SEL0 J15 TGL0_SEL1 J16 RXEN0_SEL Half-Duplex(DTR) Operation Half-Duplex(RTS) Operation Full-Duplex Operation Auto-Toggle Operation Figure 20 --- Half/full-duplex and Auto-Toggle selection DSCLP/SSCLP-200/300 User's Manual 42
7.6 Termination Resistors Line termination resistors are provided for the input signals of each of the DSCLP-200/300's RS-422/485 ports. Termination may be selected or removed for individual signal lines using jumper blocks J6-J9.
7.7 RS-422/485 Peripheral Connection The DSCLP-200/300 connects to peripheral equipment through a 25-pin D-connector. A cable is provided to convert the D-25 into two standard female D-9 connectors. The SSCLP-200-300 has a single D-9 connector. The serial port connector definitions are listed in Figure 22.
8 PCI Resource Map Listed below are the PCI resources used by the DSCLP-200/300. Such information may be of use to customers writing their own device drivers or other custom software. A detailed description of the DSCLP-200/300's UARTs is available on the Quatech web site. (all numbers in hex) PCI Vendor ID: 0x135C Quatech, Inc.
9 Specifications Bus interface: PCI, 32-bit bus, Universal Voltage Signaling IBM-compatible computers Dimensions: approx. 4.725" x 2.
10 Troubleshooting Listed here are some common problems and frequent causes of those problems. If the information here does not provide a solution, contact Quatech technical support. Any unauthorized repairs or modifications will void the DSCLP-200/300's warranty. Computer will not boot up. 1. Is the DSCLP-200/300 properly inserted? Remove the card and try again. Perhaps try a different expansion slot. 2.
DSCLP/SSCLP-200/300 User's Manual Revision 1.