I was thinking on how to access more than 64KB space of external memory on avr (Mega128) with C. But is seems a bit complicated since I´d need more pins to access the memory and a corresponding routines to point the ext hardware to the correct page.
Did anybody here something like this before? Also I need to have separate IO space (toggling a pin on the AVR, so this pin colud be named "IO/MEM".
I think the real problem arises when there´s an interrupt wanting to access an array in ext memory, but this interrupt happens just after taking high the IO/MEM pin, so the the absolute memory map is pointed to IO.
Is the correct synchronization on a system like this achievable by means of a Linker description file? or there´s something more to do?