Texas Instruments TMS320DM643 manual Sdram Bank Configuration Register Sdbcr

Page 42

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

42

DDR2 Memory Controller

SPRU986B–November 2007

Image 42
Contents Users Guide Submit Documentation Feedback Contents List of Figures List of Tables Read This First Features Purpose of the PeripheralFunctional Block Diagram Supported Use Case StatementIndustry Standards Compliance Statement Clock Control Clock SourceMemory Map Clock ConfigurationPLLC2 Configuration 3 DDR2 Memory Controller Internal Clock DomainsClock enable Active high Signal DescriptionsDDR2 Memory Controller Signal Descriptions Pin Type DescriptionCommand Function DDR2 Sdram CommandsTruth Table for DDR2 Sdram Commands Protocol DescriptionsRefresh Mode Refresh CommandDcab Command Deactivation Dcab and DeacDeac Command Actv Command Activation ActvRead Command DDR2 Read CommandWrite WRT Command DDR2 WRT CommandMode Register Set MRS and Emrs DDR2 MRS and Emrs CommandMemory Width and Byte Alignment Addressable Memory RangesInternal Data 64-Bit DDRA21 DDRD150 Endianness ConsiderationsBit External Memory Internal Data 64-Bit DDRA2 DDRD310Bank Configuration Register Fields for Address Mapping Address MappingBit Field Bit Value Bit Description Logical Address-to-DDR2 Sdram Address Map for 32-Bit Sdram Logical Address-to-DDR2 Sdram Address Map for 16-bit SdramLogical Address-to-DDR2 Sdram Address Map DDR2 Sdram Column, Row, and Bank Access DDR2 Memory Controller Interface DDR2 Memory Controller Fifo DescriptionCommand Ordering and Scheduling, Advanced Concept Command Starvation Possible Race ConditionRefresh Urgency Levels Self-Refresh ModeRefresh Scheduling Urgency Level DescriptionReset Considerations Reset SourcesReset Signal Reset Source VTP IO Buffer Calibration Auto-Initialization SequenceInitializing Configuration Registers DDR2 Sdram Configuration by MRS CommandDDR2 Sdram Configuration by EMRS1 Command DDR2 Memory ControllerPeripheral Architecture Power Management Interrupt SupportDMA Event Support Emulation Considerations Connecting the DDR2 Memory Controller to DDR2 Memory Supported Use CasesConnecting DDR2 Memory Controller for 32-Bit Connection Configuring Sdram Refresh Control Register Sdrcr Configuring Sdram Bank Configuration Register SdbcrSdram Bank Configuration Register Sdbcr Configuration DDR2 Memory Refresh SpecificationSdram Timing Register 2 SDTIMR2 Configuration Configuring Sdram Timing Registers Sdtimr and SDTIMR2Sdram Timing Register Sdtimr Configuration DDR2 Data Register Field Manual Data Manual FormulaRegister Field Name Description Configuring DDR PHY Control Register DdrphycrDDR PHY Control Register Ddrphycr Configuration D63-32Acronym Register Description Sdram Status Register SdrstatSdram Status Register Sdrstat Field Descriptions DDR VTP RegisterSdram Bank Configuration Register Sdbcr Sdram Bank Configuration Register Sdbcr Field DescriptionsBit Field Value Description Reserved Reserved. Always write a 0 to this bit Sdram Refresh Control Register Sdrcr Sdram Refresh Control Register Sdrcr Field DescriptionsSdram Timing Register Sdtimr Sdram Timing Register Sdtimr Field DescriptionsSdram Timing Register 2 SDTIMR2 Sdram Timing Register 2 SDTIMR2 Field DescriptionsPeripheral Bus Burst Priority Register Pbbpr Peripheral Bus Burst Priority Register PbbprInterrupt Raw Register IRR Interrupt Raw Register IRR Field DescriptionsInterrupt Masked Register IMR Interrupt Masked Register IMR Field DescriptionsInterrupt Mask Set Register Imsr Interrupt Mask Set Register Imsr Field DescriptionsInterrupt Mask Clear Register Imcr Interrupt Mask Clear Register Imcr Field DescriptionsDDR PHY Control Register Ddrphycr DDR PHY Control Register Ddrphycr Field DescriptionsVTP IO Control Register Vtpiocr VTP IO Control Register Vtpiocr Field DescriptionsDDR VTP Register Ddrvtpr DDR VTP Enable Register DdrvtperDDR VTP Enable Register Ddrvtper Field Descriptions DDR VTP Register Ddrvtpr Field DescriptionsTable A-1. Document Revision History Additions/Modifications/DeletionsImportant Notice