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.

I2C arbitration handling code

Other Parts Discussed in Thread: MSP430F5338

Hi All

I am using MSP430F5338. Is there any sample code available for arbitration. And also if arbitration is occurred whether the ,,,,,,lost uC is automatically enters into slave mode or the software need to take care this? Can anyone implemented or faced such a scenario? 

Thanks in advance.

  • As shown in figure 38-12 of the User's Guide, lost arbitration always results in the UCALIFG interrupt and in clearing UCMST, but you get UCSTTIFG only if the MCU is addressed as slave.
  • Clemens Ladisch said:
    but you get UCSTTIFG only if the MCU is addressed as slave.

    not clear on this statement. Can you please explain a bit more. Also the start condition is already initiated for the arbitration lost uC, in this case how the start condition is cleared since there is no acknowledgement is received from the slave. So how the same uC  will initiate the next communication with the slave.

    If any sample code available for multimaster i2c communication please share. 

  • When another master wins arbitration and addresses this MCU as slave, UCSTTIFG is set.
    When another master wins arbitration and addresses another device, UCSTTIFG is not set.

    I recommend you actually look at figure 38-12.

**Attention** This is a public forum