RS-232, RS-422 & RS-485 Differential Signaling, Biasing & Termination Engineering
Despite the proliferation of industrial Ethernet, serial physical layers—EIA/TIA-232 (RS-232), EIA/TIA-422 (RS-422), and EIA/TIA-485 (RS-485)—remain the backbone of factory floor sensors, barcode scanners, load cells, mass flow controllers, and VFD inverters. Most field communication failures attributed to "software bugs" are actually physical-layer reflections, inverted differential polarities, missing signal grounds, or floating bus states during transceiver turnaround.
1. Electrical Comparison: Single-Ended vs. Differential Signaling
RS-232 uses single-ended signaling where both TXD and RXD voltages are referenced against a common ground wire (`GND`). Any ground potential difference or electromagnetic noise induced along the cable directly corrupts the signal, limiting RS-232 to point-to-point links under 15 meters (50 feet).
RS-422 and RS-485 use balanced differential signaling over twisted-pair cabling. The transmitter drives two complementary lines ($A$ and $B$, or $D+$ and $D-$), and the receiver measures only the voltage difference $V_{AB} = V_A - V_B$. External common-mode electromagnetic noise couples equally into both twisted conductors and cancels out in the differential subtraction ($V_{\text{noise}} - V_{\text{noise}} = 0$), enabling cable runs up to 1,200 meters (4,000 feet).
| Specification | RS-232 (EIA-232) | RS-422 (EIA-422) | RS-485 (EIA-485) |
|---|---|---|---|
| Signaling Mode | Single-Ended (Unbalanced) | Differential (Full-Duplex 4-Wire) | Differential (Half-Duplex 2-Wire or 4-Wire) |
| Network Topology | Point-to-Point (1 Driver, 1 Receiver) | Multi-Drop (1 Master Driver, up to 10 Receivers) | Multi-Point Bus (Up to 32 Unit Loads; 256 with 1/8 UL chips) |
| Maximum Cable Length | 15 m (at 19.2 kbps) | 1,200 m (at $\le$ 100 kbps) | 1,200 m (at $\le$ 100 kbps); 40 m at 10 Mbps |
| Logic 1 (Mark / Idle) | $-3\text{ V}$ to $-15\text{ V}$ | $V_B - V_A \ge +200\text{ mV}$ | $(D-) - (D+) \ge +200\text{ mV}$ (or $D+ > D-$ per vendor convention) |
| Logic 0 (Space) | $+3\text{ V}$ to $+15\text{ V}$ | $V_A - V_B \ge +200\text{ mV}$ | Opposite differential polarity ($\ge 200\text{ mV}$ threshold) |
| Common-Mode Voltage Range | $\pm 25\text{ V}$ max | $-7\text{ V}$ to $+7\text{ V}$ | $-7\text{ V}$ to $+12\text{ V}$ |
2. Standard DB-9 Pinout Reference & Polarity Pitfalls
When wiring D-Sub 9-pin (DE-9 / DB-9) connectors or terminal blocks, note that Texas Instruments / EIA-485 defines Line $A$ as the inverting pin ($-$) and Line $B$ as the non-inverting pin ($+$), whereas many PLC and VFD manufacturers label $A$ as Data+ and $B$ as Data-. Always match Data+ to Data+ and Data- to Data- (and swap the pair first if garbage characters or framing errors appear):
- RS-232 DB-9 (PC DTE Male): Pin 2 =
RXD(Receive Input), Pin 3 =TXD(Transmit Output), Pin 5 =SG(Signal Ground), Pin 7 =RTS, Pin 8 =CTS. Connecting two DTE devices requires a Null-Modem crossover (Pin 2 $\leftrightarrow$ Pin 3). - RS-485 2-Wire Half-Duplex:
TR+ / Data+,TR- / Data-, plus a dedicated 3rd conductor forSignal Ground (SG).
3. 120-Ohm Characteristic Impedance Termination
High-frequency square waves traveling down a long twisted-pair cable behave as transmission lines with a characteristic impedance of $Z_0 \approx 120\ \Omega$. When a wavefront reaches an open cable end ($Z = \infty$), energy reflects backward along the bus, superimposing onto subsequent bits and causing double-clocked start bits or CRC failures.
- Where to Terminate: Install a $120\ \Omega$, 1/2 W resistor across Data+ and Data- exclusively at the two extreme physical ends of the daisy-chained bus (the Master at one end, and the last Slave at the far end).
- Never Star-Wire or Multi-Terminate: Placing termination resistors on intermediate nodes reduces total parallel bus resistance below $60\ \Omega$, overloading transceiver drivers and collapsing differential voltage swings below the $200\text{ mV}$ receiver threshold.
4. Fail-Safe Biasing & Transceiver Turnaround Delay
On a 2-wire RS-485 half-duplex bus, when the master finishes transmitting its last stop bit and disables its driver to listen for the slave's reply, no device is actively driving the bus. With a $120\ \Omega$ termination resistor pulling $V_A - V_B$ toward $0\text{ V}$ (inside the indeterminate $[-200\text{ mV}, +200\text{ mV}]$ dead zone), ambient noise triggers false start bits (`0x00` or `0xFF` phantom bytes) at the receiver UART.
To prevent phantom bytes, install Fail-Safe Bias Resistors ($560\ \Omega$ to $680\ \Omega$) at the master node: one pull-up resistor from Data+ to $+5\text{ V}$ and one pull-down resistor from Data- to GND, maintaining a $> +250\text{ mV}$ idle Mark state whenever all drivers are tri-stated.
Frequently Asked Questions (FAQ)
Q. Does a 2-wire RS-485 network really only need 2 wires, or is a 3rd ground wire required?
A 3rd Signal Ground (SG) reference wire is strongly recommended. Without a shared ground reference, floating power supplies can drift beyond the transceiver's -7 V to +12 V common-mode limit, damaging the IC or corrupting data.
Q. Why do I see an extra 0x00 or 0xFF byte at the end of every RS-485 Modbus response?
The bus lacks fail-safe bias resistors. When the slave releases its transmitter driver after the final CRC byte, the terminated bus collapses to 0 V, which the master's UART misinterprets as a false start bit.
Q. When is a 120-ohm termination resistor unnecessary on an RS-485 bus?
For short cabinet-internal cables under 10 meters operating at low baud rates (9,600 or 19,200 bps), signal reflections decay well before the mid-bit UART sampling instant, so termination can often be omitted.
Q. What happens if Data+ (A) and Data- (B) are reversed on one RS-485 device?
No hardware damage occurs, but the inverted logic levels cause the UART to misread start and stop bits, producing framing errors or garbled bytes.