External Memory
Interface
Overview
ATmega64(L)
With all the features that the External Memory Interface provides, it is well suited to
operate as an interface to memory devices such as external SRAM and Flash, and
peripherals such as LCD-display, A/D, and D/A. The main features are:
• Four different wait-state settings (Including no wait-state).
• Independent wait-state setting for different external memory sectors (configurable
sector size).
• The number of bits dedicated to address high byte is selectable.
• Bus Keepers on data lines to minimize current consumption (optional).
When the eXternal MEMory (XMEM) is enabled, address space outside the internal
SRAM becomes available using the dedicated external memory pins (see Figure 1 on
page 2, Table 27 on page 71, Table 33 on page 75, and Table 45 on page 83). The
memory configuration is shown in Figure 11.
Figure 11. External Memory with Sector Select(1)
Memory Configuration A
0x0000
Memory Configuration B
0x0000
Internal Memory
Lower Sector
SRW01
SRW00
0x10FF
0x1100
Internal Memory
0x0FFF
0x1000
External Memory
(0-60K x 8)
Upper Sector
SRL[2..0]
External Memory
(0-60K x 8)
SRW10
SRW11
SRW10
0xFFFF
0xFFFF
Note:
1. ATmega64 in non ATmega103 compatibility mode: Memory Configuration A is avail-
able (Memory Configuration B N/A).
ATmega64 in mega103 compatibility mode: Memory Configuration B is available
(Memory Configuration A N/A).
25
2490G–AVR–03/04