Quatech RS-485 manual

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44

Go to page of

A good user manual

The rules should oblige the seller to give the purchaser an operating instrucion of Quatech RS-485, along with an item. The lack of an instruction or false information given to customer shall constitute grounds to apply for a complaint because of nonconformity of goods with the contract. In accordance with the law, a customer can receive an instruction in non-paper form; lately graphic and electronic forms of the manuals, as well as instructional videos have been majorly used. A necessary precondition for this is the unmistakable, legible character of an instruction.

What is an instruction?

The term originates from the Latin word „instructio”, which means organizing. Therefore, in an instruction of Quatech RS-485 one could find a process description. An instruction's purpose is to teach, to ease the start-up and an item's use or performance of certain activities. An instruction is a compilation of information about an item/a service, it is a clue.

Unfortunately, only a few customers devote their time to read an instruction of Quatech RS-485. A good user manual introduces us to a number of additional functionalities of the purchased item, and also helps us to avoid the formation of most of the defects.

What should a perfect user manual contain?

First and foremost, an user manual of Quatech RS-485 should contain:
- informations concerning technical data of Quatech RS-485
- name of the manufacturer and a year of construction of the Quatech RS-485 item
- rules of operation, control and maintenance of the Quatech RS-485 item
- safety signs and mark certificates which confirm compatibility with appropriate standards

Why don't we read the manuals?

Usually it results from the lack of time and certainty about functionalities of purchased items. Unfortunately, networking and start-up of Quatech RS-485 alone are not enough. An instruction contains a number of clues concerning respective functionalities, safety rules, maintenance methods (what means should be used), eventual defects of Quatech RS-485, and methods of problem resolution. Eventually, when one still can't find the answer to his problems, he will be directed to the Quatech service. Lately animated manuals and instructional videos are quite popular among customers. These kinds of user manuals are effective; they assure that a customer will familiarize himself with the whole material, and won't skip complicated, technical information of Quatech RS-485.

Why one should read the manuals?

It is mostly in the manuals where we will find the details concerning construction and possibility of the Quatech RS-485 item, and its use of respective accessory, as well as information concerning all the functions and facilities.

After a successful purchase of an item one should find a moment and get to know with every part of an instruction. Currently the manuals are carefully prearranged and translated, so they could be fully understood by its users. The manuals will serve as an informational aid.

Table of contents for the manual

  • Page 1

    DSC-200/300 Two Channel RS-422/485 Asynchronous Communications Adapter for PCI bus User's Manual QUATECH, INC. TEL: (330) 655-9000 5675 Hudson Industrial Parkway FAX: (330) 655-9010 Hudson, Ohio 44236 http://www.quatech.com[...]

  • Page 2

    WARRANTY INFORMATION Quatech, Inc. warrants the DSC-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 fro[...]

  • Page 3

     1998 - 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 t[...]

  • Page 4

    Declaration of Conformity Manufacturer's Name: Quatech Inc. Manufacturer's Address: 5675 Hudson Industrial Parkway Hudson, Ohio 44236 (USA) Application of Council Directive: 89/336/EEC Standards to which Conformity is Declared: * EN50081-1 (EN55022, EN60555-2, EN60555-3) * EN50082-1 (IEC 801-2, IEC 801-3, & IEC 801-4) Type of Equipmen[...]

  • Page 5

    30 6.1 OS/2 ........................................................... 30 6 Other Operating Systems ................................... 25 5.6.1 Changing Resource Settings with Device Manager ............. 23 5.6 Viewing Resources with Device Manager ........................ 22 5.5 Windows NT ................................................... 21 [...]

  • Page 6

    41 10 Troubleshooting ............................................. 40 9 Specifications ................................................. 39 8 PCI Resource Map ........................................... 38 7.8 RS-422/485 Peripheral Connection .............................. 38 7.7 RS-422/485 Peripheral Connection .............................. 37 7[...]

  • Page 7

    1 General Information The Quatech, Inc. DSC-200/300 provides two RS-422 or RS-485 asynchronous serial communication interfaces for IBM-compatible personal computer systems using the PCI expansion bus. The DSC-200/300 uses Quatech's new Enhanced Serial Adapter design. Legacy serial port data rates are limited to a maximum of 115,200 bits per se[...]

  • Page 8

    1.1 Features The standard DSC-200/300 implements each of its communication channels with a 16550 UART and uses standard line driver and receiver components. For improved performance and industrial-grade reliability, Quatech offers the fo llowing board upgrades: 1.1.1 "IND" Option --- Surge Suppression Upgrade The "IND " option p[...]

  • Page 9

    2 Hardware Configuration The DSC-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. These jumpers, located in a column at the end of the boa[...]

  • Page 10

    Jumpers J10-J23 define the options for this card: X8 X4 X2 J3 J4 J5 CTS0_SEL AUX0_SEL0 AUX0_SEL1 J10 J11 J12 RCLK0_SEL TG L0_SEL0 TG L0_SEL1 J13 J14 J15 RXEN0_SEL CTS1_SEL AUX1_SEL0 J16 J17 J18 AUX1_SEL1 RCLK1_SEL TG L1_SEL0 J19 J20 J21 TG L1_SEL1 RXEN1_SEL J22 J23 SPAD J2 Figure 2 - Right Card Edge Jumpers Quatech DSC-200/300 User's Manual 8[...]

  • Page 11

    2.2.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.2.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 se[...]

  • Page 12

    2.3 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. X8 X4 X2 J3 J4 J5 J2 SPAD Figure 3 --- Factory default clock rate and options settings 2.3.1 Enable S[...]

  • Page 13

    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. Figure 5 --- Clock multiplier jumper options X8 X4 X2 J3 J4 J5 J2 SPAD Factory defa[...]

  • Page 14

    3 Hardware Installation 1. Turn off the power of the computer system in which the DSC-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 DSC-200/300 in any empty PCI expansion slot. The board should be secured[...]

  • Page 15

    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 DSC-200/300. 4.1 Base Address and Interrupt Level (IRQ ) The base address and IRQ used by the DSC-200/300 are dete[...]

  • Page 16

    4.2 Enabling the Special Registers The DSC-200/300 contains two unique registers, an Interrupt Status Register and an Options Register. These registers are enabled when the SPAD jumper is removed (factory default). They replace the UART Scratchpad Register on accesses to register address 7. The Interrupt Status Register and Options Register are acc[...]

  • Page 17

    4.4 Quatech Modem Control Register The Quatech Modem Control Register can be used to setup 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 DSC-200/300 is shown in Figure 9a. 00 - TXEN “Auto” 01 - TXEN=DTR 1[...]

  • Page 18

    4.5 Options Register The Options Register allows software to identify the DSC-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. Clock rate multiplier bit 0 RR0 0 Clock rate m[...]

  • Page 19

    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 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[...]

  • Page 20

    5 Windows Configuration 5.1 Windows Mille nnium 1. After inserting the DSC-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. Window will locate[...]

  • Page 21

    5.2 Windows 2000 1. After inserting a DSC-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 Communications Driver CD (shipped with the device). Click the "OK" button. 3. The following dialog box will display the appropriate INF fil[...]

  • Page 22

    5.3 Windows 98 1. After inserting a DSC-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 Comm[...]

  • Page 23

    4. The following dialog box will display the appropriate INF file on the diskette in 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 1995 Windows 95 maintains a registry of all known hardw[...]

  • Page 24

    2. Select the radio button for "Driver from disk provided by hardware manufacturer." Click the "OK" button to continue. 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[...]

  • Page 25

    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 [...]

  • Page 26

    3. Double click the device group " Multi-function Adapters". The DSC-200/300 “parent device” belongs to this hardware class. The full device name for the DSC-200/300 is Quatech DSC-200/300 PCI Two-Port RS-422/RS485 Serial Adapter. 4. Double click the DSC-200/300 name and a properties dialog should open for the hardware adapter. 5. Cli[...]

  • Page 27

    9. Use the Logical COM Port names to access the serial ports on your DSC-200/300 through your software applications. Note: The Logical COM Port name is assigned to your ports by Windows. This name is required by Windows applicatio ns when accessing a particular port. 5.6.1 Changing Resource Settings with Device Manager 1. Start the Windows 95/98/ME[...]

  • Page 28

    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 460,800 X4 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 mo[...]

  • Page 29

    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. 921,600 X8 the application. This mode is useful for legacy applications which ca[...]

  • Page 30

    Hardware automatically enables the transmitters when transmitting. Transmitters will turn off three bit-times after the last stop bit of the last character, regardless of baud rate. Used in two-wire communication. Auto Toggle DTR is set to enable the transmitters. Used in two-wire communication Half Duplex using DTR RTS is set to enable the transmi[...]

  • Page 31

    9. Click the "Port Settings" tab and then click the "Advanced" button. The DSC-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. The threshold values of full-scale for the transmit buffer and ¾-scale for the receive buf[...]

  • Page 32

    6 Other Operating Systems Device drivers for Windows NT and OS/2 are also available for the DSC-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 3[...]

  • Page 33

    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 DSC-200/300 after the "Q" key has been pressed. In this example, the DSC-2[...]

  • Page 34

    Figure 14 shows the Expert Mode display for the DSC-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-Qu[...]

  • Page 35

    7 External Connections The DSC-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) a[...]

  • Page 36

    7.2 RCLK This is the clock signal used by the receiver portion of the UART. It is generally provided by connecting it to the UART's own transmit clock output (TCLK). This is done by not connecting pins 1 and 2 of the jumper block J13. If desired, RCLK can be received from an external source over the AUXIN line by connecting pins 1 and 2 of the[...]

  • Page 37

    7.4 AUXIN/AUXOUT Loopback The AUXIN signal is an input from the external device, and connecting it to the AUXOUT signal provides for a loopback mode of operation. In other words, whatever signal is transmitted by the external device over the AUXIN line will be fed back to the external device over the AUXOUT line. This mode is accomplished by connec[...]

  • Page 38

    WARNING: When operating in half-duplex mode, the transmitter drivers must be disabled before receiving any data. Failure to do so may result in multiple active output drivers being connected together, which may cause damage to the board, the computer, and the external device. Full-Duplex Operation Half-Duplex(DTR) Operation Half-Duplex(RTS) Operati[...]

  • Page 39

    7.6 Termination Resistors No termination resistors are provided on the ports. B oth output and input signals are connected only to the external connector. Any termination which is required must be added externally. + - RS-422/485 R eceiver Rt RXD+ RXD- + - RS-422/485 R eceiver Rt AUXIN+ AUXIN- RS-422 100 ohm 1/2W resis tor RS-485 60 ohms total resi[...]

  • Page 40

    7.7 RS-422/485 Peripheral Connection The DSC-200/300 is a DTE device which connects to peripheral equipment through two female D-9 connectors. The standard serial port connections are listed in Figure 22. 7.8 RS-422/485 Peripheral Connection The DSC-200/300 connects to peripheral equipment through two female D-9 connectors. The serial port connecto[...]

  • Page 41

    8 PCI Resource Map Listed below are the PCI resources used by the DSC-200/300. Such information may be of use to customers writing their own device drivers or other custom software. A detailed description of the DSC-200/300's UARTs is available on the Quatech web site. (all numbers in hex) PCI Vendor ID: 0x135C Quatech, Inc. PCI Device ID: 0x0[...]

  • Page 42

    9 Specifications Bus interface: PCI, 32-bit bus, Universal Signalling Voltage IBM -compatible computers Dimensions: approx. 4.725" x 3.5" Serial ports Controller: 16550 with 16-byte FIFOs Interface: Two female D-9 connector s Transceivers: MAX-3076E or compatible Differential output: 2V min. with 50-ohm load (RS-422) 1.5V min. with 27-ohm[...]

  • Page 43

    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 DSC-200/300's warranty. Computer will not boot up. 1. Is the DSC-200/300 properly inserted? Remove the car[...]

  • Page 44

    DSC-200/300 User's Manual Revision 1.12 November 2006 940-0145-112 Quatech DSC-200/300 User's Manual 42[...]