Repair of the Atari 2600 jr

I found PCB from the classic 2600 JR. It was forcefully removed from the case maybe using a hammer. The PCB is bent, some parts torn out and missing switches.

Atari 2600 Jr PCB repair

PCB was cracked and several traces were broken. I repaired them, but the game didn’t start. Sometimes I noticed some video starting, but only for a few frames. I checked all connections using an oscilloscope and found that the CPU address pin (A7, maybe) is floating. I removed the chip and everything become clear:
broken UM6507 CPU
Very interesting- the chip body is broken, but the crystal is OK. Only ONE leg disconnected.

The rest of the story is very simple: ordered some cheap from China, received a fake one, opened a dispute, and received money back. Then I ordered some other and the system started up.

Posted in Anything, Vandalising | Tagged , , , | Leave a comment

Thing to know: Z80 CPU clock

I just only want to send notes to myself. Z80 CPU clock must be 5Vpp and pure TTL levels sometimes are too low for good and stable CPU work.

ancient Z80 CPU in ceramic package
Even this old CPU is very stable at 5Vpp clock, meanwhile 3.3Vpp was too low. Some CPU versions are working fine, but some are very unstable. The 3V CPLD output was good only for the CMOS version, meanwhile NMOS was not working- only 2..3 CPU cycles.
This information is not written in all available datasheets.

Posted in Anything, MCU | Tagged , , | Leave a comment

AM modulation, schematics, lots of transistors and perfect modulation

I was testing various AM radios and noticed that I don’t have a proper AM source. The AM broadcasting station in my region is very scarce and weak. Also, I wanted more options for radio receiver testing.
I thought that the internet is full of simple AM modulator circuits, but…

AM modulations some examples
Typical internet schematics are not real AM. It only “some sort” of AM modulation, and, yes, radio receivers can decode sound from these circuits. Most circuits do “1” and “2” versions, but none was like real AM.
Continue reading

Posted in Anything | Tagged , | Leave a comment

Simple Sinewave generator

There is simple and good way to generate quite pure sine wave:
simple sine wave generator
This circuit is not very simple, but results are quite fine: output is pure sine wave. From the other side, this schematics have some minuses: it is hard to change frequency. So this type of generator is not very useful for variable frequency devices.

For my purpose I am using this generator to modulate RF. Here are some oscilloscope shots of real world hardware:
Sine wave oscilloscope image

AM modulation in it’s classic way:

SIN generator

P.S. This device uses dual polarity power supply.

Posted in Anything | Tagged , | Leave a comment

ZX LCD

After building ZX Spectrum clone in CPLD I ported hardware code to another project and this is a bit simpler, but it uses some mono LCD from old copy machine.

ZX Spectrum with LCD interface in CPLD
Now I used only one CPLD, but I added an additional SRAM chip. Now I don’t need any memory management (MMU)- the video part of the computer is completely “write only”. It is shadowed in the external SRAM chip and if the computer needs to read some data it does not get data from the video part of the computer. This makes design much easier to implement.
CPLD also monitors all IN/OUT operations and generates all specific video signals for LCD (it is four pixels at a time interface).

Running game on monochromatic LCD is quite hard
This is 320×240 pixel monochromatic screen, without any gray levels. So I can not emulate any colors using grayscale. For the border I used vertical stripes, but for the screen part is “only black and any other color is white” mode. So games are unusable. Also, moving parts are blurred.

All files to download:
Intel-Altera Quartus CPLD source code for ZX Spectrum LCD version.

Do not forget that regular Z80 need a 5Vpp clock for proper operation. I used a CMOS buffer for this.

Ant here is pinout for  EDMMPU3BDF LCD:

1. ON/OFF
2. n.c.
3. VS
4. HS
5. pix CLK
6. Vcc, +5V
7. GND
8. Vee, -25V
9. D3, pixel data
10. D2
11. D1
12. D0
13. Vee, same as 8.
14. contrast.

Posted in Anything, FPGA | Tagged , , , | Leave a comment

Cartridge for Commodore 64

Sometimes I want to show how old 8 bit computers work for some n00bs. It is nice to load some games from tape, some from disk. But when I want to show more games, the best thing is cartridges. And not a single universal cartridge, but a pile of them. This looks more “expensive” and cool.
Another reason- cheap PCB and that I wanted to go in this way.

selfmade C64 commodore cartridge
And the main reason for cartridges is speed- just put in and power on. I never liked this game.
Continue reading

Posted in Anything | Tagged , , | Leave a comment

ZX Spectrum inside CPLD

I found an old ZX Spectrum clone made in Soviet Union in the 90’s. It was my computer, I wrote several programs on it and also, I wrote drivers for Epson printer on this hardware. This model has Soviet chip КР580ВВ55А (Intel i8255) and I used this port for the LPT interface and some custom hardware.
I powered it and without results- old crappy Soviet chips are dead. At least 3 chips were bad and the quality of PCB prevented me from full repair.
Soviet ZX Spectrum clone
Continue reading

Posted in Anything, FPGA, MCU | Tagged , , , , | Leave a comment

Fancy soldering

Good fellow donated my collection with a new item- Sharp PC-2500. The only big problem- this old computer had caustic batteries inside and they leaked. Alkaline used in the batteries has a very ugly feature- it can travel under conformal coating along copper traces. All this made this computer DOA.

Sharp PC-2500 repair
In this picture, the computer is a bit working. Still missing some parts of the image, one keyboard key is not responsible and software freezes. It is possible that damage to PCB is not only eroded traces, but there is a side effect of CMOS technology- the resistance of the PCB is lowered and it may cause problems with high resistance CMOS circuitry. Any unclean spot in PCB has quite low resistance for low current signals. I was trying to wash parts of PCB, but it is paper based PCB and discoloration shows that alkaline salts are inside board material.
Continue reading

Posted in Anything, Vandalising | Leave a comment

Testing Commodore 6526/8520 copy in CPLD

There are quite expensive obsolete chip from various Commodore computers and peripherals- CIA/PIA MOS 6526 and a bit changed 8520 used in Amiga computers. This is a “complex” peripheral interface adapter chip for 6502 processor or 68K chipset.
It is quite complex, as it has: 16 individual programmed I/O lines, 2 independent, linkable timers, real time clock timer/counter, shift register for serial interface and some other stuff. As this chip is for “interface”, some of the pins go outside the computer and connect to various other devices or… some strange objects like metal pins or pens. S, short circuit, ESD spikes can kill these chips. When I lived in Soviet Union, I blew an Amiga 8520 chip and I had my Amiga shelved for several years!
Now it is still possible to buy these chips- sometimes NOS (very expensive), sometimes good pullouts, but sometimes fake ones. And you have to spend over 25USD for just one chip. Maybe it is good variant to buy a DEAD computer in the hope that the chip may be fine.

I am cleaning, testing and rearranging my old computer collection and I decided to repair some of them because now I have more money and more knowledge. And I have spare CPLD boards from Russian Igrosoft computers. So, one day I decided to build some test rig and build my own CIA/PIA in CPLD (it is 5V TTL compatible).

Here is the CPLD CIA/PIA workplace:
PIA 6526 CPLD copy
This computer has both 6526 dead. Left CIA is only partially emulated- so I used a smaller CHIP. Meanwhile the right one is more complex. This is not only timers, int, but also keyboard interface.
Continue reading

Posted in Anything, FPGA, MCU | Tagged , , , | 10 Comments

My collection of old computer

For a long time, I collected a small collection of computer hardware. Here is the link to my Old Bits Collection.

computer collection

Posted in Personal | Tagged , , , , , | Leave a comment