Jump to content

Sinclair ZX Spectrum 128 RAM Replacement

From RetroTechCollection
Spectrum 128 Version 6U main board (Spectrum for Everyone)
A Spectrum 128 Version 6U main board in the lower case, with the regulator heatsink at the right (photo: Spectrum for Everyone)

The Sinclair ZX Spectrum 128 has sixteen 4164 dynamic RAM chips: IC6 to IC13 form the contended bank, which the ULA shares with the CPU, and IC15 to IC22 the uncontended bank.[1][2] The grey +2, Amstrad's copy of the 128, uses the same two-bank 4164 layout, and Tynemouth Software found 34 failed chips on five +2 boards from 1986.[3]

Symptoms

[edit | edit source]
  • No start-up menu, a corrupt or striped screen, or crashes.[3]
  • High current draw with one or more RAM chips getting hot. A RAM chip that gets hot is shorted.[4]

Faults that look similar: a failing ULA (IC1, Ferranti 7K010) can give no reset, banded or blank pictures, or crashes after warming up. It sits in a socket on most boards, so it can be tried in another machine;[5] see the Sinclair ZX Spectrum 128 Troubleshooting Guide and Sinclair ZX Spectrum 128 ULA.

Safety

[edit | edit source]

The 128 runs from an external 9 V pack; there is no mains voltage inside the case.[6] Take normal anti-static precautions and use a suitably earthed, low-power soldering iron.[7]

Tools and parts

[edit | edit source]
  • 4164 DRAM chips with an access time of 150 ns and 128-row refresh, the specification in Sinclair's parts list.[2]
  • 16-pin DIL sockets.[3]
  • A bench supply with current limiting, set to 9 V, in place of the power pack. Sinclair's limits for the pack are a trough of no less than 7.0 V and a peak of no more than 13 V.[1]
  • A diagnostic ROM that fits the ROM socket (IC5), such as Brendan Alford's ZX Diagnostics, and Paul Farrow's 128K RAM tester.[3][8] Sinclair specifies the ROM as pin-compatible with a 27256 EPROM.[2]
  • An oscilloscope for the RAS and CAS checks.[1]
  • A temperature-controlled soldering iron, desoldering pump or braid.

Procedure

[edit | edit source]

Opening the case

[edit | edit source]

Sinclair's procedure:[9]

  1. Unplug all leads and turn the computer upside down. Remove the eight fixing screws, noting where the two countersunk screws go.
  2. Turn the computer right way up, separate the case halves and disconnect the two keyboard ribbon cables from the board.
  3. To take the board out of the lower case, remove the board fixing screws and the fixings that hold the 7805 regulator to the finned heatsink.
  4. If the board is to be powered up out of the case, take it out with the heatsink attached, as one assembly. The heatsink is held to the case by two screws. Do not strain the regulator's legs.

Finding the failed chips

[edit | edit source]
  1. Power the board from the current-limited supply and feel for chips that get hot. On the grey +2, Tynemouth removed the hottest RAM first and found several chips shorting the 5 V rail on one board.[3]
  2. Fit the ZX Diagnostics ROM in the ROM socket and switch on. On a 128 its first test exercises RAM page 5 and reports the failing data bits; on the 128 these are IC6 (bit 0) to IC13 (bit 7), in order.[8]
  3. With the lower RAM passing, run the full 128K test, which pages every bank in turn and reports the chips responsible for any failure.[8] Paul Farrow's 128K RAM tester checks all the banks as well.[3]
  4. If the test ROM will not run at all, follow Sinclair's checks: the supply and clocks, then /RD, /WR, /MREQ and the data and address lines from the Z80, which should all be active straight after a reset; then the RAS and CAS lines to the uncontended RAM (IC15–IC22), which should also be active after a reset; then RAS and CAS to the contended RAM (IC6–IC13), pressing RESET to get a clear trace.[1]
Spectrum 128 lower RAM (page 5) chips by data bit (ZX Diagnostics)[8]
Bit 0 Bit 1 Bit 2 Bit 3 Bit 4 Bit 5 Bit 6 Bit 7
IC6 IC7 IC8 IC9 IC10 IC11 IC12 IC13

If every chip in the uncontended bank tests good in another machine but that bank still fails, look at its addressing: the uncontended bank is driven by IC27, a ZX8401, through 470 Ω resistors, and its CAS timing comes from an RC delay built round IC28 (74LS04) with R89, R88 and C105.[10]

Replacing the chips

[edit | edit source]
  1. Desolder each failed chip using a desoldering technique that does not overheat the pads.[7]
  2. Fit a 16-pin socket and plug in the new 4164, notch the same way as its neighbours.[3]
  3. Where most of a bank has failed, replace and socket the whole bank, matching speed grades where you can.[3]
  4. Inspect the board for solder splashes between tracks and pins.[7]

Testing

[edit | edit source]
  1. Run ZX Diagnostics again: the lower RAM test and the 128K test should both pass.[8]
  2. Run its soak test for a while to catch chips that fail when warm.[8][3]
  3. Refit the system ROM and check that the computer starts with the copyright message in the lower left of the screen, which Sinclair treats as the sign that most of the system is working.[1]
  4. Reassemble with the keyboard ribbons lying in an S shape, the reset button in its cut-out in the end of the case, and the legs and leg springs in place.[9]

Revision notes

[edit | edit source]

The board was made in Versions 2, 2-1, 6K, 6U and 9G.[5] The grey +2 has the same RAM under different numbers (IC17–IC32); see Sinclair ZX Spectrum +2 RAM Replacement.

[edit | edit source]

References

[edit | edit source]
  1. ↑ 1.0 1.1 1.2 1.3 1.4 ZX Spectrum 128 Service Manual, Sinclair Research, section 4.2.3 "Initialisation" (pp. 27–28): the supply and clock checks, and the RAS/CAS checks on the uncontended RAM IC15–IC22 and the contended RAM IC6–IC13. Hosted as Sinclair ZX Spectrum 128 Service Manual (PDF).
  2. ↑ 2.0 2.1 2.2 ZX Spectrum 128 Service Manual, Sinclair Research, section 5.2 "Notes to Table 5.4" (p. 33) and Table 5.4 "Main PCB Components" (pp. 35–39): IC6–IC13 and IC15–IC22 4164, 150 ns; note 1, 150 ns access time and 128-row refresh, with the makers listed. Hosted as Sinclair ZX Spectrum 128 Service Manual (PDF).
  3. ↑ 3.0 3.1 3.2 3.3 3.4 3.5 3.6 3.7 3.8 Dave Curran, "Spectrum 128K +2 Grey Repairs", Tynemouth Software, 26 June 2017. Repairs to five grey +2 boards with the 128's RAM layout: current-limited testing, hot and shorted chips, ZX Diagnostics and Paul Farrow's 128K RAM tester, socketing and replacing whole banks.
  4. ↑ ZX Spectrum Servicing Manual, Thorn (EMI) Datatech for Sinclair Research, March 1984, with T.I.S. "Repair Data" appended, PDF p. 60 onwards. Hosted as ZX Spectrum Servicing Manual (Thorn EMI Datatech, 1984) (PDF). Written for the 48K Spectrum.
  5. ↑ 5.0 5.1 "ZX Spectrum Models", Spectrum for Everyone. Spectrum 128 board versions 2, 2-1, 6K, 6U and 9G; late 6U boards with a soldered Amstrad 40056 in place of the socketed Ferranti ULA.
  6. ↑ ZX Spectrum 128 Service Manual, Sinclair Research, section 1.10 "Power Supplies" (p. 20). Hosted as Sinclair ZX Spectrum 128 Service Manual (PDF).
  7. ↑ 7.0 7.1 7.2 ZX Spectrum 128 Service Manual, Sinclair Research, section 4.3 "Repair" (p. 29). Hosted as Sinclair ZX Spectrum 128 Service Manual (PDF).
  8. ↑ 8.0 8.1 8.2 8.3 8.4 8.5 Brendan Alford, "Firmware", ZX Diagnostics wiki, GitHub, edited 18 August 2021. Lower RAM test of page 5 with the IC for each data bit on the 128K, 128K tests of every bank, and soak testing.
  9. ↑ 9.0 9.1 ZX Spectrum 128 Service Manual, Sinclair Research, sections 2.1 "Disassembly" and 2.2 "Assembly" (pp. 22–23). Hosted as Sinclair ZX Spectrum 128 Service Manual (PDF).
  10. ↑ Sinclair Research, Spectrum 128 logic circuit, drawing dated 23 July 1985, mod 3 of 7 November 1985, Ferranti Archives 2026 (SPEC128-SIN-SCH-023). The RAM banks, IC27 and the CAS delay.