2015-10-01 01:58 AM
Dear all,
I have the following situation:STM32F411CE with PB12,PB13,PB14 and PB15 configured as SPI2 to interface with an external slave sensor.SPI1 (PA4,PA5,PA6,PA7) is used for an external IMU communicating in SPI.Now the problem is that I need to connect another device in SPI mode.I was thinking to connect to the same SPI2 bus,I canot use the other SPI busses.So (the real question...) which pin can I use as CS for the external new device?Can I use a normal GPIO?Thanks. #stm32f4 #stm32f4 #spi #spi2015-10-01 02:09 AM
Yes. You are already using the NSS pin as GPIO output anyway, don't you.
JW2015-10-01 02:42 AM
Thank you waclawek.jan,
now i'm using PA4/SPI1_SS as CS for SPI1 and PB12/SPI2_SS,so i can connect more slaves let's say on SPI1 BUS and use PA4 for the first slave and PB10 for the second slave CS.Correct?2015-10-01 02:58 AM
Yes. You then need to manage the chip selects in software.
JW2015-10-01 04:11 AM
Thank you Man!