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:

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

Post by Kamineko »

Against my better judgement, I decided to put a bit more money into this thing and do the job properly.

I desoldered the remaining low RAMs and chucked them. Soldered sockets in their place, and put in a bridge cable to fix the trace I'd lost.

Lots of desoldering, didn't lose any pads
Sockets
Populated sockets
Box of new capacitors

I desoldered and replaced all the electrolytics one at a time.

I don't know what this unusual assembly here is all about. You've got capacitors on top of capacitors, and the lower lead links to a post that's got a severed trace and now links to just a red lead to those diodes.

Unusual assembly 1
Unusual assembly 2
Unusual assembly 3
Unusual assembly 4

I've reproduced it as well as I can.
Unusual assembly new

Unfortunately, despite all of the resistance checks from JpCs video passing and the voltages on the lower ICs (still) being good, I'm getting the blue striped display. Also, the picture quality seems rather bad, it's still difficult to tune my TV into it despite the new capacitors.

This is the video display - cyan vertical bars, half-tiles are darker. There are randomly appearing black horizontal 1 pixel lines across the screen.

This is probably a ULA problem, right? :(

I tried shorting the reset pin of the z80 to see if any changes happened but there was no change at all.

The first time it's turned on, the border is black. Subsequent times it's white.
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 »

Not sure. Most of the ULA must be working - all the timing circuitry must be correct, and the colours don't look too awful. I'd have thought if the chip was toast it would largely be completely toast.

This bloke looks another decent reference point too:

http://blog.tynemouthsoftware.co.uk/sea ... 20Spectrum

This blog post shows how some people are ahead when it comes to the "Build a replacement Spectrum" idea - there's a kit to build the entire thing in TTL (no ULA), and it still fits in the standard case!

http://blog.tynemouthsoftware.co.uk/sea ... date=false

I think the lesson of reading a bit of his blog, one I've always thought myself, is "An oscilloscope is pretty much a requirement for this shit :)"
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 looked through all of the posts labelled ZX spectrum, nothing similar to my stripes. :(
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 »

I think you need a scope or a logic analyser to go much further.

I grabbed one of these http://dangerousprototypes.com/docs/Ope ... ic_Sniffer for looking at traces off old computers. It's hardly pro gear, and it looks like supplies are getting harder to come by nowadays, but with 16 channels you should easily be able to debug what's going on on the RAM bus, assuming it's a digital problem. I got some great traces off various bits of the ST - the only "problem" with it is that it's discretely sampled rather than edge triggered and the sample rate isn't high enough to check skews or glitches, so it's far from a full replacement for a GHz scope.
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 »

My measured reaction.

Man, hardware sucks. How do you even stand it?
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:I grabbed one of these http://dangerousprototypes.com/docs/Ope ... ic_Sniffer for looking at traces off old computers. It's hardly pro gear,
Actually, I much prefer them to the commercial analysers that I've used (up to the big Tektronix ones that are built into a little trolley, which I haven't seen for many years now). About the only thing I miss from commercial equivalents is a wide input voltage range, so you can attach probes directly to RS232 lines (but, then again, you don't really need that much nowadays).

Seeed Studio still sell them direct - they're a long established and reputable company.
https://www.seeedstudio.com/Open-Workbe ... p-612.html

JoulesPerCoulomb has a few videos where he attaches one to the edge connector of a Spectrum and talks through the waveforms he's captured.
Dio wrote:the only "problem" with it is that it's discretely sampled rather than edge triggered and the sample rate isn't high enough to check skews or glitches, so it's far from a full replacement for a GHz scope.
200Msamples/s is pretty good even compared to commercial offerings, and should do pretty well with signals of a few MHz as found in a Spectrum.

The limitation of logic analysers in general is that they snap every sample to a 1 or 0, so analogue effects disappear. A capacitor charging curve will get changed into a steady 0 level eventually followed by a steady 1 level, and ringing on signal transitions vanish because they tend to happen well away from the crossover point. So, yeah, having a scope as well is often invaluable for looking at signal integrity problems in digital circuits as well as investigating purely analogue circuits.


Any road up - Harlequin. I do remember the Harlequin project, but I don't remember it getting as far as a kit you can build and fit into a Spectrum case. You can even get them pre-built! Very cool stuff.

I very enjoyed reading lots of posts from the TynemouthSoftware blog, too - interesting to follow along with his diagnosis, and great to see someone doing a good job of restoring classic machines in a sensitive manner.
"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 »

Ive replaced the regulator with a Micrel MIC2940A 5 since I had some new I hadn't used.
Plus side, the screen is now a lot more stable. Negative side, its now showing a solid black screen, nothing in the centre, border always black and occasionally there's a deep green flash.
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 would love to build a kit computer like the Harlequin, but my absolute high limit for something that has no practical purpose and might not even work is nowhere near how much the webshop I found charges for one.
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 »

Firefox wrote:
Dio wrote:
Dio wrote:the only "problem" with it is that it's discretely sampled rather than edge triggered and the sample rate isn't high enough to check skews or glitches, so it's far from a full replacement for a GHz scope.
200Msamples/s is pretty good even compared to commercial offerings, and should do pretty well with signals of a few MHz as found in a Spectrum.
On the ST traces I've taken, even at the very high sample rates the apparent resolution isn't that close to 5ns. Even at the max sample rate, the 8MHz clock could often (but not always) be a bit lumpy and the relative timing of signals often appeared to drift around. A chunk of that might be down to the cheapo probes and quantisation effects but in the end the result is the same - it's no good for measuring a skew or a glitch.
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:On the ST traces I've taken, even at the very high sample rates the apparent resolution isn't that close to 5ns. Even at the max sample rate, the 8MHz clock could often (but not always) be a bit lumpy and the relative timing of signals often appeared to drift around. A chunk of that might be down to the cheapo probes and quantisation effects but in the end the result is the same - it's no good for measuring a skew or a glitch.
Erm, well, that's the nature of logic analysers. They present a strictly digital view of what's happening at their inputs, and it's sampled at a regular rate that's not synchronised to the target system.

If you think about the 8MHz clock, that needs at least 16Msamples/s to just barely capture it going up and down. 200Msamples/s gives you ~12.5 samples per high and low level, so you'll tend to get the high level (say) of each clock cycle coming in at 12 or 13 samples long, depending on whether each edge happens to fall into this sample point or the next, and also when exactly the edge crosses the threshold from a 0 to a 1, or vice-versa.

Logic analysers are useful for determining - from a digital perspective - that this event happened before that event, or for seeing what values are on buses. They're not meant for investigating analogue effects, or for measuring precise timings.
"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
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 have a little Saleae one and it's great for diagnosing digital interface issues but yes, you absolutely have to get the analogue stuff working first or they'll lie to you over and over again.
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 »

Without the ULA inserted I get a solid black screen without the flashes so I guess the ULA at least is toast. Its also possible that with all my fiddling and pressing in the lower ram ICs that ive flexed apart some traces around the ULA area maybe. I put the ula back in and severed the power trace near ic25 to see if the upper ram was preventing it from starting but it made no difference.
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 »

Without the ULA you will always get a totally black screen since there is no video signal at all.
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 »

If the modulator was asplode then I'd continue to get a mangled screen as well as a black screen, I think?
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 »

The ULA generates the video timing. Hsync, vsync etc.. No video timing, no video signal. So no ULA, black screen.

Therefore, at the very least the video timing portion of the ULA (which is about 2/3rds of the die area) is definitively working OK.

There's no guarantee it's actually all working, but for me I'd assume that if any part of it is working it is at least as likely that it is all working than it is partially not working. But to find out, you'll need to start looking at the actual signals coming in and out and that needs a scope or a logic analyser.
Post Reply