Figure 9-6. Address Map with 32 KB External Memory
AVR Memory Map
External 32K SRAM
0x0000
0x0000
Internal Memory
0x21FF
0x2200
External
0x7FFF
0x7FFF
0x8000
Memory
0x90FF
0x9100
9.1.6
Using all 64KB Locations of External Memory
Since the External Memory is mapped after the Internal Memory as shown in Figure 9-1, only
56KB of External Memory is available by default (address space 0x0000 to 0x21FF is reserved
for internal memory). However, it is possible to take advantage of the entire External Memory by
masking the higher address bits to zero. This can be done by using the XMMn bits and control
by software the most significant bits of the address. By setting Port C to output 0x00, and releas-
ing the most significant bits for normal Port Pin operation, the Memory Interface will address
0x0000 - 0x2FFF. See the following code examples.
Care must be exercised using this option as most of the memory is masked away.
32
ATmega640/1280/1281/2560/2561
2549L–AVR–08/07