www.ti.com
DDR2 Memory Controller Registers
4.5SDRAM Timing 1 Register (SDTIM1)
The SDRAM timing 1 register (SDTIM1) configures the DDR2 memory controller to meet many of the AC timing specification of the DDR2 memory. Note that DDR_CLK is equal to the period of the DDR_CLK signal. See the DDR2 memory data sheet for information on the appropriate values to program each field. The bit fields in the SDTIM1 register are only writeable when the TIMUNLOCK bit of the SDRAM Configuration register (SDCFG) is unlocked. The SDTIM1 is shown in Figure 24 and described in
Table 22.
Figure 24. SDRAM Timing 1 Register (SDTIM1)
31 |
|
| 25 | 24 | 22 | 21 | 19 | 18 |
| 16 |
| T_RFC |
|
| T_RP |
|
| T_RCD |
| T_WR |
|
|
|
|
|
|
|
| ||||
15 | 11 | 10 |
|
| 6 | 5 | 3 | 2 | 1 | 0 |
| T_RAS |
|
| T_RC |
|
| T_RRD | Rsvd | T_WTR | |
|
|
|
|
|
LEGEND: R/W = Read/Write; R = Read only;
Bit Field
2 | Reserved |
Table 22. SDRAM Timing 1 Register (SDTIM1) Field Descriptions
Value Description
These bits specify the minimum number of DDR_CLK cycles from a refresh or load mode command to a refresh or activate command, minus one. The value for these bits can be derived from the trfc AC timing parameter in the DDR2 memory data sheet. Calculate using this formula:
T_RFC = (trfc/DDR_CLK) - 1
These bits specify the minimum number of DDR_CLK cycles from a precharge command to a refresh or activate command, minus 1. The value for these bits can be derived from the trp AC timing parameter in the DDR2 memory data sheet. Calculate using the formula:
T_RP = (trp/DDR_CLK) - 1
These bits specify the minimum number of DDR_CLK cycles from an activate command to a read or write command, minus 1. The value for these bits can be derived from the trcd AC timing parameter in the DDR2 memory data sheet. Calculate using the formula:
T_RCD = (trcd/DDR_CLK) - 1
These bits specify the minimum number of DDR_CLK cycles from the last write transfer to a precharge command, minus 1. The value for these bits can be derived from the twr AC timing parameter in the DDR2 memory data sheet. Calculate using the formula:
T_WR = (twr/DDR_CLK) - 1
The SDRAM initialization sequence will be started when the value of this field is changed from the previous value and the DDR2_ENABLE in SDCFG is equal to 1.
These bits specify the minimum number of DDR_CLK cycles from an activate command to a precharge command, minus 1. The value for these bits can be derived from the tras AC timing parameter in the DDR2 memory data sheet. Calculate using this formula:
T_RAS = (tras/DDR_CLK) - 1
T_RAS must be greater than or equal to T_RCD.
These bits specify the minimum number of DDR_CLK cycles from an activate command to an activate command, minus 1. The value for these bits can be derived from the trc AC timing parameter in the DDR2 memory data sheet. Calculate using this formula:
T_RC = (trc/DDR_CLK) - 1
These bits specify the minimum number of DDR_CLK cycles from an activate command to an activate command in a different bank, minus 1. The value for these bits can be derived from the trrd AC timing parameter in the DDR2 memory data sheet. Calculate using this formula:
T_RRD = (trrd/DDR_CLK) - 1
When connecting to an 8_bank DDR2 SDRAM, this field must be equal to:
T_RRD = ( (4*trrd + 2*tck) / (4*tck) ) - 1
Reserved. The reserved bit location is always read as 0. A value written to this field has no effect.
SPRUF85 | DSP DDR2 Memory Controller | 41 |
Submit Documentation Feedback |
|
|