Texas Instruments TMS320C6452 DSP manual Sdram Configuration Register Sdcfg

Page 38

www.ti.com

DDR2 Memory Controller Registers

4.3SDRAM Configuration Register (SDCFG)

The SDRAM configuration register (SDCFG) contains fields that program the DDR2 memory controller to meet the specification of the DDR2 memory. These fields configure the DDR2 memory controller to match the data bus width, CAS latency, number of internal banks, and page size of the external DDR2 memory. Bits 0-14 of the SDCFG register are only writeable when the TIMUNLOCK bit is set to 0 (unlocked). See Section 2.11.1 for more information on initializing the configuration registers of the DDR2 memory controller. The SDCFG is shown in Figure 22 and described in Table 20.

Figure 22. SDRAM Configuration Register (SDCFG)

31

 

 

 

 

 

 

24

 

 

 

 

Reserved

 

 

 

 

 

 

 

R-0x0

 

 

 

23

22

 

 

19

18

17

16

BOOT_

 

Reserved

 

 

DDR_DRIVE

 

Reserved

UNLOCK

 

 

 

 

 

 

 

 

 

 

 

R/W-0

 

R/W-0xA

 

 

R-0

 

R-0x3

15

14

13

12

11

 

9

8

TIMUNLOCK

NM

Reserved

 

 

CL

 

Reserved

R/W-0

R/W-0

R-0x0

 

 

R/W-0x5

 

R-0x0

7

6

 

4

3

2

 

0

Reserved

 

IBANK

 

Reserved

 

PAGESIZE

R-0x0

 

R/W-0x2

 

R-0x0

 

R/W-0x0

 

LEGEND: R/W = Read/Write; R = Read only; -n= value after reset

Table 20. SDRAM Configuration Register (SDCFG) Field Descriptions

Bit

Field

Value

Description

31-24

Reserved

 

Reserved. Writes to this register must keep these bits at their default values.

23

BOOT_UNLOCK

 

Boot unlock bit. Controls write access to bits 16 through 22 of this register.

 

 

0

Writes to bits 22:16 of this register are not permitted

 

 

1

Writes to bits 22:16 of this register are allowed

22-19

Reserved

 

Reserved. Writes to this register must keep these bits at their default value.

18

DDR_DRIVE

 

DDR2 SDRAM drive strength. This bit is used to select the drive strength used by the DDR2

 

 

 

SDRAM. This bit is writeable only when BOOT_UNLOCK is unlocked (set to 1).

 

 

0

Normal drive strength

 

 

1

Weak (60%) drive strength

17-16

Reserved

 

Reserved. Writes to this register must keep these bits at their default value.

15

TIMUNLOCK

 

Timing unlock bit. Controls write access for the SDRAM Timing Register (SDTIM1) and SDRAM

 

 

 

Timing Register 2 (SDTIM2). A write to this bit will cause the DDR2 Memory Controller to start the

 

 

 

SDRAM initialization sequence.

 

 

0

Register fields in the SDTIM1 and SDTIM2 registers may not be changed.

 

 

1

Register fields in the SDTIM1 and SDTIM2 registers may be changed.

14

NM

 

DDR2 data bus width. A write to this bit will cause the DDR2 Memory Controller to start the SDRAM

 

 

 

initialization sequence.

 

 

0

32-bit bus width.

 

 

1

16-bit bus width

13-12

Reserved

 

Reserved. The reserved bit location is always read as 0. A value written to this field has no effect.

38

DSP DDR2 Memory Controller

SPRUF85 –October 2007

Image 38
Contents Users Guide Submit Documentation Feedback Contents List of Figures List of Tables Data Manual Reference GuidesRelated Documents From Texas Instruments Related Documents From Texas Instruments Purpose of the Peripheral FeaturesFunctional Block Diagram Industry Standards Compliance Statement Memory Map Signal DescriptionsClock Control DDR2 Memory Controller Signal Descriptions Pin DescriptionCommand Function DDR2 Sdram CommandsTruth Table for DDR2 Sdram Commands Protocol DescriptionsDdrclk MRS/EMRS Ddrcke Ddrcs Ddrras Ddrcas Ddrwe Mode Register Set MRS and EmrsRefresh Mode COLActivation Actv Ddrcs Ddrras Ddrcas DdrweDcab Command Deactivation Dcab and DeacRead Command DDR2 Read CommandAddressable Memory Ranges Write WRT CommandMemory Width and Byte Alignment Memory Width Maximum Addressable BytesBit Field Bit Value Bit Description Bank Configuration Register Fields for Address MappingAddress Mapping IbankLogical Address-to-DDR2 Sdram Address Map for 16-bit Sdram Logical Address-to-DDR2 Sdram Address Map DDR2 Memory Controller Interface DDR2 Memory Controller Fifo DescriptionDDR2 Memory Controller Fifo Block Diagram Command Ordering and Scheduling, Advanced ConceptCommand Starvation Refresh Urgency Levels Refresh SchedulingPossible Race Condition Urgency Level DescriptionReset Sources Self-Refresh ModeReset Considerations DDR2 Sdram Extended Mode Register 1 Configuration 11.1 DDR2 Sdram Device Mode Register Configuration ValuesDDR2 Sdram Mode Register Configuration 11 DDR2 Sdram Memory InitializationInterrupt Support 11.2 DDR2 Sdram Initialization After Reset11.3 DDR2 Sdram Initialization After Register Configuration Edma Event SupportUsing the DDR2 Memory Controller Connecting the DDR2 Memory Controller to DDR2 SdramConnecting to Two 16-Bit DDR2 Sdram Devices Connecting to a Single 16-Bit DDR2 Sdram Device Connecting to Two 8-Bit DDR2 Sdram Devices Programming the Sdram Refresh Control Register Sdrfc Programming the Sdram Configuration Register SdcfgSdcfg Configuration Function SelectionConfiguring Sdram Timing Registers SDTIM1 and SDTIM2 DDR2 Memory Refresh SpecificationSdrfc Configuration SDTIM1 ConfigurationDDR2 Sdram Data Register Field Sheet Parameter SDTIM2 ConfigurationDmcctl Configuration Name DescriptionDDR2 Memory Controller Registers Offset Acronym Register DescriptionModule ID and Revision Register Midr Field Descriptions Module ID and Revision Register MidrDDR2 Memory Controller Status Register Dmcstat Bit Field Value DescriptionSdram Configuration Register Sdcfg Sdram Configuration Register Sdcfg Field DescriptionsSdram Configuration Register Sdcfg Field Descriptions Sdram Refresh Control Register Sdrfc Sdram Refresh Control Register Sdrfc Field DescriptionsTrfc TRP Trcd TWR Sdram Timing 1 Register SDTIM1Sdram Timing 1 Register SDTIM1 Field Descriptions Tras TRC TrrdDDR2 memory data sheet. Calculate using this formula Todt Tsxnr Sdram Timing 2 Register SDTIM2Sdram Timing 2 Register SDTIM2 Field Descriptions Tsxrd Trtp TckePrioraise Burst Priority Register BprioBurst Priority Register Bprio Field Descriptions DDR2 Memory Controller Control Register Dmcctl ReseRfid Products ApplicationsDSP