2023-03-09 03:31 AM
Using the PLL generated system clock frequency, it is possible to generate the same output frequency with many different pre-divider, Multiplier and post divider constant combinations. How can I determine combination is best for stability or lowest power operation. I assume keeping the PLL osc output frequency as low as possible would keep the current consumption at a minimum. Any guidance or helpful tips /application notes. Using F0, G0, C0 and G4 series CPUs
2023-03-09 05:00 AM
Usually it comes down to the preferred comparison frequency range, and the most stable operating region of the VCO pulse generation.
On the F2/F4 this was 1-2 MHz and 200-400 MHz.
You always need to divide the VCO down by a power of 2 to get 50/50 duty cycle square waves to clock the MCU
2023-03-09 05:10 AM
Ok, thanks Tesla, Just asked stm32CubeMX (V6.8) to do it and its given PLLM= div1, N=x9, /R=div3 for HSI16. on G031
2023-03-09 05:11 AM
for 48MHZ
2023-03-09 05:51 AM
For some families' PLL, there may be some preferential setting, e.g. for 'F4:
For 'G0, there may be no such stated preference, I did not search. In that case, any combination which obeys the limits for PLL's VCO and dividers, given in DS, will do.
Note, that PLL is to large extent analog and such preferences change from family to family because of different technologies and PLL component designs used, so such preferences are not transferrable.
PLL settings may also influence current consumption, within limits given for the PLL module.
JW
2023-03-12 01:54 PM
A general note... With everything else being equal, one should strive to minimize the numeric values of all multipliers and dividers.