cancel
Showing results for 
Search instead for 
Did you mean: 

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

pass3master
Associate III

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?

2 REPLIES 2
PGump.1
Senior III

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

AI = Artificial Intelligence, NI = No Intelligence, RI = Real Intelligence.