EmbDev.net

Forum: µC & Digital Electronics SDRAM 16Mx4x4 and MCF5307


von Frank B. (frank13)


Rate this post
useful
not useful
Hello everyone,

I just try to connect the MT48LC64M4A2 SDRAM (16 Meg x 4 x 4 banks) to 
my 5307.
I want to use 8 Chips (each with 4 bit data bus). How do I have to 
connect and initialise it? The coldfire Init-Tool seems to be confused 
with this configuration.
It shows the following config:

ColdFire Pin:    A15 A14 A13 A12 A11 A10 A9 A17 A19 A21 A23      A24 A25 
A26 A27
SDRAM Pin:       A0  A1  A2  A3  A4  A5  A6 A7  A8  A9  A10(CMD) BA0 BA1 
BA2 BA3

But I only have 4 Banks (BA0 and BA1)! I use 11 Bit column adress A0..9 
+ A11. Portsize is 32 Bit.
Where is my fault?

Greetings

Frank

von Ale (Guest)


Rate this post
useful
not useful
I'd use the data in table 11-29 of the manual. The last two bits of 
address are connected to BA0 and BA1. If you look at the example (only 8 
columns) and the corresponding table 11-26 you see how A21 and A22 ended 
up in BA0 and BA1.
The Toast board (at http://freeio.org/library/toast.html) also uses this 
example in the same way.
Ale

von Frank B. (frank13)


Rate this post
useful
not useful
Hi!

Thanks! I will try it this way.

Greetings

Frank

von Frank B. (frank13)


Rate this post
useful
not useful
Hi everyone,

just another Problem:
I tried it but the A25 to A27 Pins are not driven from the CPU. My 
Initcode is:

MCF5307_DRAMC_DCR = MCF5307_DRAMC_DCR_SO | MCF5307_DRAMC_DCR_RTIM_3 | 
MCF5307_DRAMC_DCR_RC(0x18);

MCF5307_DRAMC_DACR0 = (0x3800 << 18)              |
                      MCF5307_DRAMC_DACR_CASL_1   |
                      MCF5307_DRAMC_DACR_CBM(0x6) |
                      MCF5307_DRAMC_DACR_PS_32    |
                      MCF5307_DRAMC_DACR_PM_OFF;

MCF5307_DRAMC_DMR0 = MCF5307_DRAMC_DCMR_MASK_256M | 
MCF5307_DRAMC_DCMR_V;

MCF5307_DRAMC_DACR0 |= MCF5307_DRAMC_DACR_IP;
* (vuint32 *) 0xe0000000 = 0xcafebabe;
for (i = 0; i < 5; i++)
asm ("nop");


Does anyone have an idea?

Greetings

Frank

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.