Jump to content

Amstrad 6128 RAM Replacement

From RetroTechCollection
Amstrad CPC 6128 RAM and PAL IC118 (Tynemouth Software)
The two columns of DRAM on an original CPC 6128 board, IC119–IC126 on the left and IC127–IC134 on the right, with the socketed PAL at IC118 above them (photo: Tynemouth Software)

The original main board of the Amstrad CPC 6128 has 128 KB of RAM in two banks of eight 64K × 1 DRAMs, IC119 to IC134, soldered to the board, with a PAL16L8 at IC118 that switches between the banks.[1][2] A failed chip in the lower 64K stops the machine starting. Dave Curran of Tynemouth Software repaired one that had been given 12 V on its 5 V input: he used the socketed PAL to run the machine from one bank at a time, found the faulty data bits with a short BASIC program, and replaced two chips.[3]

The guide covers the original board, with sixteen separate RAM chips and the PAL at IC118. Later 6128 boards are laid out differently; check your board against the board versions before following it.

Symptoms

[edit | edit source]
Amstrad CPC 6128 screen with a RAM fault (Tynemouth Software)
A 6128 with failed RAM: bands of random pattern instead of the start-up message (photo: Tynemouth Software)
  • The machine powers up with a picture but no start-up message. Tynemouth's machine showed a screen of random pattern.[3]
  • Amstrad's chart for a 6128 whose power light is on but which gives no start-up message lists the gate array, the Z80A, the 6845, the crystal and the RAM as suspects once the monitor and its leads are ruled out. The full chart is in the Amstrad CPC 6128 Troubleshooting Guide.[4]
  • Suspect the RAM, and other chips on the 5 V rail, after an over-voltage. In Tynemouth's machine, two external supplies with the same 2.1 mm plugs had been swapped, putting 12 V on the 5 V input.[3]

Safety

[edit | edit source]

The 6128 has no mains connection; it takes 5 V and the drive's 12 V from the monitor or a separate supply.[5][3] Check the voltage and polarity of any replacement supply before connecting it. Amstrad's diagram marks the 12 V plug as inner ground and outer +12 V.[5] Tynemouth covered the joint between the owner's 12 V supply and its lead with heatshrink so that the two supplies could not be swapped again.[3]

Tools and parts

[edit | edit source]
  • Replacement 64K × 1 DRAMs. Amstrad's parts list gives MSM3764-20RS and its diagram HM4864U-2; Tynemouth's board had KM4164B-15 chips, and he fitted KM4164A-15.[1][2][3]
  • 16-pin turned-pin sockets for the new chips, as Tynemouth fitted.[3]
  • Jumper wires for the PAL socket, or a GAL16V8 and a programmer for the second test.[3]
  • Known-good Z80 and gate array if you have them, for the first test.[3]
  • Desoldering tools; see Through-Hole Desoldering and IC Removal and Socketing.

Procedure

[edit | edit source]

To open the case, follow opening the case in the belt guide.

Ruling out the socketed chips

[edit | edit source]
  1. On Tynemouth's board the Z80 and the gate array were in sockets and almost everything else was soldered in. Swap the Z80 and the gate array for known-good parts. Tynemouth's machine did not change, and the original chips then worked in another 6128.[3]
  2. Amstrad's chart checks the 5 V DC on the lead from the monitor before anything else. Measure it at the plug before going further.[4]

Booting from the upper 64K

[edit | edit source]
Amstrad CPC6128 PAL IC118 and links LK5, LK6, LK8 (service manual p. 19)
IC118 on Amstrad's diagram, with its address and CAS pins and the links LK5, LK6 and LK8
Amstrad CPC 6128 PAL socket wired to boot from the upper 64K (Tynemouth Software)
The PAL removed and its socket wired so that the 6128 runs from the upper 64K (photo: Tynemouth Software)

The machine starts from the lower 64K (banks 0 to 3), which works as the CPC 464's RAM does: the screen is in bank 3 and the stack is built down from the top of bank 2. The upper 64K (banks 4 to 7) is switched in by the PAL.[3] With the PAL removed, the machine can be made to run from the upper 64K alone, which shows which bank holds the fault.[3]

  1. Switch off and pull the PAL from IC118. It is in a socket.[3][2]
  2. Wire the empty socket as Tynemouth did: A14 in to A14 out, A15 in to A15 out, CAS to CAS1, and 5 V to CAS0 so that the lower bank is never selected.[3] On Amstrad's diagram those are pin 9 to pin 19, pin 8 to pin 12, pin 7 (NCAS) to pin 15 (CAS1), and pin 20 (+5 V) to pin 17 (CAS0).[2]
  3. Switch on. If the 6128 now starts, the upper 64K (IC119–IC126) is working and the fault is in the lower 64K (IC127–IC134), as it was in Tynemouth's machine.[3][2]

The links LK5 and LK6 beside the socket make the same A14 and A15 connections, and LK8 joins CAS to CAS0. They are there for a 64K-only board, built without the PAL and the upper eight chips.[3][2]

Finding the faulty chips

[edit | edit source]
Amstrad CPC 6128 BASIC RAM test showing bits 4 and 6 (Tynemouth Software)
Tynemouth's test program and its output: addresses reading back 16 and 64 after 0 was written (photo: Tynemouth Software)
Amstrad CPC6128 RAM banks IC119-IC134 (service manual pp. 19-20)
The two RAM banks on Amstrad's diagram: IC127–IC134 hold D0–D7 of the first bank (CAS0), IC119–IC126 those of the second (CAS1)

To test the lower 64K from BASIC, the machine has to start from the upper bank with a window into the lower one. Tynemouth programmed a 16V8 GAL, which can replace the 16L8 PAL, to use banks 4, 1, 6 and 7: the upper chips everywhere except bank 1 (addresses 16384 to 32767), which comes from the lower chips.[3]

  1. Program a GAL16V8 with Tynemouth's equations and fit it at IC118:[3]
    A14OUT = A14;
    A15OUT = A15;
    CAS0 = CAS & !A15 & A14;
    CAS1 = CAS & (A15 # !A14);
  2. Switch on. The machine should start to BASIC.[3]
  3. Enter and run a program that writes 0 to each address in bank 1 and prints any that read back differently. Tynemouth's listing was:[3]
    10 FOR n=20000 TO 32000
    20 POKE n,0
    30 p = PEEK(n)
    40 IF p <> 0 THEN PRINT n;"=";p
    50 NEXT n
  4. Repeat with 255 in place of 0 (5 a = 255, POKE n,a, IF p<>a) to find bits stuck low. Tynemouth also used &55 and &AA to test alternating bits.[3]
  5. Work out the failed bits from the values printed. Tynemouth's machine read back 16 and 64 after 0 was written, which are bits 4 and 6 stuck high, and 239 after 255 was written, which is bit 4 (255 − 239 = 16) stuck low.[3]
  6. Find the chips. On Amstrad's diagram data bits D0 to D7 of the lower bank are IC127 to IC134, so D4 is IC131 and D6 is IC133.[2] Tynemouth's photograph after the repair shows the new chips at IC131 and IC133.[3] A fault in the upper bank maps the same way to IC119 to IC126.[2]

Replacing the chips

[edit | edit source]
Amstrad CPC 6128 replacement RAM at IC131 and IC133 (Tynemouth Software)
The right-hand column after the repair: new KM4164A-15 chips in sockets at IC131 and IC133 (photo: Tynemouth Software)
  1. Switch off and remove the faulty chips; the methods are on IC Removal and Socketing and Through-Hole Desoldering.[3]
  2. Fit 16-pin sockets and the new chips, with pin 1 the same way round as the chips beside them.[3]
  3. Refit the original PAL at IC118, or keep the test GAL for the next step and refit the PAL afterwards.[3]

Testing

[edit | edit source]
  • With the test GAL fitted, run the BASIC test with 0, 255, &55 and &AA. Tynemouth's board passed all four after the two chips were replaced. These tests check the data bits only, not addressing.[3]
  • With the original PAL refitted, the machine should start normally. Tynemouth then ran a RAM test program for the first 64K, and checked the upper bank again with a GAL that mapped banks 4 to 7.[3]
  • Load from disc and cassette and run a few programs.[3]
[edit | edit source]

References

[edit | edit source]
  1. ↑ 1.0 1.1 Amstrad Consumer Electronics plc, CPC6128 Micro Computer / CTM644 Colour Monitor / GT65 Green Monitor Service Manual, p. 21 electrical parts list: PAL16L8AC at IC118 and sixteen MSM3764-20RS DRAMs at IC119–134. Hosted as File:Amstrad CPC6128 Service Manual.pdf, described at Amstrad CPC 6128 Service Manual.
  2. ↑ 2.0 2.1 2.2 2.3 2.4 2.5 2.6 2.7 Amstrad Consumer Electronics plc, CPC6128 Micro Computer / CTM644 Colour Monitor / GT65 Green Monitor Service Manual, pp. 19–20 "CPC6128 CPU Circuit Diagram". Hosted as File:Amstrad CPC6128 Service Manual.pdf. RAM drawn as HM4864U-2, 64K × 1, all pins except data in parallel; IC127–IC134 are data bits D0–D7 of the first bank, selected by CAS0 ("1st bank only"); IC119–IC126 are D0–D7 of the second bank, selected by CAS1 ("2nd bank only"); PAL/HAL 16L8AC IC118 (AMS40030) in socket J106, "not present for 64K", inputs D7 and D6 (pin 1), D0 (2), RESET (3), RAMDIS (4), D1 (5), D2 (6), NCAS (7), A15 (8), A14 (9), outputs A14OUT (19), CAS0 (17, through R161 47 Ω), CAS1 (15, through R160 47 Ω), A15OUT (12), pin 20 +5 V, pin 10 0 V; links LK5 (A14 to A14OUT), LK6 (A15 to A15OUT) and LK8 (NCAS to CAS0), "all out for 128K".
  3. ↑ 3.00 3.01 3.02 3.03 3.04 3.05 3.06 3.07 3.08 3.09 3.10 3.11 3.12 3.13 3.14 3.15 3.16 3.17 3.18 3.19 3.20 3.21 3.22 3.23 3.24 3.25 3.26 3.27 3.28 Dave Curran, "Amstrad CPC 6128 Repair", Tynemouth Software, 13 August 2019 (retrieved 2026-10-25). A 6128 fed 12 V on its 5 V input from a mixed-up pair of external supplies; socketed Z80 and gate array swapped with known-good parts; a random-pattern screen pointing to RAM; the right-hand eight chips are the lower 64K (banks 0–3, as on the CPC 464) and the left-hand eight the upper 64K (banks 4–7); the 16L8 PAL controls A14, A15 and the two CAS lines and is socketed; replacing it with links (A14 in to A14 out, A15 in to A15 out, CAS to CAS1, 5 V to CAS0) runs the machine from the upper 64K; LK5 and LK6 link A14 and A15 in to out, LK8 links CAS to CAS0, for a 64K-only board; a 16V8 GAL with test equations mapping the lower bank into bank 1; a BASIC POKE and PEEK test; read-back errors of 16 and 64 meaning data bits D4 and D6; the D4 and D6 chips of the lower bank replaced; tests with 0, 255, &55 and &AA; a 64K RAM test program; disc and cassette loading afterwards; heatshrink on the 12 V supply's connection to stop a repeat.
  4. ↑ 4.0 4.1 Amstrad Consumer Electronics plc, CPC6128 Micro Computer / CTM644 Colour Monitor / GT65 Green Monitor Service Manual, p. 4 "Basic Hardware Analysis". Hosted as File:Amstrad CPC6128 Service Manual.pdf.
  5. ↑ 5.0 5.1 Amstrad Consumer Electronics plc, CPC6128 Micro Computer / CTM644 Colour Monitor / GT65 Green Monitor Service Manual, p. 36 cassette control circuit diagram: 12 V plug "inner GND, outer +12V", 5 V socket "+5V (from monitor TV)". Hosted as File:Amstrad CPC6128 Service Manual.pdf.