hmm all i can think of is make sure the various decalres and registers are setup properly for i2c writes
if your pic has an MSSP module, you could try HBUSOUT and HBUSIN
also, make sure your i2c bus is wired properly, sda and scl need to be pulled high.
you can try breaking your commands down to their basics, write the address byte and wait for an ack, write the command byte, wait for an ack, data byte, ack .... etc ... just to troubleshoot your communications.




Bookmarks