Skip to main content
yang2
Associate III
October 24, 2024
Solved

The question of setting clock multipliers and dividers

  • October 24, 2024
  • 2 replies
  • 1999 views

Dear All,

I've been using MCU/DSP-related products for over 10+ years, but I've always had some confusion about clock multipliers and dividers. I'd like to ask for everyone's opinion on this topic.

As shown as below figure (it's the clock configuration of the STM32H563), if I want the SYSCLK clock signal to be 120MHz, I can configure it as follows: CSI is the source clock (4MHz), and along the way, it passes through a divider of /1, a multiplier of x60, and then a divider of /2, resulting in a final SYSCLK of 120MHz.

/1    x60    /2

yang2_1-1729753463622.png

 

But we can also achieve a SYSCLK of 120MHz through the following configurations of multipliers and dividers.

/ 4  x240   /2    =120MHz

yang2_2-1729753525624.png

 

/2    *240    /4   = 120MHz

yang2_3-1729754189481.png

 

So, which configuration would be better?

In my thinking, it seems like it's better to minimize the multiplier and divider values as much as possible, in order to maintain the clock source closer to its original. (This implies that case 1 is better than case 2 and case 3, as it uses the smallest multiplier and divider values.)

I'm not sure if this is the correct concept, so I'd like to ask for others' opinions.

Best Regards,

This topic has been closed for replies.
Best answer by MasterT

The parameter you are hunting is called PLL / VCO jitter. Look in the data sheet, and on-line. Higher multiplier degrades specification, since VCO is running for longer period of time and drift away w/o syncing.

Jitter is more important for analog domain of the uCPU, for ADC & DAC.

I did some test on stm32G474re where I observed improvement in ADC performance sampling high frequency input signal when PLL configured for smallest N /M factors

2 replies

Andrew Neil
Super User
October 24, 2024

@STTwo-32  I think this would be a good topic for an Application Note and/or a Knowledge Base article!

A complex system that works is invariably found to have evolved from a simple system that worked.A complex system designed from scratch never works and cannot be patched up to make it work.
MasterT
MasterTBest answer
Lead II
October 24, 2024

The parameter you are hunting is called PLL / VCO jitter. Look in the data sheet, and on-line. Higher multiplier degrades specification, since VCO is running for longer period of time and drift away w/o syncing.

Jitter is more important for analog domain of the uCPU, for ADC & DAC.

I did some test on stm32G474re where I observed improvement in ADC performance sampling high frequency input signal when PLL configured for smallest N /M factors