Reply by lpc2100_fan December 28, 20042004-12-28

Hello Varuzhan,

the document you are looking for is the Users Manual of the device you
are working with. As an example the UM for the LPC2114/2124/2212/2214
can be found here: (big file)
http://www.semiconductors.philips.com/acrobat_download/usermanuals/UM_LPC2114_2124_2212_2214_2.pdf
IN chapter 19 you can find all the commands used by either ISP or IAP
programming. ISP (In System Programming) is used at startup of the
device, IAP (In Application Programming) is called by your application
code. Pages 224-239 provide a detailed list of options for programming
the flash.

I would highly recommend to use existing utilities that you can
download from Philips for programming your initial program into the
flash.

Cheers, Bob --- In , "varuzhandanielyan" <dan@x> wrote:
>
> There are cases, when some data, like node address or hardware
> dependent constants, should be reprogrammed only several times during
> the whole system life. And if there is a free flash, why do not use
> it, instead of an external EEPROM? My question is just about such a
> case.
> Except the flash programming examples, which I still need, maybe one
> can reference me to a document, where is a detailed description of
> commands, needed for it.
>
> Varuzhan
>
> --- In , "Gus" <gus_is_working@y...> wrote:
> >
> > that doesn't mean you can use it as EEPROM!!! on an EEPROM you can
> > rewrite one byte, but on flash, you have to erase a full sector in
> > order to rewritre a byte. so, if you are changing full sectors of
> > data then yes you can use it but if you are changing multiple bytes
> > an deverytime you change a byte you arase a sector you can ware it
> > out quickly.
> >
> > I guess the answer would depends on how many times you need to
> erase
> > a sector in your product life cycle
> >
> > Gus
> > --- In , "varuzhandanielyan" <dan@x> wrote:
> > >
> > > In the new data sheet for LPC2129 one can see, that minimal
> > > write cycles is 100,000 as many as of the data EEPROM of many
> > > microcontrollers.
> > >
> > > Varuzhan
> > >
> > >
> > > --- In , "acetoel" <acetoel@y...> wrote:
> > > >
> > > > Hello...
> > > >
> > > > I also though about that, never implement ir becuase the Flash
> > has a
> > > > limited cycles of life. So It's better to use an SPI, unless
> you
> > > only
> > > > need to write it once (when programming), and read it when
> > > > running...but it's no sense....
> > > >
> > > > Bye
> > > > Ezequiel
> > > >
> > > > --- In , "varuzhandanielyan" <dan@x>
> > wrote:
> > > > >
> > > > > Dear All,
> > > > >
> > > > > Is there somewhere availabe an example for LPC2100 how to
> > > > > use the flash for data storage?
> > > > >
> > > > > Thank you,
> > > > > Varuzhan



An Engineer's Guide to the LPC2100 Series

Reply by embeddedjanitor December 28, 20042004-12-28

Look at the IAP application note on the Philips web site.

--- In , "varuzhandanielyan" <dan@x> wrote:
>
> There are cases, when some data, like node address or hardware
> dependent constants, should be reprogrammed only several times
during
> the whole system life. And if there is a free flash, why do not use
> it, instead of an external EEPROM? My question is just about such a
> case.
> Except the flash programming examples, which I still need, maybe one
> can reference me to a document, where is a detailed description of
> commands, needed for it.
>
> Varuzhan
>
> --- In , "Gus" <gus_is_working@y...> wrote:
> >
> > that doesn't mean you can use it as EEPROM!!! on an EEPROM you can
> > rewrite one byte, but on flash, you have to erase a full sector in
> > order to rewritre a byte. so, if you are changing full sectors of
> > data then yes you can use it but if you are changing multiple
bytes
> > an deverytime you change a byte you arase a sector you can ware it
> > out quickly.
> >
> > I guess the answer would depends on how many times you need to
> erase
> > a sector in your product life cycle
> >
> > Gus
> > --- In , "varuzhandanielyan" <dan@x> wrote:
> > >
> > > In the new data sheet for LPC2129 one can see, that minimal
> > > write cycles is 100,000 as many as of the data EEPROM of many
> > > microcontrollers.
> > >
> > > Varuzhan
> > >
> > >
> > > --- In , "acetoel" <acetoel@y...> wrote:
> > > >
> > > > Hello...
> > > >
> > > > I also though about that, never implement ir becuase the Flash
> > has a
> > > > limited cycles of life. So It's better to use an SPI, unless
> you
> > > only
> > > > need to write it once (when programming), and read it when
> > > > running...but it's no sense....
> > > >
> > > > Bye
> > > > Ezequiel
> > > >
> > > > --- In , "varuzhandanielyan" <dan@x>
> > wrote:
> > > > >
> > > > > Dear All,
> > > > >
> > > > > Is there somewhere availabe an example for LPC2100 how to
> > > > > use the flash for data storage?
> > > > >
> > > > > Thank you,
> > > > > Varuzhan



Reply by varuzhandanielyan December 28, 20042004-12-28

There are cases, when some data, like node address or hardware
dependent constants, should be reprogrammed only several times during
the whole system life. And if there is a free flash, why do not use
it, instead of an external EEPROM? My question is just about such a
case.
Except the flash programming examples, which I still need, maybe one
can reference me to a document, where is a detailed description of
commands, needed for it.

Varuzhan

--- In , "Gus" <gus_is_working@y...> wrote:
>
> that doesn't mean you can use it as EEPROM!!! on an EEPROM you can
> rewrite one byte, but on flash, you have to erase a full sector in
> order to rewritre a byte. so, if you are changing full sectors of
> data then yes you can use it but if you are changing multiple bytes
> an deverytime you change a byte you arase a sector you can ware it
> out quickly.
>
> I guess the answer would depends on how many times you need to
erase
> a sector in your product life cycle
>
> Gus
> --- In , "varuzhandanielyan" <dan@x> wrote:
> >
> > In the new data sheet for LPC2129 one can see, that minimal
> > write cycles is 100,000 as many as of the data EEPROM of many
> > microcontrollers.
> >
> > Varuzhan
> >
> >
> > --- In , "acetoel" <acetoel@y...> wrote:
> > >
> > > Hello...
> > >
> > > I also though about that, never implement ir becuase the Flash
> has a
> > > limited cycles of life. So It's better to use an SPI, unless
you
> > only
> > > need to write it once (when programming), and read it when
> > > running...but it's no sense....
> > >
> > > Bye
> > > Ezequiel
> > >
> > > --- In , "varuzhandanielyan" <dan@x>
> wrote:
> > > >
> > > > Dear All,
> > > >
> > > > Is there somewhere availabe an example for LPC2100 how to
> > > > use the flash for data storage?
> > > >
> > > > Thank you,
> > > > Varuzhan




Reply by Gus December 27, 20042004-12-27

that doesn't mean you can use it as EEPROM!!! on an EEPROM you can
rewrite one byte, but on flash, you have to erase a full sector in
order to rewritre a byte. so, if you are changing full sectors of
data then yes you can use it but if you are changing multiple bytes
an deverytime you change a byte you arase a sector you can ware it
out quickly.

I guess the answer would depends on how many times you need to erase
a sector in your product life cycle

Gus
--- In , "varuzhandanielyan" <dan@x> wrote:
>
> In the new data sheet for LPC2129 one can see, that minimal
> write cycles is 100,000 as many as of the data EEPROM of many
> microcontrollers.
>
> Varuzhan > --- In , "acetoel" <acetoel@y...> wrote:
> >
> > Hello...
> >
> > I also though about that, never implement ir becuase the Flash
has a
> > limited cycles of life. So It's better to use an SPI, unless you
> only
> > need to write it once (when programming), and read it when
> > running...but it's no sense....
> >
> > Bye
> > Ezequiel
> >
> > --- In , "varuzhandanielyan" <dan@x>
wrote:
> > >
> > > Dear All,
> > >
> > > Is there somewhere availabe an example for LPC2100 how to
> > > use the flash for data storage?
> > >
> > > Thank you,
> > > Varuzhan




Reply by varuzhandanielyan December 27, 20042004-12-27

In the new data sheet for LPC2129 one can see, that minimal
write cycles is 100,000 as many as of the data EEPROM of many
microcontrollers.

Varuzhan --- In , "acetoel" <acetoel@y...> wrote:
>
> Hello...
>
> I also though about that, never implement ir becuase the Flash has a
> limited cycles of life. So It's better to use an SPI, unless you
only
> need to write it once (when programming), and read it when
> running...but it's no sense....
>
> Bye
> Ezequiel
>
> --- In , "varuzhandanielyan" <dan@x> wrote:
> >
> > Dear All,
> >
> > Is there somewhere availabe an example for LPC2100 how to
> > use the flash for data storage?
> >
> > Thank you,
> > Varuzhan




Reply by acetoel December 27, 20042004-12-27

Hello...

I also though about that, never implement ir becuase the Flash has a
limited cycles of life. So It's better to use an SPI, unless you only
need to write it once (when programming), and read it when
running...but it's no sense....

Bye
Ezequiel

--- In , "varuzhandanielyan" <dan@x> wrote:
>
> Dear All,
>
> Is there somewhere availabe an example for LPC2100 how to
> use the flash for data storage?
>
> Thank you,
> Varuzhan




Reply by varuzhandanielyan December 27, 20042004-12-27

Dear All,

Is there somewhere availabe an example for LPC2100 how to
use the flash for data storage?

Thank you,
Varuzhan