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.

Compiler/MSP430G2553: How can I configure multiple slave in master side [Using I2C protocol]?

Part Number: MSP430G2553


Tool/software: TI C/C++ Compiler

Sir,

I have using below 3 launchpad development device as a configure as a master and else slave.

Device : 1 MSP430G2553 : Configure as a master 


Device : 2 MSP430G2553 : Configure as a slave 


Device : 3 MSP430G2553 : Configure as a slave

In I2C, How can I configure multiple slave at I2C master side? 

  • To talk to a particular slave, put its address in UCB0I2CSA before starting the transaction. [Ref User Guide (SLAU144J) Sec 17.3.4.2.2]

  • Thanks for response.

    One slave address is 0x48h and second slave address is 0x78h.

    So How can I assigned both slave address in UCB0I2CSA? or Is it assign one by one?

  • It's one by one. The I2C unit uses whatever value is in I2CSA at the moment you request the Start (STT), so if you have multiple consecutive transactions with the same slave you don't have to set it over and over.

    On the other hand setting I2CSA before every transaction (needed or not) could be considered "cheap insurance".

  • Hello Bhautik,


    I haven’t heard from you for a couple of days now, so I’m assuming Bruce's suggestions worked for you (thanks Bruce).
    If this isn’t the case, please click the "This did NOT resolve my issue" button and reply to this thread with more information.
    If this thread locks, please click the "Ask a related question" button and in the new thread describe the current status of your issue and any additional details you may have to assist us in helping to solve your issues.


**Attention** This is a public forum