fredericsegard wrote:
drogon wrote:
You could probably run both ATmegas of a single 16Mhz can oscillator rather than use 2 crystals and associated capacitors. (I was running both the 65C02 and ATmega off the same can osc.
Good idea, I didn't think that was possible. So far, I've never seen a dual configuration MCU, let alone sharing a single can. I guess you have to program one of the fuses to accept cans instead of oscillators. I'll have to investigate... or is it as simple as only using one of the pins? Of course, I'm being lazy and programming the MCU on a UNO, then removing the chip each time.
Yes, as simple as using one pin. (osc1) but yes, I'd have to check, but I think the fuses are different. I almost always use an USB->SPI programmer, but weigh up the convenience of using the internal bootloader (via an Uno board) vs. sticking an ICSP socket (or 2!) on your board. Good use of the ATmegas though - I use one on my Ruby boards and am using 2nd on the expansion board...
drogon wrote:
As for IO mapping - might it be easier to put it up at the top, say $FExx ? Just thinking of saving all that "precious" RAM down below...
That's a great idea, I really didn't think of that one. I would have thought of using $8000 and .org at $8100. But with a PLD, it's easy enough to do.[/quote]
Only suggesting $FExx as that's what I'm doing on my Ruby boards and the decode was easy in a GAL not sure if enough pins on a 22v10 to decode all the other chips you're after, but a 2nd GAL certainly makes life easy... (I also use a GAL to combine IRQs but it looks like you're doing just that in your 16v8 too)
I think my take comes from using the early 6502 systems like the Apple II and BBC Micro where just just had RAM all the way from 0 upwards and ease of using a can osc. than 3 separate components, even though the can might actually work out more expensive in the long run... But for small hobby use? I often find convenience wins over price (for smallish values of price!)
Cheers,
-Gordon
_________________
--
Gordon Henderson.
See my
Ruby 6502 and 65816 SBC projects here:
https://projects.drogon.net/ruby/