0
\$\begingroup\$

I was wondering if I am able to treat an I2C switch simply as another I2C device and use 1 switch to control more switches downstream. This picture below shows what I am trying to do.

\$\endgroup\$
3
\$\begingroup\$

Yes you can. But they do not need to be in different addresses, unless you want to select all of them simultaneously with the first mux, but then they can be all connected to the MCU directly without the first mux.

\$\endgroup\$
  • \$\begingroup\$ If you aren't using I2C hardware ports and you have enough of those ports. If your bit-banging it doesn't matter \$\endgroup\$ – Voltage Spike Jun 11 at 20:38
  • 1
    \$\begingroup\$ A great solution but you do need to be careful with addressing. The TCA9548 has only have 3 unique addresses to play with. You use the first on the level 1 device ….at level two you only have two unique TCA9548 addresses left, so you'd allocate those to all the Level 2 TCA9548. At Level 3 (should you go that far) you'd use the third address. \$\endgroup\$ – Jack Creasey Jun 11 at 22:36
  • 1
    \$\begingroup\$ It has 3 address pins, therefore 8 addresses. \$\endgroup\$ – Justme Jun 12 at 6:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.