Skip to main content
Explorer
December 5, 2024
Solved

About SPI1,2,3 CLK Config

  • December 5, 2024
  • 1 reply
  • 730 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

    1 reply

    KDJEM.1Answer
    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

    Explorer
    December 8, 2024

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