How RS-232 works
RS-232 is a standard for serial data between two devices, first published in 1960 and now maintained as TIA-232-F. RS stood for Recommended Standard. It defines the voltage levels, timing, signal names and connectors for a link where bits are sent one after another on a transmit line and received on a separate receive line, so data can flow in both directions at once.
Each signal is single-ended: it is measured against a shared ground wire. A logic 1, called a mark, is a voltage between −3 V and −15 V, and a logic 0, called a space, is between +3 V and +15 V. The band between −3 V and +3 V is undefined. Those relatively large swings give RS-232 reasonable noise margins over short cables, but because there is no differential pair, noise and ground differences limit how far it can go.
Inside the computer, a UART chip turns bytes into a serial bit stream, and an RS-232 transceiver converts the logic levels to RS-232 voltages. Both ends must agree on the baud rate, data bits, parity and stop bits, for example 9,600 bit/s, 8 data bits, no parity and 1 stop bit, written 9600 8N1.
RS-232 DB9 pinout
Most RS-232 ports today use the 9-pin D-sub connector, often called DB9 (properly DE-9). The table shows the standard pinout on a computer, which RS-232 calls data terminal equipment (DTE).
| Pin | Signal | Name | Direction at the computer |
|---|---|---|---|
| 1 | DCD | Data carrier detect | Input |
| 2 | RXD | Receive data | Input |
| 3 | TXD | Transmit data | Output |
| 4 | DTR | Data terminal ready | Output |
| 5 | GND | Signal ground | Common |
| 6 | DSR | Data set ready | Input |
| 7 | RTS | Request to send | Output |
| 8 | CTS | Clear to send | Input |
| 9 | RI | Ring indicator | Input |
A device such as a modem is data communication equipment (DCE) and has the directions reversed, so a straight cable joins a DTE to a DCE. Two computers need a crossed cable, covered in our serial port FAQ. Many simple devices use only pins 2, 3 and 5.
Speed and cable length
The original standard covers data rates up to 20 kbit/s, but modern transceivers commonly run at 115,200 bit/s and some reach 1 Mbit/s. Cable length is limited by capacitance rather than a fixed distance: the standard allows up to 2,500 pF, which works out at roughly 15 m (50 ft) with typical cable. Shorter, low-capacitance cable allows higher speeds or longer runs, and slower rates tolerate more. For longer or noisier runs, RS-422 and RS-485 take over; our RS-232 vs RS-485 FAQ compares them.
Flow control and handshaking
Flow control stops one device sending data faster than the other can handle it. RS-232 supports two methods. Hardware flow control uses the RTS and CTS lines: the computer raises RTS when it wants to send, and the device raises CTS when it is ready to receive. Some older equipment also expects DTR and DSR to be active before it will talk at all. Software flow control, often called XON/XOFF, sends special characters in the data stream to pause and resume transmission, which saves wires but cannot be used with binary data that might contain those characters.
Many modern devices use no flow control, relying on small messages and buffers. When a link connects but data is lost or nothing arrives, a mismatch in flow control settings is one of the first things to check.
Where RS-232 is still used
RS-232 has largely disappeared from office PCs, but it remains common on industrial equipment because it is simple, deterministic and supported by decades of installed machines.
-
//
Lab and test instruments. Spectrometers, analysers and meters often report readings over RS-232.
-
//
PLCs and controllers. Configuration and programming ports on controllers, drives and network equipment.
-
//
Scales and readers. Weighing scales, barcode scanners and card readers in retail and logistics.
-
//
Console and service ports. Routers, switches and embedded boards expose a serial console for setup and recovery.
-
//
Legacy equipment. Machine tools and process equipment that outlive the computers controlling them.
RS-232 on industrial computers
Industrial PCs and panel PCs keep native COM ports because USB-to-serial adapters can change port numbers, add latency and come loose. Look for ports that can be switched between RS-232, RS-422 and RS-485, ESD protection, optional 5 V or 12 V power on pin 9 for small peripherals, and electrical isolation where cables run near motors or drives. On rugged and vehicle systems, serial is often brought out on locking M12 connectors; our M12 A-coded FAQ covers the usual connector. The British Steel case study shows serial on M12 connectors linking panel PCs to plant equipment, and our serial I/O modules add RS-232 ports where a system needs more.
Quick answers on RS-232
RS-232: common questions
What is RS-232 used for?
Connecting one device to another over a short serial link. Typical uses are instruments, scales, barcode readers, PLC programming ports and console access to network and embedded equipment.
Is RS-232 the same as a serial port?
It is the most common kind. A serial port sends data one bit at a time, and RS-232 is the electrical standard most PC COM ports use. RS-422 and RS-485 are serial too.
How do I connect RS-232 to a laptop?
Use a USB-to-RS-232 adapter. It appears as a virtual COM port. Choose one with a reputable chipset and driver, and check whether the device needs a straight or crossed cable.
Can RS-232 be converted to RS-485?
Yes, with an active converter. It changes the single-ended RS-232 signal into a differential RS-485 signal and usually handles transmit and receive switching automatically.
Is RS-232 still used today?
Yes, widely in industry. It has gone from consumer PCs but remains standard on instruments, controllers and network equipment, which is why industrial computers keep native COM ports.
We specify and fit RS-232 ports, cables and connectors on industrial computers as standard, set the port modes in the BIOS and test communication with your equipment before each system ships.