English
Language : 

AT91SAM9R64_1 Datasheet, PDF (165/903 Pages) ATMEL Corporation – AT91 ARM Thumb Microcontrollers
AT91SAM9R64/RL64 Preliminary
22.6
External Memory Mapping
The SMC provides up to 26 address lines, A[25:0]. This allows each chip select line to address
up to 64 Mbytes of memory.
If the physical memory device connected on one chip select is smaller than 64 Mbytes, it wraps
around and appears to be repeated within this space. The SMC correctly handles any valid
access to the memory device within the page (see Figure 22-2).
A[25:0] is only significant for 8-bit memory, A[25:1] is used for 16-bit memory, A[25:2] is used for
32-bit memory.
Figure 22-2. Memory Connections for Eight External Devices
NCS[0] - NCS[7]
SMC
NRD
NWE
A[25:0]
D[31:0]
NCS7
Memory Enable
NCS6
Memory Enable
NCS5
Memory Enable
NCS4
Memory Enable
NCS3
Memory Enable
NCS2
Memory Enable
NCS1
Memory Enable
NCS0
Memory Enable
Output Enable
Write Enable
8 or 16 or 32
A[25:0]
D[31:0] or D[15:0] or
D[7:0]
22.7 Connection to External Devices
22.7.1
Data Bus Width
A data bus width of 8, 16, or 32 bits can be selected for each chip select. This option is con-
trolled by the field DBW in SMC_MODE (Mode Register) for the corresponding chip select.
Figure 22-3 shows how to connect a 512K x 8-bit memory on NCS2. Figure 22-4 shows how to
connect a 512K x 16-bit memory on NCS2. Figure 22-5 shows two 16-bit memories connected
as a single 32-bit memory
22.7.2
Byte Write or Byte Select Access
Each chip select with a 16-bit or 32-bit data bus can operate with one of two different types of
write access: byte write or byte select access. This is controlled by the BAT field of the
SMC_MODE register for the corresponding chip select.
6289C–ATARM–28-May-09
165