
SDRAM Controller (SDRAMC)
18-28
Freescale Semiconductor
8. Initialize the SDRAM’s mode register and reset the DLL using the
LMR
command. See
Section 18.5.1.6, “Load Mode/Extended Mode Register Command (lmr, lemr),”
for more
instruction on issuing a
LMR
command. During this step the OP_MODE field of the mode register
should be set to normal operation/reset DLL.
9. Pause for the DLL lock time specified by the memory.
10. Issue a second
PALL
command. Initialize the SDRAM control register (SDCR) with SDCR[IPALL]
set. The SDCR[REF and IREF] bits should remain cleared for this step.
11. Refresh the SDRAM. The SDRAM specification should indicate many refresh cycles performed
before issuing an
LMR
command. Write to the SDCR with the IREF bit set (SDCR[REF and
IPALL] must be cleared). This forces a refresh of the SDRAM each time the IREF bit is set. Repeat
this step until the specified number of refresh cycles have been completed.
12. Initialize the SDRAM’s mode register using the
LMR
Mode/Extended Mode Register Command (lmr, lemr),”
for more instruction on issuing an
LMR
command. During this step the OP_MODE field of the mode register should be set to normal
operation.
13. Set SDCR[REF] to enable automatic refreshing, and clear SDCR[MODE_EN] to lock the SDMR.
SDCR[IREF and IPALL] remain cleared.
18.6.1
Page Management
SDRAM devices have four internal banks. A particular row and bank of memory must be activated to
allow read and write accesses. The SDRAM controller supports paging mode to maximize the memory
access throughout. During operation, the SDRAM controller maintains an open page for each SD_CS
block. An open page is composed of the active rows in the internal banks. Each internal bank has its own
active row.
The physical page size of a SD_CS block is equal to the space size divided by the number of rows; but the
page may not be contiguous in the internal address space because SDRAMs can have a different row
address open in each bank and the internal address bits (A[27:24] and A[9:2]) or (A[27:24] and A[9:1])
used for memory column addresses are not consecutive.
Because the column address may split across two portions of the internal address, the contiguous page size
is (number of contiguous columns per bank)
×
(number of bits). This gives a contiguous page size of
1 KBytes. However, the total (possibly fragmented) page size is (number of banks)
×
(number of
columns)
×
(number of bits).
If a new access does not fall in the open row of an open bank of a SD_CS block, the open row must be
closed (
PRE
) and the new row must be opened (
ACTV
), then the
READ
or
WRITE
command can proceed. An
ACTV
command activates only one bank at one time. If another read or write falls in an inactive bank,
another
ACTV
is needed, but no precharge is needed. If a read or write falls in any open row of any active
banks of a page, no
PRE
or
ACTV
is needed; the read or write command can be issued immediately.
A page is kept open until one of the following conditions occurs:
•
An access outside the open page.
•
A refresh cycle is started.
MCF5329 Reference Manual, Rev 3
Summary of Contents for MCF5329
Page 106: ...ColdFire Core 3 32 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Page 148: ...Cache 5 22 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Page 154: ...Static RAM SRAM 6 6 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Page 184: ...Power Management 8 18 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Page 204: ...Reset Controller Module 10 8 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Page 220: ...System Control Module SCM 11 16 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Page 228: ...Crossbar Switch XBS 12 8 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Page 268: ...General Purpose I O Module 13 40 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Page 392: ...SDRAM Controller SDRAMC 18 30 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Page 436: ...Fast Ethernet Controller FEC 19 44 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Page 594: ...FlexCAN 23 30 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Page 678: ...Pulse Width Modulation PWM Module 26 22 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Page 684: ...Watchdog Timer Module 27 6 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Page 704: ...DMA Timers DTIM0 DTIM3 29 12 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Page 754: ...UART Modules 31 34 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Page 770: ...I2 C Interface 32 16 Freescale Semiconductor MCF5329 Reference Manual Rev 3...
Page 866: ...Debug Module 36 50 Freescale Semiconductor MCF5329 Reference Manual Rev 3...