sburrow wrote:
Update: I got minicom to work with it too now. A very simple "read then print" loop on the Arduino, connect the Arduino to minicom at 9600, and then just start typing. Presto, I can type from my PC keyboard onto the Acolyte's screen!
Now, just to receive data back from the Acolyte to minicom...
Thanks everyone!
Chad
Wait.. I'm sort of losing track here... And I might well be missing something...
You have an Arduino connected to your SBC - using a digital output on the Arduino to the /SO input pin on the 6502, then a software routine on the 6502 to receive serial data via /SO, so it's :
PC -> USB -> Arduino -> SBC
Maybe I'm missing something but if this is the case, then the Arduino is just acting as a USB serial adapter. (Using hardware serial on the input pins and softSerial on the output pin?) So why not just use a USB serial adapter directly from the PC to the SO pin? without the Arduino?
I've been using USB serial adapters for years without any issues - something like this:
https://www.amazon.co.uk/DUBEUYEW-FT232 ... B0B4DXY4H9Your Arduino even has one built into it (depending on the model).
The challenge isn't the USB serial side it's getting serial in/out of the SBC - Then a UART chip or something else - 2 pins on the 6522 to implement software serial or Talk SPI to the Arduino (3 wires from the 6522 to the Arduino + Gnd) and have the Arduino act as the UART - that needs software on the Arduino side. I think I'd use a W65C51 and implement a software timing loop though. (Then just connect the TTL output of that to the USB Serial adapter).
Polling the /SO pin (or any other soft of software serial on the 65xx side) is going to be problematic with interrupts going off...
But unless you have another use for the Arduino it's just not needed and will only complicate things.
-Gordon
_________________
--
Gordon Henderson.
See my
Ruby 6502 and 65816 SBC projects here:
https://projects.drogon.net/ruby/