《线程》中讨论的其他部件:MSP432P411V
我使用的是 MSP432P411V,而不是 E 部件。 为了降低功耗,我希望以低于默认48MHz 的速率运行 CPU—可能是24 MHz,甚至是14MHz。 如何执行此操作?
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
我使用的是 MSP432P411V,而不是 E 部件。 为了降低功耗,我希望以低于默认48MHz 的速率运行 CPU—可能是24 MHz,甚至是14MHz。 如何执行此操作?
据我所知,P411x 系列(如 P401R)以 MCLK=DCO=3MHz (DCORLSE=1)启动。
我需要更改初始化 PerfLevel
PowerMSP432_PerfLevel myPerfLevels[]=
{
{
.ActiveState = PCM_AM_DCDCD_VCORE0,
VCORE =0,
时钟源= CS_DCOCLK_SELECT,
DCORESEL = CS_DCO_TUNE_FREQ,
.tuneFreqDCO = 8000000,
.SELM = CS_DCOCLK_SELECT,
.DIVM = CS_CLOCK 分隔符_1,
小轮= CS_DCOCLK_SELECT,
DIVHS = CS_CLOCK 分隔器_1,
divs = CS_clock 分隔符_1,
.SELB = CS_REFOCLK_SELECT,
拉美经济体系= CS_REFOCLK_SELECT,
.dIVA = CS_clock 分隔符_1,
.flashWaitStates = 0,
.enableFlashBuffer =真,
.MCLK = 80000,
HSMCLK =80000,
.SMCLK =8000000,
BCLK = 32768,
.ACLK = 32768,
}
};
错误1
const PowerMSP432_ConfigV1 PowerMSP432_config ={
policyInitFxn =&PowerMSP432_initPolicy,
policyfxn =&PowerMSP432_deepSleep 策略,
.initialPerfLevel = 4,
.enablePolicy =真,
.enablePerf =真,
.enableParking = true,
.customPerfLevels = myPerfLevels,
.numCustom = sizeof(myPerfLevels)/ sizeof(PowerMSP432_PerfLevel),
useExtendedPerf = true,
.enableInterruptsCS =真,
.priorityInterruptsCS =~0,
.isrCS = 0,
};
#else
const PowerMSP432_ConfigV1 PowerMSP432_config =
{
policyInitFxn =&PowerMSP432_initPolicy,
policyfxn =&PowerMSP432_deepSleep 策略,
.initialPerfLevel = 0,
.enablePolicy =真,
.enablePerf =真,
.enableParking =真
};
#endif