Multiplexing my microcontroller's SPI pins?

Hi,

Newbie question…

I have a couple SPI-supported devices that interface with my microcontroller. How would I multiplex the SPI pins so that the devices would work peacefully with my microcontroller? Basically, is there an IC or circuit that provides multiplexity? Thanks.

A multiplexer chip like the 74HC151? Actually, you don’t need it as you can use several SPI devices with different SS signals.

Leon

Thanks! Greatly appreciate if there is an example/documentation or a more detailed explanation of using different SS signals. Sorry for being such a newbie. Thanks.

See the data sheet for the part you are using.

Leon

Do you really need a mux? Normally, you connect SCK, MISO, and MOSI in parallel to all devices, and use separate chip selects from GPIO to select which device you are talking to.