Thank You, I continue to have problems and have been reading data sheets, I do not understand this statement in the datasheet "The 7-bit chip address is 7’b0101110 when SEN is high, or is 7’1110001 when SEN is low." the SEN should not have anything to do with the I2C interface The notation of "7’1110001 and 7’b0101110" means nothing to me at this point.

Thanks for any input!!

Roger

Quote Originally Posted by Charlie View Post
Add the bit to the control address (1110001x) to make a complete byte, where x = 0 or 1 depending on read or write. MSB first is standard so nothing to do.
Instead of DATAH and DATAL as bytes, use DATA VAR WORD.

sort of:
DATAIO VAR PORTA.0
CLOCK VAR PORTA.1
CMD_WRITE CON %11100010
CMD_READ CON %11100011
DATA VAR WORD

I2CWRITE DATAIO, CLOCK, CMD_WRITE, [DATA]