|
From: | Jonathan Goldberg |
Subject: | Re: [avr-gcc-list] Macro to read /write long to eeprom |
Date: | Wed, 10 Aug 2005 07:58:06 -0400 |
User-agent: | Mozilla Thunderbird 1.0.2 (X11/20050317) |
Branislav Katreniak wrote:
This procedure not only saves execution time, but prolongs the life of the EEPROM memory cells as well. This is very beneficial if you are writing frequently to the same locations. Most EEPROMs are rated for 100,000 erase/write cycles across the temperature range.I suppose that the trick is to check whether the value in eeprom is not equal to the value being written. If it matches, no write is needed and you save 9ms. Another trick is not to clear the byte in eeprom before the write when it is sufficient to only clear bits on order to store the value into eeprom (you save half of the write). There is some datasheet on atmel site about this. This technique saves time when the value being written does not totaly change. Brano
Jonathan
[Prev in Thread] | Current Thread | [Next in Thread] |