.. _pllctl: PLLCTL ============ Overview -------- **pllctl** The pllctl driving example project of PLL controller shows that the frequency division coefficient of the system clock source is configured through the PLL controller in different modes to achieve the purpose of stabilizing the main frequency, frequency division or frequency doubling of the system. - In the example code, the PLL controller logic is realized by configuring the reference clock frequency division coefficient, feedback frequency division coefficient, post frequency division coefficient, etc - PLL setting is realized by configuring two working modes of PLL, namely **integer mode** and **decimal mode** - Set the system frequency from **380000000 Hz to 8400000000 Hz** to show the actual deviation from the expected dominant frequency Board Setting ------------- - No special settings Running the example ------------------- When the project runs correctly, the serial port terminal will output the following information: .. code-block:: console PLLCTL example Now configure PLL at integer mode Update PLL0 to 380000000Hz @integer mode Actual f = 372000000Hz Update PLL0 to 400000000Hz @integer mode Actual f = 396000000Hz Update PLL0 to 420000000Hz @integer mode Actual f = 420000000Hz Update PLL0 to 440000000Hz @integer mode Actual f = 432000000Hz Update PLL0 to 460000000Hz @integer mode Actual f = 456000000Hz Update PLL0 to 480000000Hz @integer mode Actual f = 480000000Hz Update PLL0 to 500000000Hz @integer mode Actual f = 492000000Hz Update PLL0 to 520000000Hz @integer mode Actual f = 516000000Hz Update PLL0 to 540000000Hz @integer mode Actual f = 540000000Hz Update PLL0 to 560000000Hz @integer mode Actual f = 552000000Hz Update PLL0 to 580000000Hz @integer mode Actual f = 576000000Hz Update PLL0 to 600000000Hz @integer mode Actual f = 600000000Hz Update PLL0 to 620000000Hz @integer mode Actual f = 612000000Hz Update PLL0 to 640000000Hz @integer mode Actual f = 636000000Hz Update PLL0 to 660000000Hz @integer mode Actual f = 660000000Hz Update PLL0 to 680000000Hz @integer mode Actual f = 672000000Hz Update PLL0 to 700000000Hz @integer mode Actual f = 696000000Hz Update PLL0 to 720000000Hz @integer mode Actual f = 720000000Hz Update PLL0 to 740000000Hz @integer mode Actual f = 732000000Hz Update PLL0 to 760000000Hz @integer mode Actual f = 756000000Hz Update PLL0 to 780000000Hz @integer mode Actual f = 780000000Hz Update PLL0 to 800000000Hz @integer mode Actual f = 792000000Hz Update PLL0 to 820000000Hz @integer mode Actual f = 816000000Hz Now configure PLL at fraction mode Update PLL0 to 380000000Hz @fraction mode Actual f = 379999999Hz Update PLL0 to 400000000Hz @fraction mode Actual f = 399999999Hz Update PLL0 to 420000000Hz @fraction mode Actual f = 420000000Hz Update PLL0 to 440000000Hz @fraction mode Actual f = 439999999Hz Update PLL0 to 460000000Hz @fraction mode Actual f = 459999999Hz Update PLL0 to 480000000Hz @fraction mode Actual f = 480000000Hz Update PLL0 to 500000000Hz @fraction mode Actual f = 499999999Hz Update PLL0 to 520000000Hz @fraction mode Actual f = 519999999Hz Update PLL0 to 540000000Hz @fraction mode Actual f = 540000000Hz Update PLL0 to 560000000Hz @fraction mode Actual f = 559999999Hz Update PLL0 to 580000000Hz @fraction mode Actual f = 579999999Hz Update PLL0 to 600000000Hz @fraction mode Actual f = 600000000Hz Update PLL0 to 620000000Hz @fraction mode Actual f = 619999999Hz Update PLL0 to 640000000Hz @fraction mode Actual f = 639999999Hz Update PLL0 to 660000000Hz @fraction mode Actual f = 660000000Hz Update PLL0 to 680000000Hz @fraction mode Actual f = 679999999Hz Update PLL0 to 700000000Hz @fraction mode Actual f = 699999999Hz Update PLL0 to 720000000Hz @fraction mode Actual f = 720000000Hz Update PLL0 to 740000000Hz @fraction mode Actual f = 739999999Hz Update PLL0 to 760000000Hz @fraction mode Actual f = 759999999Hz Update PLL0 to 780000000Hz @fraction mode Actual f = 780000000Hz Update PLL0 to 800000000Hz @fraction mode Actual f = 799999999Hz Update PLL0 to 820000000Hz @fraction mode Actual f = 819999999Hz PLL0 ss has been enabled PLLCTL example finished