Texas Instruments TMS320C642x DSP manual Sdram Bank Configuration Register Sdbcr

Page 43

www.ti.com

DDR2 Memory Controller Registers

4.2SDRAM Bank Configuration Register (SDBCR)

The SDRAM bank configuration register (SDBCR) contains fields that program the DDR2 memory controller to meet the specification of the attached 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 attached DDR2 memory. The SDBCR is shown in Figure 20 and described in Table 26. Writing to the DDRDRIVE, CL, IBANK, and PAGESIZE bit fields will cause the DDR2 memory controller to start the DDR2 SDRAM initialization sequence.

Figure 20. SDRAM Bank Configuration Register (SDBCR)

31

 

24

23

22

19

18

17

16

 

Reserved

 

BOOTUNLOCK

Reserved

DDRDRIVE

Reserved

 

R/W-1

 

R/W-0

 

R/W-2h

R/W-1

 

R-3h

15

14

13

12

11

 

9

 

8

TIMUNLOCK

NM

Reserved

 

 

CL

 

Reserved

R/W-0

R/W-0

R-0

 

 

R/W-5h

 

 

R-0

7

6

 

4

3

2

 

 

0

Reserved

 

IBANK

 

Reserved

 

PAGESIZE

 

 

R-0

 

R/W-2h

 

R-0

 

R/W-0

 

 

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

Table 26. SDRAM Bank Configuration Register (SDBCR) Field Descriptions

Bit

Field

Value

Description

31-24

Reserved

0

Reserved. Always write a value of 0 to these bits.

23

BOOTUNLOCK

 

Boot unlock. Controls the write permission settings for the DDRDRIVE bit. To change the

 

 

 

DDRDRIVE bit value, use the following sequence:

 

 

 

1. Write a 1 to the BOOTUNLOCK bit.

 

 

 

2. Write a 0 to the BOOTUNLOCK bit along with the desired value of the DDRDRIVE bit.

 

 

0

DDRDRIVE bit may not be changed

 

 

1

DDRDRIVE bit may be changed

22-19

Reserved

2h

Reserved. Always write a value of 2h to these bits.

18

DDRDRIVE

 

DDR2 SDRAM drive strength. Configures the output driver impedance control value of the DDR2

 

 

 

SDRAM memory. To change the DDRDRIVE bit value, use the following sequence:

 

 

 

1. Write a 1 to the BOOTUNLOCK bit.

 

 

 

2. Write a 0 to the BOOTUNLOCK bit along with the desired value of the DDRDRIVE bit.

 

 

0

Normal drive strength.

 

 

1

Weak drive strength.

17-16

Reserved

3h

Reserved. Always write a value of 3h to these bits.

15

TIMUNLOCK

 

Timing unlock. Controls the write permission settings for the SDRAM timing register and SDRAM

 

 

 

timing register 2.

 

 

0

Register fields in the SDRAM timing register (SDTIMR) and the SDRAM timing register 2

 

 

 

(SDTIMR2) may not be changed.

 

 

1

Register fields in the SDRAM timing register (SDTIMR) and the SDRAM timing register 2

 

 

 

(SDTIMR2) may be changed.

14

NM

 

DDR2 data bus width.

 

 

0

32-bit bus width.

 

 

1

16-bit bus width

13-12

Reserved

0

Reserved

SPRUEM4A–November 2007

DDR2 Memory Controller

43

Submit Documentation Feedback

 

 

Image 43
Contents Users Guide Submit Documentation Feedback Contents List of Figures List of Tables Read This First Purpose of the Peripheral FeaturesSupported Use Case Statement Functional Block DiagramIndustry Standards Compliance Statement Clock Source Clock Control3 DDR2 Memory Controller Internal Clock Domains Clock ConfigurationPLLC2 Configuration Memory MapPin Type Description Signal DescriptionsDDR2 Memory Controller Signal Descriptions Clock enable Active highProtocol Descriptions DDR2 Sdram CommandsTruth Table for DDR2 Sdram Commands Command FunctionRefresh Command Refresh ModeDeactivation Dcab and Deac Dcab CommandDeac Command Activation Actv Actv CommandDDR2 Read Command Read CommandDDR2 WRT Command Write WRT CommandDDR2 MRS and Emrs Command Mode Register Set MRS and EmrsAddressable Memory Ranges Memory Width and Byte AlignmentBit External Memory Endianness SupportAddress Mapping Bank Configuration Register Fields for Address MappingBit Field Bit Value Bit Description Logical Address-to-DDR2 Sdram Address Map for 16-bit Sdram Logical Address-to-DDR2 Sdram Address Map for 32-Bit SdramLogical Address-to-DDR2 Sdram Address Map DDR2 Sdram Column, Row, and Bank Access DDR2 Memory Controller Fifo Description DDR2 Memory Controller InterfaceCommand Ordering and Scheduling, Advanced Concept Possible Race Condition Command StarvationUrgency Level Description Self-Refresh ModeRefresh Scheduling Refresh Urgency LevelsReset Sources Reset ConsiderationsReset Signal Reset Source Auto-Initialization Sequence VTP IO Buffer CalibrationDDR2 Memory Controller DDR2 Sdram Configuration by MRS CommandDDR2 Sdram Configuration by EMRS1 Command Initializing Configuration RegistersPeripheral Architecture Interrupt Support Power ManagementDMA Event Support Emulation Considerations Supported Use Cases Connecting the DDR2 Memory Controller to DDR2 MemoryConnecting DDR2 Memory Controller for 32-Bit Connection DDR2 Memory Refresh Specification Configuring Sdram Bank Configuration Register SdbcrSdram Bank Configuration Register Sdbcr Configuration Configuring Sdram Refresh Control Register SdrcrDDR2 Data Register Field Manual Data Manual Formula Configuring Sdram Timing Registers Sdtimr and SDTIMR2Sdram Timing Register Sdtimr Configuration Sdram Timing Register 2 SDTIMR2 ConfigurationDDR PHY Control Register Ddrphycr Configuration Configuring DDR PHY Control Register DdrphycrRegister Field Name Description DDR VTP Register Mode D63-32D31-0 Acronym Register DescriptionSdram Status Register Sdrstat Field Descriptions Sdram Status Register SdrstatBit Field Sdram Bank Configuration Register Sdbcr Field Descriptions Sdram Bank Configuration Register SdbcrBit Field Value Description Reserved Reserved. Always write a 0 to this bit Sdram Refresh Control Register Sdrcr Field Descriptions Sdram Refresh Control Register SdrcrSdram Timing Register Sdtimr Field Descriptions Sdram Timing Register SdtimrSdram Timing Register 2 SDTIMR2 Field Descriptions Sdram Timing Register 2 SDTIMR2Peripheral Bus Burst Priority Register Pbbpr Peripheral Bus Burst Priority Register PbbprInterrupt Raw Register IRR Field Descriptions Interrupt Raw Register IRRInterrupt Masked Register IMR Field Descriptions Interrupt Masked Register IMRInterrupt Mask Set Register Imsr Field Descriptions Interrupt Mask Set Register ImsrInterrupt Mask Clear Register Imcr Field Descriptions Interrupt Mask Clear Register ImcrDDR PHY Control Register Ddrphycr Field Descriptions DDR PHY Control Register DdrphycrVTP IO Control Register Vtpiocr Field Descriptions VTP IO Control Register VtpiocrDDR VTP Register Ddrvtpr Field Descriptions DDR VTP Enable Register DdrvtperDDR VTP Enable Register Ddrvtper Field Descriptions DDR VTP Register DdrvtprAdditions/Modifications/Deletions Table A-1. Document Revision HistoryImportant Notice