</>EmbeddedInterview

How does RS-232 differ from RS-485 and TTL UART?

MediumCommunication Protocols

Short answer: They are different physical layers for the same UART framing. TTL/CMOS UART uses logic levels (0/3.3 V or 0/5 V) for short board-level connections. RS-232 uses single-ended, inverted ±3 to ±15 V signals, point-to-point, up to about 15 m. RS-485 uses a differential pair (A/B), is very noise-immune, supports multi-drop buses of 32 unit loads (more with fractional-load transceivers) over up to 1200 m, usually half duplex, and needs termination and driver-enable control.

TTL UART RS-232 RS-485
Signalling single-ended logic level single-ended, ±3 to ±15 V, inverted differential (A−B > +200 mV = 1)
Topology point to point point to point multi-drop bus
Distance cm to < 1 m ~15 m (depends on baud) up to 1200 m (at lower rates)
Speed MCU-limited ~115 kbps typical up to 10–50 Mbps at short distance
Duplex full full half (2-wire) or full (4-wire RS-422 style)
Noise immunity low moderate high (common-mode rejection)
Transceiver none MAX3232-style MAX485/THVD-style

RS-485 design points

  • Termination: 120 Ω at both ends of the bus to stop reflections; fail-safe biasing resistors keep the idle bus at a defined level when no driver is active.
  • Direction control: in half duplex, the MCU enables the driver (DE) before sending and disables it after the last stop bit has left the shift register (wait for the UART "transmission complete" flag, not just "TX empty"), otherwise the last byte is cut off. Many MCUs can drive DE automatically.
  • Topology: a daisy-chained bus with short stubs, not a star.
  • Ground: RS-485 tolerates ground offsets (−7 V to +12 V common mode) but still needs a reference ground or isolation.
  • Protocols on top: Modbus RTU, PROFIBUS, DMX512, BACnet MS/TP, many proprietary protocols.

Interview catch: "Can you connect an MCU's UART directly to an RS-232 port?" No: RS-232 levels are inverted and up to ±15 V; you need a level-shifting transceiver.