ZX81 & QL Regulator Bug

Author(s): Fred Nachbaur
Publication: SyncWare News
Pub Details: SyncWare News v3 n4 (Volume 3, Issue 4)
Date: Mar-Apr 1986
Pages: 7

We believe we’ve found a major reason for mysterious ZX81 (and QL-ed.) problems. When building up a system for a colleague recently, I encountered a problem that plagued one of my other machines, and per reports from the field has given many other users much grief and frustration. When the expansion bus was extended, or if an EPROM was substituted for the ROM, the video display showed severe break-up, with the characters barely readable.

Does your machine have this or a similar problem under certain conditions? Do you suffer from mysterious crashes, even though you KNOW that all connections are secure? Is your display nice and clean one day, then full of garbage the next? Do certain peripherals (e.g. 64K RAM packs) cause video break-up or abrupt crashes? Does your video go for a dump after a few minutes, giving the impression of “over-heating” trouble? If so, you’re probably seeing the effect of a serious design flaw in the ZX81 regulator circuitry. The fix is very easy, involving the installation of a single, two-wire, 50 cent component. Before I tell you about the solution, however, first a little background.

Every regulator spec sheet I’ve ever seen carries an admonition to the effect of, “If the regulator is more than a few inches from the main power supply filter, then the input to the regulator must be bypassed with a small capacitor to prevent spurious oscillation.” This is an “everybody-knows” piece of information; it’s so “obvious” that none of us have noticed its violation on the ZX81 board. Sinclair Research was apparently “blind” to the problem, as was Timex when they reworked the board.

Any regulator is, essentially, an amplifier; and like all amplifiers, regulators can oscillate (produce spurious frequencies) under certain conditions. Specifically, any inductance (such as a long circuit trace) in the INPUT lead can cause a “complex feedback pole,” with resultant oscillation. A small capacitor at the regulator input will prevent this. You guessed it – such a capacitor was omitted on the ZX81/TS1000!

As you probably know, there are two small inductors in series with the power input to this computer. These were apparently an afterthought add-on, since the original ZX81 kit instructions made no mention of these. Their function is to reduce radio interference travelling back through the power-supply line. However, the additional inductance in series with the regulator input only makes matters worse, from the standpoint of regulator stability.

There IS a bypass capacitor at the regulator input, but it is a large electrolytic unit. This type of capacitor, because of its spiral-wound construction, actually behaves as an inductor at high frequencies! Furthermore, there are several inches of circuit trace between it and the regulator, so even if it were a “true” capacitor it probably wouldn’t do much good.

The resulting problem is especially pernicious in that it only affects SOME regulators on SOME machines. Swapping chips (ULA or CPU) or slightly changing the hardware configuration can cause a change in the observed symptoms, which can lead you to believe that you’ve narrowed the problem down. The problem still exists, and can re-appear with temperature changes, different peripherals, even line-voltage changes.

The fix is to install a small (.1 – 2.2 uF, 16 volts or better) tantalum or ceramic capacitor directly across the regulator input. Solder the capacitor directly to the regulator leads, on the underside of the board. I recommend the slightly more expensive tantalum type, both for its small size and for its excellent performance at high frequencies. The “-” lead goes to the centre regulator terminal, and the “+” lead goes to the regulator input (the terminal farthest from the edge of the board). You might be amazed at the effect that this can have; I was. A machine that crashed when the cat walked by and had an atrocious display when it did work, was miraculously transformed into a stable, crystal-clear dream machine in less than a minute.

By the time they designed the TS1500, Timex had gotten a little smarter. They included a small tubular capacitor in addition to the large electrolytic, so this is unlikely to be a problem. However, it is not located directly at the regulator input, so it could be viewed as a “bare-minimum” solution. It can’t hurt to install a small tantalum right across the regulator just to be sure. On the 1500, the input lead is the one closest to the keyboard connector.

Apparently, the QL suffers this same design flaw. I recently installed a 512K RAM board inside my QL. The only extra part I received was a .1 uF disc cap to be tacked across the 5 Volt regulator. You guessed it, from the 9 Volt input to ground. My QL suffered frequent “walk-by” crashes before this cap retrofit. Now it runs without pause, regardless of the static in the air. Place the cap across the pin closest to the reset button and the center pin. I think Sinclair Reseach could use a good analog man.-ed.

Similarly, the TS2068 seems to be adequately bypassed throughout. However, it’s no secret that it, too, suffers from dirty video. Since it uses a switching regulator, the matter is complicated somewhat; I haven’t had any success in cleaning up the display with additional bypassing. One report indicated that using nice, fat wires to parallel the narrow 5-volt circuit traces improved matters; interestingly, this had already been done by Timex on my machine. John Oliger reports improvement by getting rid of the switching regulator circuit, replacing it with a good old analog regulator with a big heat-sink. Another (untried) suggestion was to synchronize the CPU clock with the video chroma oscillator. This could be done with a 4x frequency multiplier on the 3.57… video crystal, to replace the 14.112 CPU crystal. Does anyone out there have a workable design for this? Any other ideas?