我自己的板子,只焊了一个mcu和外部晶振,全速运行功耗在9ma,standby模式功耗在8ua,这两个都还算正常,但是stop模式功耗在1.8ma左右,跟手册描述相差太大,代码就是官方的例程,上电配置个RTC就进stop模式
while(1)
{
/* Insert 5 second delay */
Delay(500);
/* Set alarm in 5s */
RTC_AlarmConfig();
/* LEDs Off */
STM_EVAL_LEDOff(LED1);
STM_EVAL_LEDOff(LED2);
STM_EVAL_LEDOff(LED4);
/* Request to enter STOP mode with regulator in low power mode */
PWR_EnterSTOPMode(PWR_Regulator_LowPower, PWR_STOPEntry_WFI);
/* LED1 On */
STM_EVAL_LEDOn(LED1);
/* Disable the RTC Alarm interrupt */
RTC_ITConfig(RTC_IT_ALRA, DISABLE);
RTC_AlarmCmd(RTC_Alarm_A, DISABLE);
/* Configures system clock after wake-up from STOP */
SYSCLKConfig_STOP();
}
}
|