4 ms·
Sounds like a great project, good luck. I'll share my favourite tip from back in the day when I regularly brought up new bare metal Z80 systems. Just on the off
by billforsternz 7y ago
Sounds like a great project, good luck. I'll share my favourite tip from back in the day when I regularly brought up new bare metal Z80 systems. Just on the off chance it might be useful. Use a blank EPROM as your first program. It's all 0xff bytes which are RST 7 instructions, equivalent to a subroutine call to 0x0038. So you should observe an super tight loop of an 8 bit read of 0xff from 0x0038, then a 16 bit write of 0x0039 to an ever incrementing address. Suitable for scoping each bit of your address and data bus. The incrementing write address is the stack pointer, which just cycles through 64K. The most significant address bit toggles at the rate it takes to cycle through 64K. Although 0x0039 return address keeps getting pushed onto the stack, there's no corresponding pop, the stack is just perpetually overflowing. But it doesn't matter given this 1 byte "program" serves only to give you the simplest possible repeating pattern to look at with your oscilloscope.