EmbeddedRelated.com
Forums

Using Atmel AT45DB642D Data Flash with MSP430

Started by diosper2 June 21, 2007
Hello:

Does anyone has any experience with using the Atmel AT45DB642D Data
Flash with the MSP430?

Are there any drivers available on the net somewhere? We wouldn't like
to re-invent the wheel:-)

Our programmers have this idea:

----
I saw an interesting thing ... the clock supplied to the memory is not
continuous. It's the SPI clock which is active only when sending smth
from the MCU.

In order to get a response from the flash memory [i.e. to perform a
read] we need to supply the clock ... the solution I saw was to send
first dummy characters in order to clock the device.
----

I wonder if they are on to something or are they off?

Thanks.
Jerry

Beginning Microcontrollers with the MSP430

Hi

I use AT45DB161B/D in many projects with MSP430F149. Works pretty well.

Calin

diosper2 wrote:
>
> Hello:
>
> Does anyone has any experience with using the Atmel AT45DB642D Data
> Flash with the MSP430?
>
> Are there any drivers available on the net somewhere? We wouldn't like
> to re-invent the wheel:-)
>
> Our programmers have this idea:
>
> ----
> I saw an interesting thing ... the clock supplied to the memory is not
> continuous. It's the SPI clock which is active only when sending smth
> from the MCU.
>
> In order to get a response from the flash memory [i.e. to perform a
> read] we need to supply the clock ... the solution I saw was to send
> first dummy characters in order to clock the device.
> ----
>
> I wonder if they are on to something or are they off?
>
> Thanks.
> Jerry
>
>
This is a pretty common project. Here is a URL talking about this with
downloadable code.

http://www.cs.indiana.edu/Facilities/hardware/h335_tools/flash_memory.html

Enjoy!

Steve

diosper2 wrote:
> Hello:
>
> Does anyone has any experience with using the Atmel AT45DB642D Data
> Flash with the MSP430?
>
> Are there any drivers available on the net somewhere? We wouldn't like
> to re-invent the wheel:-)
>
> Our programmers have this idea:
>
> ----
> I saw an interesting thing ... the clock supplied to the memory is not
> continuous. It's the SPI clock which is active only when sending smth
> from the MCU.
>
> In order to get a response from the flash memory [i.e. to perform a
> read] we need to supply the clock ... the solution I saw was to send
> first dummy characters in order to clock the device.
> ----
>
> I wonder if they are on to something or are they off?
>
> Thanks.
> Jerry
>
>
> Yahoo! Groups Links
>
>
Thank you very much.

--- In m..., Steve Sabram wrote:
>
> This is a pretty common project. Here is a URL talking about this with
> downloadable code.
>http://www.cs.indiana.edu/Facilities/hardware/h335_tools/flash_memory.html
Hello,

I am a student in internship and I would like to know if it s
possible to choose a configuration like this :
-MSP430F169
-AT45DB161D

In fact, for my project, the MSP430 have to fill into the DataFlash
datas from a sensor.

This Sensor send datas at a speed of 115200 Bauds by RS485 during
apprixamtively 30 minutes. Datas are grouped by 38 bytes. At the same
time, the MSP430 must not store entirety of the data into the
dataflash, but only 38 bytes every 0,007s (because the dataflash
could be full too fastly...). Consequently, I think I will have to
use 2 or buffers in the MSP430 before sending datas into the
dataflash in order to let it program each page when one of its buffer
is full. Furthermore, the duration of the test (30 minutes),
consequently I think I will have to use 2 dataflashs connected to the
MSP430 with SPI Bus.

Couldn't tell me if it is possible to reach my system with the
components I have chosen ???

Thanks
On Fri, 2007-06-22 at 13:44 +0000, bdebossoreille wrote:
> Hello,
>
> I am a student in internship and I would like to know if it s
> possible to choose a configuration like this :
> -MSP430F169
> -AT45DB161D
>
> In fact, for my project, the MSP430 have to fill into the DataFlash
> datas from a sensor.
>
> This Sensor send datas at a speed of 115200 Bauds by RS485 during
> apprixamtively 30 minutes. Datas are grouped by 38 bytes. At the same
> time, the MSP430 must not store entirety of the data into the
> dataflash, but only 38 bytes every 0,007s (because the dataflash
> could be full too fastly...). Consequently, I think I will have to
> use 2 or buffers in the MSP430 before sending datas into the
> dataflash in order to let it program each page when one of its buffer
> is full. Furthermore, the duration of the test (30 minutes),
> consequently I think I will have to use 2 dataflashs connected to the
> MSP430 with SPI Bus.
>
> Couldn't tell me if it is possible to reach my system with the
> components I have chosen ???
>
> Thanks
Did you read the specifications on the AT45DB161D? It is usually a good
idea before asking a question here.

Why did you pick that chip if you do not know what it does?

If you would bother to read the specifications, you would see it has 2
SRAM buffers. You can be filling one while writing the other to flash.

The details are left as an exercise for the student.

Kip
--
Kipton Moravec KE5NGX
"Always do right; this will gratify some people and astonish the rest."
--Mark Twain
Hello,

I have read the specifications of the dataflash and I know that it has 2 buffers. Anyway, I was not sure that if the flash will have finished to write before the two buffers are full... Now I know it is possible...

Thanks
To: m...From: k...@kdream.comDate: Sun, 24 Jun 2007 16:51:22 -0500Subject: Re: [msp430] Re: Using Atmel AT45DB642D Data Flash with MSP430

On Fri, 2007-06-22 at 13:44 +0000, bdebossoreille wrote:> Hello, > > I am a student in internship and I would like to know if it s > possible to choose a configuration like this : > -MSP430F169 > -AT45DB161D > > In fact, for my project, the MSP430 have to fill into the DataFlash > datas from a sensor. > > This Sensor send datas at a speed of 115200 Bauds by RS485 during > apprixamtively 30 minutes. Datas are grouped by 38 bytes. At the same > time, the MSP430 must not store entirety of the data into the > dataflash, but only 38 bytes every 0,007s (because the dataflash > could be full too fastly...). Consequently, I think I will have to > use 2 or buffers in the MSP430 before sending datas into the > dataflash in order to let it program each page when one of its buffer > is full. Furthermore, the duration of the test (30 minutes), > consequently I think I will have to use 2 dataflashs connected to the > MSP430 with SPI Bus. > > Couldn't tell me if it is possible to reach my system with the > components I have chosen ??? > > Thanks Did you read the specifications on the AT45DB161D? It is usually a goodidea before asking a question here.Why did you pick that chip if you do not know what it does?If you would bother to read the specifications, you would see it has 2SRAM buffers. You can be filling one while writing the other to flash.The details are left as an exercise for the student.Kip-- Kipton Moravec KE5NGX"Always do right; this will gratify some people and astonish the rest."--Mark Twain
_________________________________________________________________
Besoin d'un e-mail ? Crz gratuitement un compte Windows Live Hotmail et gagnez du temps avec l'interface la Outlook !
http://www.windowslive.fr/hotmail/default.asp