This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

MSP430F5529: Communication with the LMP91002 over I2C is always stuck in the __interrupt void USCI_B0_ISR(void) interrupt

Part Number: MSP430F5529
Other Parts Discussed in Thread: LMP91002

Hi team,

#pragma vector=USCI_B0_VECTOR
__interrupt void USCI_B0_ISR(void)
{
  switch(__even_in_range(UCB0IV,12))
  {
  case  0: break;                                                              // Vector  0: No interrupts
  case  2: break;                                                              // Vector  2: ALIFG
  case  4: break;                                                              // Vector  4: NACKIFG
  case  6: break;                                                              // Vector  6: STTIFG
  case  8: break;                                                              // Vector  8: STPIFG
  case 10:                                                                     // Vector 12: TXIFG  
    I2CBuffer = UCB0RXBUF;                                                     // store received data in    buffer
    __bic_SR_register_on_exit(LPM0_bits);                                      // Exit LPM0
    break;                                                                     // Vector 10: RXIFG
  case 12:                                  
    if (PtrTransmit >= 0)                                                      // Check Transmit pointer
    {
      UCB0TXBUF = I2CBufferArray[PtrTransmit];                                 // Load TX buffer
      PtrTransmit--;                                                           // Decrement TX byte counter
    }
    else
    {
      UCB0IFG &= ~UCTXIFG;                                                     // Clear USCI_B0 TX int flag
      __bic_SR_register_on_exit(LPM0_bits);                                    // Exit LPM0
    }  
    break;
  default: break;
  }  
}

Always stuck in case10 in the TI_MSP430_i2c_USCIB0_5xx.c file, The pull-up resistor has been added to the I2C and use the official LMP91002 driver library. The customer would like to know what's the possible reason for that.

The source code is as follows: https://e2echina.ti.com/cfs-file/__key/communityserver-discussions-components-files/55/MSP430_5F00_Project.zip

Could you help check this case? Thanks.

Best Regards,

Cherry

**Attention** This is a public forum