2024-10-30 07:26 PM
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?
2024-10-30 09:03 PM
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
2024-10-31 01:33 AM - edited 2024-10-31 02:22 AM
This has already been answered:
HAL_SPI_Receive() exists.
See also: