[STM32F4] stm32f407低功耗

[复制链接]
1956|4
 楼主| mnh12232 发表于 2017-1-4 17:33 | 显示全部楼层 |阅读模式
我用的最小系统  程序如下
进入main直接 就进入STOP模式


    RCC_APB2PeriphClockCmd(RCC_AHB1Periph_GPIOA | RCC_AHB1Periph_GPIOB |   
                       RCC_AHB1Periph_GPIOC | RCC_AHB1Periph_GPIOD|RCC_AHB1Periph_GPIOE|
        RCC_AHB1Periph_GPIOF|RCC_AHB1Periph_GPIOG|RCC_AHB1Periph_GPIOH ,ENABLE);  


GPIO_InitStructure.GPIO_Pin = GPIO_Pin_All;  
GPIO_InitStructure.GPIO_Speed = GPIO_Speed_50MHz;     
GPIO_InitStructure.GPIO_Mode = GPIO_Mode_AN;
GPIO_InitStructure.GPIO_OType = GPIO_OType_PP;
        GPIO_InitStructure.GPIO_PuPd = GPIO_PuPd_NOPULL;

GPIO_Init(GPIOA, &GPIO_InitStructure);   
GPIO_Init(GPIOB, &GPIO_InitStructure);   
GPIO_Init(GPIOC, &GPIO_InitStructure);   
GPIO_Init(GPIOD, &GPIO_InitStructure);
GPIO_Init(GPIOE, &GPIO_InitStructure);   
GPIO_Init(GPIOF, &GPIO_InitStructure);   
GPIO_Init(GPIOG, &GPIO_InitStructure);
GPIO_Init(GPIOH, &GPIO_InitStructure);

PWR_EnterSTOPMode(PWR_Regulator_LowPower, PWR_STOPEntry_WFI);   


电流高达8ma!!!搞不定 有人遇到过吗?
 楼主| mnh12232 发表于 2017-1-4 17:34 | 显示全部楼层
最后一句换成standby
  直接 就变成3ua电流了,,,不知道为什么差距这么大   求解答
 楼主| mnh12232 发表于 2017-1-4 17:35 | 显示全部楼层
呼叫下香城主
 楼主| mnh12232 发表于 2017-1-5 10:51 | 显示全部楼层
怎么没人遇到这个情况???
 楼主| mnh12232 发表于 2017-1-5 11:17 | 显示全部楼层
额,自己粗心了,,直接把别人103的低功耗的程序复制过来的,,,第一行RCC_APB2PeriphClockCmd  命令给错了!!!乌龙乌龙   407的应该是AHP1 晕死  自己把自己搞死了。。。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

2

主题

20

帖子

2

粉丝
快速回复 在线客服 返回列表 返回顶部