3023 views|2 replies

3191

Posts

0

Resources
The OP
 

Problems with STM32F103C8T6 shutdown mode [Copy link]

I've been working on low power consumption recently, and started using sleep mode, but it's not very good. Now I'm working on shutdown mode. I've never done this before, so I'm posting to ask about it, so I can feel at ease. This is what I did in my program: Initialization: Stm32_Clock_Init(2);CPU_Init(); //CPU initialization VAR_Init(); //Variable initialization usart1_init(9600); NVIC_Init10(); /* Enable PWR and BKP clock */ RCC_APB1PeriphClockCmd(RCC_APB1Periph_PWR | RCC_APB1Periph_BKP, ENABLE); /* Allow access to BKP Domain */ PWR_BackupAccessCmd(ENABLE); Enter stop mode: PWR_EnterSTOPMode(PWR_Regulator_LowPower,PWR_STOPEntry_WFI); When waking up, I did this: void EXTI3_IRQHandler(void) { long int i; if(EXTI_GetITStatus(EXTI_Line3)!=RESET) //Rise { Stm32_Clock_Init(2); //16MHz GPIO_ResetBits(GPIOA,GPIO_Pin_12); //The light is on. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Stm32_Clock_Init(2); This is to reconfigure the clock. May I ask an expert, is my configuration correct? Thank you!


This post is from stm32/stm8

Latest reply

You can consider replacing it with Lingdongwei's MM32F103C8T6, and provide original technical support~~  Details Published on 2019-3-8 10:11
Personal signature为江山踏坏了乌骓马,为社稷拉断了宝雕弓。
 

1368

Posts

6

Resources
2
 
1) I have never tried the deep sleep mode of 103. 2) Based on the development experience of other MCUs, you may have just woken up the MCU, but did not initialize the related peripherals. 3) Other MCUs usually wake up the MCU in the place where it is sleeping, so the code after wakeup is done immediately below the sleep program segment, such as initializing related IO and related peripherals. 4) I can only help you here. When I have time, I will also study STM32F103 carefully.
This post is from stm32/stm8
 
Personal signature专注智能产品的研究与开发,专注于电子电路的生产与制造……QQ:2912615383,电子爱好者群: void
 

935

Posts

1

Resources
3
 
You can consider replacing it with Lingdongwei's MM32F103C8T6, and provide original technical support~~
This post is from stm32/stm8
 
Personal signature存储芯片/MCU/SRAM/PSRAM/DDR/FLASH/MRAM。web.www.sramsun.com  QQ3161422826 TEL:13751192923
 

Guess Your Favourite
Just looking around
Find a datasheet?

EEWorld Datasheet Technical Support

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京B2-20211791 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号
快速回复 返回顶部 Return list