Two SPI peripherals

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hello,

I want to interface to WICED wifi module a display and SD card, both work on SPI. As there is only one SPI available, how to multiplex?

Can i use soft SPI for one of them? Any examples?

Thanks,

Raghu

0 Likes
1 Solution
Félix_T
Level 5
Level 5
10 sign-ins First comment on blog 50 replies posted

You can use a single SPI tied to both your peripherals and use the GPIOs to control the chip select lines for both you peripherals.  This is how SPI with multiple slaves is usually done.

File:SPI_three_slaves.svg

View solution in original post

1 Reply
Félix_T
Level 5
Level 5
10 sign-ins First comment on blog 50 replies posted

You can use a single SPI tied to both your peripherals and use the GPIOs to control the chip select lines for both you peripherals.  This is how SPI with multiple slaves is usually done.

File:SPI_three_slaves.svg