Hello,
We are using the driverlib\MSP430F5xx_6xx functions included in the MSP430ware_1_60_01_11 version. By comparing the functions “USCI_B_I2C_masterSingleReceiveStartWithTimeout” and “USCI_B_I2C_masterSingleReceiveStart” we have detected a potential bug in the function “USCI_B_I2C_masterSingleReceiveStartWithTimeout".
bool USCI_B_I2C_masterSingleReceiveStartWithTimeout(...)
{
...
//Poll for Start bit to complete
while ((!(HWREG8(baseAddress + OFS_UCBxIFG) & UCTXSTT)) && --timeout) ;
...
}
void USCI_B_I2C_masterSingleReceiveStart(...)
{
...
//Poll for Start bit to complete
while (HWREG8(baseAddress + OFS_UCBxCTL1) & UCTXSTT) ;
...
}
Replacing OFS_UCBxIFG by OFS_UCBxCTL1, it works fine.
Regards,
Raul.
From MSP430x5xx and MSP430x6xx Family: User's Guide revM page 972:
