EmbeddedRelated.com
Forums

LPC2378 interfacing

Started by varma varma December 29, 2006
Hi jason,

Many thanks for the reply.Initially i thought no body reply.

We want to interface 512Mbytes external RAM to the LPC2378.This RAM is meant for data storage.But LPC 2378 has only 16 address lines.I have seen SAMSUNG 512MB NAND flash memory requires 16 address lines.Do you think NAND flash memory is good idea to use as external RAM.We need to store 512MB data in 3 minutes time.

We are developing hardware and software for LPC2378.Basically our product takes data from PC USB port and send to vehicle ECU using CAN or KEYWORD protocols.CAN speed is 1MBPS and KEYWORD speed is 125kbps.We want to down load 3Mb file from PC to vehicle ECU.How much time it will take to down load the file,we are not able to calculate.Our people already has software code.Is there any way to calculate?

Sorry to ask long questions.I donot have any other source to help me.

With best wishes,
Ravi varma

----- Original Message ----
From: Jason Morgan
To: l...
Sent: Thursday, December 28, 2006 7:35:02 PM
Subject: [lpc2000] Re: SPI devices interfere with each other.

Ravi,

The LPC2378 already has 512kByte of internal flash, you can address
a furthur 128kByte using the external memory interface (FLASH or
SRAM). I suppose you could implemement a page mode using a CPLD if
you wanted to extend this further. The MMC may be a better way of
supplying expandable non-code memory storage. Though even with that
you could write your application such that it uses overlays, with
code only being run (from RAM) when extracted from MMC as required.

BTW It would have been more polite to start a new thread, rather
than hijacking an existing one.

Jason.

In lpc2000@yahoogroups .com, varma varma wrote:
>
> Hi friends,
>
> I am new to hardware design.We want to use LPC2378 micro
controller.But our requirement says we need to have on board memory
atleast 512Mb for data storage.LPC2378 data sheet says it can
support only 128KB external memory.It has 16bit address bus and 8
bit data bus.
>
> My question is
>
> What kind of memory i can use for data storage purpose?It should
be nonvolatile memory
>
> How can i achieve 512Mb on board memory usingLPC2378?
>
> Other alternative way is use MMC interface.If i use this interface
what will be the speed of data storage/retreival i can achieve?
>
> Thanks in advance and it will be great help to me.
>
> With best wishes,
> Ravi varma
>
> ----- Original Message ----
> From: Tom Walsh
> To: lpc2000@yahoogroups .com
> Sent: Thursday, December 28, 2006 10:36:51 AM
> Subject: Re: [lpc2000] SPI devices interfere with each other.
>
> myfriendmarkis wrote:
> >
> > Hi all,
> >
> > Quick question.
> >
> > I've got an SD card and NAND flash on the same SPI bus. Common
data
> > but different chip select lines.
> >
> > I can read and write to either device fine apart from one
specific
> > sequence, where the SD card corrupts the NAND data despite the SD
> > chip select line being high all the time???
> >
> > It only occurs with one sequence (4 bytes long) in an 8Mbyte
NAND!!!
> > If I remove the SD card the problem goes away.
> >
> > Anyone have experience of this? I assumed that holding the CS
high on
> > any SPI device would prevent this type of conflict.
> >
> With all due respect, never assume, be sure to read the data
sheet.
> Sometimes when you cannot find "the problem" it is best to "prove
what
> works". By that, if I were in your situation, I would suspect that
some
> other part of my software was toggling the Chip Select active
(seeing
> that both the NAND + SD are both in Slave mode). To verify that, I
> would take my $20 logic probe and hook it up to the Chip Select of
the NAND.
>
> A logic probe is a simple device that will "chirp" when a pin it
is
> monitoring changes state.
>
> Regards,
>
> TomW
>
> --
> Tom Walsh - WN3L - Embedded Systems Consultant
> http://openhardware .net http://cyberiansoft ware.com
http://openzipit. org
> "Windows? No thanks, I have work to do..."
> ------------ --------- --------- --------- --------- ----
> ____________ _________ _________ _________ _________ __
>

An Engineer's Guide to the LPC2100 Series

--- In l..., varma varma wrote:
>
> Hi jason,
>
> Many thanks for the reply.Initially i thought no body reply.
>
> We want to interface 512Mbytes external RAM to the LPC2378.This RAM
is meant for data storage.But LPC 2378 has only 16 address lines.I
have seen SAMSUNG 512MB NAND flash memory requires 16 address
lines.Do you think NAND flash memory is good idea to use as external
RAM.We need to store 512MB data in 3 minutes time.
>
> We are developing hardware and software for LPC2378.Basically our
product takes data from PC USB port and send to vehicle ECU using CAN
or KEYWORD protocols.CAN speed is 1MBPS and KEYWORD speed is
125kbps.We want to down load 3Mb file from PC to vehicle ECU.How much
time it will take to down load the file,we are not able to
calculate.Our people already has software code.Is there any way to
calculate?
>
> Sorry to ask long questions.I donot have any other source to help me.
>
> With best wishes,
> Ravi varma

Ravi,

first of all, the LPC2468 might be a better fit for your needs and as
I understand the manual, your software would run without changes.
I have an answer for your second question. How long will it take to
download 3 Mbytes through a CAN running at one Mbit/sec. Approximately
50% net data rate can be achieved if nothing else is transmitting on
the CAN bus and you can send your messages back to back, which can be
a challenge for the PC. So ideal circumstances assumed, it would take
48 seconds to download 3 MBytes through max. speed CAN.
Will you download into a RAM? If your need to download into a Flash,
the Flash programming time might be longer than the calculated
download time.

Bob
At 08:47 PM 12/28/2006 -0800, varma varma wrote:
>We want to interface 512Mbytes external RAM to the LPC2378.This RAM is
>meant for data storage.But LPC 2378 has only 16 address lines.I have
>seen SAMSUNG 512MB NAND flash memory requires 16 address lines.Do you
>think NAND flash memory is good idea to use as external RAM.We need to
>store 512MB data in 3 minutes time.
>
>We are developing hardware and software for LPC2378.Basically our product
>takes data from PC USB port and send to vehicle ECU using CAN or KEYWORD
>protocols.CAN speed is 1MBPS and KEYWORD speed is 125kbps.We want to down
>load 3Mb file from PC to vehicle ECU.How much time it will take to down
>load the file,we are not able to calculate.Our people already has software
>code.Is there any way to calculate?

Keep in mind that CAN at least is a control oriented network and is rather
inefficient for data transfer. You can figure on an overhead of up to
50%. If you figure 512kbps effective or 64kB/s. Hmm I not getting
anywhere near your 3 minutes. Actually for 3 minutes I'm seeing a
requirement for over 22Mbps effective bandwidth.

You might want to consider an MMC. Just write the file to the MMC and then
plug the MMC into your board. The memory bandwidth on board is not likely
to be a limitation when communicating via CAN and the USB interface is
already done.

Robert

Another sign of the end of civilization, our technical magazines are
getting chatty
From an EETimes product descriptions 2006/08/09
".... systems that can sample gobs of inputs simultaneously"
Now just what is the technical definition for gobs again?
http://www.aeolusdevelopment.com/
Hi Robert,

Thanks for the reply.What about keyword protocol.If i use 125kbps baud rate for keyword,do you think we can achieve in 3 minutes.

Do you recommend to for higher end processor than LPC2378.

IS MMC faster or onboard flash memory (16bit address/data lines) is faster.

Please answer above questions and thanks again.

With best wishes,
Ravi varma

----- Original Message ----
From: Robert Adsett
To: l...; l...
Sent: Friday, December 29, 2006 10:51:31 AM
Subject: Re: [lpc2000] LPC2378 interfacing

At 08:47 PM 12/28/2006 -0800, varma varma wrote:
>We want to interface 512Mbytes external RAM to the LPC2378.This RAM is
>meant for data storage.But LPC 2378 has only 16 address lines.I have
>seen SAMSUNG 512MB NAND flash memory requires 16 address lines.Do you
>think NAND flash memory is good idea to use as external RAM.We need to
>store 512MB data in 3 minutes time.
>
>We are developing hardware and software for LPC2378.Basically our product
>takes data from PC USB port and send to vehicle ECU using CAN or KEYWORD
>protocols.CAN speed is 1MBPS and KEYWORD speed is 125kbps.We want to down
>load 3Mb file from PC to vehicle ECU.How much time it will take to down
>load the file,we are not able to calculate.Our people already has software
>code.Is there any way to calculate?

Keep in mind that CAN at least is a control oriented network and is rather
inefficient for data transfer. You can figure on an overhead of up to
50%. If you figure 512kbps effective or 64kB/s. Hmm I not getting
anywhere near your 3 minutes. Actually for 3 minutes I'm seeing a
requirement for over 22Mbps effective bandwidth.

You might want to consider an MMC. Just write the file to the MMC and then
plug the MMC into your board. The memory bandwidth on board is not likely
to be a limitation when communicating via CAN and the USB interface is
already done.

Robert

Another sign of the end of civilization, our technical magazines are
getting chatty
>From an EETimes product descriptions 2006/08/09
".... systems that can sample gobs of inputs simultaneously"
Now just what is the technical definition for gobs again?
http://www.aeolusde velopment. com/

__________________________________________________
Hi Bob,

Thanks alot for your answer.

With best wishes,
Ravi varma
----- Original Message ----
From: lpc2100_fan
To: l...
Sent: Friday, December 29, 2006 10:36:17 AM
Subject: [lpc2000] Re: LPC2378 interfacing

--- In lpc2000@yahoogroups .com, varma varma wrote:
>
> Hi jason,
>
> Many thanks for the reply.Initially i thought no body reply.
>
> We want to interface 512Mbytes external RAM to the LPC2378.This RAM
is meant for data storage.But LPC 2378 has only 16 address lines.I
have seen SAMSUNG 512MB NAND flash memory requires 16 address
lines.Do you think NAND flash memory is good idea to use as external
RAM.We need to store 512MB data in 3 minutes time.
>
> We are developing hardware and software for LPC2378.Basically our
product takes data from PC USB port and send to vehicle ECU using CAN
or KEYWORD protocols.CAN speed is 1MBPS and KEYWORD speed is
125kbps.We want to down load 3Mb file from PC to vehicle ECU.How much
time it will take to down load the file,we are not able to
calculate.Our people already has software code.Is there any way to
calculate?
>
> Sorry to ask long questions.I donot have any other source to help me.
>
> With best wishes,
> Ravi varma

Ravi,

first of all, the LPC2468 might be a better fit for your needs and as
I understand the manual, your software would run without changes.
I have an answer for your second question. How long will it take to
download 3 Mbytes through a CAN running at one Mbit/sec. Approximately
50% net data rate can be achieved if nothing else is transmitting on
the CAN bus and you can send your messages back to back, which can be
a challenge for the PC. So ideal circumstances assumed, it would take
48 seconds to download 3 MBytes through max. speed CAN.
Will you download into a RAM? If your need to download into a Flash,
the Flash programming time might be longer than the calculated
download time.

Bob

__________________________________________________
At 09:50 PM 12/28/06 -0800, varma varma wrote:
>Thanks for the reply.What about keyword protocol.If i use 125kbps baud
>rate for keyword,do you think we can achieve in 3 minutes.

Do the math. It's quite simple and the exercise would be a good
one. It'll stand you in good stead for estimates and sanity checks in the
future. Feel free to double check your calculations with us if you're
feeling uncertain.

>Do you recommend to for higher end processor than LPC2378.

Truthfully, I'm not convinced you need one.

>IS MMC faster or onboard flash memory (16bit address/data lines) is faster.

First figure out what your bandwidth requirements actually are before
worrying about which is faster. I suspect from the sounds of things so far
the communications protocols are the limiting factor.

Robert

http://www.aeolusdevelopment.com/

From the Divided by a Common Language File (Edited to protect the guilty)
ME - "I'd like to get Price and delivery for connector Part # XXXXX"
Dist./Rep - "$X.XX Lead time 37 days"
ME - "Anything we can do about lead time? 37 days seems a bit high."
Dist./Rep - "that is the lead time given because our stock is live.... we
currently have stock."