Quatech Inc. warrants the DS-202
to be free of defects for one
(1) year from the
/ DS-302
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.
Although every attempt has been made to guarantee
the accuracy of this manual, Quatech Inc. assumes no
liability for damages resulting from errors in this
document. Quatech Inc. reserves the right to edit or
append to this document at any time without notice.
Please complete the following information and
retain for your records. Have this information
available when requesting warranty service.
DATE OF PURCHASE:
MODEL NUMBER: DS-202
PRODUCT DESCRIPTION: DUALASYNCHRONOUS
/ DS-302
CHANNEL RS-422 / RS-485
COMMUNICATION BOARD
SERIAL NUMBER:
IBMTM, PC/XTTM, PC/ATTM, and PS/2TM are trademarks of
International Business Machines.
The DS-202 is a dual channel RS-422 asynchronous
serial communications adapter for systems implementing
an ISA compatible I/O bus. Data is communicated
through two shielded D-9 connectors which provide
greater shielding from environmental noise. The DS-302
is an RS-485 version of the adapter.
The serial interface is implemented with a pair of
16450 Asynchronous Communication Elements (ACEs). The
16450 is compatible with the 8250 ACE found in the
original IBM PC/XT models. The optional 16550 ACE
provides an additional FIFO mode of operation which
reduces CPU overhead at higher data rates.
The DS-202 / DS-302 allows independent addressing
of each channel through a pair of address decode
switches (SW1 and SW2). These switches allow each
channel to be addressed in the I/O address range 0000H
through 07FFH. Each channel is also capable of
selecting and / or sharing one of six possible
interrupt request lines (IRQ 2,3,4,5,6,7).
II. BOARD
DESCRIPTION
A component diagram of the DS-202 / DS-302 showing
the locations of the 16450 ACEs, configuration jumpers,
address selection switches, and output connectors is
shown in figure 1. The first communication channel is
controlled by the ACE labeled U7, switch SW1 for
addressing, jumpers J2 and J5 for interrupt request
selection, jumpers J7 and J8 for output signal control,
and is output through connector CN1. The second
channel is controlled by the ACE labeled U8, switch SW2
for addressing, jumpers J3 and J6 for interrupt request
selection, jumpers J8 and J10 for output signal
control, and is output through connector CN2.
III. 16450/16550
FUNCTIONAL DESCRIPTION
The 16450 is an improved specification version of
the 8250 Asynchronous Communications Element (ACE)
found in the original IBM PC and PC/XT systems and is
functionally equivalent to the 8250. This ACE performs
serial-to-parallel conversion on received data and
parallel-to-serial conversion on data output from the
CPU.
iii
Figure 1. DS-202 / DS-302 component layout.
FUNCTIONAL DESCRIPTION
Designed to be compatible with the 16450, the
16550 ACE enters character mode on reset and in this
mode appears as a 16450 to application software. An
additional mode, FIFO mode, can be invoked through
software to reduce CPU overhead by providing two 16byte FIFOs (one transmit, one receive) to buffer data
and reduce the number of interrupts issued to the CPU.
Other features of the 16450/16550 include:
Programmable baud rate, character length, parity,
and number of stop bits.
Automatic addition and removal of start, stop, and
parity bits.
Independent and prioritized transmit, receive and
status interrupts.
The following pages provide a brief summary of the
internal registers available within the 16450 and 16550
ACEs. The registers are addressed as shown in figure 2
below. Registers and functions specific to the
optional 16550 are indicated with an asterisk (*).
Indicates highest priority interrupt pending if
any. See IP and figure 3. NOTE: IID2 is
always a logic 0 in the 16450 and in the 16550
character mode.
IP - Interrupt Pending:
When logic 0, indicates that an interrupt is
pending and the contents of the interrupt
identification register may be used to determine
the interrupt source. See IIDx and figure 3.
*
with optional 16550.
FUNCTIONAL DESCRIPTION
+--------------------+----------+----------------------+
| IID2 IID1 IID0 IP | Priority | Interrupt Type |
+--------------------+----------+----------------------+
| x x x 1 | N/A | None |
| 0 1 1 0 | Highest | Receiver Line Status |
| 0 1 0 0 | Second | Received Data Ready |
| 1 1 0 0 | Second | Character Timeout |
| | | (FIFO mode only)
| 0 0 1 0 | Third | Transmitter Holding |
| | | Register Empty |
| 0 0 0 0 | Fourth | MODEM Status |
+--------------------+----------+----------------------+
Figure 3. Interrupt Identification bit definitions.
Receiver Line Status:
Indicates overrun, parity, framing errors or
break interrupts. The interrupt is cleared by
reading the line status register.
*
|
Received Data Ready:
Indicates receive data available. The interrupt
is cleared by reading the receive buffer.
FIFO mode:
*
Indicates the receiver FIFO trigger level has
been reached. The interrupt is reset when the
FIFO drops below the the trigger level.
Character Timeout: (FIFO mode only)
*
Indicates no characters have been removed from
or input to the receiver FIFO for the last four
character times and there is at least one
character in the receiver FIFO. The interrupt
is cleared by reading the receiver FIFO.
Transmitter Holding Register Empty:
Indicates the transmitter holding register is
empty. The interrupt is cleared by reading the
interrupt identification register or writing to
the transmitter holding register.
MODEM Status:
Indicates clear to send, data set ready, ring
indicator, or data carrier detect have changed
state. The interrupt is cleared by reading the
MODEM status register.
When set (logic 1), RxRDY and TxRDY change from
mode 0 to mode 1. (DMA mode is not supported by
the DS-202 / DS-302.)
XRST - Transmit FIFO Reset:
*
When set (logic 1), all bytes in the transmitter
FIFO are cleared and the counter is reset. The
shift register is not cleared. XRST is selfclearing.
*
with optional 16550.
FUNCTIONAL DESCRIPTION
RRST - Receive FIFO Reset:
*
When set (logic 1), all bytes in the receiver
FIFO are cleared and the counter is reset. The
shift register is not cleared. RRST is selfclearing.
FE - FIFO Enable:
*
When set (logic 1), enables transmitter and
receiver FIFOs. When cleared (logic 0), all
bytes in both FIFOs are cleared. This bit must
be set when other bits in the FIFO control
register are written to or the bits will be
ignored.
DLAB must be set to logic 1 to access the baud
rate divisor latches. DLAB must be set to logic
0 to access the receiver buffer, transmitting
holding register and interrupt enable register.
BKCN - Break Control:
When set (logic 1), the serial output (SOUT) is
forced to the spacing state (logic 0).
*
with optional 16550.
FUNCTIONAL DESCRIPTION
STKP - Stick Parity:
Forces parity to logic 1 or logic 0 if parity is
enabled. See EPS, PEN, and figure 5.
EPS - Even Parity Select:
Selects even or odd parity if parity is enabled.
See STKP, PEN, and figure 5.
PEN - Parity Enable:
Enables parity generation on transmission and
verification on reception. See EPS, STKP, and
figure 5.
When set (logic 1), the transmitter shift
register is internally connected to the receiver
shift register, the MODEM control inputs are
internally connected to the MODEM control
outputs, and the outputs are forced to their
inactive state. Transmit and receive interrupts
operate normally but MODEM control interrupts
are now controlled through the MODEM control
register.
Bits OUT2, OUT1, RTS, and DTR perform identical
functions on their respective outputs. When these
bits are set (logic 1) in the register, the
associated output is forced to a logic 0. When
cleared (logic 0), the output is forced to a logic1.
OUT2 - Output 2:
Controls the OUT2 output as described above.
Used for interrupt enable, see section VI.
OUT1 - Output 1:
Controls the OUT1 output as described above.
OUT1 is unused on the DS-202 / DS-302.
RTS - Request To Send:
Controls the RTS output as described above.
Used for output driver control, see section VII.
Always logic 0 in the 16450 and in the 16550
character mode.
FIFO mode:
*
Indicates one or more parity errors, framing
errors, or break indications in the receiver
FIFO. FFRX is reset by reading the line status
register.
*
TEMT - Transmitter Empty:
Indicates the transmitter holding register (or
FIFO) and the transmitter shift register are
empty and are ready to receive new data. TEMT
is reset by writing a character to the
transmitter holding register.
THRE - Transmitter Holding Register Empty:
Indicates the transmitter holding register (or
FIFO) is empty and it is ready to accept new
data. THRE is reset by writing data to the
transmitter holding register (or FIFO).
*
with optional 16550.
FUNCTIONAL DESCRIPTION
Bits BI, FE, PE, and OE are the sources of
receiver line status interrupts. These bits
are reset by reading the line status register.
In FIFO mode*, these bits are associated with a
specific character in the FIFO and the
exception is revealed only when that character
reaches the top of the FIFO.
BI - Break Interrupt:
Indicates the receive data input has been in the
spacing state (logic 0) for longer than one full
word transmission time.
FIFO mode:
*
Only one zero character is loaded into the FIFO
and transfers are disabled until SIN goes to the
mark state (logic 1) and a valid start bit is
received.
FE - Framing Error:
Indicates the received character had an invalid
stop bit. The stop bit following the last data
or parity bit was a 0 bit (spacing level).
PE - Parity Error:
Indicates that the received data does not have
the correct parity.
OE - Overrun Error:
Indicates the receive buffer was not read before
the next character was received and the
character is destroyed.
FIFO mode:
*
Indicates the FIFO is full and another character
has been shifted in. The character in the shift
register is destroyed but is not transferred to
the FIFO.
DR - Data ready:
Indicates data is present in the receive buffer
or FIFO. DR is reset by reading the receive
buffer register or receiver FIFO.
*
with optional 16550.
FUNCTIONAL DESCRIPTION
MODEM STATUS REGISTER
+------+
D7 | DCD |----- Data carrier detect
+------+
D6 | RI |----- Ring indicator
+------+
D5 | DSR |----- Data set ready
+------+
D4 | CTS |----- Clear to send
+------+
D3 | DDCD |----- Delta data carrier detect
+------+
D2 | TERI |----- Trailing edge ring indicator
+------+
D1 | DDSR |----- Delta data set ready
+------+
D0 | DCTS |----- Delta clear to send
+------+
DCD - Data Carrier Detect:
Complement of the DCD input.
RI - Ring Indicator:
Complement of the RI input.
DSR - Data Set Ready:
Complement of the DSR input.
CTS - Clear To Send:
Complement of the CTS input.
Bits DDCD, TERI, DDSR, and DCTS are the sources of
MODEM status interrupts. These bits are reset when
the MODEM status register is read.
DDCD - Delta Data Carrier Detect:
Indicates the Data Carrier Detect (DCD) input
has changed state.
TERI - Trailing Edge Ring Indicator:
Indicates the Ring Indicator (RI) input has
changed from a low to a high state.
DDSR - Delta Data Set Ready:
Indicates the Data Set Ready (DSR) input has
changed state.
DCTS - Delta Clear To Send:
Indicates the Clear to Send (CTS) input has
changed state.
FUNCTIONAL DESCRIPTION
SCRATCHPAD
REGISTER
This register is not used by the 16450/16550. It
may be used by the programmer for data storage.
FIFO
INTERRUPT MODE OPERATION
*
1. The receive data interrupt is issued when the FIFO
reaches the trigger level. The interrupt is
cleared as soon as the FIFO falls below the
trigger level.
2. The interrupt identification register's receive
data available indicator is set and cleared along
with the receive data interrupt above.
3. The data ready indicator is set as soon as a
character is transferred into the receiver FIFO
and is cleared when the FIFO is empty.
IV. BAUD
RATE SELECTION
The 16450/16550 ACE determines the baud rate of
the serial output using a combination of the input
clock frequency and the value written to the baud rate
divisor latches. Standard PC, PC/XT, PC/AT, and PS/2
serial interfaces use an input clock of 1.8432 MHz. To
increase versatility, the DS-202 / DS-302 uses an
18.432 MHz crystal and a frequency divider circuit to
produce the standard clock frequency.
Jumper block J1 is used to set the frequency input
to the ACE. The jumper may be connected to divide the
18.432 MHz clock input by 1, 2, 5, or 10. For
compatibility as stated above, J1 should be configured
to divide by 10 as shown in figure 7(d). A table of
baud rates available using the 1.8432 MHz input is
given in figure 7.
Figure 8. Divisor latch
settings for common baud
rates using a 1.8432 MHz
input clock. The jumper
must be set to the divide by
10 configuration (figure
7(d)).
BAUD
RATE SELECTION
V. ADDRESSING
Each channel of the DS-202 / DS-302 uses eight
consecutive I/O address locations in the range 0 to
07FF Hex. The base address of channel 1 is selected
using dip switch SW1 while the base address of channel
2 is selected using SW2. Switch positions 1 - 8
control the selection of address lines A9 through A3
respectively. A switch set to the "ON" position
requires the corresponding address bit to be "0" for
channel selection while a switch set to the "OFF"
position requires the address bit to be "1". Address
lines A10 - A15 must be "0" for port selection. Some
address selection examples are given in figure 10.
Jumper J4 is used to independently enable or
disable the communication channels. Connecting J4 pins
1 and 3 enables channel 1 while connecting J4 pins 2
and 4 enables channel 2. A channel may be disabled by
removing the corresponding jumper from J4. The layout
of jumper J4 is shown in figure 11.
Each channel of the DS-202 / DS-302 may select one
of six possible interrupt request levels (IRQ 2 - 7).
The interrupt request level is selected using jumper J5
for channel 1 and jumper J6 for channel 2 as shown in
the figure below.
Figure 12.System interrupt
connection. Use jumper J5
for channel 1, J6 for
channel 2.
An additional feature of the DS-202 / DS-302 is
the ability to share one interrupt level between both
communication channels, or to share an interrupt level
with another Quatech
adapter supporting this interrupt
sharing capability. Jumper J2 controls the interrupt
sharing feature for channel 1, jumper J3 for channel 2.
Figure 13. Interrupt mode selection.
NOTE: To be 100% ISA compatible, jumpers must
be set to the dedicated interrupt level
positions.
INTERRUPTS
VII. OUTPUT
CONFIGURATION
Four sets of jumpers are implemented on the DS-202
/ DS-302 to control the auxiliary channel configuration
and tri-state output drivers. Jumpers J7 and J8 and
jumpers J9 and J10 perform the identical functions on
channels 1 and 2 respectively.
The function of jumpers J8 and J10 is to control
the source of the information exchanged on the
auxiliary communication lines. The output sources are
request to send (RTS), transmit clock (XCLK), and the
auxiliary input (AUXIN). The inputs selections are
clear to send (CTS) and receive clock (RCLK).
Transmission of RTS, when combined with reception
of CTS, allows for handshaking between the ACE and a
peripheral device. RTS is transmitted by connecting
pins 4 and 5 of the jumper block (figure 16a). CTS is
OUTPUT CONFIGURATION
received by connecting pins 1 and 2 (figure 16a). The
RTS/CTS handshake can be defeated by looping the RTS
output back to the CTS input. This is accomplished by
connecting pins 1 and 4 (figures 16b and 16c).
RCLK is the input to the ACE that controls the
shift rate of the receiver portion of the chip.
Generally, this input is provided by connecting it to
the transmit clock, XCLK, output from the ACE. This is
accomplished by connecting pins 3 and 6 of the jumper
(figures 16a and 16c). RCLK may be received from an
external source by connecting pins 2 and 3 (figure
16b).
Transmission of XCLK can be used to synchronize
communications with a peripheral or to provide a shift
clock to a receiver. XCLK is transmitted by connecting
pins 5 and 6 of the jumper block (figure 16b).
AUXIN is the auxiliary input from a peripheral
device. Connecting AUXIN to AUXOUT provides a loopback
mode of operation. That is, whatever is transmitted by
the peripheral will be fed back to the peripheral.
This is implemented by connecting pins 2 and 5 of the
jumper block (figure 16c).
Figure 17. Half duplex control jumper. Use J7
for channel 1, J9 for channel 2.
OUTPUT CONFIGURATION
Half
Duplex Operation
The function of jumpers J7 and J9 is to configure
the communication channel for half or full duplex
operation. Full duplex operation requires a connection
between pins 5 and 6 of the jumper block. Half duplex
operation requires one jumper connected vertically
across jumper J7 for channel 1 or J9 for channel 2 (see
figure 17). This connection allows the transmitter to
be enabled and disabled using the data terminal ready
(DTR) or request to send (RTS) outputs controlled
through the modem control register of the 16450/16550.
If a jumper is installed between pins 1 and 5, the
output drivers are controlled by the ACE's DTR signal.
Setting DTR (logic 1) enables the drivers for both the
data and auxiliary channel outputs while clearing DTR
(logic 0) forces both outputs to a high impedance
state. If the jumper is installed between pins 2 and 6
the logical sense of DTR is inverted. That is,
clearing DTR (logic 0) enables the transmitter drivers
while setting DTR (logic 1) forces the outputs to a
high impedance state.
If a jumper is installed between pins 3 and 7, the
output drivers are controlled by the ACE's RTS signal.
Setting RTS (logic 1) enables the drivers for both the
data and auxiliary channel outputs while clearing RTS
(logic 0) forces both outputs to a high impedance
state. If the jumper is installed between pins 4 and 8
the logical sense of RTS is inverted. That is,
clearing RTS (logic 0) enables the transmitter drivers
while setting RTS (logic 1) forces the outputs to a
high impedance state.
CAUTION: When operating in half duplex mode, the
transmitter must be disabled before
receiving any information. Failure to do
so will result in two output drivers being
connected together which may cause damage
to the adapter, the computer, and/or the
peripheral equipment.
OUTPUT CONFIGURATION
VIII. EXTERNAL
CONNECTIONS
Connections to peripheral equipment are made via
female D-9 connectors CN1 and CN2. A pin-out of the
connectors and a description of each connector signal
is given in the figures below.
+-----+----------+------------------------------------+
| PIN | SIGNAL | DESCRIPTION |
+-----+----------+------------------------------------+
| 1 | AUXOUT+ | When combine with AUXOUT-, |
| | | provides the auxiliary channel |
| | | output defined by jumper J8 / J10. |
+-----+----------+------------------------------------+
| 2 | TxD+ | When combined with TxD-, provides |
| | | the serial data output. |
+-----+----------+------------------------------------+
| 3 | GND | Chassis ground. |
+-----+----------+------------------------------------+
| 4 | RxD+ | When combined with RxD-, provides |
| | | the serial data input. |
+-----+----------+------------------------------------+
| 5 | AUXIN+ | When combined with AUXIN-, |
| | | provides the auxiliary channel |
| | | input defined by jumper J8 / J10. |
+-----+----------+------------------------------------+
| 6 | AUXOUT- | See AUXOUT+. |
+-----+----------+------------------------------------+
| 7 | TxD- | See TxD+. |
+-----+----------+------------------------------------+
| 8 | RxD- | See RxD+. |
+-----+----------+------------------------------------+
| 9 | AUXIN- | See AUXIN+. |
+-----+----------+------------------------------------+
Figure 18. Output connector definitions.
INSTALLATION / SPECIFICATIONS
IX. INSTALLATION
1. Set base address, interrupt level and output
configuration jumpers on the DS-202/DS-302.
2. Turn unit off.
3. Remove system cover as instructed in the computer
reference guide.
4. Insert adapter into a vacant slot following the
guidelines for installation.
5. Replace system cover.
X. SPECIFICATIONS
Bus interface: ISA 8-bit bus
Controllers: 2 - 16450 Asynchronous
Communication Elements
(16550 optional)
Interface: 2 - D-9 female connectors
Transmit drivers: MC3487 or compatible (RS-422)
TI75174 or compatible (RS-485)
Receive buffers: MC3486 or compatible (RS-422)
TI75175 or compatible (RS-485)
I/O Address range: 0000H - 07FFH
Interrupt levels: IRQ 2,3,4,5,6,7
Power requirements:
+--------+--------+-----------+
| I