DoneRemove the DS1307 and the ADS1115 from the circuit.
Verify that SCL and SDA are properly connected to the PIC using the continuity function on your meter
Change the slave address to 0xA0 for the EEPROM.
Delete these lines
TRISCbits.TRISC3 = 1; // Clock Pin
TRISCbits.TRISC4 = 1; // SDA Pin
and replace with:
TRISC = 0x18; in the init IO routine.
Add this line just before #include <xc.h> to disable the 'function not called' message.
#pragma warning disable 520
as far as know VDDCORE (pin 6) is not connected to 10uF capacitor on boardMake sure you have a suitable capacitor on VDDCORE (pin 6). See section 2.4 in the datasheet.
I am connecting pin 6 to 10uf capacitor as shown in datasheet


.Compile to NO ERRORS, NO WARNINGS. Fix any warnings. It is pointless to debug code that the compiler says has problems.
main.c:142:13: warning: implicit conversion loses integer precision: 'unsigned char' to '__bit' [-Wconversion]
ACKDT = ackflag; //specify if we should send ACK or NAK after receiving
~ ^~~~~~~
@JohnInTX I am trying to fix one warning. I looked into xc8 user manual but I don't understand how to fix this warning ?







