Atlas Robotics
Hardware InterfacesIntermediate

What is RS232? The classic voltage standard behind the COM port

Atlasbot · 16/8/2026 · 10 min read

What is RS232? The classic voltage standard behind the COM port
UART logic (TTL) vs true voltage RS232, need level shifting IC

A lot of older industrial equipment (PLCs, CNC machines, some older sensors) still use the RS232 port (also known as the "COM port"), and newbies often confuse RS232 with UART because both are "serial transmission". In fact, these are two concepts at two different layers: UART is a way of framing data (logical protocol), while RS232 is a physical voltage standard — and this voltage difference is what makes them impossible to connect directly to each other.

Key concepts

The UART pin on an MCU operates at a logic voltage level of TTL — 0V for bit 0, 3.3V or 5V for bit 1. RS232 uses a completely different voltage range: about +3V to +15V for bit 0, and -3V to -15V for bit 1 — even polarity reversal compared to conventional logic.

Therefore, even though it uses the same data frame type (start bit, 8 data bits, stop bit) as UART, cannot directly connect the UART pin of the MCU to the RS232 port — it requires a voltage level converter IC (the most classic is MAX232) placed in the middle to convert back and forth.

Why does it still exist?

The higher voltage (up to ±15V) makes RS232 more resistant to interference than conventional TTL over distances of a few meters to several tens of meters — reason enough for many older industrial devices to retain this standard rather than replace it, even though newer technology (USB, Ethernet) has long been popular.

In short: RS232 = UART (same data framing) + higher voltage, reversed polarity (voltage standard is different from TTL) — always need a level converter IC when connecting MCU to RS232 device, absolutely do not connect straight wire.

How it works

MCU (TTL, 0V/3.3V) MAX232 (level shifting) RS232 device (±V)
   TX ────────────────────► switch 3.3V → ±15V ────────► RX (DB9)
   RX ◄──────────────────── transfer ±15V → 3.3V ◄──────── TX (DB9)

Technical details

Parameters

Valid voltage range according to the RS232 (EIA-232) standard — the region between -3V and +3V is unknown region, signals falling here may be misinterpreted by the receiver:

Logical stateValid voltage
Bit 0 (space)+3V to +15V
Bit 1 (mark)-15V to -3V
Unknown areas (avoid)-3V to +3V

The original standard stipulates a maximum cable distance of ~15m at speeds up to 20kbps; Modern transceiver ICs (like the MAX232 and its successors) actually achieve speeds and distances much higher than this conservative figure under good cabling conditions.

Protocol

In addition to the two data wires TX/RX and GND, the full RS232 specification also defines additional hardware handshaking signals (hardware handshaking): RTS/CTS (Request/Clear To Send — ready to send/receive) and DTR/DSR (Data Terminal/Set Ready — indicates the device is connected and ready). Most simple RS232 connections actually use only 3 wires (TX, RX, GND) and ignore these handshake signals, but some older industrial equipment requires these signals to transmit data.

Practical applications

RS232 is often encountered when integrating robots/AMR with old PLCs or specialized measurement equipment that already exists in the factory (eg: a robot needs to read data from an industrial electronic scale that only has an RS232 port) - not an option for new designs, but it is necessary to know to "talk" to existing hardware instead of having to replace the entire device that is working well. With a completely new connection, most modern designs choose direct TTL level UART (when distances are short) or RS485 (next article, when long distances and better noise immunity are needed) instead of RS232.

Practical example

How to quickly check whether a strange port is real TTL or RS232 with a multimeter, before connecting to the MCU:

Measure TX pin voltage compared to GND when the transmission line is idle:

TTL UART: reads ~3.3V or ~5V (stable high level)
Real RS232: read about -5V to -15V (mark, RS232 sleep level is NEGATIVE voltage)

If a negative voltage is measured, this is definitely a real RS232 port - absolutely do not connect directly to the UART pin of the MCU (can only withstand 0-3.3V/5V), it must be through a level converter IC like MAX232 first.

Common mistakes

  • Connect the RS232 port directly to the UART pin of the MCU — negative voltage and high amplitude (up to ±15V) far exceed the tolerance limit of normal GPIO pins (usually 0 to Vcc+0.3V), almost certainly damaging the MCU pin immediately — always through a level converter IC like MAX232.
  • Mistaking a straight-through cable with a null-modem cable — some RS232 connections need a "null-modem" cable (TX-RX crossed between the two ends, similar to the UART principle) while others need a straight cable, depending on whether the two devices are acting as DTE or DCE — plugging in the wrong type of cable causes the connection to not work even if the hardware is perfectly good.
  • Ignore the hardware handshake signal when the device requests it — some older industrial devices refuse to send data if the correct RTS/DTR signal is not seen at a valid level — if only 3 wires are connected (TX/RX/GND) and the device is still silent, check the datasheet to see if a handshake signal is required or not.
  • Mistaken pin 2 (TX) and pin 3 (RX) on DB9 connector — the pin order between DTE (computer/MCU) and DCE (modem/peripheral) devices may be opposite depending on the standard — always check the correct pinout for each specific device, do not assume they are the same.

Conclusion

RS232 is not "another version of UART" but is a completely separate physical voltage standard that only shares data framing with UART — always requiring a level converter IC when paired with a modern MCU. Although rarely used for new designs, properly understanding RS232 is still necessary when robots must integrate with existing industrial equipment. The next article in the column is about RS485 — the successor standard that is more popular in modern industry, supporting longer distances and multiple devices on the same bus.

Get new articles and lessons by email

When a new technical article or course module is published, Atlas Robotics sends you a short email. No spam.

Unsubscribe any time with the link in each email. See our Privacy policy.

What is RS232? The classic voltage standard behind the COM port — Atlas Robotics