Sei sulla pagina 1di 7

Interface chips must mediate between

ever-lower logic voltages and real-


world loads. Here are the circuits
and techniques you need to know.

Interface chips:
between logic
and a hard place

L 
By Pau l R a ko • Te c h ni ca l Ed i to r

ogic signals have fallen from the 15V of the old the most basic devices, the bipolar tran-
CMOS 4000 series to 5V TTL (transistor-to-tran- sistor. Because silicon transistors turn on
with a base voltage of 0.6V, you can, in
sistor logic) to modern CMOS levels of 3.3, 2.7, principle, drive a transistor from almost
and 1.8V. Advanced processes use digital logic that any logic family. One approach is to put
operates at 1V or lower, although they offer higher a series resistor in the base connection
I/O voltages. These ever-dropping logic voltages (Figure 1). You can drive the transistor
still must drive solenoids, twisted-pair wiring, and directly from logic, but it is poor design
discrete-semiconductor-power stages, so they re- practice to rely on the internal resis-
tances in the logic IC to limit the cur-
quire external interface circuits. You need to un- rent into the transistor. Because the base
derstand these circuits, which run the gamut from FET drivers to of a bipolar transistor stays at 0.6V when
open-collector solenoid drivers to LVDS (low-voltage-differential- you turn it on, the logic IC experiences
signaling) and isolated drivers. a short circuit on its output.
So, even something as prosaic as
Interfacing between circuits is diffi- real world must face voltage surges and hanging a transistor onto the output of
cult because it connects signals of differ- spikes to survive. In addition to these a gate requires some engineering. Look
ent voltage levels or across different im- difficulties, many interface ICs are op- up the transistor’s beta over the tem-
pedances. Another hardship is the bru- erating at higher frequencies. The high peratures at which you expect the cir-
tality of the real world. Anyone who has speeds of these new interface ICs add a cuit to operate. Use that figure to deter-
tried to pass CE (Conformité Europée- whole new set of challenges. mine the base current you need to turn
nne) immunity tests can confirm that Let’s begin our journey through the on the transistor at the highest expected
any device or signal that connects to the perilous waters of interface with one of load. Remember that the load current

july 19, 2007 | EDN 45


may also be a function of temperature. transistor switches as desired under real-
AT   A   G L A N C E
Then, look at the data-sheet charts of 
world operating conditions. If you need
Interfaces can be as simple as
the logic part you are using. Once again, a transistor or as complex as a
to control more than one device, you can
you may have to factor in temperature FireWire chip. use an integrated transistor array rather
to see the actual drive current available. than a discrete power transistor. Allegro
 Using interface ICs alleviates
The drive current depends on the volt- and other companies offer arrays of tran-
age drop. The transistor base is at 0.6V, many engineering problems. sistors on single chips. Typing “transistor
whereas a CMOS-logic IC tries to swing  RS-232, RS-422, and RS-485 array” into Digi-Key’s search box returns
the output to the power-supply rail, and are older legacy interfaces. a list of 16 companies.
a bipolar-logic family can get to within It’s remarkable that you need to put
 USB (Universal Serial Bus),
a diode drop, or 0.6V, of the power rail. all this work, study, and calculation into
Knowing the voltage drop and the cur- FireWire, SATA (Serial Advanced the simple act of buffering a logic out-
Technology Attachment), and PCIe
rent that the transistor needs, you can put with a transistor. But this work il-
(Peripheral Component Interconnect
work out a nominal value for the resis- Express) are modern interfaces.
lustrates the difference between a hob-
tance. It is usually advisable to halve byist and an engineer: An engineer uses
the value of the resistor—from 150 to  New ICs ease the design of specifications and calculations to ensure
75V, for example—to ensure that the isolated interfaces. that a circuit will work as he intends—
transistor will fully turn on. Then, you not only in the lab, but also through an
must look at the power that the logic lem, the digital-logic part that drives the entire production run. For example, en-
IC loses and make sure that it does not FET gate sees that gate as a capacitor. gineer John Massa, currently owner of
exceed any power-dissipation specs. Us- The bigger the FET, the larger the ca- a service bureau, has worked at Hous-
ing all eight outputs of an octal buffer pacitance the digital part sees. Because ton Instruments, Teledyne, and Quan-
can cause the part to burn up, especial- both CMOS and bipolar logic can drive tum Disk Drives. Back then, he would
ly if the part comes in a TSSOP or an- only so much current, the effect of the counsel his fellow engineers that driv-
other tiny package that cannot dissipate FET-gate capacitance slows the FET’s ing an LED with a 74LS244 octal buf-
much heat. Also, the logic part has its turn-on. Again, you need to review the fer would not work. Many of these engi-
own temperature derating of power dis- worst-case specs in the logic’s data sheet, neers were incredulous, saying that they
sipation, so you may have to factor that based on operating the logic at the low- had successfully done so many times.
figure in to ensure that you are not over- est expected power-supply voltage to en- Massa would only smile and advise them
stressing the part. Remember: If you use sure that the FET will turn on and off to read the data sheets. The data sheet
a base resistor with too low a value, or if fast enough to meet your design intent. for the Texas Instruments SN74LS244
you entirely omit the resistor, then you Concerns such as these have given and a typical 20-mA LED in use at the
will drive the transistor into heavy satu- rise to integrated ICs, such as the Micro- time shows why Massa would take this
ration, and it will take longer to turn off. chip TC4468 and the Texas Instruments position (references 2 and 3). The Tex-
This situation occurs because all the ex- SN75372 dual-MOSFET driver, which as Instruments part shows a guaranteed
cess hole-electron pairs you have inject- interface to MOSFETs. You can also use output voltage of 2.4V at only 3-mA
ed into the base-emitter junction must amplifiers to drive large MOSFETs, but output current. The Chicago Miniature
recombine before the collector-emitter be careful. Driving large FETs from am- Lamp red-LED 5306H1 has a maximum
current can go to zero. plifiers may cause the output to oscillate forward voltage of 3V at 10 mA. If you
All of these calculations apply to the due to the capacitive load
use of a bipolar transistor to buffer a that the FET presents to
logic output. Using a MOSFET creates the amplifier.
another set of criteria. FETs require no On top of all these
current to turn on; a voltage on the gate concerns, you must also
causes the source and drain to become consider Miller capaci-
low-impedance. The benefit of FETs is tance: a small stray ca-
that they can conduct current with low- pacitance between the THIS RESISTOR
er losses, and some parts, such as those gate and the drain in a PREVENTS DAMAGE
from Supertex, can handle very high FET or between the base LOGIC IC TO IC OUTPUT STAGE
voltages. Older FETs needed 10V to and the collector in a bi-
turn on. Process engineers used ion im- polar transistor. Raising
plantation to lower the gate-to-source the gate causes the drain’s
threshold voltage. Be aware, however, voltage to drop, and this Figure 1 Be sure to use a series resistor when connecting
that developers designed these logic- drop “fights” the signal logic outputs to a transistor. Large FETs with substantial
level FETs for 5V logic. You must exam- that is trying to raise the input capacitance may also need a series resistor to pro-
ine the data sheet to ensure that a part voltage on the gate (Ref- tect the logic-output stage. The resistor slows FET switch-
will turn on with 3.3V or lower logic. erence 1). Thus, you ing, but the resistive damping stabilizes the circuit.
In addition to the drive-voltage prob- must make sure that the

46 EDN | july 19, 2007


expect the LED to shine at full intensity
based on a 20-mA current, this circuit
is not guaranteed to work, just as Mas-
sa warned. Now, interface is an analog
phenomenon, and, yes, you can usually
drive an LED from an LS244 octal-bus
driver. This approach may be acceptable
for a consumer product, but not for a
life-critical medical device or a military
application; the part’s specified limits do
not guarantee that the LED will shine LOAD
at required brightness—or any bright-
ness at all.
Moving up the evolutionary chain
from the simple interface transistor, you
come to ICs that provide interface ca-
pability much like the aforementioned
MOSFET-driver ICs. The 4000 series
CMOS-BUFFER IC
CMOS-logic hex-inverting CD4009 or
noninverting CD4010 logic-buffer IC
is one of the oldest of these interface
ICs. Texas Instruments still makes these
venerable parts. The 4000 series has the
benefit of working at 15V, providing for
remarkable noise immunity and assist-
ing in directly driving interface signals.
One benefit of CMOS logic, whether
the 15V 4000 series or any low-volt-
age CMOS, is that you can tie multiple
outputs together to increase the current
drive of the circuit (Figure 2). The FET
transistors are resistive when you turn LOAD
them on, so they share current, whereas
bipolar transistors in this configuration
may hog current—that is, one bipolar
output transistor becomes hot, causing
it to conduct more current, in turn be-
coming even hotter, and finally becom-
ing damaged. To prevent this situation, BIPOLAR-BUFFER IC
you can insert 5 or 10V resistors in series
with each of the outputs, but this step
is more costly and complex than using a Figure 2 CMOS-family logic, such as CD4000 and 74HCxxx, can have connected
CMOS chip. outputs because MOSFETS share current. Bipolar-logic families would need low-value
The need for driving solenoids or oth- resistors in each output leg to prevent current from hogging the bipolar-output stages.
er difficult loads has spawned entire se-
ries of interface ICs. Some of the most
ubiquitous of these are the SN and DS scale offers low-side switches; high-side off the switch, you leave the load float-
series from Texas Instruments and oth- switches; and H-bridge, predriver, pow- ing at the positive-power-supply volt-
er vendors. These parts range in variety er-train, and squib ICs. (Military design- age. In a world that has been using sim-
from the SN55462 dual-high-voltage ers will recognize squibs as the explosive ple mechanical switches for more than a
peripheral drivers to the DS3680 quad- bolts that blow to allow rocket stages to century, you would expect to be able to
telephone-relay driver. Also notable for separate. In this context, a “squib” is the simply switch off the power, rather than
this class of ICs is Freescale, a spin-off of explosive canister that deploys automo- interrupt the ground side of the load. It
Motorola, whose name implies the au- tive air bags.) may also be beneficial to keep the load
tomotive radios that gave the company Speaking of high-side and low-side grounded for noise reasons or to moni-
its start. As you would expect, Freescale
makes interface ICs that can take the EDN070719DFfig2
switches, it might seem logical to put a
semiconductor switch on the low side
tor currents, voltages, or temperatures.
This problem has given rise to the use of
higher temperatures and voltage surges of the load. The problem with low-side high-side ICs.
of the automotive environment. Free­ switching, though, is that when you turn One way to design a high-side switch

48 EDN | july 19, 2007


TX RX
LONG PCB TRACES OR CABLE
RX TX
WITH CONTROLLED IMPEDANCE
GND GND
(a)

RX� TX� DIFFERENTIAL- DIFFERENTIAL-


RX�
TRANSMITTER IC RECEIVER IC
HOST TX�
DEVICE 1
TX� RX�
TX� RX� (a)

TX�

TX�
DEVICE 2
RX�

RX�
(b)
LONG PCB TRACES OR CABLE
WITH CONTROLLED IMPEDANCE
A A
HOST DEVICE 1
B B
A
DEVICE 2 DIFFERENTIAL- DIFFERENTIAL-
B TRANSMITTER IC RECEIVER IC
A
DEVICE 3
B
(c) (b)

Figure 3 RS-232 started as a telecom Figure 4 Differential signaling uses a pair of wires operating on opposite polarities. You
standard to connect modems to comput- can use a 100V shunt termination at the receiver or two 50V terminations in series
ers (a). It used all 25 pins of a DB-25 con- to eliminate reflections (a). The series termination does not dissipate dc power (b).
nector. It has since evolved to a simple Differential signaling is the basis for LVDS, USB, SCSI, SATA, PCIe, CameraLink, and
three-wire connection. The multidrop RS- many other interfaces. The transmitter does not start and stop its operating current; it
422 standard can have 10 receivers (b), just switches it between the two wires, making decoupling the power pins less critical.
and RS-485 is a bidirectional bus with as
many as 32 receivers and transmitters (c)
(courtesy Omega Engineering). as seriously, the part may not quickly has pioneered work involving minimiz-
enough connect a power source, caus- ing electromigration and improving the
ing the system that the high-side switch thermal fatigue of high-side switches.
is to use PNP or P-channel FETs and live is feeding to become unstable or to re- This work brings designers ever closer
with the greater losses. Because electron boot. to the ideal of a device with the robust-
mobilities are higher in N-type materi- One of the best known brands of high- ness of silver contacts and the intelli-
al, however, NPN-bipolar and N-chan- side FETs is NXP’s TopFET. This part in- gence, fault protection, and monitoring
nel MOSFETs can conduct current with tegrates a power FET along with protec- of semiconductor devices.
lower losses. A more sophisticated tech- tion features for overcurrent, overtem-
nique uses a charge pump to boost volt- perature, and overvoltage conditions. In Signal interfaces
age, which then turns on an N-chan- addition, the part offers reverse-polarity The term “interface” has grown to
nel MOSFET through a level-shifting protection, making it ideal for replacing mean more than driving solenoids and
circuit. One caution here involves gate both switches and fuses. NXP has min- other loads from logic voltages. It also
capacitance. Data sheets may show a imized charge-pump noise to make the refers to the several standards to con-
typical turn-on time for a charge-pump part suitable for a wide range of applica- nect digital systems. RS-232 was one
high-side driver, but manufacturers base tions. Infineon makes the ProFET smart of the earliest of these standards. Other
that time on a specific load capacitance. high-side switch with similarly robust early serial-interface ICs supported RS-
If you try to control a large MOSFET, features. This unit complements Infine- 422 and RS-485 (Figure 3 and refer-
it takes a long time to charge the huge on’s line of low-side switches and mo- ences 4 and 5). Whereas RS-232 has
gate capacitance. As a result, the part tor controls. STMicroelectronics is also one wire for transmitting and one for
may linger too long in the linear mode, involved in difficult interface applica- receiving, RS-422 uses differential pairs
causing excessive power dissipation. Just tions in the automotive environment. It for communications and needs two pairs

50 EDN | july 19, 2007


232 standard the nonstandard standard.
In this regard, engineer Massa points
out, many people design RS-232 inter-
faces for 5V operation rather than for
the voltage the standard dictates: 612V.
The input-structure circuit diagram of
(a) a common RS-232 receiver, he notes,
takes only one diode drop—0.6V—to
turn on the input, so designers believe
that 5V would do this job as well as 12V
would. When the signal line goes to 0V
instead of 212V, they reason, the input
would turn off. Massa disagrees, how-
ever. “Remember: You have violated
the standard by running the interface
(b)
at 5V,” he says. “You will have far worse
noise immunity, and the length of ca-
ble runs you can achieve will be far less.
Nevertheless, if all you are doing is try-
ing to get a connection to a PC over two
feet of wire, a 5V signal can function
on an RS-232 line.” Maxim and other
companies provide a benefit by selling
RS-232-interface chips that operate at
(c)
5V, use internal charge pumps to gener-
ate 610V or higher, and provide 15-kV
ESD (electrostatic-discharge) protec-
tion on the line. Having a serial inter-
Figure 5 You can achieve digital isolation face that conforms to the standard and
using optical means with chips such as having fault protection to boot can pro-
these from Avago (a), capacitive means vide considerable peace of mind to a de-
as in these chips from Texas Instruments sign engineer.
(b), or inductive means as in these chips You can gauge the tremendous pop-
from Analog Devices (c). ularity and proliferation of these early
interface standards by examining Texas
Instruments’ offerings in this area. The
to send and receive. The advantage is company offers 63 RS-422 parts rang-
that it can work over longer distances— ing from dual-line drivers selling for ap-
even kilometers—and can have as many proximately 25 cents to parts with three
as 10 receivers listening to one transmit- differential-transceiver channels that
ter. The differential RS-485 interface cost several dollars. TI’s RS-232 line
combines transmission and reception on comprises 95 parts, starting with drivers
the same pair of wires. It can support 32 costing less than a quarter, to complete
transmitters and receivers on the same interface ICs, including charge pumps
bus. and ESD protection, selling for more
One problem with older standards, than $4. For the RS-485 standard, TI of-
such as RS-232, is that designers do fers 101 parts, with a broad range of ca-
not rigorously follow them. This lack pabilities, all with commensurate prices.
of compliance applies to both the pins Faster standards, such as USB (Uni-
in the connectors and the voltage lev- versal Serial Bus) and Apple-developed
els in the transmission. RS-232 started FireWire, now augment these older RS
as a standard for connecting modems to standards. These bus standards operate
computers. For this reason, it does not at higher speeds and with more sophis-
need such signals as RD (ring detect) to tication than the RS-485-bus standard.
connect two computers or a computer to USB and FireWire tout not only stan-
a peripheral drive. All the potential pin, dardized electrical interfaces, but also
cable, and voltage configurations have standardized higher level protocols. The
often caused designers to call the RS- old serial-communication port still ex-
ists as a protocol in USB, even though a laptop product that had to pass strict
the electrical spec differs. Despite the Federal Communications Commission
modernity of these standards, they face standards for radiated noise in consum-
the same environmental challenges as er electronics. National Semiconductor
the older RS standards face. The fact was an early champion of LVDS and al-
that a long cable is extending from your so used it in the CameraLink standard,
digital system creates the same potential which connects industrial cameras to
for havoc. The cable can receive EMI video-capture hardware (Reference 7).
(electromagnetic interference) and RFI SCSI, SATA, PCIe, and LVDS do not
(radio-frequency interference) and may connect logic to a high-voltage periph-
cause your system to malfunction, or eral, instead connecting two digital sys-
the cable can radiate digital noise from tems at high speeds over long distances.
your system. ESD from people or other CameraLink can work over distances
systems also can damage your system of meters, and LVDS cables can run for
unless the interface IC protects against hundreds of meters if you properly shield
this phenomenon. As you would expect and design them. National Semiconduc-
with such popular standards, a surfeit of tor has an impressive portfolio of LVDS
vendors makes USB- and FireWire-in- chips, and many other vendors, such as
terface chips. USB also delivers power, TI and STMicroelectronics, also make
and vendors offer interface circuits to these products.
address the need to manage and protect
the power lines in the USB port. For ex-
ample, Raychem and Fairchild offer fus- By using differential
es and switches, respectively, to handle pairs, designers
this problem.
The need to transmit faster data rates
can maintain
between chips and subsystems has caused impedance control
designers to consider differential signal-
ing (Figure 4). By using differential
and balanced
pairs, designers can maintain impedance currents over
control and balanced currents over large large distances.
distances. The SCSI (Small Computer
System Interface) disk-drive standard,
which Shugart Associates developed in A special type of LVDS interface,
1979, exemplifies this technique. SCSI SERDES (serializer/deserializer) seri-
became a standard in 1986, and Apple alizes parallel data, such as a computer
Computer used it in the Apple II (Ref- bus or several bytes of video data, into
erence 6). Texas Instruments lists SCSI a high-speed LVDS pair. These chips
chips under the “interface” section of its often operate at speeds in excess of 1
Web site. The utility and advantages of Gbps. Once the SERDES serializes the
differential signaling have caused devel- parallel data and sends it over the pair
opers to adopt it in SATA (Serial Ad- of differential wires, the deserializer ex-
vanced Technology Attachment) disk- tracts a clock from the serial-bit stream
drive interfaces and the PCIe (Periph- and converts the data back into a par-
eral Component Interconnect Express)- allel bus. National Semiconductor, TI,
bus interface. Many of these differential Intersil, Fairchild, and a host of other
interfaces use a variation of LVDS. The companies make these types of chips.
industry first applied this term to the sig- SERDES chips are finding applications
nals in the ribbon cable that connects in cell phones in which screen and cam-
laptop-LCD panels to the video chip. era data must traverse the hinge of the
The video interface had to reside on a phone. This task is easier with one pair
ribbon cable because the laptop screen of wires as opposed to a parallel bus.
had to tilt and close. A further benefit Another class of interface chip sup-
of differential signaling is that it radiates ports isolated communications using op-
less electrical noise because the signals tical, capacitive, or magnetic isolation to
are differential and closely coupled. This allow digital signals to communicate to
feature allowed the fast transmission systems without conducting ground loops
of digital video over a ribbon cable in or hazardous voltages (Figure 5). The
MORE AT EDN.COM SN74S244 Octal buffers and line driv-
ers with 3-state outputs,” Texas Instru-
+ Go to www.edn.com/070719df ments 74LS244 data sheet, February
and click
MORE on Feedback Loop to post
AT EDN.COM 2002, http://focus.ti.com/lit/ds/symlink/
a comment on this article. sn74ls244.pdf.
3 “5306 Series T-1 3/4 Right An-

gle LED Assembly,” Chicago Minia-


developers of the MIDI (Musical Instru- ture Lamp Inc, http://rocky.digikey.
ment Digital Interface) standard for mu- com/WebLib/Chicago%20Miniature/
sical instruments based the technology Web%20Data/5306%20Series.pdf.
on optical isolation. Avago Technologies 4 “RS-232, RS-422, RS-485—Differ-

offers optical-isolation chips that with- ences and Typical Applications,” Omega
stand thousands of volts and can trans- Engineering, www.omega.com/techref/
mit megabits per second of data. Both das/rs-232-422-485.html.
Texas Instruments and Analog Devices 5 “Quick reference for RS485,

have chips that can provide thousands RS422, RS232, and RS423,” www.
of volts of isolation and transmit sig- rs485.com/rs485spec.html.
nals in the hundreds of megahertz. The 6 SCSI, http://en.wikipedia.org/wiki/

availability of these remarkable chips is SCSI.


changing the nature of some analog de- 7 “Camera link,” www.siliconimaging.

sign. Previously, it was more common com/ARTICLES/CameraLink.htm.


to achieve isolation in the analog sec-
tion, such as with the Linear Technol- F o r M o r e In f o r mat i o n
ogy LTC1531 isolated comparator. With
Allegro MicroSystems Maxim Integrated
the availability of these digital-isolator www.allegromicro.com Products
chips, it is now common practice to use Analog Devices www.maxim-ic.com
an isolated regulator to power the ana- www.analog.com Microchip Technology
www.microchip.com
log section and employ a data converter Apple
www.apple.com Motorola
on the isolated side. You can isolate the www.motorola.com
Avago Technologies
digital signals from this converter with a www.avagotech.com National
digital-isolation chip. Chicago Miniature Semiconductor
Interface issues are important; pay Lamp Inc www.national.com
attention to them. A plethora of ap- www.cml-it.com NXP Semiconductors
www.nxp.com
proaches is available from a large num- Digi-Key
www.digikey.com Omega Engineering
ber of suppliers. If you consider how www.omega.com
Fairchild
complex it is just to hook a transis- Semiconductor Quantum
tor to a logic output, you can appreci- www.fairchildsemi.com www.quantum.com
ate the need and desirability of using a Freescale Raychem
specialized interface chip to do the job. Semiconductor www.raychem.com
www.freescale.com Shugart Associates
If you are sending gigabit signals over
Houston Instruments http://en.wikipedia.
the length of a large PCB (printed-cir- http://en.wikipedia. org/wiki/Shugart_
cuit board) or onto a cable, you must org/wiki/Houston_ Associates
Instruments
use some of these sophisticated inter- STMicroelectronics
Infineon Technologies www.st.com
face chips. The combination of capabili- www.infineon.com Supertex
ties and protection features is essential Intersil www.supertex.com
for most applications. It is a cruel world www.intersil.com Teledyne
out there, and these interface chips can Linear Technology Technologies
make your design far more resistant to www.linear.com www.teledyne.com
many indignities.EDN Massa Enterprises Texas Instruments
www.massaenterprises. www.ti.com
com/
Re f e r ences
1 Israelsohn, Joshua, “Miller on edge:
The role of Miller capacitance in nonlin- You can reach
ear circuits,” EDN, March 29, 2007, pg Technical Editor
Paul Rako at
38, www.edn.com/article/CA6426883.
2 1-408-745-1994
“SN54LS240, SN54LS241, SN54­
and paul.rako@
LS244, SN54S240, SN54S241, SN­ reedbusiness.com.
54S244, SN74LS240, SN74LS241,
SN74LS244, SN74S240, SN74S241,

Potrebbero piacerti anche