Figure 5-10. Address Map with 32 KB External Memory
M
e
m
o
r
y
C
on
fi
gu
r
a
ti
on
A
AV
R
M
e
m
o
r
y
M
ap
External 32K S RAM
0
x0000
0x0000
I
n
t
e
r
na
l
M
e
mo
ry
0
0
x
20FF
2100
ISRAM end
XMem start
x
E
xternal
0
0
x
7
FFF
0x7FFF
x8000
Memory
ISRAM end + 0x8000
XMem start + 0x8000
(Unused)
0xFFFF
5.5.9
Using all 64KB Locations of External Memory
Since the External Memory is mapped after the Internal Memory as shown in Figure 5-4, only
56KB of External Memory is available by default (address space 0x0000 to 0x20FF 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.
36
AT90USB64/128
7593A–AVR–02/06