Tool/software:
I am evaluating the TCA9543A to allow us to connect several load cells that have the same I2C address to a BeagleBone Black MCU.
I'd like to confirm my general understanding of the software to use the device. I'll be writing in C on a Linux system but this is just a pseudocode description.
HW Config is Load Cell 1 is on channel 0 of the IC and Load Cell 2 is on channel 1 of the IC. Both load cells have I2C address 0x28.
The TCA9543A is out of the box at address 0x70.
Code steps are
1. Set up BeagleBone Black I2C bus
2. Confirm TCA9543A is at address 0x70.
3. To read load cell 1 on channel 0, enable channel 0 by writing 0x01 to the I2C bus.
4. Read load cell 1, read from address 0x28 (the same way I would if it was directly connected to the BeagleBone's I2C bus.)
5. To next read load cell 2, enable channel 1 of the TCA9543A by writing 0x10 to the I2C bus.
6. Read load cell 2, read from address 0x28 (again, the same way I would if it was directly connected to the BeagleBone's I2C bus.).
In general, is the logic to use this device?
Finally, one other question, what is the relationship between the Address lines on the chip and it's I2C address? I don't see anything that provides this in the documentation. So if I wanted the address of the TCA9543A to be 0x71 for example, how does that work? Do I just tie A0 to Vcc and A1 to ground?
Thanks in advance!