Skip to content

Workbench article

DDR3 Initialization and Training

Chapter 04 of DDR Implementation Guide.

4. DDR3 Initialization and Training

When you press the power button, the memory doesn't just "work." The controller and the DRAM perform a complex "handshake" to calibrate for temperature, voltage, and PCB trace lengths.

4.1 The MRS Sequence

The Mode Register Set (MRS) commands configure the CAS latency, ODT values, and drive strength. I always recommend configuring MR1 (DLL Enable) before MR0 to ensure the clock is stable.

4.2 ZQ Calibration

DDR3 uses a precision 240Ω resistor on the ZQ pin to calibrate the output drivers. Without this, the signal amplitude will drift as the chip heats up.

4.3 Read/Write Leveling

The controller sends training patterns to measure the "flight time" of signals to each chip. It then adds tiny delays (picoseconds) to the DQS signals so that data is sampled exactly in the center of the "eye."