USB to DB9 Serial Adapter Pinout Guide
A USB to DB9 serial adapter turns a USB port into a nine pin RS-232 interface. Because the DB9 carries data, ground, and modem control signals at the same time, the pin assignment decides whether a link works at all. This guide walks through the DB9 pin map, the difference between 3-wire, 5-wire, and 9-wire builds, and the legacy wiring faults that most often break a connection on site.
Quick Answer / Summary
The DB9 pin map assigns DCD to pin 1, RX to pin 2, TX to pin 3, DTR to pin 4, GND to pin 5, DSR to pin 6, RTS to pin 7, CTS to pin 8, and RI to pin 9. A 3-wire adapter uses only pins 2, 3, and 5. A 5-wire build adds RTS and CTS for hardware flow control. A 9-wire build carries every signal, including carrier detect and ring indicator.
Reading the DB9 Pin Map
The DB9 connector carries nine pins, and each has a fixed role in the RS-232 standard. Data moves on pins 2 and 3, ground sits on pin 5, and the remaining pins handle modem control and handshaking.
Pin numbering follows the connector face, so confirm orientation with a magnifier before you probe a cable with a meter.
The Nine Pins and Their Roles
Pin 1 is DCD, pin 2 is RX, pin 3 is TX, pin 4 is DTR, pin 5 is GND, pin 6 is DSR, pin 7 is RTS, pin 8 is CTS, and pin 9 is RI.
DTE and DCE Direction
On a DTE port, TX is an output and RX is an input. A DCE port reverses that relationship, which is why cable wiring depends on both ends.
3-Wire, 5-Wire, and 9-Wire Builds
Adapters are sold with different numbers of conductors. The count determines whether the link supports only data or also modem control and hardware flow control.
Pins 4 and 6 seldom carry data, yet some devices refuse to transmit until DTR is asserted. A 9-wire adapter drives those lines, while a 3-wire build leaves them floating.
What Each Build Carries
A 3-wire build uses RX, TX, and GND. A 5-wire build adds RTS and CTS for hardware flow control. A 9-wire build carries every pin, including DCD, DTR, DSR, and RI.
Choosing by Device Requirement
Pick 3-wire for simple command and response devices, 5-wire when the device needs RTS/CTS, and 9-wire when the device monitors carrier or ring signals.
Legacy Wiring Pitfalls
Most failures trace back to two mistakes: assuming every DB9 is wired the same way, and ignoring the difference between DTE and DCE. Both produce a link that looks connected but moves no data.
Baud rate mismatch is the second most common fault. A port left at 115200 talking to a device fixed at 9600 8N1 produces unreadable characters or no response at all, and the wiring is often blamed first. Confirm both ends before you rewire a connector.
Null Modem Crossover
Two DTE ports cannot talk over a straight cable. A null modem swaps TX and RX and crosses the handshake pairs so both sides see the signals they expect.
Wrong Gender and Wrong Pin
A male to female mismatch needs an adapter, not force. Also confirm that the adapter tail gender matches the device port before inserting it.
Verifying the Adapter Before Deployment
Bench test each adapter with a loopback plug or a known good device before it reaches the field. Confirm the COM port appears, the baud rate matches, and a short command returns a response.
Label each adapter with its COM number and the device it serves so replacements are quick and repeatable.
Loopback and Continuity Checks
A loopback plug ties TX to RX so a terminal program echoes every character it sends. If the echo returns, the adapter, driver, and COM number all work, and the fault sits in the cable or the remote device. For handshake builds, jumper RTS to CTS and DTR to DSR so the port reports itself ready.
Comparison Table
| Pin | Signal | Direction |
|---|---|---|
| 1 | DCD | Input |
| 2 | RX | Input |
| 3 | TX | Output |
| 5 | GND | Common |
| 7 | RTS | Output |
| 8 | CTS | Input |
Table: DB9 pin map for a DTE adapter
Practical Application Scenarios
- An integrator receives an adapter with a female tail for a male DB9 device port and confirms the gender before plugging it into a rack controller.
- A technician builds a null modem cable to connect two DTE ports directly and crosses TX to RX on pins 2 and 3.
- A plant engineer selects a 5-wire adapter so the flow meter can use RTS and CTS hardware handshaking instead of software flow control.
- A support team labels each adapter with its assigned COM number so field swaps keep the same port number in the polling software.
Related Products and Further Reading
- DB9 adapters and cable assemblies – Compare 3-wire, 5-wire, and 9-wire builds before you order.
- send us your wiring question – Describe both ends of the link and we will confirm the correct crossover.
- compliance and certifications – Check regional compliance markings for serial and USB assemblies.
- USB to serial console cable guide – See how DB9 and RJ45 console wiring differ in practice.
Frequently Asked Questions
Which DB9 pins does a 3-wire adapter use?
Pins 2, 3, and 5, which carry RX, TX, and ground. Handshake pins are not connected in this build.
Do I need a null modem for a USB to DB9 adapter?
Only when both ends are DTE. If the device is DCE, a straight adapter is usually correct. Check the device manual first.
Why does my link connect but transfer no data?
The usual cause is a missing TX to RX crossover or a mismatched baud rate and framing. Verify wiring and settings together.
Can a 9-wire adapter replace a 3-wire one?
Yes, as long as the extra handshake pins do not conflict. A 9-wire build covers every role a 3-wire build supports.