Download LPC32x0

Transcript
D
D
D
D
D
R
R
R
R
R
A
A
A
A
A
D
R
R
FT
FT
FT
FT
A
A
A
A
R
R
D
D
D
Chapter 7: LPC32x0 External memory controller (EMC)
D
R
R
A
FT
FT
FT
A
A
R
R
D
D
D
R
A
F
FT
FT
A
A
R
R
D
D
D
6. SDRAM self-refresh mode
FT
FT
FT
LPC32x0
FT
FT
NXP Semiconductors
D
FT
FT
A
A
R
R
D
The SDRAM has logic to determine when it should go in and out of self-refresh mode.
This is described in the PWR_CTRL register description in the Clocking and Power
Control chapter. The SR bit in the EMCDynamicControl register must always be written to
‘0’, note that the default value is ‘1’.
D
D
R
A
FT
D
R
A
7. Register description
This section describes the EMC registers and provides information needed to program it
to interface the controller and external memory. The EMC registers are shown in
Table 7–88.
Table 88.
EMC register summary
Address
Register name
Description
Reset
value
Type
0x4000 4068
SDRAMCLK_CTRL
Controls various SDRAM configuration details.
0
R/W
0x3108 0000
EMCControl
Controls operation of the EMC.
0x3
R/W
0x3108 0004
EMCStatus
Provides EMC status information.
0x5
RO
0x3108 0008
EMCConfig
Configures operation of the EMC.
0
R/W
0x3108 0020
EMCDynamicControl
Controls dynamic memory operation.
0x006
R/W
0x3108 0024
EMCDynamicRefresh
Configures dynamic memory refresh operation.
0
R/W
0x3108 0028
EMCDynamicReadConfig
Configures the dynamic memory read strategy.
0
R/W
0x3108 0030
EMCDynamictRP
Selects the precharge command period.
0x0F
R/W
0x3108 0034
EMCDynamictRAS
Selects the active to precharge command period.
0xF
R/W
0x3108 0038
EMCDynamictSREX
Selects the self-refresh exit time.
0xF
R/W
0x3108 0044
EMCDynamictWR
Selects the write recovery time.
0xF
R/W
0x3108 0048
EMCDynamictRC
Selects the active to active command period.
0x1F
R/W
0x3108 004C EMCDynamictRFC
Selects the auto-refresh period.
0x1F
R/W
0x3108 0050
EMCDynamictXSR
Selects the exit self-refresh to active command time
0x1F
R/W
0x3108 0054
EMCDynamictRRD
Selects the active bank A to active bank B latency
0xF
R/W
0x3108 0058
EMCDynamictMRD
Selects the load mode register to active command time
0xF
R/W
0x3108 005C EMCDynamictCDLR
Selects the last data in to read command time.
0xF
R/W
0x3108 0080
EMCStaticExtendedWait
Selects time for long static memory read and write transfers.
0xF
R/W
0x3108 0100
EMCDynamicConfig0
Selects the configuration information for the SDRAM.
0
R/W
0x3108 0104
EMCDynamicRasCas0
Selects the RAS and CAS latencies for the SDRAM.
0x303
R/W
0x3108 0120
EMCDynamicConfig1
Selects the configuration information for the SDRAM.*
0
R/W
0x3108 0124
EMCDynamicRasCas1
Selects the RAS and CAS latencies for the SDRAM.*
0x303
R/W
R/W
0x3108 0200
EMCStaticConfig0
Selects the memory configuration for static chip select 0.
0x2[1]
0x3108 0204
EMCStaticWaitWen0
Selects the delay from chip select 0 to write enable.
0x0
R/W
0x3108 0208
EMCStaticWaitOen0
Selects the delay from chip select 0 or address change,
whichever is later, to output enable.
0x0
R/W
0x3108 020C EMCStaticWaitRd0
Selects the delay from chip select 0 to a read access.
0x1F
R/W
0x3108 0210
Selects the delay for asynchronous page mode sequential
accesses for chip select 0.
0x1F
R/W
EMCStaticWaitPage0
<Document ID>
User manual
© NXP B.V. 2008. All rights reserved.
Rev. 00.26 — 20 November 2008
127 of 719