cancel
Showing results for 
Search instead for 
Did you mean: 

system clock configuration issue in stm32f407vg

armindavatgaran
Associate III
Posted on May 25, 2015 at 06:17

Hello

Suppose configuring system clock to 168MHz.

According to page 226 of RM0090_Rev9, it is recommended to set PLLM in a way to achieve 2MHz for VCO input frequency(e.g. 8MHz HSE with PLLM=4) in order to limit jitter and PLLN(between 192 and 432) must be set such that VCO output frequency(VCO input frequency times PLLN) doesn't exceed 432 MHz, but this two configuration will conflict.

How to solve this issue?

168 = 2 * (PLLN/PLLP) ==> PLLN=84*PLLP

PLLP>=2(e.g. 4) ==> PLLN=336 ==> (PLLN * VCO_input) = 672(not allowed)

Thanks.

 
6 REPLIES 6
Posted on May 25, 2015 at 08:13

Chose a different multiplier, e.g. 2.

JW

armindavatgaran
Associate III
Posted on May 25, 2015 at 11:44

Which multiplier do you mean?

Posted on May 25, 2015 at 11:52

PLLP (OK it's a divider rather than multiplier)

So if your PLL input clock is 2MHz, chose multiplier PLLN=168 thus PLL output is 2x168=336MHz and divider P=2 and your PLL output clock is then 168MHz.

The text in the RM under ''Caution'' may be misleading, PLLN is not restricted to 192..432, it's just the values which are allowed with 1MHz PLL input frequency.

JW

armindavatgaran
Associate III
Posted on May 25, 2015 at 14:07

The text in the RM under ''Caution'' may be misleading, PLLN is not restricted to 192..432, it's just the values which are allowed with 1MHz PLL input frequency.

 

Thanks, how did you know that?Is it right for PLLI2SN too?

Posted on May 25, 2015 at 14:51

I'll try to get somebody with more authority to answer this. Please be patient.

JW

Posted on May 25, 2015 at 16:00

Because counter chains are speed limited, the critical path in the propagation is going to break the counter somewhere above 432 MHz

The VCO is generating very rapid impulses (not 50/50 duty), it's most stable region is between 192-432 MHz. Depending on the transistor speeds of the process this may be extended, ST have validated this range over the process window and temperature, so best to stick with those. I'd expect the failure mode in the the feedback loop (division/comparison, charge pump) to result in the VCO oscillating/modulating in an undesirable fashion.

The impulse nature is why you have to divide the PLL output by two, so you get the 50/50 duty the processor needs.

Perhaps someone for ST can explain the limitations better.

Tips, buy me a coffee, or three.. PayPal Venmo Up vote any posts that you find helpful, it shows what's working..