Zx spectrum on modern details. Description of the scheme of computers.x device and computer operation

Good afternoon (optional evening/night).

I want to dedicate my 20th review to the computer that won my heart. I invite you to visit this lamp post. Be sure to mark all the former and current owners of these magnificent devices, share ideas, links, gadgets for our favorite computer. Please lean back in your chair and gradually sink. (The review is very large, contains instructions, diagrams, thoughts on assembling and upgrading)

FOREWORD

A long time ago, in a galaxy far, far away...

This man, whom you see from above, is not casual here. This is Clive Marles Sinclair himself, the former owner of Sinclair Radionics, which produced Spectrum computers. This is the same person who wanted to make the cheapest apparatus for work, period. Yes, he did not like games and believed that this was a waste of time and a wrong investment. (I wonder what he would say now, looking at the wildly developing gaming industry). Yes, let the experts correct me, this gentleman went into the invention of electronic bicycles with his head and it seems that he stayed there, making something like this:

Otherwise, it's a completely different story. Today we will talk about a set for self-assembly of a computer, a bygone era, the end of the 80s.

I first met the Spectrum when I was 7 years old, my father assembled it for me. Then I discovered a whole wonderful world of games and programming.
As one good man said - “If you once met the Spectrum, then it will deeply sink into your soul and one day, when it becomes completely unbearable, you will run around the flea markets and look for it.” And it is true. There is only one big BUT. You can buy, of course, on eBay there are lots selling both 48k and 128k models. But one day, when I was "unbearable" looking for information about the Spectrum, I came across this site, which offers ready-made kits for self-assembly of the device.

I was very surprised, people sell and make boards of the Soviet copy of Leningrad 48k with the corrected circuit. There are certainly pros and cons to this option. But guys, here they offer to assemble a computer with their own hands, but what could be cooler than understanding the principles of computer operation at the hardware levels ?! It's just a fairy tale. Naturally, for such work it is desirable to have experience, little, my experience in assembling computers is limited to the RK-86 model from the Radio magazine, compared to the Spectrum, it is a grain of sand, in terms of complexity, and you will have to work hard to debug it.

As usual warning:

All responsibility, namely independent penetration into the body of the finished product with subsequent violation of its integrity of performance, lies with the person who committed this action.

In addition to the above, when working with memory chips, use a grounded, anti-static wrist strap so as not to damage the integrity of the chip, just do not forget to connect Video, RGB, Scart and the like cables only to devices that are turned off.

PREPARING FOR ASSEMBLY

This set is supplied without RAM, memory chips are used and at the moment it is difficult to find them, you can also use chips, but with minor modifications in the circuit.

Where to get? We dismiss flea markets right away, analyzes also due to the fact that the chips can be damaged, among other things, there are features with this kind of memory, namely, it is sensitive to working in one batch (more precisely, all the chips installed in the machine should preferably be of the same batch, revisions and dates of production, as well as cities of production), I encountered this when assembling RK-86, Soviet memory is too capricious, it is even advisable to buy new chips in bulk, you never know what.

Therefore, having called all the stores in Yekaterinburg, the chips were found in only one - at a fabulously low price. It is understandable who in our time may need such a small RAM, and even so slow.

Especially before buying, I asked to bring a package of chips, so that I could make sure that they were pouring from this particular box. Maybe I was overly suspicious in this decision, but you never know what.

And the following resistor values:

For little things, an audio jack for Jack - 3.5, additional sockets, if you do not want to solder microcircuits. It is possible to install SMD cases of resistors, diodes, capacitors (for example, blocking capacitors can be replaced with SMD).

The tool will require the following set:

1. soldering station / soldering iron with temperature control,

2. oscilloscope (very, even very desirable),

3. multimeter,

4. if there is no oscilloscope, we use a logic analyzer.

SUPPLIED KIT

I often pay little attention to the packaging, because I'm used to deliveries from China, but Russian packaging is always worth a look, I'll put it under the spoiler, whoever wants to take a look, look.

Package

Microcircuits and spare parts were wrapped in a bag and glued with adhesive tape:

The board itself is laid with two pieces of corrugated cardboard and wrapped in packaging polyethylene:

So, let's take a look at this beautiful set of spare parts.

Pay. You know, this board is made at the highest level, just incredibly well. I have not held such high-quality custom boards in my hands for a long time. Wiring, silk-screen printing and inscriptions ... Mmmm magnificence, let's just enjoy:

Some of the inscriptions on the board are breathtaking, I really like them.

I also attach photos in a large size of the board as a whole, in order to fully appreciate the quality of workmanship, it does not smell of handicraft:

The kit comes with cribs for RAM, ROM, CPU chips:

The crumble that comes with the board in the kit. (Beeper, a set of BC547 transistors, capacitors for all the necessary ratings, 2.54mm pin connectors, quartz at 14.000 MHz, diodes):

All logic that is required to run a computer (including CPU and ROM). By the way ROM - the memory is already flashed by Sinclair BASIC:

For orientation in the microcircuits of the times of the USSR, I drew the following picture:

Of all the microcircuits, not a single military commissar, two marked statics- K561LN2 and K561IE10A and a bunch of various enterprises.

ASSEMBLY

We use the two presented schemes and, if you ever want to figure it out more closely or run into difficulties, we begin to slowly collect. The most important thing is to keep track of exactly what and where we put.

Also to help the layout of microcircuits and other elements:

The main thing in this matter is not to rush, otherwise you will get completely confused. I started the assembly with little things (capacitors, resistors, diodes). Complete capacitors (blocking, nominal value 104) I changed to my own - Murata Manufacturing. Plant quartz last, due to the fact that it is very close to the resistor R1 and if you solder quartz at the root, the resistor will have to be soldered by surface mounting.

How not to do it!

At first I decided to put everything on DIP sockets ( and it was a big mistake), I thought that if the microcircuit fails, then I can always easily buy it, but in practice everything turned out differently, I collected all the glitches. You can read about glitches and their solutions below.

Toward the end of the assembly, I began to assemble a tape reader module based on the K561LN2 microcircuit, the module diagram is classic, I attach below:

Test run with wired Video cable with CPU and RAM installed:

Strange, but it should be:

It looks like there is something there. Looking at the board, I found a couple of errors:

1. Resistor C2 is not soldered.
2. Resistor C1 is not installed correctly.

I also replaced the remaining capacitors (blocking), with a face value of 104, with Murata. Replaced transistor K315B.

Iiii nothing, after making all the replacements and then turning on the device, I got this:

At the same time, there is 5V in a circle, but the CPU does not start. Sadly. I started looking for the reason, along the way ordering a logic analyzer.

1.5 months passed and there was no result, I already started to get upset, as a notification about the parcel came from the mail - the analyzer arrived.

The signal analyzer is a device based on chips that is a USB2.0 peripheral controller and an 8-channel receiver (I would even say sniffer) that captures from the data lines.

This device works using the software package -.

It seems that everything is there to solve the problem, but the problem remains the same as it was.

I suffered for a long time until I decided to take down all the cribs for microcircuits, leaving only RAM, CPU and ROM.

And lo and behold, everything worked! (But my RK-86 was assembled on the same panels, and everything works)

This is what the debug process looked like:

As a result, long and painfully rechecking everything and cutting off leg 1 from the DD4 chip (K555IE7) with the accompanying soldering to the ground, I got the image:

Face progress. Do not pay attention to the scan, the TV is old and has a problem in this area. Further, if you look closely, you will see that the icon - © is displayed incorrectly, this is the famous problem of the Leningrad 48K computer (incorrect drawing of circles), it is solved as follows, we cut off the track from IR9 -> 1 and LN1-> 10 and solder the following circuit:

In general, when using different manufacturers of logic, you need to individually select the capacitors for the sweep from the DD4 -> IE7 and DD6 -> IE7 microcircuits, in fact, empirically, a capacitor is placed on the first and second between the ground and the 11th leg.

KEYBOARD MANUFACTURING

A computer is certainly good, but without the ability to enter, it makes no sense to have it, so we will make a keyboard!

The keyboard pinout is in the main circuit for Leningrad 48K:

For the keyboard we need:

1. Textolite size 100x160.

(I decided to make a compact keyboard in order to fit the device into a compact case, and in general I like compact keyboards).

2. Laser printer for LUT.

3. The buttons are tactile, the height is selected independently.

Unpacking, marking and cutting:

We prepare and cut out the template for the LUT:

Open the editor and draw the keyboard:

In the editor, it is drawn with a second layer, but let's just say, you don't need to poison this layer, save your time, you shouldn't poison for the sake of poisoning.

For you, I have prepared a ready-made template for printing:

Mirror pattern NO NEED!

Then we print it and cut it out:

For etching, you will need the following kit:

1. 100 ml pharmacy 3% hydrogen peroxide

2. 30 g citric acid

3. 5 g of table salt.

4. Capacity.

For a board of my size, this is enough with my head, and for the speed of etching, I prudently drew polygons, so that the solution would not be wasted.

We transfer it to the workpiece with an iron, I advise you to use the substrate from the oracle:

It can be seen that I corrected the small flaws with a marker resistant to ferric chloride and threw it into the solution:

At the end I got this result. I will say right away that I screwed up, in order for the inscriptions to be clearly visible, I kept it a little longer in the solution and spoiled the tracks in some places:

Well, okay, this is not criminal, we take a wire of 0.5 mm and solder the tracks:

READY FOR LAUNCH

Oh how good he is!

We're starting!

Install the PlayZX application on your phone or tablet:

Using the AUX cable, we cling to the Spectrum, turn on the device and go into download mode ( on the Spectrum keyboard, press J -> while holding SS, press P twice, you will see this entry - LOAD "" and press enter). After that, select the desired image of the game in the phone and click play. The game will be loading.

The program download process is as follows:

Downloaded Saboteur game file:

And of course, an example of loading a program from scratch, let's check the same saboteur:

CONCLUSIONS

And so let's summarize. Buying this computer, you are not just buying a stupid model for assembling similar to Chinese ones, you are gaining a large layer of experience in assembling such computers. As I said before, in my childhood I had a similar computer, although it was 128K and had 5.2-inch floppy disks, in any case I was pleased with the result.

If not for this computer, I would not have acquired a new tool, such as a signal analyzer and a hot tin suction, for desoldering microcircuits and, of course, experience.

Nuances, the platform is completely copied from Leningrad 48K, it can be adjusted to different quartz depending on the complete, logical base, which is very good.
It works stably, using the PlayZX application, you will discover the world of games for the ZXSpectrum, and I myself was surprised by such a large library.

A very large community around the world, by the way, some people release new games for these computers, and also port old NES, for example, Castlevania.

PS. An excellent start in microelectronics for a child and a great pastime for solving a particular problem.

P.S.S. The review turned out to be simply gigantic, but there is so much to tell, but we will have to limit ourselves to the essence, in the next DIY we will make a case for this device and we will screw RGB and SCART, there are ideas to make it in the form of a laptop.

Information to help assemblers Leningrad 48K:

1.
2.
3. Liked the review +253 +425

“For 8 years I played Spectrum in black and white and everyone knows why, but because our valiant RGB TV sets did not understand the signal at all.” I would like to say, to stumble, to remember that the sun used to be brighter and the grass greener. But I won’t say, in my childhood no one ever said the word Spectrum. All my childhood I played dandy, later sega, with friends sometimes in supernintendo. Neither in Dendy's New Reality program, nor in Ot Screw, nor in any magazine have I heard about this computer. I've heard vaguely about computers that boot from cassette tapes, but I've never seen them or know their names. I first learned about it only when I got the Internet. I read the forums, envied those people who in the late 80s and early 90s assembled their own computers, but I missed the fit. Although in those years I was small and, with all my desire, I would not have assembled my clone of the Spectrum. How much have I lost? This is a question I started asking myself not too long ago. A year ago, I came across a very good video where one guy told in great detail and showed how to solder a Leningrad Spectrum clone. I reviewed it more than once and in the end decided “I will assemble my computer from scratch!”.

I decided to take the original scheme of Leningrad from sblive.narod.ru as a basis. Well, add a bunch of improvements, such as correcting the drawing of a circle (it is not clear how Zonov could design a computer with such a fierce jamb. It is expressed in font problems, jambs of graphics, etc.), stabilization of the crystal oscillator, stabilization of frame and horizontal synchronization, refinement of the INT signal, introduction of binding to black level.

To make this process even cooler and more interesting, I did not look for a ready-made board, I ordered a breadboard of rather compact dimensions 12 * 18. I also had to order chips and other small things from aliexpress and CHIPiDIP. The memory and processor had to be soldered from a non-working clone, which I recently received from a spektrumist. I still don’t know what kind of clone it is, there is no circuit for it, and I just soldered the microchips out of it.

I decided to put all the microcircuits on panels for quick replacement if something goes wrong. But after all, the Spectrum contains a ROM, and it still needs to be flashed, I didn’t have a programmer, but the world is not without good people. Instead of two EPROMs, I decided to put one EEPROM W27C512, into which I sewed 48k BASIC, 128K BASIC, TR-DOS and a memory test for 48k, it's also nice to be able to switch memory banks with jumpers. But now all my details came, having thought in advance where which socket would stand, I began to solder them. Well, I stuck stickers on the board with inscriptions where which microcircuit and the numbers of the legs, which greatly facilitated my life in the future.

Devoting a couple of hours a day for two and a half weeks, I still collected it. Couldn't wait to plug it in. And after turning it on, I saw a white screen, what a good idea I thought. After rechecking the entire board, removing a couple of jambs, the situation did not improve. For a long time I could not understand what was the matter, but then I found out that you should not interfere with CMOS and TTL microcircuits. Yes, I'm still a radio amateur. I had to order parts again and wait. After replacing all CMOS chips with TTL, the coveted inscription still appeared, but the image floated.

An appeal to the zx-pk.ru forum made it somewhat clear what was happening, but I did not have a solution. As a result, I had to sit for hours over the scheme. And voila, I just misunderstood the scheme for finalizing the formation of the INT signal, or rather, at first I understood it correctly, and then I thought that it was wrong and did it with a jamb. Well, another problem has been fixed. But not everything is as rosy as we would like, frames were constantly running on my multimedia monitor. And then I decided to connect with the good old SHARP TV, which never let me down. But the truth is in b/w, since there is no RGB scart in it. And the picture on it almost did not twitch. Again, an appeal to the forum gave good advice, to make a filter for a switching power supply.

And finally, the picture is normal, no twitches, we run a memory test.

But the Spectrum also needs a keyboard. Then I got out in a rather original way, took the old keyboard, pulled out a film with contacts from it, cut the getinaks into pieces, soldered the contacts on it, processed them with a file and glued them with hot glue to the clave, and soldered them according to the scheme. It turned out to be a rather bulky external clave. Well, I built the ports for Sinclair joysticks directly into the keyboard. Joysticks from Sega Master Systems or Atari are suitable, well, or, as in my case, a Sega joystick soldered inside, for which I brought the spacebar (namely, it is almost always used as an additional one) to button A, well, when you press button C, pressing up is duplicated, which is convenient in platformers.

It didn’t work out for me with the speaker and I just brought the beeper to the TV, so at least the volume can be adjusted. Having written a simple melody in BASIC, having tested the sound, I decided to download some kind of game. And ... nothing happened to me. I assembled a tape reader on the K554CA3, tried several microcircuits, double-checked the entire circuit, but it didn’t start, why, it’s still not clear. I rebuilt the reader on 561LN2 according to the scheme from the Pentagon-48 (first on a breadboard before soldering) and everything worked the first time. Although games were loaded, most of them hung immediately, some, like DIZZY 5, managed to play a little.

Once I woke up in the morning, I thought about whether I soldered the capacitors correctly ... and OMG, instead of 47 nanofarads, I soldered 47 picofarads, and I also wanted something to work. Once again we order the missing parts, we are waiting. After the global soldering of the capacitors, you can finally play normally, nothing else hangs. I had to reassure myself that most of the games on the Spectrum are monochrome anyway, and I don’t lose much, that in the late 80s, not everyone had color TVs and many played it with a b/w picture. But somehow it didn’t help much, you know.

And on my LCD monitor, the frames were still running. In the end, I still decided to solder an additional microcircuit to shorten the horizontal sync pulse, which I wanted to install at the beginning of the assembly, but for some reason I decided to save money. As a result, I finally got a good color picture.

The image is a little double. Checked on the LCD TV, doubling is not visible. The picture is great. Super! But there is still free space on my board and it would be foolish not to use it. It would be great to expand the memory to 128k and play the 2015 castlevania. To do this, we will change our K565RU5 to K565RU7 or an analogue of MN41256-08, which can be bought on aliexpress without any problems. Having added 7 more microcircuits, including the YM2149F sound chip, the board was completely filled. There were no problems with the memory upgrade. I expanded the memory to 256k according to this scheme, but still I use it in 128k mode.

In the end this is what happened

Initially, I didn’t intend to use the board on the table and for this I picked up a case from an old TV set-top box, theoretically you can put an additional drive controller board on the second floor there, but I don’t want to bother with it yet.

Speccy games turned out to be fierce hardcore, I only managed to get through the recently released Mighty Final Fight.

So how much did I lose by not having that computer as a kid? In terms of games, it's unlikely, although the ability to transfer games from cassette to cassette could really appeal to me. In terms of programming in BASIC, it would hardly have interested me at that time.

Buy or build your own ZX Spectrum? Easily! grmretro wrote on July 12, 2010

Moreover, another project is on the way - Speccy 2010. Progress has not bypassed the spektrumists, as they did not try to avoid it :-).
(photo of one of the prototypes. in the final version, there are no wires for correcting errors)

You won't find a live Z-80 or music co-processor here. EVERYTHING IS INSIDE a large chip and is implemented in software.
Quote from the forum:

“The state of the software today:
fully all functions of Speccy2007 v1.06 (128k, Pentagon's huts, betadisk emulator, AY, tap/tzx/sna download).

Besides

  • - output to TV - RGB, s-video, composite
  • - more correct and faster work with sna (now not a single byte of the dump is corrupted)
  • - turbo (7, 14 and 28 MHz)
  • - weightless keyboard
  • - all multicolors and border effects are clear (like on spectaculatore)

I plan to do more
  • VGA in scandible mode
  • mode with temporary branded Spectrum
  • kempston mouse and gluk rtc
  • different modes with extended memory”
The bonus of the device is the absence of old-mode components, higher reliability, expandability by uploading new firmware. And of course, I also want to dream that this board will implement not only the ZX-Spectrum, but also some MSX, Vector, Orion or Apple 2 in general. But so far these are just dreams. Bye...
Speccy 2010 is also possible

11 / 11 829

print version

It just so happened that "Leningrad" was the very first Spectrum that I saw, and it was also my first computer in general. Despite its simplicity and underdevelopment, so many memories are associated with this computer that I can’t just forget about this Spectrum clone.

Leningrad was designed by Sergei Zonov in the late 80s. The boards show the date 1988 (ZS88):

Boards dated 1989 come across:

The computer is simple, contains a minimum number of chips. Decryption of ports for reading is utterly simplified - all even ports are considered a keyboard port (254), all odd ones are considered a Kempston joystick port (31). This disgrace comes from the fact that only one bit of the address bus, A0, is used to decrypt the ports. An even greater disgrace is created with output ports, in particular with the #FE port - it works when a value is written to any port at all, i.e. there is no decryption.

In addition to the "curve" of port decoding, the computer has a non-standard video output. This manifests itself when trying to connect it to TV tuners, PAL encoders and, in general, to modern LCD TVs. As a rule, such attempts end in nothing. This problem is solvable, I will talk about it a little Later.

All the "Leningrads" I have seen are assembled in cases of the "coffin" form factor. Jokes aside, the shape of the case with beveled corners is somewhat reminiscent of a coffin. In terms of size, all cases are approximately the same, the difference is only in the material from which the case is made.

Let me illustrate with examples:

This is all that's left of my very first computer. The case (by the way, quite massive for such a small size) is quite well preserved, and I still hope to assemble a Spectrum in it.

There are also lighter aluminum cases:

This copy is well preserved and has been restored. Now it looks like new. Compared to the previous chassis, this complete computer weighs less than a steel chassis.

The third type of housing is plastic. From my point of view, the worst case:

Note the almost complete absence of blocking capacitors on the board. Despite this glaring shortcoming, the board worked remarkably well without failures for the previous owner for a good ten years.

If a toad was strangling a ready-made computer, then you could try to assemble the "Leningrad" yourself, since it was not so difficult. I also soldered one "Leningrad" on my own when I was in my first year at university. Then (in the mid-90s) it was possible to buy an empty Leningrad board on the radio market for ridiculous money without any problems:

Such boards differed in one feature - somewhere in the area of ​​\u200b\u200bthe tape former they had a short circuit of the + 5V and GND power buses. If the corresponding jumper was not cut when assembling the computer, then when you first turned it on, there was a great chance to get puffs of smoke with the burnout of one or more printed tracks on the board in a random place. Fortunately, I knew about this feature, and I called in time and eliminated the place of the circuit.

There, on the market, computer circuits, microcircuits, keyboards, cases were sold. In short, then there was a real paradise for the assembly of such structures. By the way, about keyboards: buttons from calculators were mainly used:

The photo shows the old inscriptions on the keys with peeled stickers. These are clearly buttons from some kind of calculator. In terms of quality and reliability, such keyboards did not stand up to criticism. Maybe such lousy buttons are good for calculators, but they are not at all suitable for a computer. Especially for games. I remember I hesitated to bend the contacts in such buttons so that they would somehow work. Perhaps the only positive thing about these buttons is their cheapness and availability. Therefore, at the first opportunity, I switched to reed keys, which were much more convenient to work with:

It turns out that there were also such "Leningrads" - with a built-in keyboard and a system connector. The scheme of this "Leningrad" almost completely coincides with the canonical scheme. The exception is the tape input, beeper output and video output. Decryption of #FE port in this clone is corrected compared to the original "Leningrad" - the port is addressed by A0=0, unlike the original, where outputting a value to any port will trigger port #FE. I started the payment. In the photo of the board in the lower right corner on the breadboard is made revision to connect to a PAL encoder.

The board is generally well made - competent power wiring, places for blocking capacitors. I like it.

Unfortunately, it was not possible to identify the name of this clone (in the sense of the manufacturer's brand of the computer). There was only one inscription on the board - LS10.102.002.