If you have data that absolutely cannot be corrupted, then write the data twice in two different blocks. Write a checksum as the last byte of each block.
On power up, read the blocks and recalculate the checksums. Use the first one that matches.
If you have data that absolutely cannot be corrupted, then write the data twice in two different blocks. Write a checksum as the last byte of each block.
On power up, read the blocks and recalculate the checksums. Use the first one that matches.
Charles Linquist
would it be easier to use
WRITE X,VAR.BYTE1
WRITE Y,VAR.BYTE0
(I know, not the question lol)
what checksum algorithm did you recomend ?
...day by day i have to go deeper and deeper...and just for one countdown timer... i love that
For something simple, I generally start with something like $AA or $55 and add every byte to that. Fast and (relatively) foolproof.
Charles Linquist
Bookmarks