Makaram
Member
Hey,
I'm getting a Master bus collision occurring AFTER I send my first byte, so
the 'if' statement returns false meaning no bus collision occurs here, its slightly after.
I'm assuming that this is occuring during the ACK from the slave. If so, what is possibly causing this and how do I get around it?
This is my first time with I2C, so I'm oblivious to its intricacies.
This is the flag I2C3STATbits.BCL
Thanks
I'm getting a Master bus collision occurring AFTER I send my first byte, so
Code:
if(I2CSendByte(EEPROM_I2C_BUS, data) == I2C_MASTER_BUS_COLLISION)
{
write("Error: I2C Master Bus Collision\n");
return FALSE;
}
else
********* CODE reaches else statement **********************
the 'if' statement returns false meaning no bus collision occurs here, its slightly after.
I'm assuming that this is occuring during the ACK from the slave. If so, what is possibly causing this and how do I get around it?
This is my first time with I2C, so I'm oblivious to its intricacies.
This is the flag I2C3STATbits.BCL
Thanks