13.3.2 Changing System Frequencies
After ROM code execution, the system clock is set as follows:
- MAINCK is fed by the main RC oscillator i.e., 12 MHz.
- PLLA is set to 1.2 GHz.
- CPU_CLK is set to 600 MHz.
- MCK is set to 200 MHz.
This is illustrated in the following figure.
To avoid any overclocking during system clock modification, it is recommended to change system frequencies in two steps.
The first step leads to a known and basic intermediate state where all clocks are in a low-frequency range.
For example, the following sequence can be performed:
- Set MCK to MAINCK, i.e., 12 MHz.
- Set MAINCK to Crystal Oscillator, typically 24 MHz. MCK then runs at 24 MHz.
This intermediate state is illustrated in the following figure.
The second step leads to the final expected state.
Perform the following sequence:
- Set PLL to 1.6 GHz, and so PLLACK to 800 MHz.
- Set CPU_CLK to 800 MHz.
- Set MCK to CPU_CLK/3, i.e., 266 MHz.
The final state is illustrated in the following figure.