Individual_Solid wrote:
Indeed, I'm trying to think through the options for a board here. The JLC inventory mysteriously disappeared, so I just ordered a handful from mouser and a breakout board to solder it to. I've been practicing SOIC, we'll see how SSOP goes...
Well, I had another look around and I found
cheap FT245s on breakout boards (basically, modules) on AliExpress, so I've ordered three of those. They cost almost three times what the chip itself does, but save me building essentially the same board for prototyping. So all I need is the address decoding design and I can hack together a prototype RC6502 board for this. (I'll be bringing a 4K I/O select to the bus from my CPU board, so I need to decode only some subset of that. I'll probably bring out the $D000-$DFFF select and do something that doesn't collide with the $D010-$D013,$D020-$D023,... of the Apple 1 clone's on-board PIA.)
(BTW, if this USB connectivity stuff, and espcially the following, is getting too off-topic for this thread, anybody should feel free to start another one and I'll redirect all my new replies there as appropriate.)
GARTHWILSON wrote:
Can you mark a block of text in your text editor and send just that block, as little as a line, or word, or even character, to the 6502 system? I can do this on my DOS machine with no special software; but when I got the FTDI USB-COM232-PLUS1 a few years ago to use on the Linux machine, there seemed to be no way to do that. I had to copy the block to a file, and then send the file. Very clumsy!
There is absolutely no special software required for this sort of thing on Unix systems, even in the general case. (Well, so long as the device drivers are sensibly written, as this one is.) If you have a program that does anything with data, you simply needed to have your editor feed the data into that program. (Even if the program must read a file instead of using stdin, this can be done with file descriptors reified into the filesystem: /dev/fd/....) In the case of this particular device driver, you can just feed it directly, e.g., in vim, ex, ed and similar editors just `w! /dev/tttyUSB0`, using any of the multitude of selection options before the write command.
But this is getting pretty off-topic, so my suggestion is that you take it as a general thing that if you want to do it, it can be done on Unix (which I've found to be far more configurable and customisable than any other OS) and if you need help with something in particular, feel free to get in touch with me via PM (or at least start a new thread about it).
floobydust wrote:
That's only one side of the transfer.... you still need something on the 6502 side to receive the data.
Well, yeah, as with
anything that communicates with anything else. But if you're already connecting to your board via some sort of "serial" (or serial-like) connection, such as this or a UART, you've already got that: it's whatever you're typing in there. E.g., in WozMon the "protocol" for the host to send data to memory is `0300:12 34 AB CD` to load those four bytes at location $300.
In case it wasn't clear, this "USB FIFO," as far as I can tell, works just like any other serial connection on the host end, and jsut requires a simpler driver on the microcomputer end. Basically, just like any other USB-connected serial interface but without bps rates, stop bit settings, etc. etc.