EMIF Registers
830
SPNU563A – March 2018
Copyright © 2018, Texas Instruments Incorporated
External Memory Interface (EMIF)
21.3.3 SDRAM Configuration Register (SDCR)
The SDRAM configuration register (SDCR) is used to configure various parameters of the SDRAM
controller such as the number of internal banks, the internal page size, and the CAS latency to match
those of the attached SDRAM device. In addition, this register is used to put the attached SDRAM device
into Self-Refresh mode. The SDCR is shown in
and described in
NOTE:
Writing to the lower three bytes of this register will cause the EMIF to start the SDRAM
initialization sequence described in
Figure 21-17. SDRAM Configuration Register (SDCR) [offset = 08h]
31
30
29
28
24
SR
PD
PDWR
Reserved
R/W-0
R/W-0
R/W-0
R-0
23
16
Reserved
R-0
15
14
13
12
11
9
8
Reserved
NM
(A)
Reserved
CL
BIT11_9LOCK
R-0
R/W-0
R-0
R/W-3h
R/W-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
A. The NM bit must be set to 1 if the EMIF on your device only has 16 data bus pins.
Table 21-27. SDRAM Configuration Register (SDCR) Field Descriptions
Bit
Field
Value
Description
31
SR
Self-Refresh mode bit. This bit controls entering and exiting of the Self-Refresh mode described in
. The field should be written using a byte-write to the upper byte of SDCR to avoid
triggering the SDRAM initialization sequence.
0
Writing a 0 to this bit will cause connected SDRAM devices and the EMIF to exit the Self-Refresh
mode.
1
Writing a 1 to this bit will cause connected SDRAM devices and the EMIF to enter the Self-Refresh
mode.
30
PD
Power Down bit. This bit controls entering and exiting of the power-down mode. The field should be
written using a byte-write to the upper byte of SDCR to avoid triggering the SDRAM initialization
sequence. If both SR and PD bits are set, the EMIF will go into Self Refresh.
0
Writing a 0 to this bit will cause connected SDRAM devices and the EMIF to exit the power-down
mode.
1
Writing a 1 to this bit will cause connected SDRAM devices and the EMIF to enter the power-down
mode.
29
PDWR
Perform refreshes during power down. Writing a 1 to this bit will cause EMIF to exit power-down
state and issue and AUTO REFRESH command every time Refresh May level is set.
28-15
Reserved
0
Reserved. The reserved bit location is always read as 0. If writing to this field, always write the
default value of 0.
14
NM
Narrow mode bit. This bit defines whether a 16- or 32-bit-wide SDRAM is connected to the EMIF.
This bit field must always be set to 1. Writing to this field triggers the SDRAM initialization
sequence.
0
32-bit SDRAM data bus is used.
1
16-bit SDRAM data bus is used.
13-12
Reserved
0
Reserved. The reserved bit location is always read as 0. If writing to this field, always write the
default value of 0.