Page 1 of 4

DIY Z80 Computing

Posted: Mon 15 Sep, 2008 2:52 pm
by benryves
I've posted about this on IRC and a little on here before switching host, but I thought I'd post a proper thread here as it seems to have got some GameDev members interested in Electronics. :)

I'm currently working on a Z80 computer built from electronic components soldered to stripboard, so not very high tech stuff. It's running the Z80 BBC BASIC, and has simple hardware specs:
  • 10MHz Z80 CPU running at 2MHz.
  • 128KB Flash ROM to store the OS.
  • 32KB SRAM.
  • 128x64 graphical monochrome LCD.
  • Two PS/2 ports (keyboard and mouse).
  • I2C bus to add further components.
  • DS1307 real-time clock (I2C) for time-keeping functions.
Image
I haven't worked out what I'm going to do for storage yet (I have some 32KB I2C EEPROMs that may do the trick for removable storage, and they can be programmed externally for transferring files between a modern PC and this computer). The system only runs at 2MHz as the LCD requires at least 900nS when reading or writing data, and running the Z80 slowly seemed easier than designing a circuit that would force the Z80 to wait for a few extra clock cycles. I had planned on being able to switch between a 2MHz and a 10MHz clock by a multiplexer, but the changover from one signal to another is a bit noisy and generates several > 10MHz clock cycles which cause the system to crash.

More information and links to journal posts here.

I'm hoping that maybe some other people may have an interest in building computers; it's really not tricky to do and is great fun! My reference is my A Level textbook, Electronics Explained by M. W. Brimicombe. (You can preview the book on Google Books).

Re: DIY Z80 Computing

Posted: Mon 15 Sep, 2008 9:48 pm
by tr1p1ea
Amazing work ben, you've built your own computer! Is there any end to your genius?

Re: DIY Z80 Computing

Posted: Tue 16 Sep, 2008 7:08 pm
by driesguldolf
Whoa, that's pretty slick ;)
Great work!

Re: DIY Z80 Computing

Posted: Tue 16 Sep, 2008 8:20 pm
by Art_of_camelot
Omg! That looks ghetto as hell, but I'll be damned if it doesnt get my nerd sense tingling. Great stuff Ben!
*Edit* I'd love to take a shot a building something like this.

Re: DIY Z80 Computing

Posted: Tue 16 Sep, 2008 11:15 pm
by benryves
Cheers for the comments, chaps!
Art_of_camelot wrote:*Edit* I'd love to take a shot a building something like this.
This is the sort of thing I was hoping to hear. :D Most of the work is in reading the datasheets for each component so you can work out how to connect them all together into a working system. If you take your Z80 and connect the eight bits of the address bus to 0V via some 10K resistors it will execute NOPs ($00 = NOP) and you can use a logic probe to see the various control pins (in this case, RD and MREQ) toggling high and low and see the address bus lines counting up. :) From there you can add bits to the computer until you've got something with useful ROM, RAM, input and output devices. You can keep it quite simple, for example I'm using SRAMs as they don't need to be refreshed (as long as they have power they'll remember what they're told).

I remember another ticalc.org member building their own Z80 computer some years ago, but sadly have lost the link. :(

Re: DIY Z80 Computing

Posted: Tue 16 Sep, 2008 11:45 pm
by kalan_vod
That last reply, is a foreign language...Haha, great work ben hope you make more out of it!

Re: DIY Z80 Computing

Posted: Wed 19 Nov, 2008 7:02 pm
by Dwedit
Look around you.

Look around you.

Look around you.

Re: DIY Z80 Computing

Posted: Wed 19 Nov, 2008 9:51 pm
by benryves

Re: DIY Z80 Computing

Posted: Fri 21 Nov, 2008 4:48 am
by Art_of_camelot
That was hilarious. I couldn't stop laughing! :lol: :lol: :lol:

Re: DIY Z80 Computing

Posted: Sat 22 Nov, 2008 1:58 am
by DigiTan
Pretty cool stuff. Especially the screen. 8) For what it's worth, Maxim-Dallas makes a non-volatile RAM that gets 10+ years of data retention. And totally pin compatible with most SRAMs in the 32kB neighborhood. I'm really diggin the screen though!

Re: DIY Z80 Computing

Posted: Sat 22 Nov, 2008 2:53 am
by benryves
That 32K RAM sounds interesting, I may well check it out. :)

The screen was cheap, only £16! The part number is PG12864LRS-ANN-H if you're interested.

Re: DIY Z80 Computing

Posted: Thu 04 Dec, 2008 3:28 am
by waeV
This looks very interesting. Do you think you could get SymbOS to run on it? I'm thinking of buying an old ti-83 and completely ripping it apart to see if i can get SymbOS on it. I'd need a new screen, and definitely more RAm, but it would be sooo cool.

Image

Image

Image

Image

Re: DIY Z80 Computing

Posted: Thu 04 Dec, 2008 11:53 am
by benryves
I'm running BBC BASIC on it; the hardware is fairly primitive so I wasn't trying to do anything extraordinary with it. The low-resolution (128x64) screen is not very suitable for GUIs, either.

Re: DIY Z80 Computing

Posted: Thu 04 Dec, 2008 3:22 pm
by waeV
How do you power it?

Re: DIY Z80 Computing

Posted: Thu 04 Dec, 2008 3:59 pm
by benryves
Cheap wall-wart PSU and a 5V regulator rated at 1A.