You cannot write or read a word directly as you are trying to do. Split the word into two bytes (lowbyte + highbyte)
same thing for I2CREAD.Code:I2CWRITE DPIN,CPIN,$A0,I2CAddress,[B2.byte0,B2.byte1] ' Write each location's address to itself
Edited: Sorry I didn't read the whole post so I didn't see you have already splitted the word into two bytes. But the point remains You CANNOT handle the word as a single piece.
Al.
Bookmarks