RS-232 & RS-422: Physical Layer Serial Standards


Overview: While UART defines how bytes are framed into asynchronous serial bits (Start bit, Data bits, Parity, Stop bit), RS-232 (TIA/EIA-232) and RS-422 (TIA/EIA-422) are Physical Layer (OSI Layer 1) electrical standards. They specify the voltage levels, line impedance, single-ended vs. differential signaling, cable length, and pinouts used to transmit those UART bits reliably across physical wires.

1. Core Electrical Difference: Single-Ended vs. Differential

The fundamental distinction between RS-232 and RS-422 lies in how they represent binary 1 (Mark) and 0 (Space) electrically over a wire:

graph TD subgraph "RS-232: Single-Ended Signaling (1 Wire per Signal + GND)" TX_232["Driver TX"] -->|"V_signal (±12V ref to GND)"| RX_232["Receiver RX"] GND_A["Device A GND"] ---|"Common Ground (Noise & Ground Drift Prone)"| GND_B["Device B GND"] end subgraph "RS-422: Differential Signaling (Twisted Pair per Signal)" DRV_422["Differential Driver"] -->|"Line A / TX- (Non-Inverting / Inverting)"| RCV_422["Differential Receiver (V+ minus V-)"] DRV_422 -->|"Line B / TX+ (Twisted Pair cancels EMI)"| RCV_422 end

2. What is RS-232 and How Does It Work?

Introduced in 1960 by the Electronic Industries Alliance (EIA), RS-232 (Recommended Standard 232) was originally designed to connect a computer terminal (DTE — Data Terminal Equipment) to a modem (DCE — Data Circuit-terminating Equipment).

Voltage Levels (Inverted Negative Logic)

Standard microcontrollers operate at TTL/CMOS levels (0V = Logic 0, 3.3V/5V = Logic 1). Transceiver ICs like the classic MAX232 use internal capacitive charge pumps to step up and invert TTL signals into bipolar RS-232 voltages:

RS-232 Voltage Specification (TIA/EIA-232-F):
┌──────────────────────┬───────────────────────────┬──────────────────────────┐
│ Logic State          │ Transmitter Output        │ Receiver Input Threshold │
├──────────────────────┼───────────────────────────┼──────────────────────────┤
│ Logic 0 (SPACE)      │ +5V  to +15V (Typ. +9V)   │ +3V  to +25V             │
│ Undefined (Deadband) │ -5V  to +5V  (Transition) │ -3V  to +3V  (Noise Mar.)│
│ Logic 1 (MARK / Idle)│ -5V  to -15V (Typ. -9V)   │ -3V  to -25V             │
└──────────────────────┴───────────────────────────┴──────────────────────────┘

Note that when an RS-232 line is idle (no data being sent), it stays held at a negative voltage (Logic 1 / Mark, typically -9V to -12V). A frame begins when the line transitions high to a positive voltage (Start Bit = Logic 0 / Space).

DB-9 (DE-9) Standard Pinout

DE-9 Pin Signal Name Direction (at DTE/PC) Function
1 DCD Data Carrier Detect Input Modem connected to remote carrier
2 RXD Receive Data Input Incoming serial data stream
3 TXD Transmit Data Output Outgoing serial data stream
4 DTR Data Terminal Ready Output DTE is powered and ready
5 GND Signal Ground Common 0V reference for all signals
6 DSR Data Set Ready Input DCE is powered and ready
7 RTS Request To Send Output Hardware flow control output
8 CTS Clear To Send Input Hardware flow control input
9 RI Ring Indicator Input Telephone line ring detection

3. What is RS-422 and How Does It Work?

RS-422 (TIA/EIA-422) was developed to overcome the distance, speed, and noise limitations of RS-232 in industrial and instrumentation environments. Instead of large ±12V swings referenced to ground, RS-422 uses low-voltage differential signaling (0V to 5V rails) across dedicated twisted pairs.

Differential Voltage Operation & Common-Mode Rejection

An RS-422 driver splits a single UART signal into two complementary lines: Non-Inverting (+ or B) and Inverting (- or A):

4-Wire Full-Duplex & Multi-Drop Topology

Typically, RS-422 uses 4 signal wires (two twisted pairs plus an optional shield/ground reference) to achieve simultaneous Full-Duplex communication:

graph LR subgraph "Master Controller (1 Driver)" M_TX["Master TX+ / TX-"] M_RX["Master RX+ / RX-"] end subgraph "RS-422 4-Wire Full-Duplex Bus (Up to 1200m, 120Ω Terminated)" M_TX ==>|"Twisted Pair 1 (Broadcast to up to 10 Receivers)"| S1_RX["Node 1 RX+ / RX-"] M_TX ==> S2_RX["Node 2 RX+ / RX-"] S1_TX["Node 1 TX+ / TX-"] ==>|"Twisted Pair 2 (Return Channel)"| M_RX end

Line Termination (R_T = 120 Ω)

At high baud rates or over long cable runs, electrical signals reflect off the open end of a cable like waves hitting a wall, causing bit corruption. RS-422 requires a termination resistor (typically 100 Ω to 120 Ω, matching the characteristic impedance of twisted-pair cable) placed across the RX+ and RX- terminals at the far receiver end of the line.

4. Complete Comparison: RS-232 vs. RS-422 vs. RS-485

Engineers frequently compare RS-232 and RS-422 alongside RS-485 (which extends RS-422 with tri-state drivers to allow true multi-point networks where up to 32+ nodes can both transmit and receive on a single 2-wire pair):

Parameter RS-232 (TIA/EIA-232) RS-422 (TIA/EIA-422) RS-485 (TIA/EIA-485)
Signaling Type Single-Ended (Unbalanced) Differential (Balanced) Differential (Balanced, Tri-state)
Network Topology Point-to-Point (1 Driver, 1 Receiver) Multi-Drop (1 Driver, up to 10 Receivers) Multi-Point (32 Drivers, 32 Receivers)
Duplex Mode & Wires Full-Duplex (3 wires min: TX, RX, GND) Full-Duplex (4 wires: TX+, TX-, RX+, RX-) Half-Duplex (2 wires) or Full-Duplex (4 wires)
Max Cable Distance ~15 meters (50 ft) at 19.2 kbps 1,200 meters (4,000 ft) at ≤100 kbps 1,200 meters (4,000 ft) at ≤100 kbps
Max Data Rate 115.2 kbps (up to 1 Mbps short range) 10 Mbps (at 12 meters) 10 Mbps (at 12 meters)
Driver Output Voltage ±5V to ±15V ±2V to ±6V differential ±1.5V to ±5V differential
Receiver Sensitivity ±3V ±200 mV ±200 mV
Typical Transceiver IC MAX232, SP3232 MAX490, MAX3490, AM26LS31/32 MAX485, SN75176

5. Real-World Applications & Use Cases

Where RS-232 is Used

Where RS-422 is Used