C:\>ConventionalMemory.io

Guide · Updated October 8, 2026 · 7 min read

Serial and parallel port pinouts and null modem cables

Two old computers, one cable and no network card. A good null modem cable is still the shortest path to move files between vintage machines, and the same pin tables fix a stubborn modem or a mouse that will not wake up.

How we pick. A product makes the list only when reviewers and long-time collectors keep recommending it, it does one job well and it will still work in five years. No filler, no mystery brands, and no paid placements. Not every item has been through our own bench, so we go by reputation. Prices change, so check the listing.

Some links on this page are affiliate links. If you buy through one, Conventional Memory earns a small commission at no cost to you. Affiliate links. As an Amazon Associate I earn from qualifying purchases. Disclosure

Careful. Always power both machines off before plugging in a serial or parallel cable. These ports are not hot-pluggable, and a wrong wire can damage a port.

DB9 serial port pinout

The PC serial port is a male 9-pin connector (DE-9) on the computer. It is wired as data terminal equipment, or DTE. Modems and other peripherals are data communications equipment, or DCE, so a plain straight-through cable joins a computer to a modem.

DB9 serial port (PC side)
PinSignalDirectionMeaning
1DCDInData carrier detect
2RXDInReceive data
3TXDOutTransmit data
4DTROutData terminal ready
5GNDNoneSignal ground
6DSRInData set ready
7RTSOutRequest to send
8CTSInClear to send
9RIInRing indicator

DB25 serial port pinout and the 25 to 9 pin map

Early PCs used a male 25-pin connector for serial. Only nine of its pins are used for the standard signals, so adapters just rearrange them.

DB25 serial pins and the matching DB9 pins
DB25 pinSignalDB9 pin
2TXD3
3RXD2
4RTS7
5CTS8
6DSR6
7GND5
8DCD1
20DTR4
22RI9

A male 25-pin on the back of an old PC is a serial port. The printer port on a PC is a female 25-pin. Plugging one into the other will not work, and the sockets are a handy way to tell them apart.

Null modem cable wiring

A null modem cable joins two DTE devices, such as two PCs, by crossing the transmit and receive wires so that each machine's TXD arrives at the other's RXD. There are three common versions.

DB9 to DB9 null modem wiring
End A pinEnd B pinWire
2 (RXD)3 (TXD)Receive to transmit
3 (TXD)2 (RXD)Transmit to receive
5 (GND)5 (GND)Signal ground
7 (RTS)8 (CTS)Full handshake only
8 (CTS)7 (RTS)Full handshake only
4 (DTR)6 (DSR) and 1 (DCD)Full handshake only
6 (DSR) and 1 (DCD)4 (DTR)Full handshake only

For the simplest cable, use only the first three rows: 2 to 3, 3 to 2 and 5 to 5. This three-wire version works with software that does not check handshake lines, such as many file transfer programs. The full handshake version works with software that waits for CTS or DSR, and is the safer choice. Commercial cables labelled "Laplink" or "null modem" are normally the full version.

Loopback plug for testing a port

A loopback plug connects a port back to itself so a test program can send data and read it straight back. You can make one with a spare connector.

  • Join pin 2 to pin 3 (TXD to RXD).
  • Join pin 7 to pin 8 (RTS to CTS).
  • Join pins 1, 4 and 6 together (DCD, DTR and DSR).
  • Then run a diagnostic such as MSD or a terminal program that supports a loopback test, and watch for the characters you type coming back.

Signal levels, baud rates and UART chips

RS-232 uses voltages, not 5 V logic. A logic 1 (mark) is a negative voltage between -3 and -15 V, and a logic 0 (space) is a positive voltage between +3 and +15 V. Most PC ports swing about +12 V and -12 V. Never connect a modern 3.3 V or 5 V TTL serial pin directly to an RS-232 port. Use a level converter.

The port itself is a UART, a chip that turns bytes into a serial stream. The chip decides how fast and how reliably the port runs.

PC UART chips
ChipBufferGood for
8250NoneThe original PC and XT. Fine for mice and slow modems, struggles above 9,600 bps
16450NoneMost 286 and early 386 boards. Reliable at 19,200 bps in plain DOS
1655016-byte FIFO, buggyEarly version. Often the FIFO is unusable
16550A16-byte FIFO that worksThe one to want. Needed for 14.4k modems and above, especially under Windows or other multitasking

The standard speeds are multiples of 300 bps, up to 115,200 bps with the usual 1.8432 MHz clock. For a null modem link between two modern-ish vintage PCs, 115,200 bps with a 16550A on both ends is the sweet spot.

Parallel port (LPT) pinout

The PC printer port is a female 25-pin connector (DB25). One data byte goes out on eight lines, with control lines for handshaking.

DB25 parallel port
PinSignalDirection
1STROBEOut
2 to 9Data bits D0 to D7Out (two-way on EPP and ECP)
10ACKIn
11BUSYIn
12Paper outIn
13SelectIn
14Auto feedOut
15ErrorIn
16InitializeOut
17Select inOut
18 to 25GroundNone

The port addresses are 378h for LPT1, 278h for LPT2 and 3BCh on some older cards. Standard mode moves roughly 50 to 150 KB/s. EPP and ECP, defined by IEEE 1284, reach about 2 MB/s. ECP can use DMA channel 3.

Moving files between two DOS machines

Once you have a cable, the free tools are already on your disk. MS-DOS 6 includes INTERLNK and INTERSVR.

  1. Connect the machines. Power both off, join them with the null modem (for serial) or a parallel transfer cable (for LPT), then power both on.
  2. Start the server. On the machine that has the files, run INTERSVR. It shows the screen it is using and waits.
  3. Start the client. On the other machine, add DEVICE=C:\DOS\INTERLNK.EXE to CONFIG.SYS and reboot, or run INTERLNK to see the new drive letters that point to the other machine's drives.
  4. Copy. Use COPY or XCOPY with those drive letters as if they were local drives.
  5. No driver? Use a terminal. Any terminal program with ZMODEM or XMODEM can send files over a plain serial null modem. Set both ends to the same speed, 8 data bits, no parity and 1 stop bit.

Setting up a COM port in DOS

The MODE command sets the speed and format. This sets COM1 to 9,600 bps, no parity, 8 data bits, 1 stop bit:

MODE COM1:9600,N,8,1

If a terminal program shows the other machine's text as garbage, the speed or the data format does not match. If nothing appears at all, check the cable wiring, then the IRQ (see our IRQ and DMA cheat sheet) and whether the port is enabled in the BIOS.

Cables, adapters and a meter

Most serial trouble is a cable wired differently from the one you assumed. Check with a meter and keep a few adapters on hand.

Null modem cable (DB9)

Cable

Crosses transmit and receive so two computers can talk directly. Check the pinout against the table above before you trust any cable.

StarTech FTDI USB to serial adapter

Modern PC to old serial port

An FTDI-based adapter is the safe choice for talking to vintage hardware from a modern PC. Avoid unbranded adapters with fake chips.

DB9 and DB25 serial gender changers

Adapters

Cheap, and the thing you always need when the plug is the wrong sex or size.

Multimeter

Pick your level

Checks battery voltage, tests continuity and tells you when a power supply is fibbing. Buy Fluke at any level, because a meter with no safety rating is a bad bargain.

Top shelf

Fluke 87V

The bench legend. Rugged, accurate and True-RMS, it will outlast every machine you test with it.

The sweet spot

Fluke 117

Auto-ranging, True-RMS and a built-in non-contact voltage detector. Everything a retro bench needs.

Value pick

Fluke 101

A pocket-size Fluke for the basics: voltage, continuity and capacitance. Still a real Fluke.

Skip these

  • Using a straight-through cable between two computers. It joins TXD to TXD and nothing is heard.
  • Hot-plugging serial or parallel ports.
  • Connecting TTL serial pins from a microcontroller straight to an RS-232 port.

Questions people ask

What is the difference between a null modem cable and a straight-through serial cable?

A straight-through cable joins a computer (DTE) to a modem (DCE) pin for pin. A null modem cable crosses the transmit and receive lines, and optionally the handshake lines, so two computers can talk directly.

What is the pinout of a DB9 serial port?

Pin 1 DCD, 2 RXD, 3 TXD, 4 DTR, 5 ground, 6 DSR, 7 RTS, 8 CTS and 9 RI.

How do I tell a serial port from a parallel port?

On a PC, the serial port is a male connector, 9 or 25 pins, and the parallel port is a female 25-pin connector.

How fast is a serial port?

Up to 115,200 bits per second on a standard PC serial port, which is roughly 11 KB/s. A parallel port in EPP or ECP mode is much faster, around 2 MB/s.

Why does my mouse stop working when I use my modem?

They share an IRQ. A mouse on COM1 and a modem on COM3 both use IRQ 4, and likewise COM2 and COM4 share IRQ 3. Move one of them to a free IRQ.

Sources

From the timeline

Read next

  • IRQ, DMA and I/O address cheat sheet for ISA PCsStandard IRQ, DMA channel and I/O port assignments for 286, 386 and 486 PCs, common sound card, modem and network defaults, and how to untangle a hardware conflict.
  • Hayes modem AT commands cheat sheetThe Hayes AT command set for dial-up modems: ATZ, ATDT, ATH, ATA, +++, result codes, the S-registers, a good init string and how to dial a telnet BBS with a modern modem emulator.
  • BIOS beep codes for vintage PCsWhat the beeps mean when an old PC will not start: IBM, AMI and Award beep code tables, how to count them and the first things to try for each.

More to explore

Visit the museum