65c51 or 6551 ACIA microcontroller or SoC Emulators?
65c51 or 6551 ACIA microcontroller or SoC Emulators?
I'm wondering if anyone knows of any microcontroller (PIC18F or 16F, Arduino, ESP32, Teensy, etc.) projects out there that can emulate a 65c51 or 6551 ACIA? I'm doing projects at 3.3v, so my standard WDC 65c51s won't work (5V only).
I've searched, but I'm not turning up anything that fits the bill, e.g., one of the projects I found for teensy requires all the Address lines(?). That's not going to happen. Control signals, Data Lines, and register select, i.e. That's all I can do.
Thanks!
Jon
I've searched, but I'm not turning up anything that fits the bill, e.g., one of the projects I found for teensy requires all the Address lines(?). That's not going to happen. Control signals, Data Lines, and register select, i.e. That's all I can do.
Thanks!
Jon
Re: 65c51 or 6551 ACIA microcontroller or SoC Emulators?
Can you share some of the links you did find? (I don't know why all the address lines might need to be available, but surely you could tie most of them off?)
Re: 65c51 or 6551 ACIA microcontroller or SoC Emulators?
BigEd wrote:
Can you share some of the links you did find? (I don't know why all the address lines might need to be available, but surely you could tie most of them off?)
https://github.com/olivierjan/6502-SBC-using-Teensy
https://github.com/c0pperdragon/6502ino
https://www.reddit.com/r/beneater/comme ... ompatible/
https://github.com/halfburnttoast/nano_6502_controller
https://github.com/chanmix51/soft65c02
https://github.com/olivierjan/6551-emulation-with-PIC
https://forum.pjrc.com/threads/65755-MC ... ight=65c02
These have, or link to, various elements with 6551 or 65c51 functionality.
And, one vhdl implementation that I can't get to work (the TX works but the RX does not):
https://github.com/jmstein7/65c02_errat ... /6551-ACIA
Dave and I worked on that; but, it only seems to work with "soft" 65c02s.
Jon
Re: 65c51 or 6551 ACIA microcontroller or SoC Emulators?
Thanks! I like the look of Olivier Jan's - that's not much more than a dozen lines of code. It's minimal, so we see this comment:
// We simply ignore the case where we receive config /Control/Reset byte for ACIA.
But is that OK for you? Is sending and receiving enough?
// We simply ignore the case where we receive config /Control/Reset byte for ACIA.
But is that OK for you? Is sending and receiving enough?
Re: 65c51 or 6551 ACIA microcontroller or SoC Emulators?
BigEd wrote:
Thanks! I like the look of Olivier Jan's - that's not much more than a dozen lines of code. It's minimal, so we see this comment:
// We simply ignore the case where we receive config /Control/Reset byte for ACIA.
But is that OK for you? Is sending and receiving enough?
// We simply ignore the case where we receive config /Control/Reset byte for ACIA.
But is that OK for you? Is sending and receiving enough?
Re: 65c51 or 6551 ACIA microcontroller or SoC Emulators?
Although I do have a Teensy, I've never used it, so I can't be much help.
Just to note another possible choice: the Raspberry Pi Pico board, or the RP2040 microcontroller which it's based on. I'm pretty sure it could do the job: Dominic P has ported PiTubeDirect to it, which involves bit-banging an interface on a 2MHz 6502 bus. (I assume you won't be running your bus faster than that?)
Just to note another possible choice: the Raspberry Pi Pico board, or the RP2040 microcontroller which it's based on. I'm pretty sure it could do the job: Dominic P has ported PiTubeDirect to it, which involves bit-banging an interface on a 2MHz 6502 bus. (I assume you won't be running your bus faster than that?)
Re: 65c51 or 6551 ACIA microcontroller or SoC Emulators?
BigEd wrote:
Although I do have a Teensy, I've never used it, so I can't be much help.
Just to note another possible choice: the Raspberry Pi Pico board, or the RP2040 microcontroller which it's based on. I'm pretty sure it could do the job: Dominic P has ported PiTubeDirect to it, which involves bit-banging an interface on a 2MHz 6502 bus. (I assume you won't be running your bus faster than that?)
Just to note another possible choice: the Raspberry Pi Pico board, or the RP2040 microcontroller which it's based on. I'm pretty sure it could do the job: Dominic P has ported PiTubeDirect to it, which involves bit-banging an interface on a 2MHz 6502 bus. (I assume you won't be running your bus faster than that?)
Re: 65c51 or 6551 ACIA microcontroller or SoC Emulators?
Well that certainly sets a deadline for dealing with each access!
Re: 65c51 or 6551 ACIA microcontroller or SoC Emulators?
BigEd wrote:
Well that certainly sets a deadline for dealing with each access!
Re: 65c51 or 6551 ACIA microcontroller or SoC Emulators?
Jmstein7 wrote:
BigEd wrote:
Well that certainly sets a deadline for dealing with each access!
-Gordon
--
Gordon Henderson.
See my Ruby 6502 and 65816 SBC projects here: https://projects.drogon.net/ruby/
Gordon Henderson.
See my Ruby 6502 and 65816 SBC projects here: https://projects.drogon.net/ruby/
-
jmthompson
- Posts: 127
- Joined: 30 Dec 2017
- Location: Detroit, Michigan, USA
- Contact:
Re: 65c51 or 6551 ACIA microcontroller or SoC Emulators?
I've actually been toying with the idea of trying to implement an ACIA on a Raspberry Pi Pico. It would be primarily for a little side project of mine, a clone Apple Super Serial Card that I designed, but never got working due to what I am pretty sure are just crappy ACIAs from eBay. So far though though it hasn't left the thought experiment stage.
Re: 65c51 or 6551 ACIA microcontroller or SoC Emulators?
Looks like a perfect idea for an RPI Pico project: the microprogrammable I/O should easily handle the 6502 bus even at 8 MHz or more, and the emulated 6551 could interface to a PC via RPi Pico USB using VCOM.
Re: 65c51 or 6551 ACIA microcontroller or SoC Emulators?
jmthompson wrote:
I've actually been toying with the idea of trying to implement an ACIA on a Raspberry Pi Pico. It would be primarily for a little side project of mine, a clone Apple Super Serial Card that I designed, but never got working due to what I am pretty sure are just crappy ACIAs from eBay. So far though though it hasn't left the thought experiment stage.
Jon
-
jmthompson
- Posts: 127
- Joined: 30 Dec 2017
- Location: Detroit, Michigan, USA
- Contact:
Re: 65c51 or 6551 ACIA microcontroller or SoC Emulators?
Jmstein7 wrote:
jmthompson wrote:
I've actually been toying with the idea of trying to implement an ACIA on a Raspberry Pi Pico. It would be primarily for a little side project of mine, a clone Apple Super Serial Card that I designed, but never got working due to what I am pretty sure are just crappy ACIAs from eBay. So far though though it hasn't left the thought experiment stage.
Jon
I've got some free time this weekend, and already picked up two picos a while back, so I can start messing around with this. I'm positive I saw a post a while back about someone already having done the work of building a 6502 bus interface for the Pico, so really all that will be needed here is to implement the ACIA itself as a wrapper around the Pico's built-in UART.
Re: 65c51 or 6551 ACIA microcontroller or SoC Emulators?
> ...someone already having done the work of building a 6502 bus interface for the Pico...
Maybe Dominic's project?
https://github.com/dp111/PicoTube
Maybe Dominic's project?
https://github.com/dp111/PicoTube