[← Back to WireChartUSA Master Cable Cheat Sheet]
| Quick Answer: On a DB9 RS-232 port, pin 2 is receive data, pin 3 is transmit data and pin 5 is signal ground. A null modem cable swaps pins 2 and 3 so two computers or DTE devices can talk directly. |
RS-232 is the classic serial interface still found on industrial controllers, network switch console ports, CNC machines, lab instruments and point-of-sale gear. The nine-pin connector is properly called DE-9, but nearly everyone calls it DB9. Computers and terminals are wired as DTE with male connectors; modems and many instruments are DCE, which reverses the direction of the data and handshake pins. Signals swing between roughly plus and minus 3 to 15 V, so never connect RS-232 directly to 3.3 V or 5 V microcontroller pins without a level shifter like a MAX232. A minimal working link needs only TXD, RXD and ground; the handshake lines RTS, CTS, DTR and DSR are optional depending on flow control settings. There is no wire color standard, so check each conductor with a meter. Keep cables under about 15 m (50 ft) at 19,200 bps, or use RS-485 for longer distances.
| Pin | Wire Color (US) | Signal | Voltage / Current | Wiring Notes |
|---|---|---|---|---|
| 1 | No standard color | DCD (Data Carrier Detect) | +/-3 to +/-15 V (typically +/-5 to +/-12 V) | Input to DTE |
| 2 | No standard color | RXD (Receive Data) | +/-3 to +/-15 V (typically +/-5 to +/-12 V) | Input to DTE |
| 3 | No standard color | TXD (Transmit Data) | +/-3 to +/-15 V (typically +/-5 to +/-12 V) | Output from DTE |
| 4 | No standard color | DTR (Data Terminal Ready) | +/-3 to +/-15 V (typically +/-5 to +/-12 V) | Output |
| 5 | No standard color | GND (Signal Ground) | 0 V reference | Always connect |
| 6 | No standard color | DSR (Data Set Ready) | +/-3 to +/-15 V (typically +/-5 to +/-12 V) | Input |
| 7 | No standard color | RTS (Request To Send) | +/-3 to +/-15 V (typically +/-5 to +/-12 V) | Output |
| 8 | No standard color | CTS (Clear To Send) | +/-3 to +/-15 V (typically +/-5 to +/-12 V) | Input |
| 9 | No standard color | RI (Ring Indicator) | +/-3 to +/-15 V (typically +/-5 to +/-12 V) | Input |
| Spec | Value |
|---|---|
| Connector | DE-9 (often called DB9), male on PC/DTE |
| Null modem | Swap 2-3, 7-8, 4-6 (+1) |
| Max length | ~15 m (50 ft) at 19,200 bps |
1 DCD, 2 RXD, 3 TXD, 4 DTR, 5 GND, 6 DSR, 7 RTS, 8 CTS, 9 RI (DTE side).
A serial cable that crosses TXD and RXD (pins 2 and 3) and usually RTS/CTS and DTR/DSR, so two DTE devices can communicate directly.
Logic levels between about plus and minus 3 and 15 V, typically plus and minus 5 to 12 V. A negative voltage represents logic 1.
Master wire tables: Solid/Stranded + Cu/Al Ampacity | Metric ↔ AWG/MCM
© 2026 WireChartUSA · US reference based on NEC (NFPA 70), TIA/EIA and UL standards. For information only; verify with the current code adopted by your local AHJ and a licensed electrician. Updated 2026-12-04. Home