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.

How do I use multiple I2C channels in Sensor Controller Studio.

Hello.

I need to communicate with two I2c devices that have the same slave address, so I need two separate I2C busses.

With Sensor Controller Studio, I have successfully created a task with an I2C master and can communicate with a single I2C slave.

My problem is that when I create a second task with an I2C master, Sensor Controller Studio won't let me compile because of the error "Constant Already Defined: '.define AUXIO_I2C_SCL 0'" among others.

Does Sensor Controller Studio limit you to a single I2C channel, or am I missing a step in the configuration?

Thank you

Scott Wild

  • Hello. There only is one i2c bus on the device so I'm not sure is possible. I've notified our sensor controller team who will respond after Easter vacation.
  • There is only one I2C controller in CC26xx. You have to "emulate" the 2nd one by CM3 or AUX controller.

    According to my experience, most I2C devices support the 2nd I2C address by pulling an IO pin. I would suggest you to check their datasheet again.
  • Hi

    Similar question here. I also have two devices on separate I2C channels configured in SCS (located in separate tasks). While I don't need simultaneous access to both I2C interfaces, I ask myself if it is possible to switch between the two tasks and gain access to the I2C controller? So, is it possible to share the I2C controller between two Sensor Controller Studio Tasks to communicate on two different I2C buses?

    Kind regards
    Martin