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.
| Pin | Signal | Direction | Meaning |
|---|---|---|---|
| 1 | DCD | In | Data carrier detect |
| 2 | RXD | In | Receive data |
| 3 | TXD | Out | Transmit data |
| 4 | DTR | Out | Data terminal ready |
| 5 | GND | None | Signal ground |
| 6 | DSR | In | Data set ready |
| 7 | RTS | Out | Request to send |
| 8 | CTS | In | Clear to send |
| 9 | RI | In | Ring 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 pin | Signal | DB9 pin |
|---|---|---|
| 2 | TXD | 3 |
| 3 | RXD | 2 |
| 4 | RTS | 7 |
| 5 | CTS | 8 |
| 6 | DSR | 6 |
| 7 | GND | 5 |
| 8 | DCD | 1 |
| 20 | DTR | 4 |
| 22 | RI | 9 |
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.
| End A pin | End B pin | Wire |
|---|---|---|
| 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.
| Chip | Buffer | Good for |
|---|---|---|
| 8250 | None | The original PC and XT. Fine for mice and slow modems, struggles above 9,600 bps |
| 16450 | None | Most 286 and early 386 boards. Reliable at 19,200 bps in plain DOS |
| 16550 | 16-byte FIFO, buggy | Early version. Often the FIFO is unusable |
| 16550A | 16-byte FIFO that works | The 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.
| Pin | Signal | Direction |
|---|---|---|
| 1 | STROBE | Out |
| 2 to 9 | Data bits D0 to D7 | Out (two-way on EPP and ECP) |
| 10 | ACK | In |
| 11 | BUSY | In |
| 12 | Paper out | In |
| 13 | Select | In |
| 14 | Auto feed | Out |
| 15 | Error | In |
| 16 | Initialize | Out |
| 17 | Select in | Out |
| 18 to 25 | Ground | None |
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.
- 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.
- Start the server. On the machine that has the files, run
INTERSVR. It shows the screen it is using and waits. - Start the client. On the other machine, add
DEVICE=C:\DOS\INTERLNK.EXEto CONFIG.SYS and reboot, or run INTERLNK to see the new drive letters that point to the other machine's drives. - Copy. Use COPY or XCOPY with those drive letters as if they were local drives.
- 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,1If 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
- Hayes Smartmodem 1981
- IBM PC (5150) 1981
- IBM PC/AT 1984
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
- Retro PC starter kit: the gear worth buying
- How to fix a dead vintage computer
- How to play old PC games today
- Buying a vintage computer: what to check before you pay
- How to connect retro consoles to a modern TV
- How to run DOS games on Windows, Mac and Linux
- Floppy disk sizes and capacities explained
- How to replace a dead CMOS battery in a vintage PC
- Yellowed retro plastic: what works and what to skip
- How to store vintage computers and games
- The DOS memory map, explained
- CONFIG.SYS and AUTOEXEC.BAT: free up conventional memory
- IDE hard drive size limits explained
- CGA, EGA and VGA video modes and monitor pinouts
- Sound Blaster IRQ, DMA and the BLASTER variable
- MS-DOS version history, from 1.0 to 8.0
- Intel PC processors, from 8088 to Pentium 4
- Game console release dates in Japan, North America and Europe
- How to make a DOS boot floppy disk
- Best soldering station for vintage computer repair
- Best multimeter for retro electronics and vintage computer repair
- Replace a dying hard drive in a retro PC
- Gotek vs USB floppy drive vs Greaseweazle
- The retro bench kit
- How to buy a vintage computer on eBay without getting burned
- RetroTINK vs OSSC vs Framemeister: which retro scaler to buy
- Best capacitor kits and tools for recapping retro computers
- How to clean and test retro game cartridges
- Best sound card and MIDI setup for DOS games
- Game Boy IPS screen and battery upgrades: what to buy
- The holiday gift guide for retro fans
- The retro computing glossary
- The Bookshelf: books on computer and game history