Simple Z80 tester

Nes4life

Active member
vacBacker
Feedback
12 (100%)
Credits
1,134CR
Wanted to make a Z80 tester so I did!


The data lines are tied to GND which instructs the Z80 to perform 'No Operation' NOP (0x00). The CPU just increments its address and it's then instructed to do NOP again (rinse and repeat counting up endlessly). The four LEDs are the lower address lines and you can watch them count up in binary. The rest of the circuit is a 555 timer providing a clock.

I'll probably create a shim so I can plug in 6502 as well (I'll just pass the clock, reset line, GND and 5V through and do the NOP command directly on the shim as it's 0xEA for 6502 and i'll need to set D1,D3,D5,D6 & D7 high).

The Arduino Mega is simply providing 5V and GND; I just happened to have one and a prototyping shield laying around. More images here: https://imgur.com/gallery/TI8CL

Got most of the design from here:

https://myz80.wordpress.com/2016/10/23/z80-breadboard-test-circuit/

With a little bit of this:

http://www.z80.info/z80test0.htm

And the 555 clock was copied from here:

https://z80project.wordpress.com/2014/02/08/low-frequency-clock-generation/
 

andrewsm

Active member
Feedback
1 (100%)
Credits
485CR
Not bad mate. Seen this done before and does provide a basic test but watch as not all processors work at low frequencies. You can add other leds to the M1 line etc to show the cycle timings.
 

Flinnster

The Dino King
vacBacker
Feedback
29 (100%)
Credits
2,566CR
Very cool. Would it be possible to do this with probes/piggyback setup on surface mount z80 legs or something? To test chips in place on dead bootlegs and the like?
 

andrewsm

Active member
Feedback
1 (100%)
Credits
485CR
To do this in-circuit is not as straightforward since the data will be present from the ROMS etc. As soon as the processor starts to clock the addresses, the circuit will respond and the data bus will be loaded. If the ROMS are removed then you could connect them to all gnd but then this could cause a bus clash if any other devices are selected. Z80s are surprisingly tough chips so a dead bootleg is not usually down to the processor but more a clock or stuck buffer etc.

The other issue you will have is the Z80 will be supplied by a clock on the PCB and this would have to be disabled to insert the low frequency clock from the 555. If not then you would be driving an output and this is not good practice in digital.
andrewsm2017-11-11 00:13:13
 

RaveN

Active member
vacBacker
Feedback
1 (100%)
Credits
1,325CR
Most CPUs will continue to operate if outputs have had a short circuit to ground, but the affected pin obviously won't work anymore. Also some inputs may have been exposed to overvoltage. So obviously a thorough test would need to examine all pins.
Obviously that's a bit involved, and your tester would likely identify ~90% of dead Z80s, so well done with that.
Just don't always assume it's a perfect Z80 if it passes.
You've got a ton of pins to play with on the Mega, you could wire them in to the HALT, M1, MREQ, INT etc and make a more thorough testing program, but to be fair it's quite a lot of work when your way identifies most Z80 deaths.
 
Top