cancel
Showing results for 
Search instead for 
Did you mean: 

My SPI in Half duplex mode is sometimes not working correctly

Admir1
Associate II

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

0 REPLIES 0