Difference between revisions of "Component: I2C Multiplexer (TCA9548A) (Comms: System)"
From Flowcode Help
Jump to navigationJump to searchLine 16: | Line 16: | ||
==Detailed description== | ==Detailed description== | ||
+ | |||
+ | |||
Line 24: | Line 26: | ||
==Examples== | ==Examples== | ||
+ | |||
+ | |||
Revision as of 13:28, 17 November 2021
Author | MatrixTSL |
Version | 1.0 |
Category | Comms: System |
Contents
I2C Multiplexer (TCA9548A) component
An I2C multiplexing IC allowing up to 8 different I2C busses to be connected to a single I2C channel on your target microcontroller.
Detailed description
No detailed description exists yet for this component
Examples
Here we have a simple example showing how to use the multiplexer to connect multiple of the same I2C sensor IC to the microcontroller.
The multiplexer IC is connected directly to the microcontroller I2C pins and up to 8 temp/humidity sensors are connected to the CH0-CH7 I2C pins of the multiplexer.
Downloadable macro reference
![]() |
SelectChannel |
Selects a single output channel to multiplex the I2C output to (0-7). | |
![]() |
Channel |
Range: 0-7 | |
![]() |
Return |
![]() |
SetChannelMask |
Allows a user determined number of channels to be connected to the I2C bus. | |
![]() |
Mask |
Range: 0-255 / Bit0=CH0 EN / Bit1 = CH1 EN etc | |
![]() |
Return |
![]() |
Initialise |
Startup the I2C bus ready for communications. | |
![]() |
Return |