How (not) to replace the low RAM in a ZX Spectrum

The Joy of Tech - Anything and everything about all things shiny..
User avatar
Kamineko
Baaaaaaa!
Baaaaaaa!
Posts: 7569
Joined: Fri Dec 17, 2004 2:53 pm 0
Contact:

How (not) to replace the low RAM in a ZX Spectrum

Post by Kamineko »

A long post, but interesting pictures perhaps. :) Any advice you could give would be much appreciated:

A friend of mine gave me a ZX Spectrum 48k in seemingly good physical condition: carton, polystyrene insert, power supply. No indication of when it was last used.

IMG_5496.JPG
IMG_5495.JPG
IMG_5498.JPG
IMG_5499.JPG

When we turned it on, the display was clear but garbled random flashing squares, which from what I read online seemed to indicate a lower RAM issue. It hadn't been opened in decades and the keyboard membrane tore with no effort when we separated the halves of the case (not unexpected). The power supply connector end was poorly taped together - I've been using a generic adjustable power supply for now.

IMG_20170926_223433_DRO.jpg

IMG_5501.JPG
IMG_5502.JPG
IMG_5505.JPG

Here's what the screen looks like when the board is powered on: The display is stable and I'm getting a blue and white vertical candy-striped pattern. Occasionally I'll see some one-pixel-thick black stripes flicker across the tiles. I'm getting some loud audio noise when I tune in the picture on the TV, but I suspect that's because the modulator is old and there's no audio signal anyway. There's a quiet squeaking sound coming from the ZX board itself, around the upper edge near the modulator. I'm testing the board alone without the keyboard connected. (That'll be an easy zif insert after I've got the system booting to BASIC, I believe?)

vlcsnap.png

I ordered the following from retroleum.co.uk: four 4116 chips, nine 16-dip sockets, replacement keyboard membrane. My plan is to desolder and remove the 4116, replacing them with a socket with a new 4116 one by one. I suspect that two at most of the current 4116 are faulty (no basis for this guess), but I'll keep replacing chips with sockets until I get something other than this pattern displayed. It's possible that I'm going to mis-install one of these sockets (push it in incorrectly, lose a turned-pin as it pops out), so I've got a spare.

IMG_5491.JPG
IMG_5510.JPG

I don't have any easy way of testing which 4116 is faulty, if any. I've tested the power terminals of each with my tester and they're all receiving the correct voltages at least. I've tested continuity across the address pins, so I don't think there's any issue with the tracks.

-

Desoldering the 4116s is a lot more difficult than I thought. Despite a lot of work with the solder sucker and desoldering braid, it took a lot of effort to remove IC13. I intended to keep it fully intact, but one of the pins snapped off at the narrow section.

IMG_5508.JPG

I've soldered a socket in its place and installed a new 4116 but the pattern is unchanged.

IMG_5511.JPG

I moved onto IC6, but that was more difficult to remove. In fact it was a disaster. :( When I tried to lift the 4116 from its position, the whole chip package shattered. I also underestimated the strength of C8 which I was leaning on for leverage and that shattered too. (I've replaced it with a 50nF ceramic.) Also, I caught the trace on the upper side of the board that links the A4 line from the neighbouring 4116, so I have to install a bridge onto this pin from elsewhere.

IMG_5513.JPG

After installing the IC6 socket and new 4116 and capacitor and bridge, I was still getting the same candy striped pattern.

IMG_5518.JPG

I think I'm having trouble with removing these chips because there's a lot of solder present on the upper side of the board - as if a lot of solder was applied to the lower side and it had travelled through the board onto the top side and gathered all over the IC legs there.

I moved onto IC7, trying to remove as much solder as I could with the hope of putting a socket there and permanently installing a short A4 bridge, but despite my efforts I simply can't remove it cleanly.

-

In the interests of not destroying the board, I've decided to step away from this for a couple of days and figure out what I'm doing wrong. I'd really like to fix this myself, I think I could populate a clean board with little issue but I'm willing to admit I don't have the tools I need to desolder the ICs well enough to remove them here (I'd need a desoldering gun maybe?).

What should I do at this point? Is this the correct approach to solving this issue, or am I on the wrong track altogether? :(
User avatar
Firefox
Sheepie Whore
Sheepie Whore
Posts: 11412
Joined: Fri Apr 26, 2002 6:15 pm 0
Location: Sheffield

Re: How (not) to replace the low RAM in a ZX Spectrum

Post by Firefox »

When I'm removing DIP chips (or even surface mount) I tend to firstly cut through the pins with a pair of sidecutters (with the blades held parallel to the surface of the board so I don't accidentally gouge it), then I hold each pin in turn with a pair of pliers and use an iron to melt the solder until the pin is free to pull out. After that it's easy to use a solder sucker to clean up the holes. (For surface mount I just use the tip of the iron to wipe away little clumps of legs and wipe them on the sponge, then clean up the pads.)

If it's a rare chip I suppose it's worth the effort to save it, but if it's not I tend not to trust reused chips anyway after they've spent so much time being heated up. *shrug*
"I am a very considerate person. If I want to go out all night on my miniature golf course and shoot lizards, well, no reason to keep the neighbours awake..."
User avatar
Kamineko
Baaaaaaa!
Baaaaaaa!
Posts: 7569
Joined: Fri Dec 17, 2004 2:53 pm 0
Contact:

Re: How (not) to replace the low RAM in a ZX Spectrum

Post by Kamineko »

Yeah... :(

The problem is I don't know which ones are busted* so I'd like to keep whatever I can.

And I didn't want to spend the extra £6 to buy a full set of 4116s haha (especially when the shop said there was less than a dozen 4116 left in stock so I don't really want this Spectrum fixed badly enough to prevent somebody else from fixing theirs!)

In ideal world, these dodgy eight would pop out nicely, and I could mix and match my good four with the bad four until I came up with a solution. (That's why I've labelled them with marker.)

(*The one that looks like I've gone Incredible Hulk on it is probably busted.)
User avatar
Firefox
Sheepie Whore
Sheepie Whore
Posts: 11412
Joined: Fri Apr 26, 2002 6:15 pm 0
Location: Sheffield

Re: How (not) to replace the low RAM in a ZX Spectrum

Post by Firefox »

If you've got access to a scope I'd probe around each of the DRAM chips whilst it's going to see if one looks funny compared to the others - one pin stuck high/low, or outputting levels of 0 and 0.2V or something. Of course, when they're all soldered onto a bus it can be hard to tell which device is making a particular bus line do something funny...

Look at your candystripe pattern and try to work out which bit(s) are wrong? From what I can see in your screenshot it looks like maybe the bright bit (D6) or one of the paper bits (D3-D5) is off. Maybe that'd give you a clue as to which chip to try replacing next.

Dunno what else to suggest.

(edit). There are 32 darker stripes and 32 lighter stripes, and the darker stripes are first, and seem thinner than the lighter stripes...
Is there a thin line down the left edge of the graphics area of the screen?
"I am a very considerate person. If I want to go out all night on my miniature golf course and shoot lizards, well, no reason to keep the neighbours awake..."
User avatar
Kamineko
Baaaaaaa!
Baaaaaaa!
Posts: 7569
Joined: Fri Dec 17, 2004 2:53 pm 0
Contact:

Re: How (not) to replace the low RAM in a ZX Spectrum

Post by Kamineko »

I don't have a... (*remembers*) oh wow, I do have a scope. But I don't own any probes! ;-;

I don't know if there's any significance to the pattern, the Spectrum throws up garbage when it can't clear its ram but it could be the ram offering the right data or the read not going out correctly or the system not taking the data back...

Yeah, I think pin snipping is all I can do. Finish the job and try to neaten up that broken trace. I'm going to think on it for a few days. I really didn't want to spend that much time or money on it. I'd hoped I'd gotten better at this. :(
User avatar
Firefox
Sheepie Whore
Sheepie Whore
Posts: 11412
Joined: Fri Apr 26, 2002 6:15 pm 0
Location: Sheffield

Re: How (not) to replace the low RAM in a ZX Spectrum

Post by Firefox »

Assuming the ULA and everything is working properly, the only way to get that pattern on the screen that I can think of is for both the bitmap and attribute RAM to be filled with 00 001 111, which gives you blue paper and white ink - so the blue stripes would be paper and the white stripes would be ink.

On startup I think the ROM fills both with all zeroes, then the attributes area with 00 111 000 (white paper, black ink). So... I'm not sure how that could happen.

Random junk sounds like the RAM isn't being cleared at all, and the random values left in the DRAM chips are being displayed. If it really is random then the DRAM is probably working fine (otherwise you'd see some kind of pattern if one or two bits are faulty).

*sigh* Dunno...
"I am a very considerate person. If I want to go out all night on my miniature golf course and shoot lizards, well, no reason to keep the neighbours awake..."
User avatar
Kamineko
Baaaaaaa!
Baaaaaaa!
Posts: 7569
Joined: Fri Dec 17, 2004 2:53 pm 0
Contact:

Re: How (not) to replace the low RAM in a ZX Spectrum

Post by Kamineko »

Yep. I'm this close to just trying to flog it for £30 with the nice packaging, spare chips and keyboard membrane.
User avatar
skab
Baaaaaa!
Baaaaaa!
Posts: 3448
Joined: Sat Apr 27, 2002 1:53 am 0
Location: Barnyard, Ruhr area, Germany

Re: How (not) to replace the low RAM in a ZX Spectrum

Post by skab »

Apparently one way to check RAM chips is piggybacking a working chip on top of the built-in one. Just hold it in place and check for any differences. Never tried it, so this could be complete bollocks, but worth a try.
User avatar
venusian
Baaaaaaa!
Baaaaaaa!
Posts: 6655
Joined: Wed Nov 06, 2002 2:22 pm 0
Location: South Gloucestershire

Re: How (not) to replace the low RAM in a ZX Spectrum

Post by venusian »

I'm wondering if there's some trick you can pull with the chip select lines.

You only need the two lowest chips to be working for the machine to boot (assuming it's only the RAM that's duff), so could you cut the chip select lines of the two low ones and jump them across to two other chips? Might need to solder suck and insulate the surrogate chips' select lines but at least it's only one pin and the rest are already safely on the bus.

...and a wild guess:

Faced with those symptoms I'd be pointing my finger first at the CPU. 0x0f seems like a plausible power-up pattern for RAM so perhaps the video system is operating fine but the CPU is failing to do any work. Is the ROM inactive, leaving the CPU executing garbage?
User avatar
Dio
Sheepie Whore
Sheepie Whore
Posts: 18887
Joined: Mon May 31, 2004 1:08 pm 0
Location: Newcastle UK

Re: How (not) to replace the low RAM in a ZX Spectrum

Post by Dio »

One thing you need to check before doing the lower 16K on the Spectrum. The cheap 4116s used are early chips that require a polarising voltage of -5V on the substrate. This voltage must be applied very quickly, powering the chip up before the -5V is present can cause thermal damage. So there's an inverter circuit on the board that generates -5V through a particular power transistor.

It's absolutely essential before you change RAM that you verify this circuit is still all working fine and applying good voltage quickly, and the transistor needs to be good.

I'm not sure, given that pattern. It might be the ULA that's gone, not the RAM. If the distortion is extending into the border region then the RAM isn't the only cause.
User avatar
Firefox
Sheepie Whore
Sheepie Whore
Posts: 11412
Joined: Fri Apr 26, 2002 6:15 pm 0
Location: Sheffield

Re: How (not) to replace the low RAM in a ZX Spectrum

Post by Firefox »

Ooh, good point Dio! I tend to forget (blank out?) that ye olde memory chips often required a range of supply voltages.

Image

I'm not so sure the ULA is wasted, though - it seems to reliably produce a stable 32-column picture.

(edit) He does say in his initial post that he's checked the voltages applied to the DRAM chips, though it could still be that they're taking too long to stabilise.

/me restrains self from breaking into Kamineko's house and fiddling with the dead Spectrum. :wink:
"I am a very considerate person. If I want to go out all night on my miniature golf course and shoot lizards, well, no reason to keep the neighbours awake..."
User avatar
Dio
Sheepie Whore
Sheepie Whore
Posts: 18887
Joined: Mon May 31, 2004 1:08 pm 0
Location: Newcastle UK

Re: How (not) to replace the low RAM in a ZX Spectrum

Post by Dio »

But the RAM is only read during the screen active phase. If there's distortion outside the active area, it's something other than RAM causing it. That looks like a vertical bar on an 8-pixel boundary, and I can't think of anything other than the ULA that could generate that.
User avatar
Kamineko
Baaaaaaa!
Baaaaaaa!
Posts: 7569
Joined: Fri Dec 17, 2004 2:53 pm 0
Contact:

Re: How (not) to replace the low RAM in a ZX Spectrum

Post by Kamineko »

/me restrains self from breaking into Kamineko's house and fiddling with the dead Spectrum. :wink:
By all means! I'd love to know somebody who could put this thing on a workbench and talk me through what's going on. If you managed to fix it, cover the cost of those parts I ordered and its yours.

I've got a C64 floppy drive that's possibly only got an alignment issue (powers up, makes sounds, moves the disc about, but shows 'file not found' for a listing) that I would happily give away (with Gauntlet and Fairlight on disc too) to somebody who'd make a nice video or a picture gallery showing how it was fixed. I've been thinking of offering it on Amibay for... five years... eesh. But I wouldn't be able to post it, and their Recycle Bin rules probably frown against anything other than straight giveaways.
User avatar
Firefox
Sheepie Whore
Sheepie Whore
Posts: 11412
Joined: Fri Apr 26, 2002 6:15 pm 0
Location: Sheffield

Re: How (not) to replace the low RAM in a ZX Spectrum

Post by Firefox »

Dio wrote:But the RAM is only read during the screen active phase. If there's distortion outside the active area, it's something other than RAM causing it. That looks like a vertical bar on an 8-pixel boundary, and I can't think of anything other than the ULA that could generate that.
Oh, I think I've maybe missed something - are you looking at the vlcsnap-2-*.png photo of the blue-and-white stripes?
"I am a very considerate person. If I want to go out all night on my miniature golf course and shoot lizards, well, no reason to keep the neighbours awake..."
User avatar
Dio
Sheepie Whore
Sheepie Whore
Posts: 18887
Joined: Mon May 31, 2004 1:08 pm 0
Location: Newcastle UK

Re: How (not) to replace the low RAM in a ZX Spectrum

Post by Dio »

Yes.
Post Reply