Introduction to STM32 low power mode

Publisher:智慧启迪Latest update time:2016-09-26 Source: eefocusKeywords:STM32 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
The STM32F10xxx has three low-power modes:

●Sleep mode (Cortex?-M3 core stops, peripherals are still running)
●Stop mode (all clocks are stopped)
●Standby mode (1.8V power supply is turned off)

 

When the clock frequency is 72MHz and the code is executed from the flash memory, the STM32 consumes 36mA, which is the lowest power consumption product on the 32-bit market, equivalent to 0.5mA/MHz.

 

When powered on, the internal HSI clock 8M is used by default, which is about 10mA after testing. The standby mode can achieve the lowest power consumption of the system, and the current consumption can be reduced to two microamperes.

 

In standby mode, all I/O pins are in high impedance state, except for the following pins:
● Reset pin (always valid)
● TAMPER pin when set as anti-intrusion or calibration output
● Wake-up pin when enabled

Introduction to STM32 low power mode - ╄→ Wind, can't blow away - ╄→ Wind, can't blow away
/*Button GPIOB9 goes to sleep, WKUP pin (GPIOA0) wakes up, GPIOD3-LED flashes 200ms*/
int main(void)
{
  /* System Clocks Configuration **********************************************/
  RCC_Configuration();
 

  GPIO_Configuration();

   /* Enable PWR and BKP clock */
  RCC_APB1PeriphClockCmd(RCC_APB1Periph_PWR | RCC_APB1Periph_BKP, ENABLE);

  /* Enable WKUP pin */
  PWR_WakeUpPinCmd(ENABLE);

  /* Allow access to BKP Domain */
  PWR_BackupAccessCmd(ENABLE);

  //RTC_Configuration();

  EXIT_Configuration();

  NVIC_Configuration();

  SysTick_Config(SystemFrequency / 1000 *200 );    //200ms

  while (1)
  {
  
    Delay(0xAFFFF);

  }
}


Keywords:STM32 Reference address:Introduction to STM32 low power mode

Previous article:STM32--Simple IAP operation
Next article:STM32 serial communication

Recommended ReadingLatest update time:2024-11-15 11:16

STM32 ADC multi-channel DMA transfer
 ADC multi-channel acquisition is written based on ADC single-channel DMA transmission. The code is as follows: volatile u16 adcconverdata ={0,0}; static void ADC_GPIO_Config(void) {   GPIO_InitTypeDef  GPIO_InitStructure; RCC_APB2PeriphClockCmd(RCC_APB2Periph_GPIOA, ENABLE); GPIO_InitStructure.GPIO_Pin=GPIO_Pin_1|GPI
[Microcontroller]
STM32 TIM1 output complementary waveform
#include "stm32f10x.h" /** @addtogroup STM32F10x_StdPeriph_Examples   * @{   */ /** @addtogroup TIM_7PWM_Output   * @{   */ /* Private typedef -----------------------------------------------------------*/ /* Private define ------------------------------------------------------------*/ /* Private macro ----------------
[Microcontroller]
stm32 data storage
Big-endian mode: the high byte of data is stored in the low address of memory, and the low byte of data is stored in the high address of memory; Little-endian mode: the high byte of data is stored in the high address of memory, and the low byte of data is stored in the low address of memory; stm32 defaults to little
[Microcontroller]
STM32 uses printf to lose the first letter
The execution steps of using the printf function of STM32 to print information to the serial port are: 1. Redirecting printf function Add the following function to the uart.c file: //Redirect C library function printf to USART1 int fputc(int ch, FILE *f) {  /* Clear the TC flag in the SR register */  USART_ClearFlag(U
[Microcontroller]
STM32 uses printf to lose the first letter
STM32 study notes - use of system timer SysTick
//Cortex system timer SysTick provides a 24-bit, descending, zero-constrained, write-clear counter with a flexible control mechanism       #include  "stm32f10x_lib.h"     GPIO_InitTypeDef  GPIO_InitStructure; //Define the structure variable used to initialize and configure GPIO static  vu32  TimingDelay;
[Microcontroller]
STM32 IO input and output
Open drain output: The output terminal is equivalent to the collector of the transistor. A pull-up resistor is required to obtain a high level state. It is suitable for current-type driving and has a relatively strong ability to absorb current (generally within 20ma). The open-drain output cannot output a high level,
[Microcontroller]
STM32 firmware library naming convention
1. System file names and source file names are expressed in the form of 'stm32f10x_'. 2. Constants used in a single file are defined in that file. Constants used in multiple files are defined in header files. All constants are expressed in uppercase letters. 3. Registers are treated as constants and are also represent
[Microcontroller]
STM32 general timer
There are many types of timers in STM32, which are divided into 2 advanced controller timers, 4 ordinary timers, 2 basic timers, 2 watchdog timers, and 1 system tick timer SysTick according to their functions. The key to the timer is the calculation of the timing time. For example, when using a timer to control the
[Microcontroller]
STM32 general timer
Latest Microcontroller Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号