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):
Update Via SysConfig
Update SysConfig to regenerate all clock-dependent values
(e.g. inputFreq range, semi-MCLK, quarter-MCLK) automatically.
Open your project’s
.syscfgfile in SysConfig.In the left panel, select SYSCTL.
Expand the SYSPLL under Clock Configuration->Oscillators group.
Change SYSPLL Predivider (PDIV) from
Divide by 8toDivide by 2.Change SYSPLL Feedback Divider (QDIV) from
125to25.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
Save the
.syscfgfile 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: