How to output CLK for receive-only (master) in SPI communication
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-30 7: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?
- Labels:
-
STM32F4 Series
-
STM32H7 Series
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-30 9: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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2024-10-31 1:33 AM - edited ‎2024-10-31 2:22 AM
This has already been answered:
HAL_SPI_Receive() exists.
See also:
A complex system designed from scratch never works and cannot be patched up to make it work.
