Scaling the CPU Frequency Down to 200 MHz

The AM13E230X SDK defaults to 250 MHz as the MCLK (CPU clock) frequency. This tutorial explains how to reconfigure the SYSPLL to target 200 MHz instead, using either the SysConfig GUI or a direct edit of the generated C code.


Background: Clock Tree Overview

The 250 MHz CPU clock is derived from the on-chip SYSPLL fed by the 32 MHz SYSOSC:

SYSOSC (32 MHz)
    └─> SYSPLL (PDIV, QDIV)
            └─> fVCO = SYSOSC / PDIV × QDIV
                    └─> SYSPLLCLK0 = fVCO / RDIVCLK0_DIV
                                └─> HSCLK = SYSPLLCLK0 / EXTDIVMCLK
                                        └─> MCLK = HSCLK  (CPU clock)

Current 250 MHz configuration (SDK default):

SysConfig SYSCTL panel showing the default 250 MHz SYSPLL configuration

Update Via SysConfig

Update SysConfig to regenerate all clock-dependent values (e.g. inputFreq range, semi-MCLK, quarter-MCLK) automatically.

  1. Open your project’s .syscfg file in SysConfig.

  2. In the left panel, select SYSCTL.

  3. Expand the SYSPLL under Clock Configuration->Oscillators group.

  4. Change SYSPLL Predivider (PDIV) from Divide by 8 to Divide by 2.

  5. Change SYSPLL Feedback Divider (QDIV) from 125 to 25.

  6. Verify the displayed frequencies:

    • SYSPLL Input Freq (fLOOPIN): 16 MHz

    • Calculated PLL VCO Freq: 400 MHz

    • SYSPLLCLK0 Output Freq: 200 MHz

    • MCLK Frequency: 200 MHz

  7. Save the .syscfg file and rebuild project.

Note

Flash read wait states are updated automatically. SysConfig generates DL_FRI_setReadWaitStates(0x3) for MCLK ≤ 200 MHz, down from 0x4 at 250 MHz. No manual change is needed. See the Flash wait states reference for the full frequency-to-wait-state mapping.

The SYSPLL panel should now match the screenshot below:

SysConfig SYSCTL panel after updating to 200 MHz