Interface 2Mb sdram to lpc1788

2 replies [Last post]
rgiovoni
Offline
Joined: 2012-06-21

Hi all.
I have an application where is necessary to interface an
A43L0616B SDRAM to LPC1788 uController.

I have 2 questions about interfacing:

1)The memory chip has only a BA (bank select) pin because
the chip is a 2 bank memory.
This BA pin has to connect to P4[13]/A13 pin (on LPC1788 site)
or to P4[14]/A14 pin?

2)The memory work in RBC (row/bank/collun) mode.
Than it is necessary to take into account 1 or 2 bit,(for
bank select) into shift number used to program mode register
on the memory?.
Pratically:

the memory has 11 row and 8 collun on 2 bank and RBC configuration

to program mode register it's necessary write the following line:

Dummy = *((volatile unsigned long*)(SDRAM_BASE_ADDR | (0x22 << (10))));

or to write the following line:

Dummy = *((volatile unsigned long*)(SDRAM_BASE_ADDR | (0x22 << (11))));

Thank's in advance for your help

Robert

0
Your rating: None

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
PhilYoung
Offline
Joined: 2011-07-18

I don't know the device, but assume from the PN it is 16 bits wide.
A0 not used
A1..8 = collumn address
A9 = bank select
A10..A20 = Row address.

A9 ( bank select ) should be output on PIN A13 ( BS0 ),

so the correct left shift should be 10

regards

Phil.

Ariekanarie
Offline
Joined: 2012-09-03

Hey Robert,

At this moment I'm facing problems with the setup with a lpc1787 and the A43L0616B chip from Amic.
As you are the only person which were talking about this chip, I was wondering if you've had it to work.

With kind regards,
Arjan

feedback