2019-03-01 10:30 PM
Hi,
i am using stm32f103 spi read write
i have application ic connected to this MCU
is it possible to use write on rising egde and read on falling edge for spi communication?
currently i am doing both on rising edge
so, write now my write is ok but while reading the data it gives a different value
I am using bidirectional mode
thanks
2019-03-02 12:17 AM
If using SPI 3 wires (data is either input or output), you can try to change the CPHA/CPOL when SPI is Idle (BUSY bit) before generating SCK clock to move data bits. On newer SPI IP versions such as STM32L4 or F7, you can also change the data bit length from 4 up to 16 bits and 32 bit FIFOs are integrated to smooth the transmission.