cancel
Showing results for 
Search instead for 
Did you mean: 

STM32F407 - Question of how to use 3-wire SPI

JGu.2
Associate

Hi,

My slave device has only one bidirectional data line. Now I want to configure the SPI in the half-duplex mode. And I noticed that the reference manual gave an descripiton of 1 clock and 1 bidirectional data wire.

0693W00000QMnKhQAL.pngI want to ask if ST has peripheral libraraies for this or provide routine demo.

Thanks a lot!

2 REPLIES 2
S.Ma
Principal

Unless the spi has been improved, avoid this mode. Use 4 wire spi, short miso and mosi externally, and turn mosi as input when needed. Once this works, nothing prevents you from trying above feature. Step by step.

KnarfB
Principal III

[wrong thread, cannot delete, sorry]