Help in resurrecting my ZX81

Discussions about Sinclair ZX80 and ZX81 Hardware
User avatar
Andy Rea
Posts: 1606
Joined: Fri May 09, 2008 2:48 pm
Location: Planet Earth
Contact:

Re: Help in resurrecting my ZX81

Post by Andy Rea »

yeah i dont think my brain is operating correctly... the 2K2 resistor... if you have something one side and nothing the other then the nothing side must be shorted.

Andy
what's that Smell.... smells like fresh flux and solder fumes...
User avatar
Paul
Posts: 1511
Joined: Thu May 27, 2010 8:15 am
Location: Germanys west end

Re: Help in resurrecting my ZX81

Post by Paul »

Did you measure that the resistance is still 2k2?
In theory, there is no difference between theory and practice. But, in practice, there is.
User avatar
mrtinb
Posts: 1906
Joined: Fri Nov 06, 2015 5:44 pm
Location: Denmark
Contact:

Re: Help in resurrecting my ZX81

Post by mrtinb »

Andy Rea wrote: Sun Aug 19, 2018 4:42 pm i would pull TR2 and then see what you get at the base connection.
I've removed the transistor TR2. (Which for me is a little difficult without a desolder gun.)

These are the values without TR2:

Code: Select all

...............................
:            :  Broken ZX81   :
:            : with Andys ULA :
:            :  without TR2   :
:............:................:
: ULA pin 14 :          1.510 :
: R6 2K2 in  :          1.510 :
: R6 2K2 out :          1.590 :
: TR2 in     :          1.590 :
: TR2 out    :          0.000 :
:............:................:
Martin
https://zx.rtin.be
ZX81, Lambda 8300, Commodore 64, Mac G4 Cube
User avatar
1024MAK
Posts: 5104
Joined: Mon Sep 26, 2011 10:56 am
Location: Looking forward to summer in Somerset, UK...

Re: Help in resurrecting my ZX81

Post by 1024MAK »

ZX81 clock circuit operation

Image
Please note that the coloured circuit states shown in the diagram are true only during the stable part of the signal from the ULA clock output pin, or when the circuit is static. By static, I mean the input is DC and not a high frequency signal.

In reality, when the ULA clock output pin is changing state from high to low, TR6 will stay on for a short time even though it's base voltage has dropped below it's turn on voltage (approx 0.6V). Note that this voltage of 0.6V is the DC value. If measured by a multimeter in a live circuit running at 3.25MHz, the meter will indicate a lower voltage.

The speed up capacitor briefly allows a greater current to flow from the ULA output to the transistors base terminal (when the ULA output goes from low to high) to switch the transistor on faster. This aids in making the output at the collector a nicer, cleaner "square wave edge". When the output from the ULA goes from high to low, the speed up capacitor allows current to briefly flow from the transistors base to ground via the capacitor and the output stage of the ULA. Hence helping to remove charge from the base area of the transistors semiconductor. This aids in getting the transistor to switch off quicker.

The speed that the transistor switches is important. If it takes too long to switch off, by the time the collector and hence the output has changed,the input signal may have already changed logic state again. Then the Z80 clock pin would not see a changing signal, but instead just see a continuous logic low signal.

Mark
ZX81 Variations
ZX81 Chip Pin-outs
ZX81 Video Transistor Buffer Amp

:!: Standby alert :!:
There are four lights!
Step up to red alert. Sir, are you absolutely sure? It does mean changing the bulb :!:
Looking forward to summer later in the year.
User avatar
1024MAK
Posts: 5104
Joined: Mon Sep 26, 2011 10:56 am
Location: Looking forward to summer in Somerset, UK...

Re: Help in resurrecting my ZX81

Post by 1024MAK »

mrtinb wrote: Sun Aug 19, 2018 8:32 pm
Andy Rea wrote: Sun Aug 19, 2018 4:42 pm i would pull TR2 and then see what you get at the base connection.
I've removed the transistor TR2. (Which for me is a little difficult without a desolder gun.)

These are the values without TR2:

Code: Select all

...............................
:            :  Broken ZX81   :
:            : with Andys ULA :
:            :  without TR2   :
:............:................:
: ULA pin 14 :          1.510 :
: R6 2K2 in  :          1.510 :
: R6 2K2 out :          1.590 :
: TR2 in     :          1.590 :
: TR2 out    :          0.000 :
:............:................:
With TR2 removed from the PCB, the clock input pin (6) on the Z80 CPU should be pulled high to +5V by R5. As the collector PCB pad should be connected to R5 and to pin 6 of the Z80 CPU, this should also be at +5V.

Mark
ZX81 Variations
ZX81 Chip Pin-outs
ZX81 Video Transistor Buffer Amp

:!: Standby alert :!:
There are four lights!
Step up to red alert. Sir, are you absolutely sure? It does mean changing the bulb :!:
Looking forward to summer later in the year.
User avatar
mrtinb
Posts: 1906
Joined: Fri Nov 06, 2015 5:44 pm
Location: Denmark
Contact:

Re: Help in resurrecting my ZX81

Post by mrtinb »

It seems the reason for this complex circuit is to make an inverse clock on the CPU.

Image

Why aren't they just similar, and run the same heart beat?
Last edited by mrtinb on Mon Aug 20, 2018 3:47 pm, edited 1 time in total.
Martin
https://zx.rtin.be
ZX81, Lambda 8300, Commodore 64, Mac G4 Cube
User avatar
1024MAK
Posts: 5104
Joined: Mon Sep 26, 2011 10:56 am
Location: Looking forward to summer in Somerset, UK...

Re: Help in resurrecting my ZX81

Post by 1024MAK »

The reason for using a transistor in this way is to meet the requirements specified by Zilog for the input to the clock pin on the Z80 CPU. The ULA on it's own could not produce the correct logic levels to meet these requirements.

Mark
ZX81 Variations
ZX81 Chip Pin-outs
ZX81 Video Transistor Buffer Amp

:!: Standby alert :!:
There are four lights!
Step up to red alert. Sir, are you absolutely sure? It does mean changing the bulb :!:
Looking forward to summer later in the year.
User avatar
1024MAK
Posts: 5104
Joined: Mon Sep 26, 2011 10:56 am
Location: Looking forward to summer in Somerset, UK...

Re: Help in resurrecting my ZX81

Post by 1024MAK »

Attached are two extracts from Zilog documents giving details about the clock input.
If you compare the clock input voltages (VILC and VIHC) to the normal logic pin input voltages (VIL and VIH) you will see that they have to get much closer to the VCC (+5V) supply and to GND (0V) than the normal logic pin inputs.

Mark
Attachments
Z80 NMOS Clock Characteristics
Z80 NMOS Clock Characteristics
Z80 clock FAQ
Z80 clock FAQ
ZX81 Variations
ZX81 Chip Pin-outs
ZX81 Video Transistor Buffer Amp

:!: Standby alert :!:
There are four lights!
Step up to red alert. Sir, are you absolutely sure? It does mean changing the bulb :!:
Looking forward to summer later in the year.
User avatar
mrtinb
Posts: 1906
Joined: Fri Nov 06, 2015 5:44 pm
Location: Denmark
Contact:

Re: Help in resurrecting my ZX81

Post by mrtinb »

I have measured wrong on the circuit, and updated the drawing.

Edit: This drawing is also wrong. I'll continue to measure.

Image
Martin
https://zx.rtin.be
ZX81, Lambda 8300, Commodore 64, Mac G4 Cube
User avatar
mrtinb
Posts: 1906
Joined: Fri Nov 06, 2015 5:44 pm
Location: Denmark
Contact:

Re: Help in resurrecting my ZX81

Post by mrtinb »

So this thread has been cold for a while. I had to lay it aside, as it was getting very irritating.

Now I finally got my other hardware project working, a TZXduino, so I can load programs into my Lambda 8300. (See picture 1)

I now got the courage to get back to the troublesome Zeddy board.

We left of trying to see where the clock signal from the ULA was lost. Let's start where the clock signal starts: At the ULA pin 14.

The question is: Knowing that the DSO138 oscilloscope cannot measure the speed of the Zeddy, shouldn't some of the samples be at 0V and not as here a constant power of 1.5V?

(Picture 1)
Image


(Picture 2)
Image
Martin
https://zx.rtin.be
ZX81, Lambda 8300, Commodore 64, Mac G4 Cube
Post Reply