Skip to main content
JGu.2
Visitor II
August 3, 2022
Question

STM32F407 - Question of how to use 3-wire SPI

  • August 3, 2022
  • 2 replies
  • 2456 views

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!

This topic has been closed for replies.

2 replies

S.Ma
Principal
August 3, 2022

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
Super User
August 3, 2022

[wrong thread, cannot delete, sorry]