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.
工具与软件:
VREF 设置为 SYSCFG。
在进入待机模式之前、需要关闭 VREF 模块以节省功耗。
代码如下:
{
DL_VREF_disablePower (VREF);
CheckTimer = false;
NVIC_EnableIRQ (TIMER_0_INST_INT_IRQN);//1s 计时器
DL_TimerG_startCounter (TIMER_0_INST);
// DL_SYSCTL_setPowerPolicySTOP2 ();//测试550ua 电流
DL_SYSCTL_setPowerPolicySTANDBY0 ();//测试200ua 电流
while (false == CheckTimer){
__ WFE ();
}
上述代码的待机电流约为200ua。
但是、如果未在 SYSCFG 上设置(删除) VREF、 待机电流仅为5uA。
DL_VREF_disablePower (VREF)似乎无法正常工作。
我是否错过了一些编码?