I am working on a project that requires STM8L and BC26. To connect to the server after a long disconnection and send the current status, I need to use the low power consumption of STM8L and BC26.
STM8L has low power consumption, so HALT mode is used here, and RTC wakes up at a specified time.
The first step is to turn off all peripherals, set all pins to output, and output low. Set the pins according to the specific environment, and output high level if necessary. After turning off the peripherals, you need to _DeInit first, and then turn off the peripherals. It is important to clear all interrupt flags when entering halt mode, otherwise the RTC wake-up will not work.
The second step is to set some low power configurations.
After the third step configuration is completed, it will enter low power consumption.
The project needs to use external high-speed clock and BC26 communication, so when entering and exiting halt mode, it is necessary to reinitialize the clock and peripherals in active mode. When low power consumption is required, configure it to low power consumption configuration. In this way, switching configurations back and forth can achieve low power consumption. After testing, the low power consumption current is: 10uA.
Previous article:STM8l151 low power program architecture, debugging experience
Next article:stm8l low power series
Recommended ReadingLatest update time:2024-11-16 18:08
- Popular Resources
- Popular amplifiers
- C Language Programming Tutorial (2nd Edition) (Li Hanguang, Zheng Guansheng)
- Microcontroller Principles and Applications Tutorial (2nd Edition) (Zhang Yuanliang)
- Introduction to MCU development and typical design examples
- A selectable-bandwidth 3.5mW, 0.03mm² self-oscillating Sigma Delta modulator...
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- Power module viewing operation
- NUCLEO-G431RB review -> ADC basic configuration (without oversampling)
- Design of Phase Detection Broadband Frequency Measurement System Based on FPGA
- EEWORLD University Hall----Challenges and solutions for ultrasonic water and gas meter design
- Wi-Fi 6E FEM, unleashing the full performance of the 6GHz band
- New uses for old mobile phones (7) - Automatically start the server when the phone is turned on
- [Perf-V Evaluation] Development Board Circuit Analysis and Xilinx Software Trial
- Tantalum capacitor burns out
- Some simple and common rules for PCB layout
- EEWORLD University Hall----Unix Operating System