I got it to work by only changing from software to hardware I2C.
Luckily I had used the SDA and SCL pins.
Is there any reason the software (bit bang) I2C would not work?
My I2C sniffer says the ASIC is replying properly.
Also, there are 2 other devices on the board that I can write to but not read from. Clearly the problem is with the PIC.
I am having trouble doing an I2C read with the PIC18LF14K22.
My I2C sniffer says the transaction is correct (reads 0x01) but the i2c_read() function returns 0x00.
See the code below.
My compiler v ...