Table 24-42 256 Mbit Sdram Mode Register With Values; Table 24-43 Mc9328Mx1 Address Calculation For Given Mode Register Values - Motorola DragonBall MC9328MX1 Reference Manual

Integrated portable system processor
Table of Contents

Advertisement

SDRAM Memory Controller
The values programmed into the SDRAM Mode register for example 1 are as follows:
Sequential burst (BT = 0)
Burst length of 8 (BL = 011), not optional
Single word writes (WB = 1), not optional
2 Clock latency (LTMODE = 010)
When the Mode register value has been determined, it must be converted to an address. The Mode register
is written via the address bus and the memory data sheet specifies the SDRAM address bits on which to
place the data. One final transformation is necessary to align the address to the multiplexed outputs of the
SDRAM controller. Memory density and bus width determine the alignment of the SDRAM to the
controller pins and must be considered during the calculation.
The first step is to determine the value of the 256 Mbit SDRAM Mode register and convert this into an
SDRAM address. Table 24-42 is the same as Table 24-40, however it includes the values for this 256 Mbit
SDRAM example. This table illustrates what value needs to be placed on the address bus to the SDRAM
memory.
Table 24-42. 256 Mbit SDRAM Mode Register with Values
SDRAM Address
Mode Register Bit
Content
Value
The next step is to determine that the proper value is written to the MC9328MX1 internal address bus to
ensure that the SDRAM controller's ROW/COLUMN ADDRESS MUX writes these values to the correct
address pins of the MC9328MX1's external address bus and then to the SDRAM memory. Table 24-39
simplifies this procedure by allowing the user to simply plug in the Mode register bits into this table
therefore generating the correct address to write from the MC9328MX1. Referring to Table 24-39 and
locating the proper SDRAM memory density (in this case the 16M
the Mode register bits into this table. Table 24-43 illustrates this procedure.
Table 24-43. MC9328MX1 Address Calculation for Given Mode Register Values
Internal
Address
Mode
0
0
0
0
X
Register
Bit
Mode
0
0
0
0
1
Register
Bit
Value
Table 24-43 assumes CSD0 is being used as the chip-select for the SDRAM memory, therefore the
chip-select base address bits, A'31 through A'24, are set to 00001000 for the memory map region
0x08000000. As a result, for this example, the final value (in hexadecimal format) written to the
MC9328MX1 internal address for proper translation to the SDRAM memory mode register is
0x08111800. The procedure would then be to issue a Set Mode Register Command to the SDRAM
memory, followed by an access (either READ or WRITE) to the SDRAM memory at address 0x08111800.
24-62
A12
A11
A10
A9
M12
M11
M10
M9
Reserved
WB
0
0
0
1
X
0
0
0
0
0
0
0
0
0
1
MC9328MX1 Reference Manual
A8
A7
A6
A5
M8
M7
M6
M5
Reserved
CAS latency
0
0
0
1
×
16 SDRAM), proceed by plugging in
0
0
0
1
0
0
0
1
A4
A3
A2
A1
M4
M3
M2
M1
BT
Burst length
0
0
0
1
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
MOTOROLA
A0
M0
1
0
0
0
0
0
0

Advertisement

Table of Contents
loading

Table of Contents