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.

MSP430F5515: I2C Controll using port mapping

Genius 5840 points
Part Number: MSP430F5515

Hello.

Is it possible to change the I2C port using the port mapping function and perform 4 channels of I2C communication even if I2C supports only 2 channels with MSP430F5515 or the like?

I would like to do I2C communication with four modules.
However, since all the modules have the same slave address, I 2 C requires 4 channels in the microcomputer.
Furthermore, the USB function is also necessary, and among the products with USB function in the MSP 430, there were only products with I 2 C up to 2 ch.
MSP430F5515 has a port mapping function.

After start-up, I2C communication is done only once in each module, there is no need to do it at the same time. Moreover, there is no time restriction either.

Regards,

U-SK

  • Hello U-SK,

    Unfortunately, what you are trying to do is not possible in HW. This device and all of our USB devices only have two USCI_B modules which support I2C. This means you could only have two sets of I2C lines running at a time. The portmapping module would only allow you to switch the physical pins the module is attached to.

    If the MSP430 is the master, then this shouldn't be a problem as you could easily time slice the communication to the different slaves either with one I2C module or both as you control the bus.

    If the MSP430 is the slave in all of these cases, then time slicing the response will be trickier. You would basically need to reset the module with the correct slave address after each communication. This is risky as you don't know when the master on the bus will talk to the the MSP430 slave, so missing communication is a real possibility. If you didn't need USB, some of our newer devices have the enhanced USCI module (eUSCI) which supports up to 4 slave addresses in HW with another trigger for more slave addresses in SW. Unfortunately, none of our MSP430s that feature USB have the eUSCI module.

**Attention** This is a public forum