What is the purpose of an EEPROM? To hold a small amount of
reprogrammable data, that can be organized anything from bit-wise to
big structures. Usually it gets reprogrammed frequently. So,
reprogramming cycles are very important. Most dedicated EEPROMs have
more than 1 Mio reprogramming cycles, the flash on the LPC2000
devices just 100k.
Assuming it is data that needs to be written every day when powering
down a machine at the end of the workday. That makes approx. 300
days a year and this should happen for 20 years, gives 6000 cycles,
emulating the EEPROM by using Flash should be just fine.
The purpose of the EE_Demo is to help our customers to write small
set of data into the Flash and saving the expense of an EEPROM. It
does not imply anything but the facts it is stating, a customer
might be able to use the Flash and get by without an EEPROM. You are
right, Flash and EEPROM are different, nevertheless, a Flash can
provide enough functionality to replace the function of an EEPROM.
So, for those many customers that do not want to spend the extra
money for an EEPROM, this application note can save some money, if
you need a "real" EEPROM, please feel free to attach it to the SPI
or I2C interface.
Robert
--- In lpc2000@yahoogroups.com, "jayasooriah" <jayasooriah@y...>
wrote:
>
> One has to consider what the purpose of EE_Demo is. I see it as
> providing an EEPROM interface for FLASH. It is implied therefore,
> that if you use this interface, you get EEPROM for free on the
LPC.
> This IMO is not right.
>
> The two technologies are different in that unlike FLASH, EEPROM is
> *designed* for erase-and-write one byte at a time. As a result,
the
> endurance of the system as a whole can be easily estimated directly
> from EEPROM endurance.
>
> In the case of FLASH emulation of EEPROM, the endurance of the
system
> quite different to FLASH endurance. Minimum erase size (sector
size)
> and minimum write size (128-bits) needs to be taken into account in
> the model to determine system endurance.
>
> The EE_Demo hides this important consideration, hence my objection.
>
> I have seen designs that work perfectly during prototype and
initial
> launch, but fail miserably in the field well ahead of
their 'design'
> lifetimes because these factors were not taken into account.
>
> The other thing to bear in mind in the case of LPC is that LPC
native
> flash endurance cycle is less than the ECC'ed endurance cycles
that is
> specified.
>
> Jaya
>
> --- In lpc2000@yahoogroups.com, "Bruce Paterson"
<bruce.paterson@b...>
> wrote:
>
> > > I would like to add -- be careful about using flash as
> > > replacement for EEPROM. It will work well for initial tests
> > > but it fails in the field because EEPROM and FLASH
> > > technologies have very difference endurance limits.
> > >
> > > In this sense, as someone else said, the EE_Demo IMHO is an
> > > example of perfect demo -- works only for the purpose it was
> > > designed for but is of little or no use in real life otherwise.
> >
> > I'll have to disagree here. Surely it depends very much on what
you are
> > using the Flash-EEprom *for*; that is, how often you write to
it ?
>