| ??? 07/23/08 09:02 Read: times |
#156968 - Sample code irrelevant Responding to: ???'s previous message |
Producing concrete code for what Alan wants is not the issue here. HIS question was if his algorithm would work, the answer to which was YES, but it revealed the problem of this algorithm being applied directly (and naively) to data in EEPROM, which is a problem because EEPROM only has a limited write endurance. Your "sample code" all too lightly equally ignores that issue.
To use EEPROM responsively (so that your product is not a ticking time bomb, waiting to break down, and boy, I've seen examples of this!) requires that you approach it as a STORAGE DEVICE, NOT A MEMORY CHIP which must only be written to if a condition is met which indicates that otherwise the data might get lost; that you do all the real work on the data in RAM; and that you employ an appropriate algorithm to write to the EEPROM (walking write). Alan seems to have past the stage of worrying about this by now because he has indicated that he will simply plough on and treat EEPROM as RAM, and write at least once every 7 minutes, which will wear out the guaranteed lifespan of the EEPROM in less than 1,5 year. Congrats, Alan! Good call. Don't look for alternatives, don't look for how to DO use EEPROM properly. Just blinkers on and straight ahead. If you're not doing this for a hobby, I sure am glad I'm not your customer. |
| Topic | Author | Date |
| incrementing a large number in assembly | 01/01/70 00:00 | |
| Wear and tear | 01/01/70 00:00 | |
| The EEPROM is | 01/01/70 00:00 | |
| F-RAM | 01/01/70 00:00 | |
| F-RAM problem | 01/01/70 00:00 | |
| what's the problem? | 01/01/70 00:00 | |
| found a substitute | 01/01/70 00:00 | |
| first do it in C, then | 01/01/70 00:00 | |
| Load/Save in loop | 01/01/70 00:00 | |
| To Answer Your Question ... | 01/01/70 00:00 | |
| Thanks Russ - slow event | 01/01/70 00:00 | |
| A sample code for your task | 01/01/70 00:00 | |
| Sample code irrelevant | 01/01/70 00:00 | |
| Socketed EEPROM? | 01/01/70 00:00 | |
| walking writes are dead simple | 01/01/70 00:00 | |
| Larger EEPROM = simple code | 01/01/70 00:00 | |
| the counter is | 01/01/70 00:00 | |
| good point | 01/01/70 00:00 | |
Blinkers | 01/01/70 00:00 |



