fernando_g
Senior Member
I've written programs for which I've had to store byte variables into 24LCxxx type EEPROMS successfully. A piece of cake, as those EEPROMS are organized into bytes.
Now I've the need to do so but storing word variables.
I've read the endianess requirements, and feel that for a novice like me the little endian approach would be far easier to remember.
Therefore to sequentially write, a continuous string of words I would have to do the following (assuming I'm using W0):
main_save:
i2cslave %10100010, i2cslow, i2cword
writei2c address,(b0)
address = address + 1
writei2c address,(b1)
inc address
pause 20
readadc10 C.1, w0
goto main_save
Am I correct in my understanding?
Now I've the need to do so but storing word variables.
I've read the endianess requirements, and feel that for a novice like me the little endian approach would be far easier to remember.
Therefore to sequentially write, a continuous string of words I would have to do the following (assuming I'm using W0):
main_save:
i2cslave %10100010, i2cslow, i2cword
writei2c address,(b0)
address = address + 1
writei2c address,(b1)
inc address
pause 20
readadc10 C.1, w0
goto main_save
Am I correct in my understanding?