| ??? 08/16/07 13:39 Read: times |
#143341 - I use 2 copies and a counter for that Responding to: ???'s previous message |
Only the old copy of data is rewritten, and the counter is written as the last. The counter is incremented after each successful write.
It is enough to have 2 bits counter. When reading, the newer copy is the good one (though I have a checksum, too - I don't believe my brother, but the EEPROM manufacturers :-) OK it's a FRAM, but I don't believe it either...). (If you don't believe this method is OK, use the paper&pencil method to try and check it). JW |
| Topic | Author | Date |
| Simple EEPROM checksumming | 01/01/70 00:00 | |
| Pitfalls | 01/01/70 00:00 | |
| a checksum out of 2 bytes? | 01/01/70 00:00 | |
| It's an "either - or" ... | 01/01/70 00:00 | |
| code sketch | 01/01/70 00:00 | |
| a simple checksum | 01/01/70 00:00 | |
| CRC8 instead of CR32 | 01/01/70 00:00 | |
| I am talking about CRC-16 not CRC-8 | 01/01/70 00:00 | |
| oups | 01/01/70 00:00 | |
| how much data? | 01/01/70 00:00 | |
| approx 40-60 bytes | 01/01/70 00:00 | |
| I use 2 copies and a counter for that | 01/01/70 00:00 | |
| adding to Jan's post | 01/01/70 00:00 | |
| Here's one method | 01/01/70 00:00 | |
| another interesting scheme! | 01/01/70 00:00 | |
| Try the Dallas 1-wire CRC | 01/01/70 00:00 | |
| another good idea but... | 01/01/70 00:00 | |
| I just meant the CRC | 01/01/70 00:00 | |
oups | 01/01/70 00:00 |



