IC5 is the 16K ROM. It holds Sinclair BASIC and the routines for the screen, keyboard, tape and sound, and it is the first thing the Z80 reads at switch-on. It is a 28-pin mask ROM, made by several companies: Hitachi (HN613128P), NEC (D23128C), GI (9128C) and others.
Makes and the board link
The Hitachi chip is wired slightly differently from the others, so the board has a link to suit it. The NEC, GI and similar parts swap with each other directly; to change between one of those and a Hitachi ROM, move the link to match. If a replacement ROM gives a blank screen, check this first.
Signs it has failed
- no copyright message at switch-on, and the border not the usual white
- random crashes, or odd flashing blocks on the screen
- a diagnostic ROM reporting an unknown or corrupt ROM
Testing it
The surest test is to take the ROM out of the picture: a diagnostic ROM such as ZX Diagnostics, fitted in place of IC5 or plugged into the edge connector, will check the RAM and logic and then read the original ROM back and compare its checksum with the known versions.
Without one, check the ROM is seated properly with no folded or cut legs, that pin 28 has 5V and pin 14 0V, and that the data lines (pins 11–13 and 15–19) are pulsing while the machine tries to start. A data line stuck high or low points at the ROM or at another chip holding that line.
Replacing it with an EPROM
Original ROMs are no longer made, so the usual replacement is a 27C128 or 27C256 EPROM programmed with the Spectrum ROM image. The pinouts are close but not identical:
| Pin | Original ROM | EPROM | What to do |
|---|---|---|---|
| 1 | not connected | Vpp | tie to pin 28 (+5V) |
| 20 | chip select | /CE (active low) | see below |
| 27 | output enable | /PGM on a 27128, A14 on a 27256 | tie to +5V, or use it to switch between two ROM images on a 27256 |
Pin 20 is the catch. Wiring it straight to the ROM-select signal mostly works, but some games that read the keyboard in an unusual way, Zynaps among them, then fail. The fix is to feed pin 20 from both /ROMCS and /MREQ, through two small Schottky diodes and a 10K pull-up resistor. The ROM-select link pads on the board give you those signals without cutting any tracks.
The easiest route is a ready-made adapter board that plugs into the IC5 socket and does all of this, some with a switch to choose between two ROMs.
See the ZX Spectrum repair guide for the other chips.