Author Topic: What is the EEPROM's "READ ONLY" life span limit?  (Read 11250 times)

0 Members and 1 Guest are viewing this topic.

Online MechatrommerTopic starter

  • Super Contributor
  • ***
  • Posts: 11631
  • Country: my
  • reassessing directives...
What is the EEPROM's "READ ONLY" life span limit?
« on: May 18, 2016, 03:16:02 pm »
EEPROM has a write/erase cycle limit spec in the datasheet. for atTiny's EEPROM its 100K cycle... is this spec applied to when we are "READING" the EEPROM only. i have a situation where i will write the EEPROM content once during programming, but in the running firmware, it will READ the EEPROM content so many times in a second... will the EEPROM die quick this way? i have a hard time finding the READ ONLY spec in the net, all are  talking about in combination of either write/erase, or read/write. i know about the WRITE limit, but what about the READ ONLY? i can load the EEPROM content to SRAM during boot once to be safe, and read from that "fixed value" SRAM content many times, but i need to cram every possible SRAM bits for other purpose storing "ever changing" so many variables, loading a fixed valued EEPROM content into SRAM may crippled on how many "quickly changing value" variables in my firmware, so this way is a no (bad) go. i want to make sure that this READ EEPROM many times a second is a safe bet. i need the answer quick, hopefully since i'm coding in this very minute, so please help, may peace be upon you thanks.
« Last Edit: May 18, 2016, 03:18:14 pm by Mechatrommer »
Nature: Evolution and the Illusion of Randomness (Stephen L. Talbott): Its now indisputable that... organisms “expertise” contextualizes its genome, and its nonsense to say that these powers are under the control of the genome being contextualized - Barbara McClintock
 

Offline FreddyVictor

  • Regular Contributor
  • *
  • Posts: 164
  • Country: gb
Re: What is the EEPROM's "READ ONLY" life span limit?
« Reply #1 on: May 18, 2016, 03:21:22 pm »
The limit is for writing, you can read as many times as you want.
 
The following users thanked this post: Mechatrommer

Online Kjelt

  • Super Contributor
  • ***
  • Posts: 6460
  • Country: nl
Re: What is the EEPROM's "READ ONLY" life span limit?
« Reply #2 on: May 18, 2016, 04:31:30 pm »
Look at "data retention time" usually this is a graph or table that decreases with overall temperature but for modern components is something from 30 to 100 years, so not much to worry about :)
 
The following users thanked this post: Mechatrommer

Offline asgard20032

  • Regular Contributor
  • *
  • Posts: 184
Re: What is the EEPROM's "READ ONLY" life span limit?
« Reply #3 on: May 18, 2016, 05:27:33 pm »
But what would be the lifetime of OTP that they used back in 1985-2004? Does all those gameboy cartridge and nes cartridge will expire soon?
 

Online Gyro

  • Super Contributor
  • ***
  • Posts: 9502
  • Country: gb
Re: What is the EEPROM's "READ ONLY" life span limit?
« Reply #4 on: May 18, 2016, 05:36:33 pm »
It would depend whether they are actually OTP (EPROM dies in plastic DIP packages) or Mask ROM. Mask ROMs are hard programmed in the metalization mask. OTP EPROMs would have a similar lifespan to UV EPROMS, 20yrs+ ?
Best Regards, Chris
 

Offline Photon939

  • Regular Contributor
  • *
  • Posts: 111
  • Country: us
Re: What is the EEPROM's "READ ONLY" life span limit?
« Reply #5 on: May 18, 2016, 05:42:43 pm »
But what would be the lifetime of OTP that they used back in 1985-2004? Does all those gameboy cartridge and nes cartridge will expire soon?

Game cartridges use a different technology called a mask rom. They have a theoretically indefinite data retention time.  Now the SRAMs with coin cells? Those can die pretty quick. I have gameboy games with batteries that are already dead but those games had an RTC chip in the cart that ate most of the battery power. Games that just have a battery backed SRAM for game saves are still fine. Even NES carts are usually still good.
 

Offline helius

  • Super Contributor
  • ***
  • Posts: 3640
  • Country: us
Re: What is the EEPROM's "READ ONLY" life span limit?
« Reply #6 on: May 18, 2016, 05:51:37 pm »
Mask ROMs can sometimes degrade depending on the fabrication parameters. The key process is metal migration.
 

Offline Photon939

  • Regular Contributor
  • *
  • Posts: 111
  • Country: us
Re: What is the EEPROM's "READ ONLY" life span limit?
« Reply #7 on: May 18, 2016, 06:01:00 pm »
Mask ROMs can sometimes degrade depending on the fabrication parameters. The key process is metal migration.

Got any data on electromigration? I know it is more of an issue for modern processes where dealing with fairly small quantities of individual atoms but would electromigration be a significant effect on such massive lithography processes? Intel is down in the <20nm area but my laptop from ~2005 was built on 130nm transistors. NES carts are probably an order of magnitude or two larger still.
 

Offline Cerebus

  • Super Contributor
  • ***
  • Posts: 10576
  • Country: gb
Re: What is the EEPROM's "READ ONLY" life span limit?
« Reply #8 on: May 19, 2016, 06:30:26 pm »
It would depend whether they are actually OTP (EPROM dies in plastic DIP packages) or Mask ROM. Mask ROMs are hard programmed in the metalization mask. OTP EPROMs would have a similar lifespan to UV EPROMS, 20yrs+ ?

The rated retention period has increased for OTP PROMs as time has passed. Early OTPs had a 10 year retention spec. in the datasheets a decade later is was 20 years, and now we have parts with 30+ year retention specs. Whether this is a real increase in retention life or a result of better data on retention times is a question I'd like answered. What I mean, if it isn't immediately clear, is that did they hedge their bets at 10 years based on accelerated ageing tests and extended the lifetime spec as older parts proved more reliable or did actual process improvements lead to longer retention times? That is, are those old parts with a nominal 10 year life still working at 30-40 years on, or have they died.
Anybody got a syringe I can use to squeeze the magic smoke back into this?
 

Online Kjelt

  • Super Contributor
  • ***
  • Posts: 6460
  • Country: nl
Re: What is the EEPROM's "READ ONLY" life span limit?
« Reply #9 on: May 19, 2016, 10:09:01 pm »
If the OTP rom has the same technology as the eprom but without the glass you could also do the same trick as with an eprom, read and re(over)write, the existing charge would be refreshed as new and the lifetime is again 20 yrs.
 

Offline alank2

  • Super Contributor
  • ***
  • Posts: 2185
Re: What is the EEPROM's "READ ONLY" life span limit?
« Reply #10 on: May 19, 2016, 10:15:21 pm »
Our of curiosity to the OP's question - why read and reread EEPROM again and again?  Once you have started up and load load it into SRAM, what is the point?
 

Offline Cerebus

  • Super Contributor
  • ***
  • Posts: 10576
  • Country: gb
Re: What is the EEPROM's "READ ONLY" life span limit?
« Reply #11 on: May 19, 2016, 10:28:40 pm »
Our of curiosity to the OP's question - why read and reread EEPROM again and again?  Once you have started up and load load it into SRAM, what is the point?

A lot of microcontrollers run code directly out of xROM, for varying values of x.
Anybody got a syringe I can use to squeeze the magic smoke back into this?
 

Offline SL4P

  • Super Contributor
  • ***
  • Posts: 2318
  • Country: au
  • There's more value if you figure it out yourself!
Re: What is the EEPROM's "READ ONLY" life span limit?
« Reply #12 on: May 19, 2016, 10:29:04 pm »
Our of curiosity to the OP's question - why read and reread EEPROM again and again?  Once you have started up and load load it into SRAM, what is the point?
Perhaps to reduce the amount of SRAM being used?  I.e. only transiting as a buffer...
Don't ask a question if you aren't willing to listen to the answer.
 

Offline Paul Moir

  • Frequent Contributor
  • **
  • Posts: 926
  • Country: ca
Re: What is the EEPROM's "READ ONLY" life span limit?
« Reply #13 on: May 19, 2016, 10:32:03 pm »
For example, the Attiny13a has as much EEPROM as SRAM (64 bytes).  Doesn't leave you with much.
 

Offline uncle_bob

  • Supporter
  • ****
  • Posts: 2441
  • Country: us
Re: What is the EEPROM's "READ ONLY" life span limit?
« Reply #14 on: May 20, 2016, 01:34:43 am »
Mask ROMs can sometimes degrade depending on the fabrication parameters. The key process is metal migration.

Hi

Early mask ROM's had a number of issues. Each manufacturer had their own issues. Some of the ROM's started to die within a year of manufacture. There are a lot of older instruments that are going belly up because the EPROM's, mask ROM, and Flash have started to hit the wall. Since most of the parts are in the "out of production long ago" category ... fixing them can be a chore. Best bet: backup everything now.

Bob
 

Online MechatrommerTopic starter

  • Super Contributor
  • ***
  • Posts: 11631
  • Country: my
  • reassessing directives...
Re: What is the EEPROM's "READ ONLY" life span limit?
« Reply #15 on: May 20, 2016, 04:12:14 pm »
Our of curiosity to the OP's question - why read and reread EEPROM again and again?  Once you have started up and load load it into SRAM, what is the point?
as other have mentioned, attiny13a only has 64 bytes of SRAM. if i store eeprom value in sram during load, then i have less sram space left. there is a 4 bytes constant stored in eeprom, if i load it into sram, i have 60 bytes sram left = 30 words (2 bytes each) variables can be stored. if i read and reread from eeprom each time, i can store 32 words variables in the sram, extra 2 variables which is better. this is a matter of pushing the mcu to the limit by using resources wisely, if it even a wise decision to make, hence i ask in this thread.

otoh, before somebody come up with a suggestion "buy bigger mcu"... not a good option since i'll need to source money to buy new stocks and then leaving my 40++ qty attiny13a unused. and i'm not aware of bigger atmel or pic mcu in 8 pins SOIC or 6 pins SOT-23 package (i have pic10f206 as well), these micro mcus are fun to program albeit the limitation. the fact that they can do plethora of things than a bigger NE555 with far less BOM is one of the wonder of the world, imho...
Nature: Evolution and the Illusion of Randomness (Stephen L. Talbott): Its now indisputable that... organisms “expertise” contextualizes its genome, and its nonsense to say that these powers are under the control of the genome being contextualized - Barbara McClintock
 

Offline alank2

  • Super Contributor
  • ***
  • Posts: 2185
Re: What is the EEPROM's "READ ONLY" life span limit?
« Reply #16 on: May 20, 2016, 04:45:06 pm »
as other have mentioned, attiny13a only has 64 bytes of SRAM. if i store eeprom value in sram during load, then i have less sram space left. there is a 4 bytes constant stored in eeprom, if i load it into sram, i have 60 bytes sram left = 30 words (2 bytes each) variables can be stored. if i read and reread from eeprom each time, i can store 32 words variables in the sram, extra 2 variables which is better. this is a matter of pushing the mcu to the limit by using resources wisely, if it even a wise decision to make, hence i ask in this thread.

It was a good question - I understand the resources (sram) are low and you can take advantage of reading from EEPROM whenever you need to.  I even heard of people using EEPROM to store bytes that won't fit in flash too.

This is timely for me - I'm working on some new AVR library code that allows you to load/save an entire structure of X bytes to EEPROM with wear leveling.
 

Offline Yansi

  • Super Contributor
  • ***
  • Posts: 3893
  • Country: 00
  • STM32, STM8, AVR, 8051
Re: What is the EEPROM's "READ ONLY" life span limit?
« Reply #17 on: May 20, 2016, 04:57:55 pm »
For example, the Attiny13a has as much EEPROM as SRAM (64 bytes).  Doesn't leave you with much.

tiny13 is an old heap of overpriced er... something one should never use into new designs these days.  ;D
 
The following users thanked this post: Kilrah

Offline uncle_bob

  • Supporter
  • ****
  • Posts: 2441
  • Country: us
Re: What is the EEPROM's "READ ONLY" life span limit?
« Reply #18 on: May 20, 2016, 05:07:04 pm »
For example, the Attiny13a has as much EEPROM as SRAM (64 bytes).  Doesn't leave you with much.

tiny13 is an old heap of overpriced er... something one should never use into new designs these days.  ;D

Hi

No more overpriced than a lot of (essentially obsolete)  parts from that era. There are designs that people try to keep going for decades. Simply being able to *get* parts at all (regardless of price) is a "really good thing".  The cost is passed on to the customer and it all works out.

Bob
 

Offline Yansi

  • Super Contributor
  • ***
  • Posts: 3893
  • Country: 00
  • STM32, STM8, AVR, 8051
Re: What is the EEPROM's "READ ONLY" life span limit?
« Reply #19 on: May 20, 2016, 05:16:14 pm »
Sure...

BTW, I have just looked and the prices of these atmel micros dropped drastically. It's been quite a while (few years?) since I quit using atmel MCUs and switched to STM8 / STM32. When I saw the tiny13 last time, it cost something like 2-3$ here in single quantities.
 

Online MechatrommerTopic starter

  • Super Contributor
  • ***
  • Posts: 11631
  • Country: my
  • reassessing directives...
Re: What is the EEPROM's "READ ONLY" life span limit?
« Reply #20 on: May 20, 2016, 05:31:24 pm »
tiny13 is an old heap of overpriced er... something one should never use into new designs these days.  ;D
suggestion please? same footprint

BTW, I have just looked and the prices of these atmel micros dropped drastically. It's been quite a while (few years?) since I quit using atmel MCUs and switched to STM8 / STM32. When I saw the tiny13 last time, it cost something like 2-3$ here in single quantities.
buy lots.. not so lots just say 10 qty...
http://www.ebay.com.my/itm/10PCS-ATTINY13A-SU-SOP8-IC-MCU-8BIT-1KB-FLASH-NEW-/171759402808?hash=item27fda87f38:g:i0EAAOSwstxVMyUT
so this is not so bad, compare to say, NE555 and other passives that i need to buy separately from different suppliers as well? the price will be an issue if you are producing thousands of a product, but me its mainly hobby.. and the fact that the price dropped maybe they want to push it back into the market?

i havent figured out the promising and cheapest way to program arm chip. i downloaded many arm ide, they are not as good and as convinient as AVR Studio 4 and MPLAB 8. and Segger is crippling my clone programmer, the original cost many hundreds, the EDU version i have a feeling is crippled in someway as well (you cant use it in production), the Keil uVision appealled to me (after downloading crippled version from their site) the cheapest option for me, its nearly $2K, its just nuts. and as i mentioned, i'm yet to see arm chip in SOIC 8 or SOT-32 6 package, all are big tarantula's that is impossible to fit in say a 1cm x 1cm board.
Nature: Evolution and the Illusion of Randomness (Stephen L. Talbott): Its now indisputable that... organisms “expertise” contextualizes its genome, and its nonsense to say that these powers are under the control of the genome being contextualized - Barbara McClintock
 

Offline uncle_bob

  • Supporter
  • ****
  • Posts: 2441
  • Country: us
Re: What is the EEPROM's "READ ONLY" life span limit?
« Reply #21 on: May 20, 2016, 05:38:05 pm »
tiny13 is an old heap of overpriced er... something one should never use into new designs these days.  ;D
suggestion please? same footprint

BTW, I have just looked and the prices of these atmel micros dropped drastically. It's been quite a while (few years?) since I quit using atmel MCUs and switched to STM8 / STM32. When I saw the tiny13 last time, it cost something like 2-3$ here in single quantities.
buy lots.. not so lots just say 10 qty...
http://www.ebay.com.my/itm/10PCS-ATTINY13A-SU-SOP8-IC-MCU-8BIT-1KB-FLASH-NEW-/171759402808?hash=item27fda87f38:g:i0EAAOSwstxVMyUT
so this is not so bad, compare to say, NE555 and other passives that i need to buy separately from different suppliers as well? the price will be an issue if you are producing thousands of a product, but me its mainly hobby.. and the fact that the price dropped maybe they want to push it back into the market?

i havent figured out the promising and cheapest way to program arm chip. i downloaded many arm ide, they are not as good and as convinient as AVR Studio 4 and MPLAB 8. and Segger is crippling my clone programmer, the original cost many hundreds, the EDU version i have a feeling is crippled in someway as well (you cant use it in production), the Keil uVision appealled to me (after downloading crippled version from their site) the cheapest option for me, its nearly $2K, its just nuts. and as i mentioned, i'm yet to see arm chip in SOIC 8 or SOT-32 6 package, all are big tarantula's that is impossible to fit in say a 1cm x 1cm board.

Hi

The simple answer on programming an ARM at the hobby level is generally a $15 demo board with built in programmer. The ones I have seen have an un-populated socket on the board for just that purpose. When you do your project, you populate the location on the programmer and that does the trick. That said, my ten year old J-Links are doing just fine with the latest and greatest drivers. Nothing crippled about them.

Don't even get me started on MPLAB vs the free stuff on ARM. Unless you have actually used both to go through an entire project, you haven't seen just how far ahead the ARM setup is. I've done a *lot* of work under both.

Bob
 

Online MechatrommerTopic starter

  • Super Contributor
  • ***
  • Posts: 11631
  • Country: my
  • reassessing directives...
Re: What is the EEPROM's "READ ONLY" life span limit?
« Reply #22 on: May 20, 2016, 06:03:46 pm »
The simple answer on programming an ARM at the hobby level is generally a $15 demo board with built in programmer. The ones I have seen have an un-populated socket on the board for just that purpose. When you do your project, you populate the location on the programmer and that does the trick. That said, my ten year old J-Links are doing just fine with the latest and greatest drivers. Nothing crippled about them.

Don't even get me started on MPLAB vs the free stuff on ARM. Unless you have actually used both to go through an entire project, you haven't seen just how far ahead the ARM setup is. I've done a *lot* of work under both.

Bob
thanks for the suggestion, i'll google when the time comes, but i've done this in few times before, the latest is few weeks ago for me to decide which ide i'm going to learn and put in my freshly formatted PC, i decided the crippled keil uVision, i cant be too carefull and i cant learn all of them either. but so far, arm option hasnt change my stand. mplab and avr studio is $0 cost, non crippled assembly capable suitable for small mcus like this... but they are older version, the newer version i got informed are netbean based and buggy suck arse so i dont bother, older version support my chips thats all i care.. maybe our different stand on this is due to lack of information available on my side. the decision for crippled uVIsion was mainly due to dannyf's blog, he showed some basic step by step... but i still find it not so complete. i know many netbean based are free but i'm not comfy with the performance and features. maybe you can make a blog the easiest and cheapest step by step on arm programming from monitor to flash and add it to the collection of internet knowledge based? tell me, i will be looking forward to it.. since you mentioned your j-link.. i guess its a clone too. the segger driver ver 5 wont let you, ver 4.44 started to give warning, i only can use up to driver 4.42 try it if you havent. if you have, maybe your 10yrs old clone is not charted by them, or simply somehow a legit unit. mine is around 5 year old, in the shelf all the time, dont know when it will see fresh light again. few weeks ago i tried boom the driver says "you cannot use clone with this sw" or some sh*t like that, so hack was in order. now its working again, with an older driver version. learning is on the go, dont know when. in the mean time i keep programming avr, easy. so thats my sad story if you are interested to read. ;D
« Last Edit: May 20, 2016, 06:06:54 pm by Mechatrommer »
Nature: Evolution and the Illusion of Randomness (Stephen L. Talbott): Its now indisputable that... organisms “expertise” contextualizes its genome, and its nonsense to say that these powers are under the control of the genome being contextualized - Barbara McClintock
 

Offline uncle_bob

  • Supporter
  • ****
  • Posts: 2441
  • Country: us
Re: What is the EEPROM's "READ ONLY" life span limit?
« Reply #23 on: May 20, 2016, 06:48:08 pm »
The simple answer on programming an ARM at the hobby level is generally a $15 demo board with built in programmer. The ones I have seen have an un-populated socket on the board for just that purpose. When you do your project, you populate the location on the programmer and that does the trick. That said, my ten year old J-Links are doing just fine with the latest and greatest drivers. Nothing crippled about them.

Don't even get me started on MPLAB vs the free stuff on ARM. Unless you have actually used both to go through an entire project, you haven't seen just how far ahead the ARM setup is. I've done a *lot* of work under both.

Bob
thanks for the suggestion, i'll google when the time comes, but i've done this in few times before, the latest is few weeks ago for me to decide which ide i'm going to learn and put in my freshly formatted PC, i decided the crippled keil uVision, i cant be too carefull and i cant learn all of them either. but so far, arm option hasnt change my stand. mplab and avr studio is $0 cost, non crippled assembly capable suitable for small mcus like this... but they are older version, the newer version i got informed are netbean based and buggy suck arse so i dont bother, older version support my chips thats all i care.. maybe our different stand on this is due to lack of information available on my side. the decision for crippled uVIsion was mainly due to dannyf's blog, he showed some basic step by step... but i still find it not so complete. i know many netbean based are free but i'm not comfy with the performance and features. maybe you can make a blog the easiest and cheapest step by step on arm programming from monitor to flash and add it to the collection of internet knowledge based? tell me, i will be looking forward to it.. since you mentioned your j-link.. i guess its a clone too. the segger driver ver 5 wont let you, ver 4.44 started to give warning, i only can use up to driver 4.42 try it if you havent. if you have, maybe your 10yrs old clone is not charted by them, or simply somehow a legit unit. mine is around 5 year old, in the shelf all the time, dont know when it will see fresh light again. few weeks ago i tried boom the driver says "you cannot use clone with this sw" or some sh*t like that, so hack was in order. now its working again, with an older driver version. learning is on the go, dont know when. in the mean time i keep programming avr, easy. so thats my sad story if you are interested to read. ;D

Hi

The *only* reason to look at Keil is that it's a great compiler. Every vendor I have ever seen provides a totally free, completely functional, in no way crippled tool chain for their parts. This also includes odd bits and pieces like a free RTOS integrated in the tool chain along with a TCP-IP stack. That bit only works on the "expensive" $4 parts that include built in ethernet i/o (the mac side, but not the $2 phy). Below that you get USB stack support. The sub 50 cent parts don't generally come with Ethernet or USB, there the buffered serial i/o comes in handy. 

Bob
 
The following users thanked this post: Mechatrommer

Offline danadak

  • Super Contributor
  • ***
  • Posts: 1875
  • Country: us
  • Reactor Operator SSN-583, Retired EE
Re: What is the EEPROM's "READ ONLY" life span limit?
« Reply #24 on: May 21, 2016, 12:51:15 am »
Another technique to increasing FLASH, EEPROM life is to implement wear leveling
in code. Basically keep a counter in flash of the # times you have done writes, and
change the address and reset the counter when you get to the limit. In fact if a UP
does not have EEPROM, you can make program FLASH look like EEPROM thru this
technique.

Just google "wear leveling microprocessor", lots of hits.


Regards, Dana.
Love Cypress PSOC, ATTiny, Bit Slice, OpAmps, Oscilloscopes, and Analog Gurus like Pease, Miller, Widlar, Dobkin, obsessed with being an engineer
 
The following users thanked this post: Mechatrommer


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf