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.

RTOS/CC2640R2F: how to separate communication between two slave devices with same address over i2c

Part Number: CC2640R2F

Tool/software: TI-RTOS

Hello ,

I am using two color sensors which have same slave address so how to separate both sensors and start getting data over i2c.

regards,

Jaydipsinh

  • Hi Jaydipsinh,

    If there is no way to change the address of the sensors you have basically two options. You either isolate them on separate I2C buses which means you would have to open and close the I2C driver when changing between the two sensors.

    The other option is to control the power to the sensor turning them on and off when reading the sensor. If the sensor is very low-power you could maybe supply it via a GPIO which makes it easy to turn them on and off.
  • Hello,

    Thanks for your reply,
    With GPIO it's not working but using different configuration of i2c to change i2c bus it worked.
    thanks,

    regards,
    Jaydipsinh sondarva