Interface a BS2 to a computer / microprocessor (ZX81/Z80) question??
T&E Engineer
Posts: 1,396
Has anyone interfaced a BS2 (or is it possible) to a microprocessor like a Z80 or preferably a ZX81. I know about the keyboard project - but wondering how to use the address lines. I would like to us a EEPROM like a 24LS128 (or something similar in that series) with the ZX81 but it is serially interfaced but through a BS2 it may be possible.
Comments?
Comments?
Comments
I would have thought that the BS2 and other PIC chips would be much faster than 80's technology like the Z80 but I guess I'm wrong.
I'm just trying to use what I have and know·if I can before I buy any FRAM chips.
Thanks.
·
·· The architectures of these two systems are so radically different.· The Z80 is a CPU whereas the BASIC Stamp is a hybrid microcontroller.· More appropriately the interpreters on all BASIC Stamps are microcontrollers.· The Z80 connects to its I/O and memory through 3 system busses (Address, Data, Control) whereas on a microcontroller that is all internal and what you have are the I/O pins as your direct interface.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
Is there some reason why you want to do it this way rather than use a byte-wise static memory chip? RAMTRON even has a 32K x 8 parallel FRAM. One would be trivial to connect while two would just require a couple of discrete gates to decode the most significant memory bit. You could still use an SX48 or SX28 as an I/O emulator to provide some parallel ports and serial ports
If you want them to 'talk' to each other, you could just put a couple of latches on a board connected to the ZX81's expansion connector.
You also need an address decoder or some sort connected to the lower 8bit of the address bus and to the processors I/O signal.
Then you just need to use the Z80's I/O instructions to read from and write to those latches.
(This can possibly even be done using ZX Basic )
But there's no reason for you to go through the BS2 just to read/write to a EEPROM...
The Z80 should have the speed to 'bit-bang' the serial comms without much problem.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Don't visit my new website...