O.k. the reason is because 24c16 is a 8bits format. it's mean that you cannot stored an 16bit value in a memory allocatio. the way to acheive to it is to separate your 16 word in 2 8 bit byte
so if you want to store 1234 you must send
VAR A BYTE
VAR B BYTE
A=12
B=34
I2CWRITE PORTC.0,PORTC.1,cont,addr,[A,B]
PAUSE 10
I2CREAD PORTC.0,PORTC.1,cont,addr,[A,B]
SEROUT SO,16468,[HEX A, HEX B,10]
this is suppose to work. Case not let me know i'll work on it myself and try in real world.
regards
Steve
It's not a bug, it's a random feature.
There's no problem, only learning opportunities.
Bookmarks