Dear all,
I’m facing a problem with my TMS320F28335 configured as a slave. I’m sending data to the master and all data I send is right but the last. I mean, if I have to send twenty data bytes, the nineteen first are right and only the twentieth is wrong. It usually goes as 255.
This is the code fragment:
for( i = 0; i < bytesToSend ; i++ )
{
I2caRegs.I2CDXR = txBuffer[i];
while(I2caRegs.I2CSTR.bit.XRDY == 0);
}
If anyone could help me I’d be glad.
Thank you.