Skip to main content
Admir1
Associate
December 26, 2018
Question

My SPI in Half duplex mode is sometimes not working correctly

  • December 26, 2018
  • 0 replies
  • 636 views

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

This topic has been closed for replies.