Z80 Computer Mark 2
During development of my first Z80 Computer, I decided that I wanted to run CP/M on it but soon decided that poor decisions in the original's I/O board made it all a bit impractical and so redesigned the computer from scratch.

I switched to an AVR microcontroller-based I/O controller and gave the microcontroller access to the computer's RAM, too, meaning I could dispense with needing a boot ROM too - the I/O microcontroller would copy the OS from an SD card directly into RAM. CP/M also works better with high-resolution text displays so I replaced the 128x64 pixel graphical LCD with a 320x240 one that was driven by a dsPIC33F and could also drive an external TV or VGA monitor. Dispensing the old slow LCD allowed me to bump the CPU speed back up to the full 10MHz rating, too!

The machine's overall specifications were now as follows:
- 10MHz Z80 CPU.
- 320×240 pixel graphical monochrome LCD with external composite and VGA options.
- 64KB RAM (directly mapped into Z80 address space).
- Internal I2C bus:
- dsPIC33F-based display controller.
- DS1307 real time clock.
- PS/2 port for keyboard.
- RS-232 serial port.
- Parallel printer port.
The following video was recorded to demonstrate this incarnation of the computer:
Recent Refinements
Since posting that video I made some further changes, starting with the display controller. I replaced the dsPIC33F with a more powerful dsPIC33E and tried to make the display controller as compatible with the BBC Micro's display modes as I could:
- High-resolution graphics: 640x256 in two colours.
- Medium-resolution graphics: 320x256 in four colours.
- Low-resolution graphics: 160x256 in eight colours.
- Text: Teletext-compatible "Mode 7".
I have also implemented as many of the graphics extension ROM features as possible. This all means the computer no longer has an internal graphical LCD, but the improved video output is worth it, in my opinion!
I also added SN76489 emulation for sound along with BBC Micro-compatible SOUND and ENVELOPE commands as well as game controller (including light pen/gun input) support to this dsPIC33E. I'm currently in the process of writing an appropriate GSX driver so CP/M graphics applications will work too; I upgraded my CP/M BIOS to a banked one so I can make full use of the system's 128KB RAM (previously only 64KB was accessible).
There's still a way to go (and I would like to eventually sketch a circuit diagram, get some PCBs manufactured and actually release the code so others can use it). In the meantime, here's a video of some of the updated features:
Journal Posts
The following journal posts have a lot of pictures and information on the project. They are arranged in ascending date order, so start at the top and work your way down if you want to follow the progress!
- Thinking about CP/M
- Combining a Z80 and an ATmega644P to boot CP/M
- Keyboard input and RAM disks make CP/M more useful
- Booting CP/M 3 from an SD card
- Integrating the dsPIC33 VDC with the Z80 computer
- Mounting circuit boards and rear panel connectors
- A useful Z80 computer in a project box
- A clock and a serial port for the Z80 computer
- A parallel port and a demonstration of the Z80 computer
- Adding 11KB of RAM to a CP/M 3 system with a single NAND gate chip

