AnsweredAssumed Answered

STM32F031C4 SPI with multiple slaves

Question asked by iyer.shivkumar on May 19, 2016
Latest reply on May 19, 2016 by Clive One
Hello all,

I am trying to use the STM32F031C4 for a power converter application. The microcontroller has inbuilt ADCs, but due to grounding issues, we need to use external ADCs to convert some of the analog signals and feed the digital values to the microcontroller. We intend to use SPI for the interface. However, the microcontroller has only one SPI.

So my question is has anyone used multiple peripherals with a single SPI? Is it possible to generate a multiplexed chip select signal to choose different devices? Also, when a device is not selected, will its data lines be tristated? Because if the data lines are shared between different peripherals, if the lines are always active even if the chip is not selected, it would be necessary to multiplex to the data lines along with the chip select.

Has anyone done this and could offer any suggestions. It is only 4 analog inputs that we need to interface through external ADCs. 5 analog signals will use the inbuilt ADC with the microcontroller.

Thank you in advance.

Outcomes