Skip to main content
Associate III
December 5, 2024
Solved

About SPI1,2,3 CLK Config

  • December 5, 2024
  • 2 replies
  • 764 views

We are developing using STM32H743.
We want to set 100MHz for SPI1 CLK and 117kHz for SPI2,3. However, we cannot set it because of "clock tree" and "maximum divisible limit is 256".
Is there any way to achieve the above configuration?

This topic has been closed for replies.
Best answer by KDJEM.1

Hello @pass3master,

 

SPI1, SPI2, and SPI3 share the same clock source as mentioned in RM0433 Figure 51. Kernel clock distribution for SPIs and SPI/I2S. So, they have the same clock frequency.

If you want to configure different clock frequency for SPI, you can use SP1 and SPI4 for example.

KDJEM1_0-1733481126892.png

 

Thank you.

Kaouthar

2 replies

KDJEM.1
KDJEM.1Best answer
ST Technical Moderator
December 6, 2024

Hello @pass3master,

 

SPI1, SPI2, and SPI3 share the same clock source as mentioned in RM0433 Figure 51. Kernel clock distribution for SPIs and SPI/I2S. So, they have the same clock frequency.

If you want to configure different clock frequency for SPI, you can use SP1 and SPI4 for example.

KDJEM1_0-1733481126892.png

 

Thank you.

Kaouthar

To give better visibility on the answered topics, please click on "Best answer" on the reply which solved your issue or answered your question.
Associate III
December 8, 2024

Thank you for your response. We will close it now that we have clarified the specifications.