4 ms·
A box from Jameco with a few Z80 chips, some SRAM and some EEPROMS showed up on my doorstep yesterday morning. Yep, I'm going to take a stab at doing a homebre
by mindcrime 10y ago
A box from Jameco with a few Z80 chips, some SRAM and some EEPROMS showed up on my doorstep yesterday morning. Yep, I'm going to take a stab at doing a homebrew Z80 based machine. :-)
Assuming I get something useful built, I guess I'll try to get CP/M up and running on it (it's that or try writing my own OS, I suppose), so this may be very useful.
I know what you're thinking... "why, for the love of FSM, would you build an 8-bit microcomputer today?" In my case, it's partly for fun, and largely for educational purposes. I've been a software guy my whole career, and while I've dabbled with some hobby electronics stuff, I never really learned a lot about the low level computer architecture stuff, and the hardware aspects. So I want the understanding that comes from literally building a machine from IC's. I want to understand more about how the data bus works, how I/O works, the timer for the CPU, interrupts at the hardware level etc.
And interestingly enough... I've done some searching and have found some cool projects where people have built Z80 machines and added things like USB support, PS/2 keyboard support, SD card interfaces, etc. Not bad for a CPU that's 30 some odd years out of date.
- maglavaitss 10y agoSounds like you're gonna have some huge fun time :) Same here, software developer turned hardware tinkerer.
- mindcrime 10y agoYeah, I'm pretty excited. I've wanted to do something like this for a long time, and finally quit dragging my feet. Well, I got as far as ordering some books and some of the components I'll need. The first two things I'm planning to do are: 1. implement a Z80 test circuit that will let me just blink some LED's or whatever they do. This is apparently one of the most basic things you can do with a Z80 and doesn't require much in the way of supporting components and what-not. 2. Figure out how to write bytes to, and read bytes from, an EEPROM using an Arduino. I found a bunch of Youtube videos and websites on this topic, to use as resources. Sometime after that, I'll start investigating what it takes to read a program off the EEPROM and execute it.
- tluyben2 10y ago1. Indeed; that requires only very basic components; I would recommend a cheap digiscope + analog scope so you need even less components to have fun. The z80 is so slow that you can use very cheap scopes. 2. I bought an 80s EPROM writer from a forum for E1 which I use for that; because it's so old (and slow), you can actually understand and measure what everything does.
- jackhack 10y ago+1 on the cheap scope recommendation. Without seeing your signals, solving a problem with shoving bits around is (educated) guesswork. Nothing like struggling for days with a weird fault or corrupted xmit only to throw a scope on a bus line and see in a few seconds where the problem lies. (voice of experience speaking). And here's the good part: These days, a basic scope is incredibly cheap! Check ebay and/or amazon for a DSO138. It's a simple creature but ideal for a project such as a Z80. There are two variants of the DSO138 - kit form and pre-assembled. Prices are an astounding $25/$30 respectively. Unless you just want to spend 4 hours soldering (not a bad thing), spend the extra $5 and get the prebuilt. And make sure it has the latest firmware (cleaned up some bugs, improved centering, and reduced noise). And @mindcrime - please blog that project! I know I speak for loads of others when I say I'd love to watch your progress. I never get tired of seeing others do cool stuff I don't have time for anymore. :)
- mindcrime 10y agoI've been eying one of those Rigol DSO's that people seem to really like. They're not crazy expensive, but get pretty good reviews. I think I'll wind up getting a standalone frequency counter as well, at some point.
- Florin_Andrei 10y agoWell, back in the day, when Z80 systems were still a thing, I actually built a soundcard for one such system. Wavetable synthesis, DAC-controlled envelope, did the whole nine yards from scratch, starting with circuit diagrams drawn on the proverbial napkin. Ended up using it to make theremin-like sounds. I was still in school and it was a fun project.
- tluyben2 10y agoCool, good luck. Blog about it :) It'll be a lot of fun indeed and it gives you incredible magic powers of actually understanding computers. I am currently reading Uzix[0] and the disassembly of Symbos[1] to do some OS dev on Z80 machines which, in the end, will hopefully run on my own homebrew hardware. [0] https://github.com/marioaugustorama/uzix-kernel https://github.com/marioaugustorama/uzix-kernel [1] http://symbos.de/ http://symbos.de/ Edit: forgot; https://github.com/EtchedPixels/FUZIX https://github.com/EtchedPixels/FUZIX
- mindcrime 10y agoThanks, and I will definitely write some of this up as I go and blog it.