Skip to main content
Explorer
October 31, 2024
Question

How to output CLK for receive-only (master) in SPI communication

  • October 31, 2024
  • 2 replies
  • 808 views

How to output CLK for receive-only (master) in SPI communication
We want to create a receive-only (master) in SPI communication.
However, SPI_CLK is not generated.
In the case of a transmit-only (master), I think that CLK will be generated if CLK is enabled when transmitting with HAL_SPI_TransmitReceive,
but in the case of a receive-only (master), how do you output CLK?
Will CLK be generated automatically if I call HAL_SPI_Receive?

    This topic has been closed for replies.

    2 replies

    Graduate II
    October 31, 2024

    Hi,

    SPI is full-duplex. Except for a couple of odd single wire modes.

    I don't use HAL. However, HAL_SPI_TransmitReceive() is the function you need to use...

    Kind regards
    Pedro