Processor Interface
ajward
Posts: 1,130
in BASIC Stamp
Got a question Guys!
I'm diddling with a Z80 CPU with a half-baked idea of building a low budget Z80 computer (one of the many shiny things that keep from me from completing much of anything :-( ).
The question... While testing, I'd like to use a Basic Stamp to supply the Z80's clock frequency. Can I output a BS2 waveform directly to the Z80 clock pin or would I need some same of interface?
Thanks for any wisdom!
@
I'm diddling with a Z80 CPU with a half-baked idea of building a low budget Z80 computer (one of the many shiny things that keep from me from completing much of anything :-( ).
The question... While testing, I'd like to use a Basic Stamp to supply the Z80's clock frequency. Can I output a BS2 waveform directly to the Z80 clock pin or would I need some same of interface?
Thanks for any wisdom!
@
Comments
I'm interested to see how you get on.
regards john
What frequency do you need? There are so many little packaged oscillators available that cost about a buck, pick your frequency. And doesn't the Z80 have a crystal option?
IIRC the original Z80 required an external clock signal. Later versions may have had an on chip oscillator that only required a xtal but I am not certain about that. Too much time has passed.
-Phil
I only thought of using the Stamp cuz I'm too lazy to wire up a 555. :-|
@
Stamp: $50
555 timer: 4 cents http://forums.parallax.com/discussion/comment/1393138/#Comment_1393138
Just sayin'.
http://www.ebay.com/itm/NE555-Duty-Cycle-and-Frequency-Adjustable-Module-Square-Wave-Signal-Generator-MU-/162351492142
Bought an Elenco board with over 3000 tie points. Even with this, I'm going to keep some sections off the main board. Initially at least, the power supply, clock generator and address line LEDs.
To start, all data lines are tied low to load an NOP instruction to all the accessibile memory locations. (Non-existent at the moment) Moving forward I have some 32K ram chips to try to integrate.
Edit: I'm going to need to use 2-74LS244 chips to handle the 16-address lines. (Off to another breadboard).
If anyone has experience with something like this, I'd appreciate you sharing your wisdom!
My goal is to kinda simulate the Altair 8800... I used to own one and foolishly traded it away. DOH!
Haven't seen you around for a while.
There has been a number of projects using a prop to do a lot of the glue for the Z80 including loading up the RAM as ROM, and using the prop as an I/O device on the Z80 bus as well. Try the RetroBrewComputers forum and wiki for more info. Dr_Acula has done some work on this too.
Or of course you could just use a prop with ZiCog - see my RamBlade link in my signature for the hardware (prop, eeprom, sram, glue gate and microSD. Cannot get much smaller than this matchbox
Obviously, all this was fueled with liberal amounts of caffeine, adult beverage and colorful language.
I jumped right into the project without a lot of research and started wiring things up with the first info I found... bad move! :-|
Also started out with a 555 Sq wave generator picked up on eBay, For some reason it put out a really raggedy signal. Sucked it up and built my own that works just fine (Adjustable from 1 thru ~45Hz).
Right now, I have all 8 data lines tied to ground to effect a NOP instruction. The 16 Address lines are connected to green LEDs through some 74LS244 driver chips. Pulled out 5 status lines to LEDs... left to right M1, Mreq, Rd, IOrq and Wr.
The small breadboard to the right is my single-step circuit.
Also wiring up a 62256 - 32K static ram module. Waiting for some decoder and latch modules to integrate the ram and future rom.
https://www.flickr.com/photos/81065424@N00/34874306154/in/dateposted-public/