RS232 cable (wiring for Crossed / Straight)

There are two typical RS232 cables used in industry.

  • Crossed RS232 cable (or known as a null modem cable)
  • Straight RS232 cable

RS-232 Cable Wiring: Crossed vs. Straight

When working with RS-232 serial communication, choosing the right cable wiring is critical. Some applications require a straight-through cable, while others need a crossed (null-modem) cable. This guide explains the difference, shows pin-outs, and provides troubleshooting tips.

DTE vs. DCE: Why Cable Type Matters in RS-232

Definitions:

  • DTE (Data Terminal Equipment): Devices such as PCs, printers, terminals, and data loggers.
  • DCE (Data Communication Equipment): Devices such as modems, routers, and multiplexers.

Connection Rules:

  • DTE ↔ DCE: Use a straight-through cable.
  • DTE ↔ DTE or DCE ↔ DCE: Use a cross (null-modem) cable.

Cross Cable RS232 wiring

Cross-cable wiring for RS-232 usually occurs between two DCE (Data Communication Equipment) devices or two DTE (Data Terminal Equipment) devices.

Typically, for the connection between DTE↔DTE, DCE↔DCE devices,
TXD connects directly to RXD,
RXD connects directly to TXD.

RS232 Cross Cable (Null Cable) Connection
RS232 Cross Cable wiring

*** Click here for RS232 connector pinout (male/female).

Straight Cable RS232 wiring

Typically, for the connection between DTE↔DCE devices,
TXD connects directly to TXD,
RXD connects directly to RXD.

RS232 Straight Cable
RS232 Straight Cable wiring

*** Click here for RS232 connector pinout (male/female).

When to Use Each Cable

  • Straight Cable: Connecting PC ↔ Modem, Router ↔ Terminal.
  • Cross Cable: Connecting PC ↔ PC, Modem ↔ Modem, Router ↔ Router.
  • If unsure, start with straight; if no communication occurs, try cross.

Troubleshooting RS-232 Connections

  1. No data or garbage characters → Check Tx/Rx wiring.
  2. Connection drops → Verify RTS/CTS or DTR/DSR control signals.
  3. Cable too long → RS-232 is limited to ~15m (50ft). Use shielded cable for reliability.
  4. Testing → Use a cable tester (like our CCT-01 Cable Connection Tester) to quickly verify wiring connections.

Cable Assembly Tips

  • Use shielded cable to reduce noise.
  • Ensure connectors (Dsub-9, Dsub-25) are securely crimped or soldered.
  • Label cables clearly to avoid mix-ups.
  • Keep cables under the recommended length for stability.

FAQs

Q: Can I convert a straight cable into a cross cable?
Yes — with an adapter (null-modem adapter) or by re-wiring.

Q: Do I need all pins connected?
Not always. Many simple RS-232 applications only require Tx, Rx, and GND.

Q: What’s the difference between DB-9 and DB-25?
Dsub-25 has more pins, historically used for extra control signals. Most modern RS-232 devices use Dsub-9.

Related Guides

Cable Wire Size and Current Capacity Rating Guide

This is a general cable wire size guide to help you choose the correct wire size for your electrical project.

Choosing a thicker wire provides higher current carrying capacity. It is safer to use thicker wire to conduct the current, but thicker wire is going to cost more. This guides provides you a gauge to select the most appropriate cable size.

The variety of cable brands varies in quality. The cable current conducting material and the insulation jacket material do have an impact of the amount of ampere current that a wire can conduct. The cable length and temperature of the conducting environment also plays a part. A good conducting material has lower resistance or better conductivity, produce less heat, therefore can carry more current. A good insulation jacket that can endure higher heat can handle more current before the jacket gets melted and fails.

*** Important Notes: The following wire size and current is only an estimate for a quick reference guide when selecting your cable size. It is important to check on the datasheet of the cable directly from the manufacturer. It is recommended to provide more buffer to the current capacity for your application.

Wire Size and Current Rating Table Guide

This wire size and current rating table provides a quick lookup table for your cable selection.
It is recommended to use a wire capacity that is 2 times of what your application is expecting to use.
If you want a more detailed computation, check out the next section for the calculation.

Projected Maximum
Operating Current
Wire Size
(AWG)
Copper Wire
Diameter Ø
Cross-sectional
Area
Current Capacity
(estimated)
0.1A
0.3A
0.5A30AWG
Wire Wrapping wire
0.3mm0.05mm20.8A
1A28AWG0.36mm0.08mm21.25A
2A27AWG
3A26AWG0.46mm0.14mm23.5A
5A24AWG
CAT5e Network Cable
0.61mm0.2mm25A
22AWG0.78mm0.33mm28.73A
10A21AWG
20AWG0.92mm0.5mm213.87A
25A17AWG1.34mm1.06mm229.2A
16AWG1.31mm2 (closest 1.5mm2)
50A14AWG
Electrical Wire
1.78mm2.07mm2 (closest 2.5mm2)55.6A
12AWG
Electrical Wire
about 4mm2
10AWG
Electrical Wire
about 6mm2
Table: Estimated wire current carrying capacity.

Calculate current capacity and voltage drop

For application that cannot afford for thicker wire with higher current capacity, it is important to calculate close to your projected situation. We will need to know the amount of current the wire can carry, as well as the expected drop in voltage over the wire distance (to and from).

Wire conducting material and their resistivity.

Wire MaterialResistivity per metre
Copper0.0174 μΩ.m1.724 x 10-8 Ω.m
Aluminum0.0265 μΩ.m2.65 x 10-8 Ω.m
Silver0.0265 μΩ.m2.65 x 10-8 Ω.m
Carbon0.1 μΩ.m10 x 10-8 Ω.m
Iron0.1 μΩ.m10 x 10-8 Ω.m
Table: Wire material resistivity

The formula to compute the resistance of a particular wire material is base on normal room temperature of 20 °C.

Resistance, R = ρ L / A Ω

where
R = resistance of the conductor (ohms, Ω)
ρ = resistivity of the conductor material (ohm metre, Ω m)
L = length of conductor (m)
A = cross-sectional area of conductor (m2)

Buy Cable Connection Tester and Accessories

Accessories

Accessories for CCT-01 Cable Connection Tester.

Select for your purchase here.

Go Back to CCT-01 product page