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.
Hi,
I've been using CD74HC4052 (4Channel, Dual MUX) for switching between some analog signals. I was wondering if I could use the same MUX to extend my UART or I2C lines of my microcontroller? The idea is to simply use the S0 and S1 select lines to switch between the multiple channels.
In theory, I can have up to 4 I2C sensors on the same I2C line and switch between them or have 4 UART modules and switch between them.
All my peripherals / sensors are at 3.3v only. I typically look at I2C at a max 400KHz and UART at 115200 bps.
Yes, analog muxes can also handle digital signals (with the same voltage and bandwidth limits).
Please note that digital inputs should never be left floating, so you might need to add pull-up/-down resistors.