Jump to content

Sinclair ZX Spectrum +2 RAM Replacement

From RetroTechCollection
Spectrum +2 RAM data bits (Tynemouth Software)
The sixteen 4164 RAM chips on a grey +2, labelled with the data bit each holds (photo: Tynemouth Software)

The grey Sinclair ZX Spectrum +2 has sixteen 4164 dynamic RAM chips in two rows, IC17 to IC24 and IC25 to IC32. Amstrad's parts list gives them as KM4164B-15P (Amstrad part 172045). They are soldered to the board; the parts list includes IC sockets only in 24-, 28- and 40-pin sizes.[1] Dave Curran of Tynemouth Software repaired five mid-1986 grey +2 boards and found 34 faulty RAM chips, all Samsung KM4164B.[2]

The upper row (IC17–IC24) holds RAM banks 0, 2, 4 and 6, and the lower row (IC25–IC32) banks 1, 3, 5 and 7. Bank 5 takes the place of the lower 16K of a 48K Spectrum and is contended RAM, shared between the CPU and the screen; it is in the lower row. The two rows run in opposite order, with D0 and D7 at opposite ends.[2]

Symptoms

[edit | edit source]
  • The machine does not start, or starts with a corrupt screen, and the board draws too much current. A shorted RAM chip pulls down the 5 V rail and gets hot.[2]
  • Crashes or errors reported by a RAM test. On one board Tynemouth Software saw an intermittent error on D4 of the lower RAM after the machine had run for a while.[2]

Faults that look similar:

  • A ULA fault can also give a blank, banded or corrupt picture. See the ULA section of the Sinclair ZX Spectrum +2 Troubleshooting Guide.
  • Amstrad's RAM test reports the failing address and bank. An address of zero points to the paging hardware, not the RAM.[1]

Safety

[edit | edit source]

There is no mains voltage inside the +2; the transformer is in the external power pack.[3] Take normal anti-static precautions when handling the ICs and use an earthed, low-power soldering iron.[4]

Tools and parts

[edit | edit source]
  • 4164 DRAM chips. Tynemouth Software matched speed grades within a set where it could, and noted that a mixture of grades in one machine is not ideal.[2]
  • 16-pin DIL sockets.[2]
  • A bench power supply with current limiting. Tynemouth set 1.5 A; a working +2 draws between 800 mA and 1.2 A depending on the type of RAM.[2]
  • A diagnostic ROM programmed into a 27C256-type EPROM, which fits the +2's ROM socket: the +2's 32K ROM (Amstrad 40054) has the 27C256 pinout. Tynemouth used Brendan Alford's ZX Diagnostics and Paul Farrow's 128K RAM tester.[2]
  • A temperature-controlled soldering iron, desoldering pump or braid, flux and solder.

Procedure

[edit | edit source]

Opening the case

[edit | edit source]
  1. Unplug the power pack and all peripherals.
  2. Remove the six screws holding the case together and separate the halves, disconnecting the keyboard ribbons and the tape deck connector.[5]

Finding the failed chips

[edit | edit source]
  1. Power the board from the current-limited supply. If it goes straight into current limiting, feel for chips that are getting hot. On one board the ROM and several RAM chips were hot; Tynemouth removed the hottest first and needed a couple of attempts to find the three chips that were shorting the 5 V rail.[2]
  2. Fit the ZX Diagnostics ROM in place of the system ROM and switch on. It tests the lower 16K (bank 5) first. Even when the screen RAM is faulty, it reports the bad bits with beeps and with red and green bars at the side of the screen, and it names the chips by their 48K Spectrum IC numbers.[2][6]
  3. Translate the report into +2 chips with the table below.[6][2]
  4. With the lower RAM passing, run the full 128K test (from the ZX Diagnostics menu, or Paul Farrow's 128K RAM tester), which pages every bank in turn and reports the chips responsible for failures.[2][6]
+2 RAM chips by data bit
Data bit D0 D1 D2 D3 D4 D5 D6 D7
Lower row, banks 1, 3, 5, 7 IC32 IC31 IC30 IC29 IC28 IC27 IC26 IC25
48K Spectrum number for the same bit IC6 IC7 IC8 IC9 IC10 IC11 IC12 IC13
Upper row, banks 0, 2, 4, 6 IC17 IC18 IC19 IC20 IC21 IC22 IC23 IC24
48K Spectrum number for the same bit IC15 IC16 IC17 IC18 IC19 IC20 IC21 IC22

Sources: ZX Diagnostics for the lower row and the bit order; Tynemouth Software's labelled board for both rows and the 48K equivalents.[6][2]

Spectrum +2 RAM with 48K IC equivalents (Tynemouth Software)
The same chips labelled with their 48K Spectrum equivalents, the numbers diagnostic tools report (photo: Tynemouth Software)

For example, a report of IC8 and IC13 on a +2 means IC30 and IC25, and a fault on D4 of the lower RAM is IC28.[2]

If you have Amstrad's own test ROM, a failure before its test card appears is shown by the border colour:[1]

Amstrad test ROM: border colour with no test card
Colour Steady Flashing
Black IC17 IC32
Blue IC18 IC31
Red IC19 IC30
Magenta IC20 IC29
Green IC21 IC28
Cyan IC22 IC27
Yellow IC23 IC26
White IC24 IC25

Replacing the chips

[edit | edit source]
  1. Lift the main board out of the lower case.
  2. Desolder each failed chip using a desoldering technique that does not overheat the pads. Spectrum for Everyone warns that the Amstrad-made +2 boards lift pads and tracks easily.[4][7]
  3. Fit a 16-pin socket in place of each chip, then plug in the new 4164 with its notch the same way round as its neighbours.[2]
  4. Where most of a row has failed, replace and socket the whole row. On one board five of the eight chips in a bank had failed, and Tynemouth replaced all eight; on another it ended up socketing and replacing all sixteen.[2]
  5. Check the board for solder splashes between tracks and pins before powering up.[4]

With the sockets fitted, chips of unknown condition can be sorted on the machine itself. Tynemouth fitted a ZIF socket in one of the lower RAM positions and tried every removed chip in turn with a test ROM, which shows the state of the lower RAM on its first screen.[2]

Testing

[edit | edit source]
  1. Recheck the current on the bench supply: a working +2 draws 800 mA to 1.2 A.[2]
  2. Run ZX Diagnostics: the lower RAM test should show eight green bars, and the 128K test should pass every bank.[2][6]
  3. Run a soak test for a while. On Tynemouth's fifth board the faults multiplied during soak testing, one chip after another.[2]
  4. Refit the system ROM, reassemble and check that the 128K menu appears.
[edit | edit source]

References

[edit | edit source]
  1. ↑ 1.0 1.1 1.2 Amstrad plc, Spectrum +2 Service Manual, hosted as File:Amstrad Spectrum +2 Service Manual.pdf; see Amstrad Spectrum +2 Service Manual. Test software and border-colour table, printed p. 4; electrical parts list (IC17–32 KM4164B-15P, part 172045; IC sockets listed only at 24, 28 and 40 pins), printed p. 5.
  2. ↑ 2.00 2.01 2.02 2.03 2.04 2.05 2.06 2.07 2.08 2.09 2.10 2.11 2.12 2.13 2.14 2.15 2.16 2.17 2.18 2.19 Dave Curran, "Spectrum 128K +2 Grey Repairs", Tynemouth Software, 26 June 2017. RAM banks and bit order, IC mapping to the 48K, current-limited testing, hot and shorted chips, ZX Diagnostics and Paul Farrow's 128K RAM tester, socketing, replacing whole banks, speed grades and the ZIF socket test.
  3. ↑ ZX Spectrum 128 Service Manual, Sinclair Research, section 1.10 "Power Supplies" (p. 20). Hosted as Sinclair ZX Spectrum 128 Service Manual (PDF). The +2 is functionally a repackaged Spectrum 128.
  4. ↑ 4.0 4.1 4.2 ZX Spectrum 128 Service Manual, Sinclair Research, section 4.3 "Repair" (p. 29). Hosted as Sinclair ZX Spectrum 128 Service Manual (PDF).
  5. ↑ "Servicing your +2's Datacorder", Spectrum for Everyone. Six case screws; disconnecting the keyboard ribbons and tape deck connector.
  6. ↑ 6.0 6.1 6.2 6.3 6.4 Brendan Alford, "Firmware", ZX Diagnostics wiki, GitHub, edited 18 August 2021. Lower RAM test of page 5 on 128K machines, with the IC for each data bit on the 128K, +2 and +2A/+3; 128K tests of every bank; soak test.
  7. ↑ "ZX Spectrum Models", Spectrum for Everyone. Grey +2 board revisions; the poor quality of the Amstrad-produced PCBs and the need for care when replacing components.