Take the 2-minute tour ×
Electrical Engineering Stack Exchange is a question and answer site for electronics and electrical engineering professionals, students, and enthusiasts. It's 100% free, no registration required.

I have an AVR code where I store data in EEPROM, this data is actually some settings and USER phone numbers. These are quite often accessed. So I planned to read all the values at start-up to memory at the start-up. and then use only those values instead of reading them from EEPROM whenever required. This method is OK but it uses a lot of data memory. So now my plan is to read from EEPROM whenever I need to use that variable. Is this OK, will it affect the EEPROM???

share|improve this question
1  
The eeprom wears only when you write to it, you can read it unlimited times without any problem. –  alexan_e May 3 at 8:25
1  
@alexan_e thanks –  dmsherazi May 3 at 8:46
1  
@alexan_e How fast is reading from EEPROM compared to reading RAM? Can it slow down the program too much? –  motoprogger May 3 at 16:12
    
RAM access is the fastest, flash is slower and eeprom is even slower, but for specific timing you should probably check the datasheet or try the Atmel studio simulation and compare results. –  alexan_e May 3 at 22:39

1 Answer 1

up vote 6 down vote accepted

What you're planning is fine, only writing (or more specifically usually erasing) data causes endurance issues with an EEPROM. There's a related question How does memory wear out? that goes into some more details of what causes that effect.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.