hello it's me again
may be i can use a byte adress and two byte value for the result, like this
Code:DPIN var PORTA.0 ' I2C data pin CPIN var PORTA.1 ' I2C clock pin adres var byte ' I2C adress ctrol var byte ' I2C control B0 var word B1 var byte B2 var byte I2CREAD DPIN,CPIN,ctrol,adres,[B1,B2] ' Read 2 locations in a row B0.highbyte = B1 ' Move HIGH byte of result to B0 B0.lowbyte = B2 ' Move LOW byte of result to B0
Bookmarks