EmbeddedRelated.com
Forums

Re Flash Memory Storage

Started by jakkula October 7, 2009
Hi,
I am working on MSP430F169 & I am able to store values into flash memory but I am not able to calculate the time required for the storage in the flash memory .

any suggestions please.

Thanks,
Praveena.

Beginning Microcontrollers with the MSP430

Have you looked at the timing diagrams in the chapter on the Flash
Memory Controller in the MSP430x1xx Family User Guide? (slau049)

- Bart

On Wed, Oct 7, 2009 at 4:31 PM, jakkula wrote:
>
> Hi,
> I am working on MSP430F169 & I am able to store values into flash memory but I am not able to calculate the time required for the storage in the flash memory .
>
> any suggestions please.
>
> Thanks,
> Praveena.
thanks for ur reply bart
yes I did look at it , I am using CCE & I need to write a code to demostrate the storage time fo the flash memory.
thanks

________________________________
From: Bart Oegema
To: m...
Sent: Wed, October 7, 2009 4:37:58 PM
Subject: Re: [msp430] Re Flash Memory Storage


Have you looked at the timing diagrams in the chapter on the Flash
Memory Controller in the MSP430x1xx Family User Guide? (slau049)

- Bart

On Wed, Oct 7, 2009 at 4:31 PM, jakkula wrote:
>
> Hi,
> I am working on MSP430F169 & I am able to store values into flash memory but I am not able to calculate the time required for the storage in the flash memory .
>
> any suggestions please.
>
> Thanks,
> Praveena.
>
>





How are you programming the flash memory - from within flash, or from RAM?

Why do you need to demonstrate the storage time rather than calculate it?

- Bart

On Wed, Oct 7, 2009 at 4:51 PM, jakkula praveena
wrote:
>
> thanks for ur reply bart
> yes I did look at it , I am using CCE & I need to write a code to demostrate the storage time fo the flash memory.
> thanks
>
> ________________________________
> From: Bart Oegema
> To: m...
> Sent: Wed, October 7, 2009 4:37:58 PM
> Subject: Re: [msp430] Re Flash Memory Storage
> Have you looked at the timing diagrams in the chapter on the Flash
> Memory Controller in the MSP430x1xx Family User Guide? (slau049)
>
> - Bart
>
> On Wed, Oct 7, 2009 at 4:31 PM, jakkula wrote:
> >
> >
> >
> > Hi,
> > I am working on MSP430F169 & I am able to store values into flash memory but I am not able to calculate the time required for the storage in the flash memory .
> >
> > any suggestions please.
> >
> > Thanks,
> > Praveena.
> >
> >
Hi Praveena,

> I am working on MSP430F169 & I am able to store values into flash
> memory but I am not able to calculate the time required for the
> storage in the flash memory .
>
> any suggestions please.

You mean Empirically?

1) Use a timer. Reset it before writing and check the count and overflow flag after the write. adjust timer frequency input untill there is no overflow flag.

or 2) Change the status of a pin before and after the write. Capture and Measure with a digital osciloscope.

or 3) Make a loop and write the same data to the same address(es) over and over again (so you don't degrade your flash memory). toggle the status of an output pin on each loop. Measure frequency with an analog or digital osciloscope, or with a frequency counter.

You can compare your results with the data given in page 5-8 of SLU049.pdf and page 48 "electrical characteristics over recommended operating free-air temperature" -> "Flash Memory" of the MSP430F169.pdf datasheet.

Regards,
Michael K.

--- In m..., "jakkula" wrote:
>
> Hi,
> I am working on MSP430F169 & I am able to store values into flash memory but I am not able to calculate the time required for the storage in the flash memory .
>
> any suggestions please.
>
> Thanks,
> Praveena.
>

The Flash controller uses something similar to a timer to erase/write. The amount of time it takes depends on the setting. You can make it very long (which may shoten the life of the Flash) or very short (which may not erase/write the Flash correctl). So what are you demostrating?

You can also demostrate how long does it take for a timer to timeout by using another timer to time the timer in question.
--- In m..., "Michael" wrote:
>
> Hi Praveena,
>
> > I am working on MSP430F169 & I am able to store values into flash
> > memory but I am not able to calculate the time required for the
> > storage in the flash memory .
> >
> > any suggestions please.
>
> You mean Empirically?
>
> 1) Use a timer. Reset it before writing and check the count and overflow flag after the write. adjust timer frequency input untill there is no overflow flag.
>
> or 2) Change the status of a pin before and after the write. Capture and Measure with a digital osciloscope.
>
> or 3) Make a loop and write the same data to the same address(es) over and over again (so you don't degrade your flash memory). toggle the status of an output pin on each loop. Measure frequency with an analog or digital osciloscope, or with a frequency counter.
>
> You can compare your results with the data given in page 5-8 of SLU049.pdf and page 48 "electrical characteristics over recommended operating free-air temperature" -> "Flash Memory" of the MSP430F169.pdf datasheet.
>
> Regards,
> Michael K.
>
> --- In m..., "jakkula" wrote:
> >
> > Hi,
> > I am working on MSP430F169 & I am able to store values into flash memory but I am not able to calculate the time required for the storage in the flash memory .
> >
> > any suggestions please.
> >
> > Thanks,
> > Praveena.
>