初级会员

- 积分
- 54
- 金钱
- 54
- 注册时间
- 2018-4-14
- 在线时间
- 6 小时
|
1金钱
继续昨天的问题,我在选用停止模式之后,利用中断唤醒它,然后我用外部中断也就是按键中断可以正常唤醒程序从停止模式之后接着运行,但是用RTC以及TIM中断就是唤不醒,打死唤不醒,请教哪位大神帮一下小女子看看处在哪里问题
[mw_shl_code=applescript,true]int main(void)
{
//static u8 a;
// static float res1;
// uint8_t str[]="hello bay";
// static u8 cha;
// int i;
// unsigned static char DEVID_AD;
//u8 datatemp[SIZE];
RCC_Configuration();
NVIC_PriorityGroupConfig(NVIC_PriorityGroup_2);
delay_init(32);
uart_init();
LED_ALLInit();
KEY_ALLInit();
//EXTI_Key_Init();
TIM3_IT_Init(4999,3199);
//RTC_Config();
To_enter_Stop();
LD_ALLON();
//To_enter_Stop();
while(1)
{
// RTC_Config();
// delay_s(1);
// To_enter_Stop();
delay_s(1);
printf("jasdhhui\n");
}
}
[/mw_shl_code]
[mw_shl_code=applescript,true]void To_enter_Stop(void)
{
//RTC_WakeUpCmd(ENABLE);
// RTC_WakeUpCmd(ENABLE);
// RCC_APB1PeriphClockCmd(RCC_APB1Periph_PWR , ENABLE);
//
// PWR_WakeUpPinCmd(PWR_WakeUpPin_1,GPIO_Pin_0);
// /* Request Wait For Interrupt */
// PWR_EnterSTOPMode(PWR_Regulator_LowPower,PWR_STOPEntry_WFI);
RCC_APB1PeriphClockCmd(RCC_APB1Periph_PWR , ENABLE);
PWR_UltraLowPowerCmd(ENABLE);
PWR_FastWakeUpCmd(ENABLE);
PWR_EnterSTOPMode(PWR_Regulator_LowPower, PWR_STOPEntry_WFI);
}[/mw_shl_code]
RTC以及TIM中断我在之前已经验证过是对的,可以定时出发中断,但是唤醒不了停止模式
|
最佳答案
查看完整内容[请看2#楼]
参考这里:http://www.openedv.com/forum.php?mod=viewthread&tid=108920&extra=page%3D1
|