Quote Originally Posted by ruijc View Post
checked the PBP manual and did some changes to the code but did not worked ( not sure this is what you mean ):

what i did:

Added alias
Code:
tempe   var  word

temp1   var tempe.highbyte
temp2   var tempe.lowbyte
saving data to eeprom
Code:
I2CWRITE SDA,SCL,CTW,ADDR.highbyte,addr.lowbyte,[temp1]
pause 10    
ADDR=ADDR+1
I2CWRITE SDA,SCL,CTW,ADDR.highbyte,addr.lowbyte,[temp2]
.
Just use:

I2CWRITE SDA,SCL,CTW,ADDR,[TEMP]

In both ADDR and TEMP they are word size and PBP will send each byte out for the word - no need to bust them up and send them individually.