Atmel Evaluation Kit AT91SAM9M10-G45-EK AT91SAM9M10-G45-EK Data Sheet
Product codes
AT91SAM9M10-G45-EK
226
SAM9M10 [DATASHEET]
6355F–ATARM–12-Mar-13
22.4
Initialization Sequence
The addresses given are for example purposes only. The real address depends on implementation in the product.
22.4.1
SDR-SDRAM Initialization
The initialization sequence is generated by software. The SDR-SDRAM devices are initialized by the following
sequence:
sequence:
1.
2.
Program the features of the SDR-SDRAM device into the Timing Register (asynchronous timing (trc, tras,
etc.)), and into the Configuration Register (number of columns, rows, cas latency) (see
etc.)), and into the Configuration Register (number of columns, rows, cas latency) (see
).
3.
For low-power SDRAM, temperature-compensated self refresh (TCSR), drive strength (DS) and partial
array self refresh (PASR) must be set in the Low-power Register (see
array self refresh (PASR) must be set in the Low-power Register (see
A minimum pause of 200 μs is provided to precede any signal toggle.
4.
A NOP command is issued to the SDR-SDRAM. Program NOP command into Mode Register, the appli-
cation must set Mode to 1 in the Mode Register (See
cation must set Mode to 1 in the Mode Register (See
). Perform a write access
to any SDR-SDRAM address to acknowledge this command. Now the clock which drives SDR-SDRAM
device is enabled.
device is enabled.
5.
An all banks precharge command is issued to the SDR-SDRAM. Program all banks precharge command
into Mode Register, the application must set Mode to 2 in the Mode Register (See
into Mode Register, the application must set Mode to 2 in the Mode Register (See
). Perform a write access to any SDR-SDRAM address to acknowledge this command.
6.
Eight auto-refresh (CBR) cycles are provided. Program the auto refresh command (CBR) into Mode Reg-
ister, the application must set Mode to 4 in the Mode Register (see
ister, the application must set Mode to 4 in the Mode Register (see
).Performs
a write access to any SDR-SDRAM location eight times to acknowledge these commands.
7.
A Mode Register set (MRS) cycle is issued to program the parameters of the SDR-SDRAM devices, in
particular CAS latency and burst length. The application must set Mode to 3 in the Mode Register (see
particular CAS latency and burst length. The application must set Mode to 3 in the Mode Register (see
mand. The write address must be chosen so that BA[1:0] are set to 0. For example, with a 16-bit 128 MB
SDR-SDRAM (12 rows, 9 columns, 4 banks) bank address, the SDRAM write access should be done at
the address 0x20000000.
SDR-SDRAM (12 rows, 9 columns, 4 banks) bank address, the SDRAM write access should be done at
the address 0x20000000.
Note:
This address is for example purposes only. The real address is dependent on implementation in the product.
8.
For low-power SDR-SDRAM initialization, an Extended Mode Register set (EMRS) cycle is issued to pro-
gram the SDR-SDRAM parameters (TCSR, PASR, DS). The application must set Mode to 5 in the Mode
Register (see
gram the SDR-SDRAM parameters (TCSR, PASR, DS). The application must set Mode to 5 in the Mode
Register (see
edge this command. The write address must be chosen so that BA[1] is set to 1 and BA[0] is 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 0x20800000.
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 0x20800000.
9.
The application must go into Normal Mode, setting Mode to 0 in the Mode Register (see
).
(Refresh rate = delay between refresh cycles). The SDR-SDRAM device requires a refresh every 15.625
μs or 7.81 μs. With a 100 MHz frequency, the refresh timer count register must to be set with (15.625*100
MHz) = 1562 i.e. 0x061A or (7.81*100 MHz) = 781 i.e. 0x030d
μs or 7.81 μs. With a 100 MHz frequency, the refresh timer count register must to be set with (15.625*100
MHz) = 1562 i.e. 0x061A or (7.81*100 MHz) = 781 i.e. 0x030d
After initialization, the SDR-SDRAM device is fully functional.