Connectors & Pinouts
A wrong pin is the most common reason a "finished" board won't talk. Click through the interactive DE-9 to learn every RS232 signal, wire up RS485 two-wire and RS422 four-wire terminal blocks, and — most importantly — learn the A/B naming trap that has cost engineers whole afternoons.
The 9-pin D-sub (correctly DE-9, commonly called DB9) is the classic RS232 connector. This is the DTE (computer/male) view. Click any pin to see its function.
Unlike RS232's fixed D-sub, RS485/RS422 field wiring has no single mandated connector. Screw terminal blocks dominate industrial gear; RJ45 is common in structured cabling. What matters is the signal set, not the housing.
| Signal | RS485 (2-wire, half-duplex) | RS422 / RS485 4-wire (full-duplex) |
|---|---|---|
| Data pair 1 | A / B (also D+ / D−) | TX+ / TX− (a.k.a. Y / Z) |
| Data pair 2 | — (shared, half-duplex) | RX+ / RX− (a.k.a. A / B) |
| Ground / reference | GND / signal common | GND / signal common |
| Shield | Chassis (one end) | Chassis (one end) |
Here's the one that bites everyone. The RS485 standard defines the pins as A and B, where A is the inverting and B is the non-inverting line. But many transceiver vendors and connector silkscreens label them the opposite way, or use D+/D− with no consistent mapping to A/B.
TIA-485 standard
A = inverting (−)
B = non-inverting (+)
Idle (mark): B > A
Many datasheets / silkscreens
Label "A" as the + and "B" as the − — the reverse. D+/D− add more confusion.
Answer to reveal instant feedback.