2017-07-26 08:30 AM
Hi All,
I'm using STM32L486RG microcontroler and 2 sensors using the same SPI interface (SPI1)
I'm asking how to configure the SPI1 to communicate with 2 sensors when :
Is it possible to communicate with both of them using the same SPI configuration ?
Thanks a lot.
Ghada
#spi #stm32l4-spi #spi-clkphase #stm32l42017-07-26 09:16 AM
No.
To change from one sensor to the other, you need to disable SPI by clearing SPI_CR1.SPE, change CPOL/CPHA configuration, and then reenable SPI_CR1.SPE.
JW