|
STM32F101功耗的问题,看了论坛的帖子,还有不明白之处望赐
[复制链接]
我的STOP模式下有3.5个MA,程序很简单,望帮我看一下,新手请见谅。。先谢谢了
RCC_APB1PeriphClockCmd(RCC_APB1Periph_ALL, DISABLE); RCC_APB1PeriphClockCmd(RCC_APB2Periph_ALL, DISABLE); RCC_APB1PeriphClockCmd(RCC_APB1Periph_PWR, ENABLE);//Enable PWR clock RCC_HCLKConfig(RCC_SYSCLK_Div1); RCC_PCLK2Config(RCC_HCLK_Div2); RCC_PCLK1Config(RCC_HCLK_Div4);
/* Select HSI as system clock source */ RCC_SYSCLKConfig(RCC_SYSCLKSource_HSI);
/* Wait till HSI is used as system clock source */ while(RCC_GetSYSCLKSource() != 0x00) { }
FLASH_PrefetchBufferCmd(FLASH_PrefetchBuffer_Disable); FLASH_SetLatency(FLASH_Latency_0);
/* Request to enter STOP mode with regulator in Low Power */ PWR_EnterSTOPMode(PWR_Regulator_LowPower, PWR_STOPEntry_WFI);
能告诉我这程序有错吗?漏了哪些地方。如果有成功的兄弟,能发个列子给我看看吗?谢谢了
|
|