EDN logo


Design Ideas: September 2, 1996

Comparators form 3 to 5V or 5 to 3V translator/transceiver

Robert Hanrahan,
National Semiconductor, Woodcliff Lake, NJ

In many recent systems, you often need to interface 3V signals with higher voltages within the system. In some cases, it's necessary to interconnect 3 and 5V open-collector transceivers.Figure 1 shows one example, in which multiple multidrop communications devices interconnect. In systems where no control lines are available for interfacing, the translating transceiver must control other transceivers by sensing data arriving from both sides. When no direction or driver-status line is available to control the transceiver, it's necessary to sense the active driver and use the sensed signal to control the interface. The design in Figure 2 uses two analog comparators with shunt resistors to determine which side of the transceiver is active.

Two divider networks, R1/R2 and R4/R5, bias the comparators to ensure that the outputs are stable in all states and also to ensure that the comparators do not latch in their back-to-back configuration. If neither side of the circuit is sinking current (has no data flow), the pull-down resistors, R1 and R4, ensure that the inverting-input voltage is lower than the noninverting input by an amount equal to at least the maximum offset voltage of the comparator. When either side of the network switches low, the corresponding open-collector comparator has a higher voltage on its inverting input than on the noninverting input, due to the current sourced by either pull-up resistor R2 or R5. The low-level signal passes to the other side of the transceiver, yet, the other comparator does not turn on, because its inverting input remains lower than the noninverting input due to the current sourced by either system pull-up resistor RA or RB.

When selecting comparators, you must take a few critical specs into consideration. The most important parameter is the common-mode input range of the devices. If you use a shunt current-sense design, as shown here, you must ensure that the common-mode range includes the positive supply rail, otherwise unpredictable operation can result. Two comparators that satisfy this common-mode requirement are the LMC7221 and the LMC6772. You must also consider the frequency of the transmitted signals. If a signal must remain synchronous with respect to a clock or other signal, the response time, or propagation delay, is an important consideration. If a signal is asynchronous, as is the case with a bidirectional signal from a UART, you need not be concerned with overall delay, but you must consider the comparators' skew.

Other specs to consider are the output-drive capability of the devices, the operating current, and the physical size. The LMC7221 comes in a SOT-23-5 miniature package; the equivalent LMC6772 comes in an SO8 or DIP. The comparators have a delay spec of 5 µsec. The circuit is ideal for asynchronous communications to a speed of approximately 100 kHz. You select the bias resistors in the design after considering pull-up resistors RA and RB. You select the value of the shunt resistor by considering the increase in the low level caused by the voltage drop in the shunt, as well as the delay of the comparator as a function of overdrive. To save power, you should bias the circuit using the lowest current, hence, the highest resistor values, that maintains the required performance specs. This design interfaces 3V to 5V; you can use the same structure to interface voltages from 2.7 to 15V. (DI #1914)


| EDN Access | feedback | subscribe to EDN! |
| design features | out in front | design ideas | departments | products | columnist |


Copyright © 1996 EDN Magazine. EDN is a registered trademark of Reed Properties Inc, used under license.