Tiger, [quote userid="564778" url="~/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1355215/mspm0g1507-mspm0-sdk-smbus-library-issue-and-suggestions/5168076#5168076"]For older version of SDK, it didn't have timeout. But still success[/quote] When you say success, you mean you are eventually exiting that loop right? What are your stop settings when you were performing the transaction? I suspect that without a stop (i.e. repeated start), you might have issues, as the BUSBY flag would not be cleared, so you might get stuck there. With a stop the BUSBSY should clear, so as long as you don't have an error you should break the loop. [quote userid="564778" url="~/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1355215/mspm0g1507-mspm0-sdk-smbus-library-issue-and-suggestions/5168076#5168076"]Can you further check if some bits actually link together or achieve similar thing?[/quote] I'm not sure I understand your meaning here. Are you asking if there is another way of writing this wait statement that is better? Or for some details about the busy/idle flags in the I2C state machine and their sources? Best Regards, Brandon Fisher
↧