How to manage chip select pins when reading/writing SD cards on an SPI master/slave(multiple) configuration ?
Hello, I have succeeded in accessing (r/w) an SD card with STM32F103C8 blue pill and a microSD adapter using SPI in a master/slave configuration. Now I want to go to the next level by using 2 SD cards in a master / multiple slave configuration.
According to documentation I should have one separate slave select pin (SS or CS) for each SD card and the rest of the pins shared ( VCC, GND, SCLK, MOSI, MISO).
I know how to change CS when working with one slave, now my question is: when there are multiple slaves what should I do with the rest of the CS pins so the do not interfere while working with one card ? Should I keep them always high, always low or should they be changed to the opposite level as the one I am working with?
Thank you guys for your help
