EEprom endurance


Closed Thread
Results 1 to 3 of 3
  1. #1
    Join Date
    Jun 2005
    Posts
    53

    Question EEprom endurance

    I need to totalize approximately 1500 hours equipment operating time before
    turning on a service indicator. The equipment does not have battery backup so I initially thought about timing and saving minutes/hours in EEprom but was concerned about wearing out the EEprom (write endurance). The only strategy I could think of was to use 16 to 32 bytes of EEprom to save my minute counter(s). Any suggestions how keep track of which EEprom location to increment? Or is there a another timekeeping method?

  2. #2
    Join Date
    Jul 2003
    Posts
    2,358


    Did you find this post helpful? Yes | No

    Default

    Well, couple of suggestions...

    The first is to oversize the PICs PSU and have about a two-second reserve... when it detects Power-OFF, it dumps the relative information to EEPROM in the reserve time. Saves saving to EEPROM every minute.

    Another is just to keep track of hours. I made a decision on a piece of equipment that is ON for it's entire life only to save hours. If there's a power-outage, yes I'd lose some minutes, but since the timekeeping was for an elapsed Service Timer, plus or minus a couple of days (or even weeks) at the end of a year or two is neither here or there in the great scheme of things.

    Another is to use any of Microchips micropower PICs (even a PIC10F series would do this) with an on-board battery just for storing the timekeeping. Don't want to use a Battery? ...then any handy piece of fruit or vegetable with dissimilar metals would do.

    A fourth, (did I say a couple of suggestions?)... is to use an external RTC like a DS1307... it has a few bytes of internal RAM (accessible via I2C bus) which is backed-up from the Battery. Use that to store your elapsed time as it doesn't suffer from the WRITE endurance problem.

    A fifth... use external memory that doesn't have the problems of serial EEPROM - eg Ramtron's FRAM...

    A sixth... etc etc...

    Melanie

  3. #3
    Join Date
    Jun 2005
    Posts
    53


    Did you find this post helpful? Yes | No

    Smile

    Melanie,

    Thanks for your suggestions.

    If I save every 5 minutes would take over 9.5 years to reach a million writes, 10 minutes would take over 19 years and is probably a good choice.

    Mark

Similar Threads

  1. Can't read sequential addresses in external EEPROM
    By tjkelly in forum mel PIC BASIC Pro
    Replies: 2
    Last Post: - 18th February 2010, 14:46
  2. Problem with I2C EEPROM addressing
    By Atom058 in forum General
    Replies: 14
    Last Post: - 3rd November 2009, 03:17
  3. How to write/read strings EEPROM/LCD
    By g-hoot in forum mel PIC BASIC Pro
    Replies: 22
    Last Post: - 11th February 2007, 06:26
  4. EEPROM "refresh"
    By Luciano in forum Off Topic
    Replies: 1
    Last Post: - 8th May 2005, 13:12
  5. word variable to 25lc640
    By TONIGALEA in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 6th July 2004, 19:59

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts