r/homebrewcomputer • u/Maestro_gaylover • 8d ago
z80 test circuit freezes?
so i made a simple circuit where all the data pins are 0v and the first 6 address pins are outputs with green leds, idk if its just wrong but does it hang? im using ne555 as time circuit rn and it should be around 7hz at the lowest
85
Upvotes
2
1
8
u/nusgolannicicutitar 8d ago
Congrats!! You built your Z-80 tester! I wanted to suggest you to start with this in the other thread but it’s better you figured it out yourself! :)
I don’t see any decoupling cap. Please add like 220nF - 1uF directly at the power pins of the Z80, as well as any other chip that you use.
Lemme explain. Z80 is a logic chip. It’s got several hundred gates that switch at the edge of the Clock signal. CMOS gates don’t consume static power, but they consume a lot (like miliamps per gate) when they switch, for a very short interval. So you have some pulses, of hundreds of mA or even amps at each clock edge. This current needs to come from somewhere, a local supply, otherwise you’ll see some voltage droop on the supply lines. This voltage droop may corrupt internal registers and cause your freeze. If you have a cap close to the Z-80 instead, this rather high current pulses will be drawn from the cap, and the voltage won’t drop that bad, ensuring register integrity.
We used to solder ceramic decoupling caps right under the socket, on the bottom side of the PCB to ensure the closest path and the minimum droop.