beautypg.com

Cirrus Logic EP93xx User Manual

Page 501

background image

DS785UM1

13-5

Copyright 2007 Cirrus Logic

SDRAM, SyncROM, and SyncFLASH Controller

EP93xx User’s Guide

1

3

1

3

13

2

Write a ‘1’ or ‘0’ to the External Bus Width bit in the
appropriate

"SDRAMDevCfg[3:0]"

register

‘1’ specifies 16-bit memory bus width
‘0’ specifies 32-bit memory bus width

3

Write Initialize = ‘0’, MRS = ‘1’, and LCR = ‘0’ to the

"GlConfig"

register

To allow the Mode register inside the
external SDRAM device to be accessed

4

Read from the external SDRAM’s Mode register
with Row and Bank address = 0x2 or 0x3 (see
SDRAM data sheet)

0x2 -- Burst Length = 4 (32-bit wide
memory bus)
0x3 -- Burst Length = 8 (16-bit wide
memory bus)

5

Write Initialize = ‘1’, MRS = ‘1’, and LCR = ‘0’ to the

"GlConfig"

register

To issue continuous NOP accesses

6

Wait 200

μ

s

SDRAM requirement

7

Write Initialize = ‘1’, MRS = ‘0’, and LCR = ‘0’ to the

"GlConfig"

register

To issue a Pre-Charge All accesses

8

Write Refcnt = 0xB into the

"RefrshTimr"

register

To provide a refresh every 10 SDCLK
cycles

9

Wait for at least 80 SDCLK cycles

To provide 8 refresh cycles to all
SDRAMs in

"SDRAMDevCfg[3:0]"

space

10

Write the normal operating value to the Refcnt field
in the

"RefrshTimr"

register

To establish normal refresh operation

11

Write Initialize = ‘0’, MRS = ‘1’, and LCR = ‘0’ to the

"GlConfig"

register

To allow the Mode register inside the
SDRAM device to be accessed

12

Perform a read from each SDRAM in the

"SDRAMDevCfg[3:0]"

space. The value of the

address that is read defines the value that is
written into the Mode register (see SDRAM device
datasheet). The address value is dependent on the
configuration of the memory system since the
actual SDRAM address pins are mapped
differently onto the processor’s address pins for
16- and 32-bit wide memory systems. (This is the
reason for step 2).

To set up the Mode register inside each
SDRAM device

13

Write parameters corresponding to those
programmed into the SDRAM devices Mode
register into the corresponding fields of the

"SDRAMDevCfg[3:0]"

register. Write other fields in

the

"SDRAMDevCfg[3:0]"

register as appropriate

for the given SDRAM usage.

To initialize the SDRAM controller timing

14

Write Initialize = ‘0’, MRS = ‘0’, and LCR = ‘0’ to the

"GlConfig"

register.

To start normal operation

Table 13-4. General SDRAM Initialization Sequence

Step

Action

Reason