cbscpe wrote:
The synchronous design would require that everything happens synchronously to PHI2. The easiest is to have the AVR create PHI2 and poll a "chip-select" and read some address bits to know when to read or write to the 6502 like in
Michael's 3-chip design.
That is how I do it in my 3-chip design with the extra advantage that the PIC microprocessor performs the address decoding and doesn't have to poll for its chip select signal.
Quote:
But this is limited to rather low PHI2 clock rates, even if the AVR just copies from the 6502 to the internal registers this uses at least 10-20 cycles.
That's correct. My PIC, with 62.5-nS instruction cycles (like a 16-MHz AVR), uses exactly 16 instruction cycles per 65C02 clock cycle to perform its functions, which limits the 65C02 clock to 1-MHz. If I upgrade to a PIC24 device I could have a 4-MHz 65C02 clock.
Quote:
... only using the USART of the AVR it is not worth the effort as BDD mentions correctly...
I agree. I can only justify using the PIC in my 3-chip design because it provides "direct" full-speed (1-MHz) access to the PICs Serial and
high-performance SPI peripheral registers as well as providing the CPU clock and reset signals, a blind loader function, and 'soft' address decoder function. For ROMless designs with 'classic I/O' like an ACIA and/or VIA that don't require PIC peripheral access, I use a 28-pin PIC strictly for Reset, Clock, Loader, and Decoder functions.