Email: Password: Remember Me | Create Account (Free)

Back to Subject List

Old thread has been locked -- no new posts accepted in this thread
???
05/31/12 09:04
Read: times


 
#187584 - Hold your horses
Responding to: ???'s previous message
Helo Kurt,

Before you run off to start using EEPROM, I would like to point you two major snags related to non-volatile memory in general and EEPROM in particular.



1) EEPROM (and other floating gate memory types, like flash) has a property called ENDURANCE. That means that after a couple ten thousand to a million writes, depending on your luck, your EEPROM will physically wear out, after which it will seize to be reliable. A guaranteed minimum number is always given in the datasheets, which is usually 20000 to 100000. So depending on how often you write to your EEPROM, this will limit the operational lifespan of your device to no more than (pushing it...) a couple of DAYS!!! (if it relies on the proper operation of the EEPROM chip) But yes, I have actually seen units fail because of designers underestimating EEPROM endurance problems every few months.

2) Non-volatile memory contents survives power cycles. That's good, but also a headache at the same time. Because what if the power cycles in the middle of a write sequence? How do you know, after the power comes back, that the data in your non-volatile memory is incomplete or dodgy? You will face the comparable issue at very first startup?



There are hard- and software answers to these issues which do turn non-volatile memories, even EEPROM, into very practical solutions, but they may not be as easy as you imagine. To put it very short: you can not simply willy nilly replace your RAM with EEPROM, and then expect your project, with little other changes, to now survive power cycles. I do hope you realise that.
I suggest that you look into battery backed up RAM, which at least doesn't have the endurance issue. Most if not all 8051 derivatives have an inherent property which allows you to preserve the internal RAM contents using an external battery delivering just a few volts. See the 8051 "bible" on that.
You WILL need to properly support any non-volatile memory device through an additional layer of software though, much as if it were a mass storage device working as a backup for your RAM than as direct working memory.

"We have it coded to use external memory, and we need that memory to still be there if even if the device is turned off for a while."

Maybe you will understand now that some requirements all too readily point in the direction of a certain simple and convenient solution (in this case: external memory which retains its contents), but that they only do so because they come form a person who is unfamiliar with the ins and out of the subject matter. You will see a lot of customers are like that...


List of 29 messages in thread
TopicAuthorDate
More Ports or Non-Volatile RAM            01/01/70 00:00      
   Numbers always help            01/01/70 00:00      
   Trying to read your mind            01/01/70 00:00      
   Write down your project requirements            01/01/70 00:00      
      Details            01/01/70 00:00      
         Most projects do not need external memory            01/01/70 00:00      
            SILabs have 8-porters            01/01/70 00:00      
               Don't overlook the additional memory ...            01/01/70 00:00      
            Further Details and Thankyou            01/01/70 00:00      
               AT89S8253 ?            01/01/70 00:00      
                  This worked. Thanks            01/01/70 00:00      
                     Hold your horses            01/01/70 00:00      
                        F-RAM            01/01/70 00:00      
                           Yes! I like 'em, and there's no write delay            01/01/70 00:00      
                        3 things            01/01/70 00:00      
         some or all?            01/01/70 00:00      
            Re:some or all            01/01/70 00:00      
               how much and can you            01/01/70 00:00      
               Options            01/01/70 00:00      
   Had you read the datasheets ...            01/01/70 00:00      
      sorry            01/01/70 00:00      
         I doubt it'll hurt you ...            01/01/70 00:00      
            WOW            01/01/70 00:00      
               Yes            01/01/70 00:00      
               Well, it is a troll, as someone has pointed out ...            01/01/70 00:00      
                  "his" money            01/01/70 00:00      
                     You're probably right. It's a shame, but it's so            01/01/70 00:00      
            Is that true?            01/01/70 00:00      
               I doubt it ...            01/01/70 00:00      

Back to Subject List