SDRAM Controller (SDC)
18-56
ADSP-BF535 Blackfin Processor Hardware Reference
Below is an example of the calculation of
RDIV
for a typical SDRAM in a
system with a 133 MHz clock:
• f
SCLK
= 133 MHz
• t
REF
= 64 ms
• NRA = 4096 row addresses
• t
RAS
= 2
• t
RP
= 2
The equation for
RDIV
yields:
RDIV
= ( (133
10
6
64
10
-3
) / 4096) – (2 + 2) = 2074 clock cycles.
This means
RDIV
is 0x81A (hex) and the SDRAM Refresh Rate Control
register should be written with 0x081A.
Note that
RDIV
must be programmed to a nonzero value if the SDRAM
controller is enabled. When
RDIV = 0
, operation of the SDRAM controller
is not supported and can produce undesirable behavior. Values for
RDIV
can range from 0x001 to 0xFFF.
SDRAM External Bank Address Decode
The memory address space for each SDRAM bank is contiguous. There-
fore, the starting addresses for each of the SDRAM banks and for the
beginning of the unpopulated/reserved space is determined by adding up
the sizes of each bank that precedes that bank. This can be done by simply
summing the Bank Size Encodings listed in
Table 18-6
for each bank as
shown in
Table 18-7
. If every SDRAM bank is 128 MB, the SDRAM
address space is fully populated. If any bank is less than 128 MB, the
address space after bank3 is referred to as “unpopulated/reserved” space.
Summary of Contents for ADSP-BF535 Blackfin
Page 80: ...Development Tools 1 26 ADSP BF535 Blackfin Processor Hardware Reference...
Page 312: ...Working With Memory 6 86 ADSP BF535 Blackfin Processor Hardware Reference...
Page 332: ...System Interfaces 7 20 ADSP BF535 Blackfin Processor Hardware Reference...
Page 360: ...Dynamic Power Management Controller 8 28 ADSP BF535 Blackfin Processor Hardware Reference...
Page 446: ...Beginning and Ending an SPI Transfer 10 40 ADSP BF535 Blackfin Processor Hardware Reference...
Page 522: ...Timing Examples 11 76 ADSP BF535 Blackfin Processor Hardware Reference...
Page 562: ...IrDA Support 12 40 ADSP BF535 Blackfin Processor Hardware Reference...
Page 608: ...PCI I O Issues 13 46 ADSP BF535 Blackfin Processor Hardware Reference...
Page 672: ...References 14 64 ADSP BF535 Blackfin Processor Hardware Reference...
Page 810: ...SDRAM Controller SDC 18 86 ADSP BF535 Blackfin Processor Hardware Reference...
Page 811: ...ADSP BF535 Blackfin Processor Hardware Reference 18 87 External Bus Interface Unit...
Page 812: ...SDRAM Controller SDC 18 88 ADSP BF535 Blackfin Processor Hardware Reference...
Page 860: ...DMA Bus Debug Registers 20 30 ADSP BF535 Blackfin Processor Hardware Reference...