Motorola MCF5281 DACRs should be programmed as shown in Figure, Dacr Initialization Values

Models: MCF5282 MCF5281

1 816
Download 816 pages 28.97 Kb
Page 335
Image 335

SDRAM Example

1 Mbyte

Bank 0

512Kbyte

512Kbyte

1 Mbyte

SDRAM Component

Bank 1

512 Kbyte

1 Mbyte

512 Kbyte

Bank 2

512Kbyte

512Kbyte

Accessible

Memory

Bank 3

512 Kbyte

1 Mbyte

512 Kbyte

Figure 15-12. SDRAM Configuration

The DACRs should be programmed as shown in Figure 15-13.

31

18

17

16

Field

Setting (hex)

BA

1111_1111_1000_10xx

 

 

F

 

 

F

 

 

8

 

 

 

 

8

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

15

14

13

12

11

10

8

7

6

5

4

3

2

1

0

Field

RE

CASL

CBM

 

IMRS

PS

IP

 

 

 

 

 

 

 

 

 

 

 

Setting

 

 

 

 

0000_x011_x000_0000

 

 

 

 

 

 

 

 

 

 

 

 

 

 

(hex)

 

 

 

 

 

0300

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Figure 15-13. DACR Register Configuration

This configuration results in a value of DACR0 = 0xFF88_0300, as described in Table 15-28.DACR1 initialization is not needed because there is only one block. Subsequently, DACR1[RE,IMRS,IP] should be cleared; everything else is a don’t care.

Table 15-28. DACR Initialization Values

Bits

Name

Setting

Description

 

 

 

 

31–18

BA

1111_1111_

Base address. So DACR0[31–16] = 0xFF88, placing the starting

 

 

1000_10

address of the SDRAM accessible memory at 0xFF88_0000.

 

 

 

 

17–16

 

Reserved. Don’t care.

 

 

 

 

15

RE

0

Keeps auto-refresh disabled because registers are being set up at this

 

 

 

time.

 

 

 

 

14

 

Reserved. Don’t care.

 

 

 

 

 

 

13–12

CASL

00

Indicates a delay of data 1 cycle after

 

is asserted

SCAS

 

 

 

 

11

 

Reserved. Don’t care.

 

 

 

 

10–8

CBM

011

Command bit is pin 20 and bank selects are 21 and up.

 

 

 

 

7

 

Reserved. Don’t care.

 

 

 

 

6

IMRS

0

Indicates MRS command has not been initiated.

 

 

 

 

5–4

PS

00

32-bit port.

 

 

 

 

 

 

MOTOROLA

Chapter 15. Synchronous DRAM Controller Module

15-21

Page 335
Image 335
Motorola MCF5281, MCF5282 DACRs should be programmed as shown in Figure, Dacr Initialization Values, Casl CBM Imrs