I have been following the two Great Z80 Project guides and the only thing I don't get is the I/O. He uses a 6522 I/O V.I.A. and I don't quite understand the idea of I/O ports. So my question is, how do I hook more than one 6522 to the CPU so I can control more peripherals?
Electronic – Z80 I/O explanation
integrated-circuitz80
Related Topic
- Electronic – Finding successor chips
- Electronic – Will any rom file for a Z80 computer work with any hardware
- RESET Pin – Why is the RESET Pin Set Up Like This in a Z80 Schematic?
- Z80 PIO – What Exactly Does It Do?
- Z80 – How to Wire Up Multiple Z80 PIO Chips
- Z80B – Troubleshooting Z80B Start and Stop Issues
- Electronic – Will diagonal PCB traces affect a sensitive CPU circuit
Best Answer
Great Z80 project goes on with I/O accesses, finding a way to bring 6522 to life every time the Z80 does an *I/O cycle. 6522's CLK2 pin is driven:
No I/O address decoding is done, which mean your single 6522 hogs the entire I/O address space. No other I/O device can be added to the bus, else you'll have a data bus conflict.
This is what chip select lines are for. He hard-wires the two CS lines (one high, the other low) to keep the single 6522 awake. If you want two 6522s on the bus, connect one of the CS lines (of each 6522) to a Z80 address line to select one or the other. And thanks for the memories.