Hi,
I am storing word-sized variables in an External EE2 using I2C and later reading them back for use later. Can anyone explain why if you write/read one word it is stored and read back HB first, LB last but if you use the STR modifier you store and read back LB first, then HB. So if I load an array by stepping thru the adresses in a for-next loop i get HB,LB stored in my array variable. If i instead READ the same adresses straight into the array with STR the result is LB,HB. What you gain in speed you loose in ........
It is usually hard enough to remember where things get stored but this way you also have to remember how they got there and how to get them back or you will get the HB and LB mixed.
RTFM is not the answer i am looking for. How do others do when they mix page modes and reading and writing single words. Of course you can change HB and LB before useing the single word I2CREAD and I2CWRITE so the result in the EE2 is always the same (LB,HB).
Since these finstructions are made by someone much more clever than me there must be a really great reason for it, I'd love to know it.
Bookmarks