Quantcast
Channel: Forums - Recent Threads
Viewing all articles
Browse latest Browse all 262198

TMS320F28335 configurede as a slave

$
0
0

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.


Viewing all articles
Browse latest Browse all 262198

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>