A standard RS232 wiring diagram for a basic 3-wire connection maps DB9 Pin 3 (TX) to Pin 2 (RX), Pin 2 (RX) to Pin 3 (TX), and Pin 5 (GND) to Pin 5 (GND) when connecting Data Terminal Equipment (DTE, like a PC) to Data Circuit-terminating Equipment (DCE, like a PLC or modem). Signal ground provides the reference polarity, while data lines swing between +3V and -15V. If you are wiring a null-modem (DTE to DTE), the TX and RX lines cross over to the opposite pins on the receiving end.

RS232 Wiring Diagram: The 3-Wire DTE to DCE Trace

Before stripping wires or crimping ferrules, you must understand the direction of data flow. RS232 communication relies on a strict DTE/DCE relationship. A PC is almost always DTE, while peripherals like modems, barcode scanners, and industrial PLCs are typically DCE. In a straight-through RS232 wiring diagram, every pin maps to its identical counterpart on the opposite connector, but the internal routing of the chips dictates that Transmit must always feed into Receive.

Here is the exact node-by-node trace for a standard straight-through DTE-to-DCE connection using a DB9 connector:

  1. Node 1 (Data Out): The DTE device outputs serial data on its DB9 Pin 3 (TxD). This wire traces directly to the DCE device’s DB9 Pin 2 (RxD).
  2. Node 2 (Data In): The DTE device listens for incoming serial data on its DB9 Pin 2 (RxD). This wire traces directly from the DCE device’s DB9 Pin 3 (TxD).
  3. Node 3 (Common Reference): The DTE device’s DB9 Pin 5 (Signal Ground) traces directly to the DCE device’s DB9 Pin 5. This completes the circuit.
Polarity and Ground Path: Unlike TTL serial (which uses 0V and 3.3V/5V), RS232 uses bipolar signaling. A logic 1 ('Mark' or idle state) is represented by a negative voltage between -3V and -15V. A logic 0 ('Space' or active state) is a positive voltage between +3V and +15V. The ground path on Pin 5 is the absolute 0V reference for these swings. Without a low-impedance common ground connection, the receiver cannot distinguish a logic 1 from a logic 0, resulting in garbage characters or total link failure.

When reading an RS232 schematic, the symbols tell you exactly how to route the physical wires. An arrow pointing away from a block indicates a Transmit (TX) pin. An arrow pointing toward the block indicates a Receive (RX) pin. The standard three-line descending triangle represents the Signal Ground. If you see an 'X' drawn between the TX and RX lines of two identical devices, the diagram is depicting a null-modem crossover, not a straight-through cable.

DB9 Pinout and Terminal Mapping Table

The physical DB9 connector (technically DE-9, but universally called DB9 in the field) has 9 pins arranged in two rows. When looking at the male connector (pins protruding) from the front, Pin 1 is top-left, Pin 5 is top-right, Pin 6 is bottom-left, and Pin 9 is bottom-right. The table below maps the physical terminals to their logical functions for a DTE device.

DB9 Pin Signal Name Abbreviation DTE Direction Diagram Symbol Meaning
1 Data Carrier Detect DCD Input Arrow pointing in (Status)
2 Receive Data RxD Input Arrow pointing in (Data)
3 Transmit Data TxD Output Arrow pointing out (Data)
4 Data Terminal Ready DTR Output Arrow pointing out (Control)
5 Signal Ground GND N/A Descending 3-line ground symbol
6 Data Set Ready DSR Input Arrow pointing in (Control)
7 Request to Send RTS Output Arrow pointing out (Flow Control)
8 Clear to Send CTS Input Arrow pointing in (Flow Control)
9 Ring Indicator RI Input Arrow pointing in (Status)

For 90% of modern DIY and industrial applications (including most Arduino/ESP32 RS232 shield setups and basic PLC comms), you only need Pins 2, 3, and 5. Pins 4, 6, 7, and 8 are used for hardware flow control. If your wiring diagram omits them but your device requires them, you can often loop back DTR to DSR (Pin 4 to Pin 6) and RTS to CTS (Pin 7 to Pin 8) on the DTE side to trick the hardware into thinking flow control is active. See the comprehensive Lammert Bies RS-232 reference for complex loopback diagrams.

Verifying the RS232 Connections with a Multimeter

Never plug a newly crimped RS232 cable into a sensitive microcontroller or expensive PLC without verifying it first. A swapped TX/RX pair will simply fail to communicate, but a miswired ground pin that accidentally routes mains or 24V industrial logic into your PC's serial port will instantly fry the motherboard's UART chip. Use a digital multimeter to perform this three-step verification.

  1. Step 1: Verify Ground Continuity (De-energized) Set your multimeter to the continuity or resistance (Ω) setting. With both devices powered off and unplugged, place one probe on the metal shield of the DTE DB9 connector and the other probe on Pin 5 of the DCE DB9 connector. You should read less than 1 ohm. Next, check Pin 5 to Pin 5. It must read near 0 ohms. If you read infinite resistance (OL), your ground wire is broken or mis-crimped.
  2. Step 2: Check for Dangerous Shorts (De-energized) While still in continuity mode, check Pin 5 (GND) against Pins 2 and 3 (RX/TX) on both ends. The meter must read OL (infinite resistance). A short between ground and a data line will pull the RS232 driver low, completely killing the signal swing and potentially damaging the transceiver IC (like a MAX232 chip).
  3. Step 3: Verify TX Idle Voltage (Energized) Power on the DTE device (e.g., your PC or microcontroller) but leave the DCE device disconnected. Set your multimeter to DC Voltage. Place the black probe on Pin 5 (GND) and the red probe on Pin 3 (TxD). Because RS232 uses inverted logic, an idle TX line outputs a negative voltage. You should read between -5V and -12V. If you read 0V, your transceiver chip is dead or unpowered. If you read a positive voltage (+5V to +12V), your TX and RX pins are swapped in your physical wiring or your schematic interpretation is backwards. For more on the electrical characteristics of these voltage swings, refer to the SparkFun Serial Communication Tutorial.
Safety Note: If you are interfacing RS232 with industrial equipment (like older CNC machines or PLCs), be aware that some legacy manufacturers used the DB9 shell or Pin 5 to carry high-voltage common-mode noise. Always measure AC voltage between the DTE ground and the DCE ground before connecting the cable. If you measure more than 2-3V AC, you need an RS232 optical isolator to prevent ground loops from destroying your equipment.

RS232 Wiring Diagram FAQ

How do I wire an RS232 null modem diagram?

A null modem cable connects two DTE devices (like two PCs or a PC and a router console port) directly without a DCE intermediary. In a null modem wiring diagram, the transmit and receive lines cross over. DTE-1 Pin 3 (TX) wires to DTE-2 Pin 2 (RX), and DTE-1 Pin 2 (RX) wires to DTE-2 Pin 3 (TX). Pin 5 (GND) still connects straight through to Pin 5. For hardware flow control, a full null modem also crosses RTS to CTS (Pin 7 to Pin 8) and loops DTR back to DSR locally on each connector.

What do the RS232 wiring diagram symbols mean for hardware flow control?

In schematic diagrams, hardware flow control lines (RTS, CTS, DTR, DSR) are usually drawn with dashed lines or grouped separately from the main solid data lines (TX, RX). An arrow pointing out from RTS (Request to Send) means the device is asserting it wants to transmit. An arrow pointing in to CTS (Clear to Send) means the device is receiving permission to transmit. If your diagram shows these lines simply terminating in a small 'X' or a loopback arrow, it indicates the designer is using a 3-wire setup and has tied the flow control pins together locally to satisfy the UART hardware requirements.

Can I use Cat5e cable for an RS232 wiring diagram?

Yes, Cat5e is excellent for RS232, provided you manage the capacitance. RS232 drivers are specified to handle up to 2500 pF of cable capacitance. Standard Cat5e has a capacitance of about 15-17 pF per foot. This theoretically limits your run to about 150 feet. However, because RS232 is unbalanced (single-ended), it is highly susceptible to electromagnetic interference (EMI). When using Cat5e, use a twisted pair for TX and GND, and a separate twisted pair for RX and GND. Keep the cable away from VFDs and AC contactors, or use a shielded Cat5e (F/UTP) with the drain wire tied to the DB9 metal shell at one end only.

Why is my RS232 connection receiving garbage characters despite correct wiring?

If your pinout traces perfectly and your multimeter verifies the negative idle voltage on TX, garbage characters almost always point to a baud rate mismatch or a grounding issue. First, verify that both devices are set to the exact same baud rate, data bits (usually 8), parity (usually None), and stop bits (usually 1) — commonly written as 9600-8-N-1. Second, check your ground wire. If the ground wire is too long or thin, voltage drops across the wire will shift the 0V reference, causing the receiver to misinterpret the voltage thresholds for logic 1 and 0. Upgrading to a heavier gauge wire for Pin 5 or adding a local ground bond often clears up intermittent character corruption.