Skip to main content
DBudd.1
Associate II
April 6, 2020
Question

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?

  • April 6, 2020
  • 1 reply
  • 1066 views

End result: same SPI channel different devices accessed individually.

This topic has been closed for replies.

1 reply

KnarfB
Super User
April 6, 2020

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.

DBudd.1
DBudd.1Author
Associate II
April 6, 2020
KnarfB: You are correct in detecting the typo (stm32F207IF). Thank you for your response.