Hi everyone,
I've been following some of the very helpful posts here. I just had a breakthrough so i thought i'd post the code in case others are playing around with the same thing
Background
=======
I have a vintage Z80 based machine that i've been trying to hook up to the teensy 3.5 for I/O. The uses for this are loading files off the sd card, printer output capture, joystick interface, sound generation, etc
I'm using the 3.5 specifically because it has a lot of pins and it is 5 volt tolerant
The main loop polls the Z80 IORQ, RD & WR pins. Reading a byte from the teensy to the Z80 asserts a wait state to allow the data bus to respond. Writing a byte from the Z80 to the teensy just works!
Took me a while but the final code is pretty straightforward
I've been following some of the very helpful posts here. I just had a breakthrough so i thought i'd post the code in case others are playing around with the same thing
Background
=======
I have a vintage Z80 based machine that i've been trying to hook up to the teensy 3.5 for I/O. The uses for this are loading files off the sd card, printer output capture, joystick interface, sound generation, etc
I'm using the 3.5 specifically because it has a lot of pins and it is 5 volt tolerant
The main loop polls the Z80 IORQ, RD & WR pins. Reading a byte from the teensy to the Z80 asserts a wait state to allow the data bus to respond. Writing a byte from the Z80 to the teensy just works!
Took me a while but the final code is pretty straightforward