233
6437E–ATARM–23-Apr-13
SAM9M11
9.
The application must go into Normal Mode, setting Mode to 0 in the Mode Register (see
power DDR1-SDRAM to acknowledge this command.
10. Perform a write access to any low-power DDR1-SDRAM address.
11. Write the refresh rate into the count field in the DDRSDRC Refresh Timer register (see
page 261). (Refresh rate = delay between refresh cycles). The low-power DDR1-
SDRAM device requires a refresh every 15.625 s or 7.81 s. With a 100 MHz fre-
quency, 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
12. After initialization, the low-power DDR1-SDRAM device is fully functional.
22.3.3
DDR2-SDRAM Initialization
The initialization sequence is generated by software. The DDR2-SDRAM devices are initialized
by the following sequence:
1.
Program the memory device type into the Memory Device Register (see
Section 22.7.82.
Program the features of DDR2-SDRAM device into the Timing Register (asynchronous
timing (trc, tras, etc.)), and into the Configuration Register (number of columns, rows,
3.
An NOP command is issued to the DDR2-SDRAM. Program the NOP command into
the Mode Register, the application must set Mode to 1 in the Mode Register (see
Sec-acknowledge this command. Now clocks which drive DDR2-SDRAM device are
enabled.
A minimum pause of 200 s is provided to precede any signal toggle.
4.
An NOP command is issued to the DDR2-SDRAM. Program the NOP command into
the Mode Register, the application must set Mode to 1 in the Mode Register (see
Sec-acknowledge this command. Now CKE is driven high.
5.
An all banks precharge command is issued to the DDR2-SDRAM. Program all banks
precharge command into the Mode Register, the application must set Mode to 2 in the
SDRAM address to acknowledge this command
6.
An Extended Mode Register set (EMRS2) cycle is issued to chose between commer-
cial or high temperature operations. The application must set Mode to 5 in the Mode
SDRAM to acknowledge 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 DDR2-
SDRAM (12 rows, 9 columns, 4 banks) bank address, the DDR2-SDRAM write access
should be done at the address 0x20800000.
Note:
This address is for example purposes only. The real address is dependent on implementation in
the product.
7.
An Extended Mode Register set (EMRS3) cycle is issued to set all registers to “0”. The
and perform a write access to the DDR2-SDRAM to acknowledge this command. The
write address must be chosen so that BA[1] is set to 1 and BA[0] is set to 1. For exam-
ple, with a 16-bit 128 MB DDR2-SDRAM (12 rows, 9 columns, 4 banks) bank address,
the DDR2-SDRAM write access should be done at the address 0x20C00000.