You are on page 1of 8

Multiprotocol Transceivers Combine RS485 and RS232 in a

Single Device to Simplify and Shrink Applications that Use


Both Standards
Steven Tanghe

The RS232 and RS4851 data transmission interface


standards are in widespread use today despite their
relatively advanced age—RS232 was introduced almost
50 years ago; RS485, 30 years ago. Such longevity for
any standard is uncommon in today’s rapidly changing
electronics landscape, where consumer demand
can force obsolescence in a handful of years.
Although the once ubiquitous RS232 port • They accept a wide range of input Figure 1. The LTC2870 and LTC2871 are offered in
small QFN and TSSOP packages
on personal computers has largely been supply voltages from 3V to 5.5V, as
replaced by USB, RS232 continues to pro- well as a logic supply pin, allowing
liferate in applications requiring rugged, a digital interface down to 1.7V with can be operated concurrently as shown
short distance, point-to-point communica- no level translation needed. in Table 1. Figure 2 shows a simpli-
tion, such as in sensors, test equipment, fied block diagram for each device.
• Integrated termination resistors are
device programming and diagnostics. automatically engaged for compat- APPLICATIONS
Likewise, RS485 thrives thanks to its high ibility with RS232 or RS485 operation. The LTC2870 and LTC2871 can be
performance in harsh environments. Its • Half- and full-duplex control and loop- configured in a variety of ways.
differential signaling scheme and wide back functions provide system configu- Application of these devices falls
common mode tolerance provide excellent rability and diagnostics capability. into three main categories:
noise immunity, allowing high speed com- • Robust performance allows con- • Fixed interface: The LTC2870 or the
munication over relatively long distances. tinuous operation during ESD strikes LTC2871 can be permanently configured
Perhaps equally important in the RS485 of up to 26kV on the bus pins. as either an RS232 or RS485 interface.
standard is the ability to network several For instance, Figure 3 shows both
• Both devices are offered in
devices on a single bus, thereby reducing modes of operation for the LTC2870. If
small QFN and TSSOP pack-
wiring overhead. RS485 is specified as the two versions of a product are offered,
ages, as shown in Figure 1.
physical layer for many Fieldbus net- one with each interface, a multipro-
works including PROFIBUS and INTERBUS. The LTC2870 and LTC2871 differ in how tocol transceiver minimizes design
their transceiver I/Os are pinned out, as differences, reducing inventory, and
To simplify the design of RS485 and RS232
well how they are controlled. The LTC2870 simplifying product qualification.
systems, the LTC2870 and LTC2871 multi-
offers two RS232 transceivers that share • In situ configuration changes with a
protocol transceivers combine both types
I/O pins with an RS485 transceiver. It can shared connector: Some applications
of transceivers on a single device. Both
operate in either RS232 mode or RS485 require the signaling interface to change
support data rates as high as 20Mbps
mode but not both at once. The LTC2871 between RS232 and RS485 during normal
for the single RS485 transceiver and
provides additional flexibility by pin- product usage. For example, a node in
500kbps for two RS232 transceivers.
ning the RS485 and RS232 transceivers an alarm system might be networked
These devices are designed to support a out separately so that all transceivers with other nodes via an RS485 com-
wide variety of applications with features munication bus. However, the node can
that make them flexible and robust: be configured for local RS232 access,

12 | July 2011 : LT Journal of Analog Innovation


design features

Table 1. Product selection guide

CONFIGURABLE TRANSCEIVER COMBINATIONS


PART NUMBER (RS485 + RS232) PACKAGES

LTC2870 (0 + 0), (1 + 0), (0 + 2) 28-Lead QFN, 28-Lead TSSOP

LTC2871 (0 + 0), (1 + 0), (1 + 1), (1 + 2), (0 + 1), (0 + 2) 38-Lead QFN, 38-Lead TSSOP

allowing programming or diagnos- The LTC2870 changes modes between used in a similar way but with inde-
tics. Signaling pins are shared between RS232 and RS485 via control of the pendent access to all signal pins.
the RS485 and the RS232 transceiv- 485/232 pin, which can be manipu- • Simultaneous operation. Some appli-
ers, with one transceiver active at any lated though processor control, cations require concurrent RS485 and
given time, as shown in Figure 4. manual jumper settings, or protocol- RS232 communication. For example,
specific cables that connect the pin in point-of-sale applications, a cash
to VL or ground. The LTC2871 can be register may communicate with a server

Figure 2. Simplified block diagrams of the LTC2870 and the LTC2871

1.7V TO VCC 3V TO 5.5V 1.7V TO VCC 3V TO 5.5V


10µH 220nF 10µH 220nF

0.1µF 2.2µF 0.1µF 2.2µF

VL VCC SW CAP VL VCC SW CAP

LTC2870 DX232 LT2871


VDD DX485 VDD
RX232
BOOST VEE 1µF RX485 BOOST VEE 1µF
MODE & RT485 REGULATOR MODE & RT485 REGULATOR
CONTROL TERMINATION CONTROL TERMINATION
INPUTS CONTROL H/F INPUTS CONTROL H/F
H/F H/F
1µF CH2 1µF
FEN
DRIVERS DRIVERS
LB

232 DIN1 232


DOUT1
Y Y
RT485 RT485
DY 485 DI 485
120Ω 120Ω
Z Z
DOUT2
DZ 232 DIN2 232

RECEIVERS H/F RECEIVERS H/F

232 ROUT1 232 RIN1

A A

RT485 RT485
RA 485 RO 485

120Ω 120Ω

B B

RB 232 ROUT2 232 RIN2

GND GND

July 2011 : LT Journal of Analog Innovation | 13


VL
Figure 3. The LTC2870 configured for RS232 (a) or a
LTC2870 485/232
RS485 (b) communications. The RS485 configuration DXEN
also shows the RS485 termination resistors optionally RXEN
switched in with the TE485 pin tied high. DY

DZ

DY Y
Y

RA A 5V/DIV
Z

DZ Z
RA
via RS485 but also accept input from an RB B RB
RS232-equipped keypad. The LTC2871,
1µs/DIV
with completely independent RS232 and
RS485 transceivers, enables separate ter-
VL
minals for each protocol with a single IC. b
LTC2870 RXEN
Another example of simultaneous usage DXEN
485/232
is translation between RS232 and RS485 DY
TE485
5V/DIV
protocols. Figure 5 shows the LTC2871
configured as an RS232 4000-foot “exten- Y
Y
sion cord” implemented by converting DY
120Ω 1V/DIV
to RS485 for the long cable run and Z

converting back to RS232 at the ends. Z


A
RA
THE WHOLE IS BETTER THAN THE RA 5V/DIV
120Ω
B
SUM OF ITS PARTS
Using a multiprotocol device, such as the 20ns/DIV

LTC2870 with shared RS485 and RS232


interface pins, offers a number of advan-
tages over simply combining standalone Perhaps the biggest obstacle in combining inputs if it is located at the end of the sig-
RS485 and RS232 transceivers. First, by individual RS485 and RS232 transceivers naling bus, to reduce signal reflections. The
combining the function of both transceiv- concerns the termination resistors used in challenge is in switching out the resistors
ers in one device, the overall footprint each signaling standard. This situation is that are not needed in the selected trans-
on a circuit board is reduced. Second, illustrated in Figure 6, where two differ- ceiver mode. For example, in RS485 mode,
all of the interface pins on the RS232 ent devices are connected to the same bus. the 5k resistors should not be present and
can tolerate inputs to ±15V. Most RS485 The input resistance of the RS232 receivers likewise, in RS232 mode, the 120Ω differ-
devices can only tolerate –7 to 12V, so is specified to be 5k (nominally), which ential termination must not be present.
connecting such a device to RS232 pins acts as a termination resistor for an RS232
The LTC2870 and LTC2871 seamlessly
would lower the shared pin rating. driver connected to it. On the other hand,
switch between termination schemes
the differential RS485 receiver can be
as needed, using internal components.
terminated with 120Ω resistors across its

Table 2. Termination control in the LTC2870. The LTC2870 and LTC2871 seamlessly switch between termination schemes as needed, using internal components. The
RS485 120Ω termination resistor can be disabled in any mode by setting TE485 pin low, which is useful if the transceiver is not positioned at the end of the bus.

INPUTS RESULTING TERMINATION


485/232 TE485 RXEN 120Ω: A TO B, Y TO Z 5k: A TO GND, B TO GND MODE

1 0 X No No RS485 Mode Without Termination

1 1 X Yes No RS485 Mode With Termination

0 X 0 No Yes RS232 Mode, Receiver Enabled

0 X 1 No No RS232 Mode, Receiver Disabled

14 | July 2011 : LT Journal of Analog Innovation


design features

There is no need for external termination LTC2870


components or relays to control them. 485/232 485/232
RS232 RS485 5V/DIV
Furthermore, the RS485 120Ω termina-
DY Y Y
tion resistor can be disabled in any mode 5V/DIV

by setting TE485 pin low, which is use-


ful if the transceiver is not positioned at Z
5V/DIV
the end of the bus. Table 2 summarizes DZ Z RS232
MODE
RS485
MODE
RS232
MODE
the termination control in the LTC2870.
RA A

The LTC2871 offers similar controls but 2µs/DIV

since the RS232 and RS485 pins are not


shared, all of the termination resistors
RB B
can be engaged simultaneously if desired. Figure 4. LTC2870 protocol switching, using the 485/232 pin.
Oscilloscope traces show the driver outputs toggling data
Refer to the data sheet for details.
during mode changes.

SOME SPECIFICS REGARDING THE


RS485 TERMINATION RESISTOR
driver outputs Y and Z. The driver ter- The LTC2870 and LTC2871 perform equally
RS485 communicates differentially over mination is not strictly necessary for the well with 100Ω or 120Ω cable. Even
a bus containing one or more pairs of case when this device is actively driving when the internal termination resistor,
twisted wires. If the transition time of the the bus, such as the master in Figure 7. nominally 120Ω, is used to terminate a
signal driven into the bus is significantly However, the Y to Z termination is neces- 100Ω cable, the impedance mismatch has
less than the round trip delay to the sary in applications such as the slave at negligible impact on the resulting signal.
load and back, then the bus needs to be the far end of the bus in Figure 7, where For instance, the effect of using a 120Ω ter-
terminated differentially with a resistor another device is driving the bus. mination on each end of a 100Ω cable is
whose characteristic impedance matches to develop an overshoot of about 10% at
that of the bus. This termination should The RS485 standard specifies cable with
the receiver end with a duration equal to
be placed at the receiver end of the bus or a characteristic impedance of 120Ω while
both ends of the bus, but not in between. RS422 specifies 100Ω cable. These cables
The absence of termination or improper generally contain one or more twisted
CONNECTOR
termination introduces reflections that pairs as well as ground shields or a ground RS485
can cause severe waveform distortion.2 wire (sometimes called a drain wire). As Y
RS485
an alternative to shielded twisted pair, RT
120Ω
When RS485 termination is enabled on unshielded 100Ω Category 5 (CAT5) cabling Z
the LTC2870 or LTC2871, the 120Ω dif- is increasingly applied in RS485 and RS422
ferential resistors are connected across systems as an economic alternative.
receiver inputs A and B and also across

LTC2871 LTC2871 RS232

Y A
DI RO
120Ω 120Ω
Z B
ROUT1 DIN1
RXIN RIN1 DOUT1 RXOUT 5k
RS485 A
RS232 UP TO 4000 FT RS232 RS232
ROUT1 CAT5e CABLE RIN1 RT
DRIVER DRIVER 120Ω
OUT DIN1 ROUT1 IN 5k
A Y B
RO DI
120Ω 120Ω CONFLICT!
B Z

Figure 6. Termination resistors pose challenges


when separate RS232 and RS485 transceivers are
Figure 5. RS232 “Extension cord” using the LTC2871’s simultaneous RS232 and RS485 communication mode used in combination.

July 2011 : LT Journal of Analog Innovation | 15


The only required external components are one
10µH inductor for the boost voltage and one 220nF
cap for the voltage inversion, as well as the bypass
caps on the generated VDD and VEE rails.

SLAVE SLAVE
LTC2870/ LTC2870/
LTC2871 LTC2871

Figure 7. Full-duplex network with LTC2870/71 at each node TE485 TE485

SLAVE MASTER
LTC2870/LTC2871 LTC2870/LTC2871

120Ω 120Ω

120Ω 120Ω
VL VL

TE485 TE485

twice the one-way propagation delay in compared to the same cable terminated cable variation, stub reflections and
the cable. This small deviation from ideal with 100Ω. Although the internal ter- discontinuities have a far greater impact
is easily tolerated in most communications minator is not a perfect match for the on signal integrity. The figure also shows
systems, and can improve performance, 100Ω cable, there is almost no effect on the devastating effect of leaving the cable
which is why the PROFIBUS standard the overall signal other than a slight unterminated at the receiving end, where
specifies a similar termination mismatch. amplitude increase at the beginning of reflections degrade the signal substantially.
the received signal, which can improve
Figure 8 shows the results of using the INTERNAL RS232 SUPPLY ENOUGH
system performance via increased signal TO DRIVE TWO TRANSCEIVERS
LTC2871 internal 120Ω termination resis-
overdrive and noise margin. Normal RS232 signals are driven on a single wire
tor to terminate 100 feet of CAT5e cable
with respect to ground at levels that
must exceed 5V and –5V. A DC/DC boost
LTC2870/LTC2871 converter and capacitive inverter are
Y
DRIVER integrated into the LTC2870 and LTC2871
RT END
100Ω
120Ω (Y – Z) to produce both positive and negative
485
500kHz
voltages used to support these drive levels
Z 2V/DIV
100'
while operating on a single 3V–5.5V sup-
CAT5e
A CABLE RECEIVER ply. The only required external com-
END
RT
100Ω (A – B) ponents are one 10µ H inductor for the
120Ω
485 boost voltage and one 220nF cap for the
B 200ns/DIV
voltage inversion, as well as the bypass
RYZ = 100Ω ,RAB = ∞ caps on the generated VDD and VEE rails.
RYZ = RAB = 120Ω (TERMINATION ENABLED)
RYZ = RAB = 100Ω (EXTERNAL TERMINATION) Figure 9 shows the LTC2870 or LTC2871
configured in a typical application with
Figure 8. Driving signal on Cat5e cable with the LTC2871 and comparing effects of the termination resistance.
all of the required external components.
Scope traces on the top show the differential signal at the driven end of the cable (Y – Z) and the bottom set
of traces show the differential signal received after traversing the cable (A – B).

16 | July 2011 : LT Journal of Analog Innovation


design features

Predictable fault handling is important for robust system


design. LTC2870 and LTC2871 receivers produce a
high output, called a failsafe condition, in response
to an idle bus, disconnected bus or shorted bus.

Two LTC2870 or LTC2871 devices can 3V TO 5.5V 470nF


22µH
be powered simultaneously from the
internal DC/DC converter of one device, 2.2µF
VCC SW CAP CAP VCC
reducing the number of external com-
VL LTC2870/ LTC2870/ VL
ponents. Figure 10 shows two LTC2870s, LTC2871 LTC2871 SW
two LTC2871s or one of each shar-
GND VDD VEE VEE VDD GND
ing a single internal RS232 supply.

LOGIC SUPPLY PIN SUPPORTS 1.7V Figure 10. Running two LTC2870s or LTC2871s
2.2µF 2.2µF
TO 5.5V SUPPLIES from a single, shared DC/DC converter

A separate logic supply pin VL allows INDUCTOR: TAIYO YUDEN CBC2518T220M OR MURATA LQH32CN220K53
the LTC2870 and LTC2871 to interface
with any logic signals from 1.7V to 5.5V.
• Idle Bus. All drivers on the bus are Many modern RS485 receivers meet
All logic I/Os use VL as their high sup-
disabled with high impedance outputs. failsafe requirements by introducing
ply. Optionally, VL can be tied to VCC .
This condition is not actually a fault; it a negative offset into the differential
Figure 11 shows the LTC2870 or LTC2871
is a normal mode of operation in RS485. threshold. In this way, whenever the bus
used with a low voltage microprocessor.
Some receivers cannot support this by is shorted or undriven, but terminated,
RS485 BALANCED RECEIVER AND themselves but require a resistor net- the input to the receiver is zero, which is
FAILSAFE work to bias the differential signals on interpreted as a high level. The receiver
Failsafe operation is a term used to the bus in such a way that the receiver in this case is unbalanced, since the
describe how a receiver reacts to vari- senses it as a high input. The LTC2870 threshold is not symmetric around zero
ous conditions, most of which are faults. and LTC2871 support this function volts—the average of a differential signal.
Predictable fault handling is important without requiring a bus-biasing network,
for robust system design. LTC2870 and whether the bus is terminated or not.
LTC2871 receivers produce a high output, 3V TO 5.5V
• Disconnected Bus. This category of
called a failsafe condition, in response 1.7V TO VCC LTC2870/
failsafe operation refers to the case LTC2871
to all of the following conditions: VCC
where the receiver becomes discon- VL
nected from the bus. This is similar
CONTROL
3V TO 5.5V
10µH
220nF to the idle bus state but is truly a SIGNALS

fault condition. Receivers that rely DY, DIN1 Y


1µF on bus biasing resistors to handle an
VCC SW CAP
µP RA, ROUT1 A
VL LTC2870/
idle bus condition do not respond
LTC2871 properly to this type of fault. DZ, DIN2 Z

GND VDD VEE • Shorted Bus. In this situation, the RB, ROUT2 B
1µF 1µF receiver inputs are shorted together.
Some receivers provide failsafe opera- GND
INDUCTOR: TAIYO YUDEN CBC2518T220M
OR MURATA LQH32CN220K53
tion for open, but not shorted, inputs.
Again, bus-biasing resistors are not
Figure 9. Typical supply connections with external effective for shorted bus conditions. Figure 11. The VL pin permits low voltage logic
components shown interface

July 2011 : LT Journal of Analog Innovation | 17


100Ω unshielded Category 5 (CAT5) cabling is used with RS485 and RS422
systems as an economic alternative to specialized shielded twisted pair cabling.
With this in mind, the LTC2870 and LTC2871 perform equally well with 100Ω
cable or 120Ω cable. Even when the internal 120Ω termination resistor is used
to terminate a 100Ω cable, the resulting signals are not degraded.

is low, the device is in full-duplex mode,


B
100mV/DIV
with the driver outputs on the Y and Z
A
pins and the receiver inputs on the A and B
pins. If the H/F pin is high, the RS485 trans-
RO (A – B)
RECEIVER 100mV/DIV ceiver enters half duplex mode where the
OUTPUT HIGH
receiver takes its inputs from the Y and Z
RO
pins. This works seamlessly with the termi-
RECEIVER
5V/DIV
OUTPUT LOW nation control and has no effect on RS232
VAB
–200mV –65mV 0V 65mV 200mV operation. Figure 13 shows the simplified
200ns/DIV
block diagram illustrating this flexibility.
a b

Figure 12. (a) RS485 receiver input threshold characteristics for fast moving signals. (b) Measured 3Mbps The LTC2870 and LTC2872 also feature a
signal driven down 4000ft of CAT5e cable. Top Traces: receiver signals after transmission through cable; logic loopback feature that can be used
Middle Trace: math showing the differences of the top two signals; Bottom Trace: receiver output, exhibiting
excellent duty cycle.
for diagnostics and as a debug tool. The
loopback mode works for both the RS232
and RS485 transceivers, and provides a
The unbalanced receiver can introduce threshold drops down to –40mV to support
logic path from the driver input pin to
severe signal pulse-width and duty-cycle all modes of failsafe operation, as previ-
the corresponding receiver output pin.
distortion for weak signals that result ously described. The balanced receiver
The driver and receiver are not engaged
from transmission over long cables. architecture permits transmission over
in the loop; just logic buffers are used.
longer cables than an unbalanced receiver
The LTC2870 and LTC2871 use a bal- This allows diagnostic tests to be run
and offers the additional benefit of excel-
anced receiver with a rising threshold of
lent noise immunity due to the wide
65mV and a falling threshold of –65mV for
effective differential input signal hysteresis
signals transitioning through that window Figure 14. Logic loopback control in the LTC2871.
of 130mV for typical communications Loopback works whether or not the drivers are
in less than 2µs, as shown in Figure 12. If enabled.
the differential signal lingers within this Figure 12 highlights the performance of
window for more than 2µs, the positive the LTC2871 balanced receiver, where a VL
LTC2871
DX232 RX232
signal is driven through 4000 feet of CAT5e
DX485 RX485
cable at 3Mbps. Even though the differen- LB
Figure 13. RS485 full- and half-duplex control in the
LTC2870 tial signal peaks at just over ±100mV with Y
DI
slow edges, the output maintains nearly Z
LTC2870/LTC2871 a perfect signal and the receiver intro- A
RO
Y duces almost no duty cycle distortion.
DI, B
Z
DY DUPLEX AND LOOPBACK CONTROL DIN1 DOUT1

RS485 networks can be wired in a 2-wire,


RS485 ROUT1 RIN1
FULL HALF
H/F half-duplex configuration or a 4-wire, full-
DIN2 DOUT2
DUPLEX duplex configuration. In some systems the
A
RO, interface may need to support both. The
B ROUT2 RIN2
RB
LTC2870 and LTC2871 offer on-the-fly flexi-
bility via the H/F pin. When the H/F control

18 | July 2011 : LT Journal of Analog Innovation


design features

The LTC2870 and LTC2871 multiprotocol transceivers


simplify the design of RS485 and RS232 systems by
combining both types of transceivers on a single device.
They support data rates as high as 20Mbps for the single
RS485 transceiver and 500kbps for two RS232 transceivers.

Figure 15. RS485 receiver LTC2870/LTC2871 When disabled, the driver and receiver
with multiplexed inputs.
SELECT H/F outputs are not driven and the receiver
INPUT2 INPUT1 RS485
Y INTERFACE input becomes high-Z. This allows these
INPUT1 pins to be connected to the same pins on
Z
RA,
another device whose CH2 pin is driven
RO with the complementary state of the first.
A

B
INPUT2 CONCLUSION
The LTC2870 and LTC2871 are flexible
3V to 5.5V multiprotocol transceivers
that communicate using RS485 and
without disturbing the bus. Optionally, Figure 15 shows an RS485 receiver
RS232 signaling on either shared I/O pins
the bus may be driven during loopback with multiplexed inputs making use
(LTC2870) or separate I/O pins (LTC2871).
by simply enabling the appropriate driver. of the half- and full-duplex control.
Integrated selectable termination and
Figure 14 shows loopback operation.
Figure 16 shows how to combine two duplex control allow easy configuration
MORE APPLICATIONS LTC2871 devices to make a triple RS232 with minimal external components. n
The rich feature sets of the LTC2870 transceiver with either a selectable line Notes
and LTC2871 make it possible to build or logic interface. This application makes 1 Formally, TIA/EIA-485 and TIA/EIA-232
applications that would otherwise be use of the CH2 pin, which selectively 2 “Rugged 3.3V RS485/RS422 Transceivers with Integrat-
ed Switchable Termination,” by S. Tanghe, R. Schuler, LT
challenging to produce. For example, disables the second RS232 transceiver. Magazine, March 2007.

a b

LTC2871 LTC2871
DIN1 DOUT1 DIN1 DOUT1
Figure 16. RS232 triple transceiver with PORT 1 PORT 1 PORT 1 PORT 1
selectable line interface (a), and logic LOGIC LINE LOGIC LINE
INTERFACE ROUT1 RIN1 INTERFACE INTERFACE ROUT1 RIN1 INTERFACE
interface (b)

DIN2 DOUT2 DIN2 DOUT2


PORT 2A/2B PORT 2A PORT 2A PORT 2A/2B
LOGIC LINE LOGIC LINE
INTERFACE ROUT2 RIN2 INTERFACE INTERFACE ROUT2 RIN2 INTERFACE
CH2 CH2

SELECT LINE 2A SELECT LINE 2A

LTC2871 LTC2871
SELECT LINE 2B
CH2 CH2
SELECT LINE 2B
DIN2 DOUT2 DIN2 DOUT2
PORT 2B PORT 2B
LINE LOGIC
ROUT2 RIN2 INTERFACE INTERFACE ROUT2 RIN2

DIN1 DOUT1 DIN1 DOUT1


PORT 3 PORT 3 PORT 3 PORT 3
LOGIC LINE LOGIC LINE
INTERFACE ROUT1 RIN1 INTERFACE INTERFACE ROUT1 RIN1 INTERFACE

July 2011 : LT Journal of Analog Innovation | 19

You might also like