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.

INA219: I2C address issue

Part Number: INA219


Tool/software:

Hello,
1.There are 4 INA219, A0, and A1 connected to PB3 and PB4 on I2C. I only need to control the voltage of PB3 and PB4 pins. Is the device address corresponding to the chip manual?

2.Can the I2C port of one MCU be connected to four chips for selective communication by fixing the voltage level of pins A0A1.

  • Hi Chu,

    1.There are 4 INA219, A0, and A1 connected to PB3 and PB4 on I2C. I only need to control the voltage of PB3 and PB4 pins. Is the device address corresponding to the chip manual?

    The device address is set by the connections at the A0 and A1 pins, according to Table 1 of the datasheet as copied below.
    The master could control the address dynamically if you used GPIO pins to toggle switches that change the connections at A0 and A1. However, this is not recommended due to timing concerns. It is best if the A0 and A1 pins are shorted directly to GND, VS, SDA, or SCL and left fixed. But if this isn't a concern to your application, then yes you can do this.

    2.Can the I2C port of one MCU be connected to four chips for selective communication by fixing the voltage level of pins A0A1.

    Yes you can do this, but you may run into some timing issues

    Best,
    Mallika Senthil