Skip to main content
yang2
Associate III
September 12, 2024
Solved

Clock configuration question

  • September 12, 2024
  • 1 reply
  • 691 views

Dear Sir,

When I configure the clock for the STM32H5, I found that the CPU Clock doesn't match the actual result of the dividers. For example, in the figure showing my current configuration, considering the red path, my clock source is from HSI (64/2 MHz), then it goes through a divider (/2), a multiplier (x31), and another divider (/2). The SYSCLK should be 248MHz, not 250MHz. Is 250MHz just an approximation? Could this cause any discrepancies, such as in the Timer counting?

When designing my system, should I use the actual value of 248MHz instead of 250MHz?

yang2_0-1726111035715.png

 

 

    Best answer by yang2

    Hi all, 

    I have already found the cause. It was because the PLL was set to fractional mode, and the fractional value was set to 2048. We can find the description on RM0481

    yang2_0-1726122166064.png

    yang2_1-1726122223836.png

     

    1 reply

    yang2
    yang2AuthorBest answer
    Associate III
    September 12, 2024

    Hi all, 

    I have already found the cause. It was because the PLL was set to fractional mode, and the fractional value was set to 2048. We can find the description on RM0481

    yang2_0-1726122166064.png

    yang2_1-1726122223836.png