
SDRAM Controller
10-34
Élan™SC520 Microcontroller User’s Manual
■
The final address must have SDRAM column address bits 11, 9, and (processor address
bits 12–10) off.
There are many addresses which meet this criteria, of which one example is:
address1 = 0E001E00h
address2 = 0E000E00h
address3 = 0E000600h
address4 = 0E000200h
Here is the sequence to determine the number of columns for a given external bank of
SDRAM:
1. First, pattern1 is written and read back from address1.
2. Pattern2 is written and read back from address2.
3. Pattern3 is written and read back from address3.
4. Pattern4 is written and read back from address4.
5. If any of the four reads fail to produce the same pattern that was written, then either
SDRAM does not exist for this external bank, or the SDRAM is nonfunctional, which, in
either case, no memory is enabled and sizing continues with the next external bank.
6. If all four reads are correct, then address1 is read once again, and the pattern that is
returned by this read determines the true number of columns.
Using the patterns given in the example, the value read
is the number of real columns for
the external bank.
10.6.4.2
Determining the Number of Internal Banks
Determining the correct number of internal banks and the true ending address of an external
bank requires only five writes and seven reads of the external bank.
Five unique data patterns must be selected.
An example is:
pattern5 = 3Fh
pattern6 = 1Fh
pattern7 = 0Fh
pattern8 = 07h
pattern9 = AAh
Five SDRAM memory addresses must be selected which all have the same low-order
SDRAM row address bits, the same least significant internal bank select bit (BA0), and the
same SDRAM column address bits (processor address bits 31–28 and 23–0 constant), but
with specially selected row addresses for processor address bits 27–24. Processor address
bits 27–24 is where the SDRAM rows above ROW10 are mapped in this maximum SDRAM
configuration.
■
The first address must have processor address bits 27–24 all on.
■
The second address must have processor address bit 27 off and processor address bits
26–24 on.
■
The third address must have processor address bits 27–26 off and processor address
bits 25-24 on.
■
The fourth address must have processor address bits 27–25 off and processor address
bit 24 on.
Содержание Elan SC520
Страница 1: ...lan SC520 Microcontroller User s Manual Order 22004A...
Страница 4: ...iv lan SC520 Microcontroller User s Manual...
Страница 28: ...Introduction xxviii lan SC520 Microcontroller User s Manual...
Страница 42: ...Architectural Overview 1 14 lan SC520 Microcontroller User s Manual...
Страница 78: ...System Initialization 3 22 lan SC520 Microcontroller User s Manual...
Страница 108: ...Clock Generation and Control 5 10 lan SC520 Microcontroller User s Manual...
Страница 118: ...Reset Generation 6 10 lan SC520 Microcontroller User s Manual...
Страница 148: ...System Arbitration 8 24 lan SC520 Microcontroller User s Manual...
Страница 214: ...SDRAM Controller 10 36 lan SC520 Microcontroller User s Manual...
Страница 230: ...Write Buffer and Read Buffer 11 16 lan SC520 Microcontroller User s Manual...
Страница 288: ...GP Bus DMA Controller 14 22 lan SC520 Microcontroller User s Manual...
Страница 316: ...Programmable Interval Timer 16 8 lan SC520 Microcontroller User s Manual...
Страница 328: ...Software Timer 18 4 lan SC520 Microcontroller User s Manual...
Страница 346: ...Real Time Clock 20 12 lan SC520 Microcontroller User s Manual...
Страница 360: ...UART Serial Ports 21 14 lan SC520 Microcontroller User s Manual...
Страница 414: ...AMDebug Technology 26 8 lan SC520 Microcontroller User s Manual...