Hi,
I am using PIC18F26K83, and trying to communicate with the slave device mcp4725. I added the I2C component and generated the code for it using MCC and calling write function of "i2c2_master_example" :
I2C2_Write2ByteRegister(my_address,my_reg,my_data);
my_address 0x60; my_reg 0x40; my_data 0xFF
OR
I2C2_WriteNBytes(my_address,my_array,3);
my_array[3]={0x40,0x50,0x70};
The code is not showing any error, but I2C is not writing and the status is "fail".
PFA project.
Regards,