Datasheet

Table Of Contents
32
ATmega640/V-1280/V-1281/V-2560/V-2561/V [DATASHEET]
2549Q–AVR–02/2014
9.1.6 Using all 64Kbytes Locations of External Memory
Since the External Memory is mapped after the Internal Memory as shown in Figure 9-1 on page 27, only 56Kbytes
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 set-
ting Port C to output 0x00, and releasing 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.