cjs wrote:
Consider a USB FIFO, such as the FT245. It's faster than serial over a UART and considerably simpler to configure. (On both ends: the USB side appears as a USB serial interface, but it doesn't care how you set the baud rate, stop bits, etc. on the host since it's a parallel interface.)
I just spent some time looking into the FT245 and at the schematic that plasmo as for the ROMless EEPROM programmer. Looking at how easy it is to interface I am seriously considering using on in a design. In fact I realized that I might already have one from a WaveShare FPGA dev kit that I have collecting dust. I tried looking around the forum but didn't fond a whole lot on interfacing it to the 6502. Is there any gotchas or is it just some glue logic for the RD# and WR inputs and maybe adding the TXE# and RXF# lines to the memory map?
plasmo wrote:
To reduce the complexity of your first design, all you need is 6502, RAM, flash, CPLD, and oscillator. CPLD can be reprogrammed at least 100 times via JTAG so your basic design can evolve from very basic, fixed memory map to complex, programmable memory map to emulate 65C22 functions in CPLD to adding serial port function in CPLD by just reprogramming the CPLD.
Bill
I absolutely plan on making this initial design as simple as possible. If I was going to use the ATF1504AS for glue logic it seemed kind of a waste to not design a way to take advantage of the power and ability for in system programming at a later date.
cjs wrote:
One thing you want to watch out for when bank-switching ROM is the NMI, reset and IRQ vectors at the top of the address space. If there's any chance you might get an interrupt (or reset!) just after you've switched, you want to make sure that these are set up correctly before you do the switch. This is one reason why systems often have writes to the "ROM" area always go through to the RAM that can also be mapped to that address space, even when reading ROM from it.
I completely forgot about that even though I just read it a little bit ago. You probably saved me a lot of headache in the future!