EEPROM writes


Closed Thread
Results 1 to 9 of 9

Thread: EEPROM writes

  1. #1
    Join Date
    Aug 2009
    Posts
    16

    Default EEPROM writes

    I have a PIC16F84A that I'm writing a number to memory to keep if case of loss of power. I think I have read that you can only write to a location so many times. I'm sure this is a high number, but my code writes to the pic every 100ms or so. Is this a problem or should I slow down my writes?

    Thanks,

    Terry

  2. #2
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    The 16F84A has a typical endurance of 10,000,000 writes.
    It seems like a big number, but if you write every 100ms, that EEPROM location will stop functioning in 11.5 days.

    Of course, that's the "typical" endurance. The minimum endurance is 1,000,000.
    So it could stop working in as little as 1.1 days.

    It would be a good idea to slow it down considerably.
    DT

  3. #3
    Join Date
    Jul 2003
    Location
    USA - Arizona
    Posts
    156


    Did you find this post helpful? Yes | No

    Default

    Look at the following threads:
    Ideally, for content saving before a power failure, you would monitor the supply voltage and only save contents to EEPROM when a power failure is detected. Of course, this means you have to keep the PIC alive during the content saves (the links provide this info).
    Last edited by languer; - 22nd June 2010 at 20:57.

  4. #4
    Join Date
    Mar 2009
    Location
    Colorado
    Posts
    378


    Did you find this post helpful? Yes | No

    Default Similar question but with regard to Program Flash memory life

    Quote Originally Posted by Darrel Taylor View Post
    The 16F84A has a typical endurance of 10,000,000 writes.
    It seems like a big number, but if you write every 100ms, that EEPROM location will stop functioning in 11.5 days.

    Of course, that's the "typical" endurance. The minimum endurance is 1,000,000.
    So it could stop working in as little as 1.1 days.
    I have been observing intermittent success in flashing the program on a 18F4550 I am using, which I have been using for almost a year in a development board...probably 100,000 flashings.

    Does intermittent flashing success mean that the chip is approaching its end of life cycle for the number of times the program has been burned to the chip?? How many programming cycles should I expect for an 18F4550 or 18F2550??

  5. #5
    Join Date
    Jul 2003
    Location
    USA - Arizona
    Posts
    156


    Did you find this post helpful? Yes | No

    Default

    Read table 28-1, 100K erase-write cycles typical and 10k minimum (for each cell).

  6. #6
    Join Date
    Mar 2009
    Location
    Colorado
    Posts
    378


    Did you find this post helpful? Yes | No

    Default The other question?

    Quote Originally Posted by languer View Post
    Read table 28-1, 100K erase-write cycles typical and 10k minimum (for each cell).
    Thanks, languer for this info. Do you know the answer to my other question as to whether intermittent flashing success is an indication of end of programming life?

  7. #7
    Join Date
    Jul 2003
    Location
    USA - Arizona
    Posts
    156


    Did you find this post helpful? Yes | No

    Default

    If you really believe you have probably flashed it that much, then it certainly could be.

  8. #8
    Join Date
    Aug 2009
    Posts
    16


    Did you find this post helpful? Yes | No

    Default EEPROM Writes

    My Pic did die in less than 2 day.

    I only have 5VDC available to the board. I added a diode in between the 5V rail and the PIC. I put a 220uf cap across catode of the diode feeding the pic with 4.3V. I then monitor 5V rail for loss of power. When this pin goes low i write the necessary info to the EEPROM. This works fine except for the PWM out will only go up the the 4.3V now instead of the original 5V. I can put a shotkey diode in that should give me another .3V or .4V. Does anyone have a better option to monnitor loss of power and save a vairable?

    Thanks,

    Terry

  9. #9
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,653


    Did you find this post helpful? Yes | No

    Lightbulb

    Hi,

    you can use a MC33064P5 ( TO92 Package ) as a voltage ref : its output will turn low if voltage goes under 4.65v ...

    enough time to save data to EEPROM, then ...

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

Members who have read this thread : 0

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