

for PCI bus
User's Manual

Quatech, Inc. warrants the ESC(LP)-100 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.
Please complete the following information and retain for your records. Have this information available when requesting warranty service.
MODEL NUMBER: ESC(LP)-100
Asynchronous PCI Bus Communications Adapter SERIAL NUMBER:
ii ESC(LP)-100 User's Manual

© 2006, Quatech, Inc.
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.
The authors have taken due care in the preparation of this document and every attempt has been made to ensure its accuracy and completeness. In no event will Quatech, Inc. be liable for damages of any kind, incidental or consequential, in regard to or arising out of the performance or form of the materials presented in this document or any software programs that might accompany this document.
Quatech, Inc. encourages feedback about this document. Please send any written comments to the Technical Support department at the address listed on the cover page of this document.
DOS, Windows 95/98/2000/ME, Windows NT are trademarks or registered trademarks of Microsoft Corporation. OS/2 is a registered trademark of IBM Corporation. All other trademarks or registered trademarks are property of their respective owners.
iii ESC(LP)-100 User's Manual

Manufacturer's Name: Quatech Inc.
Standards to which Conformity is Declared: * EN50081-1 (EN55022, EN60555-2, EN60555-3) * EN50082-1 (IEC 801-2, IEC 801-3, & IEC 801-4)
iv ESC(LP)-100 User's Manual



vi ESC(LP)-100 User's Manual

The Quatech, Inc. ESC(LP)-100 provides eight RS-232 asynchronous serial communication interfaces for Low Profile IBM-compatible personal computer systems using the PCI expansion bus. The ESC(LP)-100 uses Quatech's new Enhanced Serial Adapter design. Legacy serial port data rates are limited to a maximum of 115,200 bits per second. Quatech Enhanced Serial Adapters can achieve data rates as high as 921,600 bits per second.
As a PCI device, the ESC(LP)-100 requires no hardware configuration. The card is automatically configured by the computer's BIOS or operating system. The eight serial ports share a single interrupt line and are addressed in a contiguous block of 64 bytes. A special interrupt status register is provided to help software to manage the shared interrupt.
The ESC(LP)-100's serial ports are implemented using 16750-compatible Universal Asynchronous Receiver/Transmitters (UARTs). These UARTs contain hardware buffers (FIFOs) which reduce processing overhead and allow higher data rates to be achieved.
The ESC(LP)-100 is supported under several popular operating systems and environments. Contact the sales department for details on current software offerings. Most device drivers are available for download from the Quatech world wide web site at http://www.quatech.com

The ESC(LP)-100 is automatically configured at boot time by the computer's BIOS or operating system. There are no switches or jumpers to set for installation. See Section 5.5 for instructions on how to use Windows Device Manager to view and change resource settings.

The output of the ESC(LP)-100 is a 68-pin VHDCI connector. A choice of cables is provided to convert the VHDCI into either eight standard male D-9 connectors or eight 10-pin RJ-45 connectors with all control signals provided to each port (RTS, DTR, CTS, DSR, DCD, and RI).

This chapter explains how the eight 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 ESC(LP)-100.
The base address and IRQ used by the ESC(LP)-100 are determined by the BIOS or operating system. Each serial port uses 8 consecutive I/O locations. The eight ports reside in a single block of I/O space in eight byte increments, for a total of 64 contiguous bytes, as shown in Figure 2.
Figure 2 --- Port Address Map
All eight serial ports share the same IRQ. The ESC(LP)-100 signals a hardware interrupt when any port requires service. The interrupt signal is maintained until no port requires service. Interrupts are level-sensitive on the PCI bus.
The base address and IRQ are automatically detected by the device drivers Quatech supplies for various operating systems. For cases where no device driver is available, such as for operation under DOS, Quatech supplies the "QTPCI" DOS software utility for manually determining the resources used. See Section 6.3.1 for details.

The ESC(LP)-100 contains two unique registers, an Interrupt Status Register and an Options Register. 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. The most recent write of a DLAB bit in any UART selects between the two registers as shown in Figure 3.
Figure 3 --- DLAB bit selects between special registers
The read-only Interrupt Status Register can be used to quickly identify which serial ports require servicing after an interrupt. Reading the Interrupt Status Register will return the interrupt status of the entire ESC(LP)-100, as shown in Figure 4. The individual bits are cleared as the interrupting ports are serviced. The interrupt service routine should ensure that the interrupt status register reads zero before exiting.
Figure 4 --- Interrupt Status Register

The Options Register allows software to identify the ESC(LP)-100 as a Quatech Enhanced Serial Adapter. It also allows software to set the UART clock rate multiplier. Figure 5 shows the structure of the Options Register.
The powerup default of the Options Register is all bits zero.
Figure 5--- Options Register bit definitions
The ID bits are used to identify the ESC(LP)-100 as a Quatech Enhanced Serial Adapter. Logic operations are performed such that the values read back from these bits will not necessarily be the values that were written to them. Bit ID1 will return the logical-AND of the values written to ID[1:0], while bit ID0 will return their exclusive-OR.
Software can thus identify a Quatech Enhanced Serial Adapter by writing the ID bits with the patterns shown in the "write" column of Figure 6, then reading the bits and comparing the result with the patterns in the "read" column. Matching read patterns verify the presence of the Options Register.
Figure 6 --- ID bit write/read table

A standard RS-232 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 times, four times or even 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 7. RR1 and RR0 can be set by writing to the Options Register. Reading the Options Register will always return the clock rate multiplier at which the board is operating.
115.2 kbaud 1.8432 MHz X1 (default) 0 0
921.6 kbaud 14.7456 MHz X8 1 1 460.8 kbaud 7.3728 MHz X4 0 1 230.4 kbaud 3.6864 MHz X2 1 0
Figure 7 --- Rate Register bit definition
At powerup and reset, the Options Register is initialized to 0. The ESC(LP)-100 will thus powerup in the x1 mode with software control of the clock rate multiplier enabled as long as the X2, X4, and X8 jumpers are not installed.
Software can control high baud rates through a combination of changing the clock rate multiplier and the UART baud rate divisor. For example, a baud rate of 230.4 kbps could be achieved by setting the clock rate multiplier to X2 mode and setting a software application for 115.2 kbps.

Hardware Wizard" will begin.
"Removable media" and "Specify location" box. Click the "Next" button.

CD. Click the "Next" button.
the "Finish" button.


Quatech COM CD (shipped with the device). Click the "OK" button.






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 ESC(LP)-100 to allow easy configuration in the Windows 95 environment. Also a custom Windows 95 serial device driver is included with the ESC(LP)-100 to support the use of the 16750 UART's 64 byte fifo.
The following instructions provide step-by-step instructions on installing the ESC(LP)-100 in Windows 95 using the "New Hardware Found" wizard.
3. An "Install From Disk" dialog box should pop up. Insert the diskette with the Quatech INF files on it, select the correct drive letter, and click the "OK" button. Windows 95 automatically browses the root directory for an INF file that defines configurations for Multi-function Adapters. If no INF files are found, click the "Browse" button and search the Win95 sub directory on the installation diskette. You are not required to select the file name. After finding the directory containing the INF files, Windows 95 will choose the correct file.

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. Click the Skip button
and the files will not be installed. This is all right if the latest version of
these drivers are currently in the \WINDOWS\SYSTEM directory.

This discussion applies equally to Windows 95/98/ME and 2000/XP. The following instructions provide step-by-step instructions on viewing resources used by the ESC(LP)-100 in Windows using the "Device Manager" utility. Select Start|Help from within Windows for additional information on this utility.


Figure 8--- Windows Device Manager


Figure 9 --- Device Manager Advanced Port Settings







Description Max bps Clock Mode
Auto clock mode enables applications to request any baud rate up to 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 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. The baud rate the port runs at will always be double the rate requested by the applications. This mode is useful for legacy applicattions which cannot request baud rates over 115,200
The X4 clock mode locks the ports hardware clock at four times the standard rate. The baud rate the port runs at will always be four times the rate requested by the application. This mode is useful for legacy applications which cannot request baud rates over 115.200.
The X8 clock mode locks the ports hardware clock at eight times the standard rate. The baud rate the port runs at will always be eight times the rate requested by the application. This mode is useful for legacy applications which cannot request baud rates over 115.200.
Data Rate Multiplier · 921,600 Auto





Device drivers for Windows NT and OS/2 are also available for the ESC(LP)-100. The board can be used under DOS and other operating systems as well in many circumstances. The software described below can be downloaded from the Quatech web site if it did not come with the board.
The Windows NT device driver is installed by running the SETUP program. Up to 256 serial ports are supported. There is a command line-based configuration utility which is used for adding PCI bus and ISA bus serial ports. Please refer to the documentation included with the device driver for full installation and configuration details.
The OS/2 device driver supports up to 32 serial ports in a system. Installation is a manual, but simple, process. Please refer to the documentation included with the device driver for full installation and configuration details.
The ESC(LP)-100 is not a direct drop-in replacement for a legacy serial port because its base address and IRQ cannot be fixed at values such as 3F8 hex, IRQ 4 (COM1) or 2F8 hex, IRQ 3 (COM2), etc. Rather, the system BIOS assigns the address and the IRQ in a plug-and-play fashion at boot time. Software which is to use the ESC(LP)-100 must be able to accommodate any valid assignments of these resources.
For Windows 95/98/2000/ME, Windows NT and OS/2, the Quatech device drivers determine what the resource assignments are and proceed accordingly. In other cases, however, the user must intervene. The discussion below will center on DOS, but the concepts can be applied to other operating systems as well.
Many DOS applications support user configuration of the base address and IRQ of a serial port. Such applications can generally make use of the ESC(LP)-100. Older applications, as well as some custom software, may use hard-coded standard legacy serial port addresses. These applications will require modifications if they are to use the ESC(LP)-100.
Custom applications for which the customer has source code can be modified to make just a few PCI BIOS function calls to obtain all the

necessary configuration information. The PCI BIOS specification can be obtained from the PCI Special Interest Group. Contact Quatech technical support for more information.

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 11 shows the Basic Mode display for the ESC(LP)-100 after the "Q" key has been pressed. In this example, the ESC(LP)-100 uses I/O base address FF80 hex and IRQ 11. The hardware revision of the ESC(LP)-100 is also displayed. Pressing the "N" key will show similar information for all non-Quatech PCI devices in the system, including those devices integrated on the motherboard.
The QTPCI program is capable only of displaying the PCI
configuration. It cannot be used to make changes.
Figure 11 --- QTPCI.EXE Basic Mode display

Figure 12 shows the Expert Mode display for the ESC(LP)-100 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.
For users interested in even more details, PCI BIOS information can be displayed by pressing the "B" key. Pressing the "I" key displays the PCI interrupt routing table.
Figure 12 --- QTPCI.EXE Expert Mode display

RS-232-C devices are classified by their function as either Data Terminal Equipment (DTE) or Data Communication Equipment (DCE). Generally, data terminal equipment is defined as the communication source and data communication equipment is defined as the device that provides a communication channel between two DTE-type devices.
DTE
DCE
RS-232-C
DTE
DCE
Figure 13 --- Use of DTEs and DCEs in a communications link
DTE- and DCE-type devices have complementary pinouts to allow terminals and modems to be connected directly using a one-to-one cable as shown in Figure 13. In many applications, DCEs are unnecessary, and in these cases a cable called a "null modem cable" or "modem eliminator cable" is used to directly connect two DTE-type devices. A typical null modem cable is also shown in Figure 14.
(3) (2) (4) (5) (20)
(3) (2) (4) (5) (20)
RxD TxD RTS CTS DTR DSR DCD
RxD TxD RTS CTS DTR DSR DCD
(3) (2) (4) (5) (20) (6) (8) (22) (7) RI
TxD RxD CTS RTS DSR DTR DCD
(3) (2) (4) (5) (20) (6) (8) (22)
(3) (2) (4) (5) (20)
RxD TxD RTS CTS DTR DSR
RxD TxD RTS CTS DTR DSR
RI DCD
RI DCD
RI
GND
GND
GND
GND
GND
GND
Typical DTE-to-DTE null modem cable
Figure 14 --- Cabling requirements for RS-232-C devices
(cables using 25-pin connectors shown)

The ESC(LP)-100 is a DTE device which connects to peripheral equipment through an adapter cable’s eight male D-9 connectors. The standard serial port connections are listed in Figure 15.
4 7 RTS
3 8 CTS
7 4 DTR
5 6 DSR
10 1 DCD
2 9 RI
6 5 GND
Figure 15 --- ESC(LP)-100 D-9 connector pinouts

Figure 16 --- ESC(LP)-100 RJ-45 connector pinouts
Signal · 8 3 TxD · 9 2 RxD

Listed below are the PCI resources used by the ESC(LP)-100. Such information may be of use to customers writing their own device drivers or other custom software. A detailed description of the ESC(LP)-100's UARTs is available on the Quatech web site.
(all numbers in hex)
PCI Vendor ID: 0x135C Quatech, Inc.
Port 1 at offset 0x00 Port 2 at offset 0x08 Port 3 at offset 0x10 Port 4 at offset 0x18 Port 5 at offset 0x20 Port 6 at offset 0x28 Port 7 at offset 0x30 Port 8 at offset 0x38
PCI Class Code

-or- Eight female 10-pin RJ-45 connectors using adapter cable
IBM-compatible computers

Maximum Load (pF) Data Rate
4800 4300 3300 1570 800 115.2 2000 1630 1100 900 330 230.4 1100 900 670 430 100 460.8 470 430 300 100 N/A 921.6
Note 1: The signal transition time ratio is defined as the percentage of the unit interval or bit time (the inverse of the data rate) that is occupied by the signal transitioning from -3V to +3V. The EIA/TIA-232-E standard defines a maximum signal transition time ratio of 4%; most RS-232 receivers will recognize signal transitions with much larger ratios. With a 4% signal transition time ratio, EIA/TIA-232-E is limited to a theoretical data rate of 200 kbaud. If maximum signal transition time ratio is extended to 10%, 15%, 20%, or even 25%, the maximum data rate achievable using EIA/TIA-232-E can be increased past 200 kbaud.

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 ESC(LP)-100's warranty.
Computer will not boot up.
Cannot communicate with other equipment.
TxD and RxD (pins 2 and 3) RTS and CTS (pins 7 and 8) DCD, DTR, DSR, and RI (pins 1, 4, 6 and 9)

ESC(LP)-100 User's Manual Revision 1.12 December 2006 P/N: 940-3105-112
Owners and our team usually reply within a day — and your question helps the next person too.
Be the first to ask — other owners or our team will answer.