HYB18T256400/800/160AF
256Mb DDR2 SDRAM
INFINEON Technologies
Page 15 Rev. 1.02 May 2004
Example:
2.2.2 Programming the Mode Register and Extended Mode Registers
For application flexibility, burst length, burst type, CAS latency, DLL reset function, write recovery time (WR) are
user defined variables and must be programmed with a Mode Register Set (MRS) command. Additionally, DLL
disable function, additive CAS latency, driver impedance, ODT (On Die Termination), single-ended strobe and
OCD (off chip driver impedance adjustment) are also user defined variables and must be programmed with an
Extended Mode Register Set (EMRS) command. Contents of the Mode Register (MRS) and Extended Mode Reg-
isters (EMRS(#)) can be altered by re-executing the MRS and EMRS Commands. If the user chooses to modify
only a subset of the MRS or EMRS variables, all variables must be redefined when the MRS or EMRS commands
are issued. Also any programming of EMRS(2) or EMRS(3) must be followed by programming of MRS and
EMRS(1). After initial power up, all MRS and EMRS Commands must be issued before read or write cycles may
begin. All banks must be in a precharged state and CKE must be high at least one cycles before the Mode Regis-
ter Set Command can be issued. Either MRS or EMRS Commands are activated by the low signals of CS, RAS,
CAS and WE at the positive edge of the clock. When both bank addresses BA0 and BA1 are low, the DDR2
SDRAM enables the MRS command. When the bank addresses BA0 is high and BA1 low, the DDR2 SDRAM
enables the EMRS(1) command. The address input data during this cycle defines the parameters to be set as
shown in the MRS and EMRS table. A new command may be issued after the mode register set command cycle
time (tMRD). MRS, EMRS and DLL Reset do not affect array contents, which means re-initialization including
those can be executed any time after power-up without affecting array contents.
2.2.3 DDR2 SDRAM Mode Register Set (MRS)
The mode register stores the data for controlling the various operating modes of DDR2 SDRAM. It programs CAS
latency, burst length, burst sequence, test mode, DLL reset, WR (write recovery) and various vendor specific
options to make DDR2 SDRAM useful for various applications. The default value of the mode register is not
defined, therefore the mode register must be written after power-up for proper operation. The mode register is
written by asserting low on CS, RAS, CAS, WE, BA0 and BA1, while controlling the state of address pins A0 ~
A13. The DDR2 SDRAM should be in all bank precharge (idle) mode with CKE already high prior to writing into
the mode register. The mode register set command cycle time (tMRD) is required to complete the write operation
to the mode register. The mode register contents can be changed using the same command and clock cycle
requirements during normal operation as long as all banks are in the precharge state. The mode register is divided
into various fields depending on functionality. Burst length is defined by A0 ~ A2 with options of 4 and 8 bit burst
length. Burst address sequence type is defined by A3 and CAS latency is defined by A4 ~ A6. A7 is used for test
mode and must be set to low for normal MRS operation. A8 is used for DLL reset. A9 ~ A11 are used for write
recovery time (WR) definition for Auto-Precharge mode. With address bit A12 two Power-Down modes can be
selected, a “standard mode” and a “l(fā)ow-power” Power-Down mode, where the DLL is disabled. Address bit A13
and all “higher” address bits (including BA2) have to be set to “l(fā)ow” for compatibility with other DDR2 memory
products with higher memory densities.
1st Auto
refresh
CK, CK
MRS
PRE
ALL
EMRS(3)
tRP
tMRS
tMRS
CKE
400 ns
NOP
ODT "low"
EMRS(2)
tMRS
EMRS(1)
tMRS
PRE
ALL
tRP
tRFC
2nd Auto
refresh
tRFC
Extended
Mode
Register(1) Set
with DLL enable
Mode
Register
Set with
DLL reset
min. 200 cycles to lock the DLL
MRS
tMRS
Follow OCD
flowchart
EMRS(1)
OCD
EMRS(1)
OCD
Any
Command
OCD Drive(1)
or
OCD default
OCD
calibration
mode exit
Mode
Register
Set w/o
DLL reset
tMRS