SAM3X8E Atmel Corporation, SAM3X8E Datasheet - Page 406

no-image

SAM3X8E

Manufacturer Part Number
SAM3X8E
Description
Manufacturer
Atmel Corporation
Datasheets
25.5
25.5.1
406
406
Product Dependencies
SAM3X/A
SAM3X/A
SDRAM Device Initialization
The initialization sequence is generated by software. The SDRAM devices are initialized by the
following sequence:
After initialization, the SDRAM devices are fully functional.
Note:
1. SDRAM features must be set in the configuration register: asynchronous timings (TRC,
2. For mobile SDRAM, temperature-compensated self refresh (TCSR), drive strength
3. The SDRAM memory type must be set in the Memory Device Register.
4. A minimum pause of 200 μs is provided to precede any signal toggle.
5.
6. An All Banks Precharge command is issued to the SDRAM devices. The application
7. Eight auto-refresh (CBR) cycles are provided. The application must set the Mode to 4 in
8. A Mode Register set (MRS) cycle is issued to program the parameters of the SDRAM
9. For mobile SDRAM initialization, an Extended Mode Register set (EMRS) cycle is
10. The application must go into Normal Mode, setting Mode to 0 in the Mode Register and
11. Write the refresh rate into the count field in the SDRAMC Refresh Timer register.
TRAS, etc.), number of columns, rows, CAS latency, and the data bus width.
(DS) and partial array self refresh (PASR) must be set in the Low Power Register.
(1)
1 in the Mode Register and perform a write access to any SDRAM address.
must set Mode to 2 in the Mode Register and perform a write access to any SDRAM
address.
the Mode Register and perform a write access to any SDRAM location eight times.
devices, in particular CAS latency and burst length. The application must set Mode to 3
in the Mode Register and perform a write access to the SDRAM. The write address
must be chosen so that BA[1:0] are set to 0. For example, with a 16-bit 128 MB SDRAM
(12 rows, 9 columns, 4 banks) bank address, the SDRAM write access should be done
at the address 0x70000000.
issued to program the SDRAM parameters (TCSR, PASR, DS). The application must
set Mode to 5 in the Mode Register and perform a write access to the SDRAM. The
write address must be chosen so that BA[1] or BA[0] are set to 1. For example, with a
16-bit 128 MB SDRAM, (12 rows, 9 columns, 4 banks) bank address the SDRAM write
access should be done at the address 0x70800000 or 0x70400000.
performing a write access at any location in the SDRAM.
(Refresh rate = delay between refresh cycles). The SDRAM device requires a refresh
every 15.625 μs or 7.81 μs. With a 100 MHz frequency, the Refresh Timer Counter
Register must be set with the value 1562(15.625 μs x 100 MHz) or 781(7.81 μs x 100
MHz).
A NOP command is issued to the SDRAM devices. The application must set Mode to
1. It is strongly recommended to respect the instructions stated in
cess in order to be certain that the subsequent commands issued by the SDRAMC will be
taken into account.
Step 5
of the initialization pro-
11057A–ATARM–17-Feb-12
11057A–ATARM–17-Feb-12

Related parts for SAM3X8E