2018-12-26 02:12 PM
Hello, I am new to STM32F0xx device. I have a 3-wire SPI sensor (half duplex mode SDI/SDO).
I have created spi_init(), spi_write() and spi_read(). It working but sometimes I get some timing errors where my CS goes high correctly but I am still outputting clocks.(see waveform)
I basically tx_read command byte, then I switch over the rx mode and receive 1 byte of data.
Any help is greatly appreciated.
Thank you
-Admir