This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

need help LPC3250 SDRAM initialization

Hi,

i'm using LPC3250 to interface with micron MT48LC16M16A2(4 Meg x 16 x 4 banks) SDR SDRAM.i followed Blinky program as example and initialized for my 256Mb SDRAM.i have written data on 16-bit wide on the EMC_DYCS0_N memory location as below

#define  EMC_DYSC0                              (*(volatile unsigned short *)0x80000000)
#define  EMC_DYSC1                              (*(volatile unsigned short *)0x80000002)
#define  EMC_DYSC2                              (*(volatile unsigned short *)0x80000004)
#define  EMC_DYSC3                              (*(volatile unsigned short *)0x80000006)
#define  EMC_DYSC4                              (*(volatile unsigned short *)0x80000008)

writen data into memory

EMC_DYSC0       =       0x0000;
write_change();     // Gives delay of 2us and send Normal command
EMC_DYSC1       =       0x1111;
write_change();
EMC_DYSC2       =       0x2222;
write_change();
EMC_DYSC3       =       0x3333;
write_change();
EMC_DYSC4       =       0x4444;

after that i'm reading back from the same locations. But i'm getting as

location 0:0000
location 1:0000
location 2:1111
location 3:1111
location 4:2222

as above data is repeating on two memory locations. Gone through data sheet of LPC3250 and SDRAM. But struck here. Please help to get out of this.

Thank you

0