Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: [lpc2000] write to memory lpc2148

2006-01-24 by Mauricio Scaff

Yes, that's true, you can use the internal flash.

IMHO, the LPC is a fantastic processor, but it's flash system is a 
little bit less than it could be.
400mS for an erase cycle ? 4Kb minimum flash sector ? Minimum write of 
16 bytes ?
 I only think about using the internal flash if there is no other option 
available.
An e2prom is:
        cheap (about U$0,50)
         low power (less than 1uA in in idle)
        small (sot23 if you wish)
         fast (2mS to 5 ms per page (16 to 128 bytes depending on device))
        reliable (1milion  writes cycle or 10milion in selected devices)
        you don't have to mind about disable interrupts or copying code 
to ram
         and LPC devices come with 2 I2C interfaces.

But, Yes, you can always use the internal flash.

I think Philips could put some flash in small sectors (why not 4 or 8 
sectors of 128 or 256 bytes) (MSP430 have something like this)
If we can write to it and still execute code from the main flash, even 
better...

Hugs, Mauricio



Bruce Paterson wrote:
>
>
> > If you have just a few bytes to save, you can keep Vbat and
> > use the alarm registers of the RTC and probably the RTC
> > registers itself  if you don't mind loosing it (you probably
> > will have to pull X1 down and select external  oscillator, or
> > select the clock derived from the main oscillator and keep
> > resetting the seconds register to avoid changes in the others).
> > But if you need more than a few bytes, then go to an e2prom
> > or even a serial dataflash. They will give you a lot of non
> > volatile memory using just a few i/o pins (2 or 4).
>
> ....Or use the flash on the lpc. There is Philips software on this yahoo
> site that emulates an EEprom device using one (or more) flash segments.
> It's reasonably smart in terms of not needing to erase the whole segment
> till it's been filled.
> I have used a modified version of this for both a logging and a
> parameter storage application and it works fine. Beware you'll need to
> disable interrupts during IAP calls, and if your application can't allow
> this you'll have to copy some code into RAM (see other postings).
>
> ------------------------------------------------------------------------
> YAHOO! GROUPS LINKS
>
>     *  Visit your group "lpc2000
>       <http://groups.yahoo.com/group/lpc2000>" on the web.
>        
>     *  To unsubscribe from this group, send an email to:
>        lpc2000-unsubscribe@yahoogroups.com
>       <mailto:lpc2000-unsubscribe@yahoogroups.com?subject=Unsubscribe>
>        
>     *  Your use of Yahoo! Groups is subject to the Yahoo! Terms of
>       Service <http://docs.yahoo.com/info/terms/>.
>
>
> ------------------------------------------------------------------------
>



[Non-text portions of this message have been removed]

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.