●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
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);
}
}
Previous article:STM32--Simple IAP operation
Next article:STM32 serial communication
Recommended ReadingLatest update time:2024-11-15 11:16
- Popular Resources
- Popular amplifiers
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Pickering Launches New Future-Proof PXIe Single-Slot Controller for High-Performance Test and Measurement Applications
- Apple faces class action lawsuit from 40 million UK iCloud users, faces $27.6 billion in claims
- Apple faces class action lawsuit from 40 million UK iCloud users, faces $27.6 billion in claims
- The US asked TSMC to restrict the export of high-end chips, and the Ministry of Commerce responded
- The US asked TSMC to restrict the export of high-end chips, and the Ministry of Commerce responded
- ASML predicts that its revenue in 2030 will exceed 457 billion yuan! Gross profit margin 56-60%
- Detailed explanation of intelligent car body perception system
- How to solve the problem that the servo drive is not enabled
- Why does the servo drive not power on?
- What point should I connect to when the servo is turned on?
- stm8
- Grab and run! EPOS implementation in unmanned retail stores
- EEWORLD University Hall----Introduction to Isolation Topology
- Please recommend a single chip analog to PWM solution
- CC3200 module first article - wlan_ap routine test
- Single-supply applications
- Share a problem of MOS tubes being frequently damaged.
- A summary of DIY blood oximeters. It is really rewarding to read it.
- CMOS Analog Integrated Circuit Design and Simulation.pdf
- How to enter debugging without hardware in MDK5