A serial cable is a physical conductor assembly that transmits data sequentially, one bit at a time, over a single channel while enforcing specific electrical standards like RS-232, RS-422, or RS-485 for voltage levels and noise immunity. While your microcontroller handles the logical timing of the bits (the UART protocol), the serial cable and its associated transceivers dictate the physical reality of the link: converting fragile 3.3V or 5V logic signals into robust, noise-resistant waveforms capable of surviving industrial environments, long-distance runs, and heavy electromagnetic interference (EMI).
The Physical Layer: What a Serial Cable Changes in a Circuit
When you wire two microcontrollers together on a breadboard, you are using raw TTL/CMOS logic. A logic '1' is 3.3V or 5V, and a logic '0' is 0V. This works fine over 6 inches of jumper wire. But if you run 20 feet of raw TTL wire next to a VFD (Variable Frequency Drive) or an AC motor contactor, the induced noise will easily flip your 3.3V logic high into a low, corrupting your data.
A true serial cable changes the physical layer to solve this. By pairing the cable with a transceiver IC (like a MAX232 for RS-232 or a MAX485 for RS-485), the voltage levels are drastically altered:
- RS-232 (Single-Ended): Translates logic levels to high-voltage single-ended signals. A logic '0' (Space) is +5V to +15V, and a logic '1' (Mark) is -5V to -15V. This massive voltage swing provides excellent noise margin for runs up to 50 feet.
- RS-485 (Differential): Uses a twisted-pair cable to transmit the signal as the voltage difference between two wires (A and B). The receiver only cares about the difference, effectively rejecting any common-mode noise induced equally onto both wires. This allows runs up to 4,000 feet.
Worked Example: RS-232 Cable Capacitance and Baud Rate Limits
The TIA/EIA-232 standard specifies that a driver must be able to handle a maximum cable load capacitance of 2500 pF. This hard limit is where cable selection directly dictates your maximum baud rate and distance.
Let's say you are wiring a legacy barcode scanner to a PC using Belden 8723, a standard 2-pair shielded RS-232 cable. The datasheet lists its mutual capacitance at roughly 35 pF per foot.
- Max Physical Length: 2500 pF / 35 pF/ft = 71.4 feet.
If you attempt to push 115,200 baud across 70 feet of this cable, the RC time constant formed by the cable's capacitance and the driver's output impedance will round off the sharp square-wave edges of your digital signal. By the time the signal reaches the receiver, the voltage won't cross the logic threshold in time, resulting in framing errors and dropped bytes.
The Fix: If your application only requires 9600 baud, the bit width is 104 µs—plenty of time for the capacitor to charge and discharge through the driver's impedance. At 9600 baud, you can reliably stretch that same Belden 8723 cable well past 100 feet because the standard's capacitance limit is primarily a high-speed edge-rate constraint, not a strict distance limit for slow data. For high-speed, long-distance, you must switch to RS-485.
Where You Meet Serial Cables in Practice
You will encounter serial cables in three primary environments, each demanding a different physical standard:
- Industrial Automation (RS-485): Modbus RTU networks connecting PLCs to variable frequency drives, power meters, and temperature controllers. These use shielded twisted pair (STP) cables daisy-chained across factory floors.
- Embedded Systems Debugging (TTL/USB-to-Serial): Accessing the Linux console on a Raspberry Pi or the bootloader on an ESP32. This typically involves a USB-to-UART cable containing an FTDI or CH340 chip, outputting raw 3.3V TTL on individual flying leads.
- Legacy and Medical Equipment (RS-232): Point-of-sale (POS) receipt printers, CNC mill controllers, and older medical lab analyzers. These almost exclusively use DB9 or DB25 connectors with standard multi-conductor serial cables.
Common Confusions: Protocol vs. Physical Standard
The most frequent mistake hobbyists and junior engineers make is confusing the protocol with the physical standard.
UART (Universal Asynchronous Receiver-Transmitter) is the protocol. It defines the data framing: a start bit, 8 data bits, optional parity, and a stop bit. UART does not define voltage levels or connectors. RS-232 and RS-485 are physical layer standards. They define the voltages, slew rates, and pinouts. You can run UART protocol over an RS-232 physical layer, or over an RS-485 physical layer.
Another common confusion is Null Modem vs. Straight-Through cables. A straight-through RS-232 cable connects Pin 2 to Pin 2, and Pin 3 to Pin 3. This is used to connect a DTE (Data Terminal Equipment, like a PC) to a DCE (Data Communications Equipment, like a modem). If you need to connect two PCs (two DTEs) directly together, you need a Null Modem cable, which crosses the Transmit (TX) and Receive (RX) lines so the TX of one device feeds the RX of the other.
Decision Tree: Selecting the Right Serial Cable and Standard
Use this decision matrix to select the exact standard, cable type, and a proven part number for your next build. Stop guessing and pick the row that matches your physical constraints.
| Application Constraint | Standard | Cable Type Required | Concrete Part Pick |
|---|---|---|---|
| Distance < 50 ft; PC to embedded MCU debug console | USB to TTL (3.3V) | 4-conductor unshielded (USB to flying leads) | FTDI TTL-232R-3V3-WE (Genuine FT232R chip) |
| Distance < 50 ft; PC to legacy POS printer or CNC controller | RS-232 | DB9 to DB9 Straight-Through or Null Modem | Tripp Lite P502-006 (Straight) or P45-006 (Null Modem) |
| Distance 50 ft to 4,000 ft; noisy factory floor; multi-drop network | RS-485 | Shielded Twisted Pair (STP), 120Ω impedance | Belden 9841 (1 pair, 24 AWG, 120Ω) |
| High-speed video/data over 100+ ft; point-to-point only | RS-422 | 2-pair Shielded Twisted Pair (STP) | Belden 9842 (2 pair, 24 AWG) |
Frequently Asked Questions
Can I use standard CAT5e Ethernet cable for RS-485?
Yes, but with caveats. CAT5e is a twisted pair cable, which is excellent for differential signaling. However, its characteristic impedance is 100Ω, whereas the RS-485 standard specifies 120Ω. For short runs (under 500 feet) at lower baud rates (9600 to 19200), CAT5e will work perfectly fine if you use 100Ω termination resistors instead of 120Ω. For long-haul industrial runs at high speeds, stick to 120Ω cable like Belden 9841 to prevent signal reflections. See the SparkFun Serial Communication Tutorial for more on UART framing basics.
Do I need termination resistors on my RS-485 serial cable?
You need a 120Ω termination resistor across the A and B lines at the physical first and last nodes of your RS-485 daisy chain. If your cable run is shorter than 100 feet and your baud rate is below 115,200, the signal reflections won't be severe enough to cause bit errors, and you can often omit them. But in professional installations, always terminate the ends of the bus to guarantee signal integrity.
Why does my RS-232 cable have 9 pins but only use 3 wires?
A standard DB9 RS-232 connector has 9 pins, but basic asynchronous communication only requires three: Pin 2 (RX), Pin 3 (TX), and Pin 5 (Signal Ground). The other pins (DTR, DSR, RTS, CTS, RI) are used for hardware flow control. If your devices don't use hardware flow control, you can safely build or buy a 3-wire 'minimal' serial cable, which is cheaper and has lower capacitance than a full 9-wire assembly.






