cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F4 SPI peripherals can only suport one mode at the time?

Posted on June 29, 2015 at 17:42

Hi,

I am deling with several devices on 3 SPI buses. SPI1 has 4 sensors all mode 0, SPI2 has 2 sensors in mode 3 and SPI3 one flash in mode 2.

As far as I can see, there is only one register to configure the SPI peripheral mode, and that can easily become an issue. Am I overlooking any other configuration setup? if not, what is the best way to overcome this inconvenience?

Any suggestion is more than appreciated. 
2 REPLIES 2
Posted on June 29, 2015 at 17:49

Each SPI peripheral has it's own configuration registers, I don't know what you're talking about.

The SPI peripheral can be reconfigured between bus transactions, but this is as likely as anything confuse the devices attached to the bus.

Perhaps you can provide your configuration code so we can make sense of the question?

Tips, Buy me a coffee, or three.. PayPal Venmo
Up vote any posts that you find helpful, it shows what's working..
Posted on June 29, 2015 at 17:56

Yes You are right each SPI has its own configuration. I did not read the documentation carefully enough.