Workbench journal

Z80 Data Bus Switches

As an update to my Z80 Homebrew computer, I have implemented a switch box with LEDs which indicate whether any bit in the 8-bit data byte are on. This allows for easier input of data and CPU instructions. It also winks at the Altair 8800 which had such an array of switches for its data input and I am indeed seeking to nod at the design of late 70s computers given my own novice approach.

Here, the concept is proven as the value for the instruction HALT (0x76) is placed on my data switches (01110110) and this pulls the HALT line low, which is correct because it is an ‘active low’ signal indicating the CPU has halted.

The lights are blinding the camera but the signal going low after reset is indeed HALT, indicating success.

I’m trying to still determine why my address bus doesn’t return to address 1 over and over again after HALTing the CPU. I’ve seen in examples of the HALT code that it’s supposed to cause the address counter to return to the first address perpetually until HALT is lifted. My Z80 seems to be stuck on an ‘increment by 1’ loop during the process but I still don’t know enough yet to chase this problem down.

But, this is the process! This is the way. Tune in next time when I figure it out and likely also add a new feature (we’re a long way off from a screen lol).

,

Leave a Reply