A 48K ZX Spectrum has two banks of memory. The lower 16K is shared with the display and the ULA; the upper 32K holds most of your programs. When the upper RAM fails, the machine often still starts up normally, but programs crash, will not load, or report the wrong amount of memory. Fortunately, the upper RAM is one of the easiest parts of the Spectrum to repair, and replacement chips are cheap and easy to find.
This guide explains how to spot an upper RAM fault, which chips are fitted, how to replace them with modern 4164s and how to set the links correctly.
Symptoms of an upper RAM fault
- The Spectrum boots to the copyright message, but 48K games crash or reset during loading.
- Only 16K programs run.
- Typing PRINT PEEK 23732+256*PEEK 23733 does not give 65535. That figure is the top of RAM (the P_RAMT system variable) on a working 48K; a lower figure suggests the upper 32K is missing or faulty.
If the machine shows no copyright message at all, or a screen of garbage, the problem is more likely the lower RAM, the ULA, the CPU or power. Our voltage regulator guide is a good starting point for power problems.
Which chips are fitted?
The upper 32K uses eight chips in a row. Sinclair saved money by using “half-good” 64K chips, where only one half of each chip was guaranteed to work. The two common types are:
- Texas Instruments TMS4532, in -NL3 or -NL4 versions.
- OKI MSM3732, in -L or -H versions.
The suffix tells the Spectrum which half of each chip works, and a set of links on the board must match it. All eight chips must be the same type: do not mix TI and OKI, or -L and -H.
The link settings
Board issues differ, so check yours. Our model identification guide explains how to find the issue number.
| Fitted chips | Link setting |
|---|---|
| TI TMS4532-NL3 | TI and 3 |
| TI TMS4532-NL4 | TI and 4 |
| OKI MSM3732-L | OKI and L |
| OKI MSM3732-H | OKI and H |
On issue 3 and later boards the links are to the right of the MIC socket, marked TI/L/H and OKI/3/4. On issue 2 boards there is a single three-pad link to the right of the ULA, with +5V, a centre pad and 0V. Be very careful here: bridging +5V to 0V creates a short circuit across the power supply.
The modern fix: 4164 chips
The 4164 is a fully working 64K x 1 DRAM, so both halves work. That means a 4164 can replace any of the original chips, whatever the link setting. You can replace one chip, several or all eight, and leave the existing links as they are, provided they are already set to a valid combination.
Choose 4164 chips that:
- are rated 150ns or faster;
- use 128-cycle refresh, which is what the Spectrum provides (some 256-cycle parts will not work reliably).
Tested 4164s for Spectrum use are sold by retro specialists such as Retroleum, or search for 4164 DRAM chips. Fit them in 16-pin DIP sockets so future repairs are easier.
Do not try to use 4164s in place of the lower RAM. The lower 16K uses 4116 chips, which are a different type with different power requirements.
How to replace the chips
1. Open the Spectrum and remove the keyboard ribbons carefully.
2. Note the orientation of the existing chips: pin 1 is marked by a notch or dot.
3. Desolder each chip. A desoldering pump works, but a desoldering station is faster and gentler on the board. Alternatively, cut the legs close to the chip body and remove each leg separately; see our guide to desoldering a chip.
4. Clear the holes with solder wick and clean off flux.
5. Fit sockets, then insert the 4164s the correct way round.
6. Check the links match a valid setting for the board.
If you have not desoldered through-hole chips before, practise on a scrap board first.
Testing
Power on and check for the copyright message, then type the PEEK command above. It should return 65535. For a more thorough check, use a RAM test program or a diagnostic ROM board, which test each chip and point to any remaining fault.
If the figure is still wrong, check the orientation of each chip, look for bent pins under the sockets, and recheck the links.
Related repairs
While the board is out, many owners also do the composite video mod and replace the regulator. See our ZX Spectrum hardware mods guide.
FAQ
Can I replace TMS4532 or MSM3732 chips with 4164s?
Yes. A 4164 is a fully working 64K DRAM, so it can replace any of the original upper RAM chips. The links must still be set to a valid combination.
Do I need to replace all eight upper RAM chips?
No. You can replace only the faulty chip with a 4164, as long as the links are set correctly. Many people replace all eight for reliability.
How can I tell if my Spectrum has 48K working?
Type PRINT PEEK 23732+256*PEEK 23733. A working 48K returns 65535.
Can 4164 chips replace the lower RAM?
No. The lower 16K uses 4116 chips, which need different supply voltages. Use 4116 chips or a modern lower RAM replacement board.