cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F270IF: If I configure PI0-Pi3 as PSI2_NSS, SCK, MISO, MOSI leaving PSI2_NSS disconnected, can I use GPIO PI4-PI6 as the SPI_NSS for different devices and select which I/O in code prior to spi communications?

DBudd.1
Associate II

End result: same SPI channel different devices accessed individually.

2 REPLIES 2
KnarfB
Principal III

Don't know F270 (typo?) but: yes, when implementing SPI master on STM32, you can control one ore more SPI slaves by GPIOs of your choice. There is a figure "Master and three independent slaves" in F0 reference manual and there should be a similar figure for F2.

KnarfB: You are correct in detecting the typo (stm32F207IF). Thank you for your response.