PS/2, Parallel Port, IDE/ATA, PCI and GPIB
PS/2 keyboards, parallel ports, IDE drives, PCI cards and GPIB instruments have left the desktop PC, but not industrial PCs, machine controllers, medical equipment and test racks that run for decades. When one of these fails, a logic analyser that decodes the bus shows whether the host or the device is at fault. Apart from PS/2, these are wide parallel buses, so count the channels before choosing an analyser.
PS/2 Keyboard and Mouse
PS/2 uses two open-collector lines, clock and data, pulled up to 5 V. The keyboard or mouse always generates the clock, at 10 to 16.7 kHz, even when the host is sending. Each frame from the device is 11 bits: a start bit of 0, 8 data bits least significant first, odd parity and a stop bit of 1. To send a command the host pulls clock low, then data low, and releases clock; the device clocks in the command and answers with an acknowledge bit. Keyboards send scan codes from scan code set 2 by default: a make code on key press and a break code (0xF0 then the make code) on release.
Parallel Port (IEEE 1284)
The PC parallel port has 8 data lines, status lines from the printer (BUSY, /ACK, PE, SELECT, /ERROR) and control lines from the host (/STROBE, /AUTOFD, /INIT, /SELECTIN). In the original compatibility mode (SPP) the host sets the data, pulses /STROBE and waits for /ACK. IEEE 1284 (1994) standardised the existing EPP and ECP modes, which are faster and bidirectional, together with the nibble and byte reverse modes; EPP and ECP are used for scanners, dongles and device programmers. Machine tools and lab equipment still use it as a simple digital I/O port.
IDE / ATA and CompactFlash
Parallel ATA (IDE) has a 16-bit data bus, three address lines and two chip selects that select the task file registers, read and write strobes, an interrupt and DMA handshake lines, on a 40-pin connector. The host writes the sector address and count to the registers, then a command such as 0xEC (IDENTIFY DEVICE) or 0xC8 (READ DMA), and moves data in PIO or DMA mode. A decoder shows register accesses and commands, so you can see where a boot stalls. CompactFlash cards work as ATA devices in True IDE mode, so the same decoding applies; ZeroPlus lists a separate CompactFlash 4.1 decoder.
PCI
Conventional PCI multiplexes a 32-bit address and data bus (AD[31:0]) with four command and byte-enable lines (C/BE#), clocked at 33 or 66 MHz. A transaction starts when the initiator asserts FRAME# with the address and command on the bus; data phases follow, each completed when both IRDY# and TRDY# are low. The ZeroPlus PCI decoder needs 47 channels: AD[31:0], C/BE[3:0]#, FRAME#, IRDY#, TRDY#, DEVSEL#, STOP#, IDSEL, PAR, PERR#, SERR#, the clock and one further control line, so use the 64-channel LAP-F. PCI Express is a different, serial bus.
GPIB (IEEE 488)
GPIB connects test instruments to a controller, up to 15 devices on one bus. It has 8 data lines (DIO1 to DIO8), three handshake lines (DAV, NRFD, NDAC) and five management lines (ATN, IFC, SRQ, REN, EOI), all active low. The three-wire handshake lets every listener hold off the talker, so the bus runs at the speed of the slowest listener, up to about 1 Mbyte/s. When ATN is asserted the bytes are commands, such as talk and listen addresses; otherwise they are data, usually SCPI text.
How They Compare
| Bus | Signals to Probe | Speed | Analyser Channels |
|---|---|---|---|
| PS/2 | Clock, data | 10 to 16.7 kHz clock | 2 |
| Parallel port | 8 data, 5 status, 4 control | About 2 to 2.5 Mbyte/s (EPP and ECP) | 17 |
| IDE / ATA | 16 data, 3 address, 2 CS, DIOR, DIOW, IORDY, INTRQ, DMA lines | Up to 133 Mbyte/s (UDMA) | About 28 |
| CompactFlash (True IDE) | As IDE | Up to 167 Mbyte/s (UDMA 7, CompactFlash 6.0) | About 28 |
| PCI | AD[31:0], C/BE#, FRAME#, IRDY#, TRDY#, DEVSEL#, clock | 33 or 66 MHz | 47 |
| GPIB | DIO1 to DIO8, DAV, NRFD, NDAC, ATN, EOI, SRQ, IFC, REN | Up to about 1 Mbyte/s | 16 |
Common Faults and How to Find Them
| Symptom | Likely Cause | What to Check |
|---|---|---|
| PS/2 keyboard not detected at boot | Device not answering reset (0xFF) with 0xFA and 0xAA | Capture the host reset command and the device replies |
| Printer prints garbage | Data not settled before /STROBE, or wrong port mode | Check data set-up time against /STROBE and the BIOS port mode |
| Drive not found at boot | IDENTIFY DEVICE not answered, or master and slave jumpers wrong | Decode the task file accesses and the status register |
| PCI card not enumerated | No DEVSEL# on configuration cycles | Trigger on a configuration read to the slot and look for DEVSEL# |
| GPIB instrument times out | Wrong address, or EOI or terminator mismatch | Decode talk and listen addresses and look for EOI on the last byte |
Tools for Decoding These Buses
Watch tools capture and decode each bus. PS/2, parallel port and IDE are in both the ZeroPlus and Acute libraries; PCI, GPIB and CompactFlash are ZeroPlus only.
| Product | Role | Capability | Price ex VAT |
|---|---|---|---|
| Acute TravelLogic 34-Channel | Watch | Acute decoders for PS/2, LPT and IDE | £1,260 |
| ZeroPlus LAP-C Pro Series | Watch | The ZeroPlus catalogue lists PS/2, LPT, IDE, CompactFlash 4.1 and GPIB decoders; LPT and CompactFlash need a 32-channel model, as ZeroPlus does not support them on the 16-channel LAP-C, and PCI needs more channels than any LAP-C Pro has | £925 |
| ZeroPlus LAP-F 40/64-Channel | Watch | 40 or 64 channels; the 64-channel model has the width for the ZeroPlus PCI decoder | £1,350 |
Keeping an old industrial PC or instrument rack running? Tell us the bus and we will check channel count and decoder support.
Frequently Asked Questions
Who Drives the Clock on PS/2?
The keyboard or mouse always generates the clock, in both directions. The host requests to send by holding clock low, then data low, and releasing clock.
Can a Logic Analyser Decode PCI Express?
No. PCI Express is a multi-gigabit serial link and needs a dedicated protocol analyser. The PCI decoder here is for conventional parallel PCI.
Is CompactFlash the Same as IDE?
In True IDE mode a CompactFlash card behaves as an ATA device, so IDE adapters and decoders work with it. It also has memory and I/O modes that use a different signalling.
How Many Channels Do I Need for GPIB?
Sixteen: eight data, three handshake and five management lines.
Does a GPIB Decoder Show SCPI Commands?
Yes. A GPIB decoder separates command bytes, sent while ATN is true, from data bytes, sent while ATN is false. Instrument data is usually SCPI text, which shows clearly when the decoder displays bytes as ASCII.
More Protocols
By John Legg CEng, Director, Debug Store. Updated 24 November 2026.