Many things in life are powered by microcontrollers, and a considerable number of devices, instruments, and products rely on batteries for power supply. Often, these devices, instruments, and products powered by batteries can be used for a long time. For example, if the MCU of the remote control we often use keeps running, the battery energy will be exhausted in a short period of time. Of course, in the system equipped with NuMicro M051 series microcontrollers, not only the microcontroller needs to consume power, but also other peripheral components. Therefore, we shut down the operation of the equipment at the appropriate time and put the operation mode of the NuMicro M051 series microcontroller into idle mode or power-off mode to save unnecessary energy and achieve the purpose of low power consumption.
Normally, the current of the NuMicro M051 series microcontroller is 4 mA to 7 mA when it is in normal operation; when it enters the power-down mode, its operating current is less than 1 micro ampere. Therefore, it is necessary to control the power consumption of low-power devices and put them in the power-down mode at the appropriate time. At the same time, the operating frequency of the MCU based on the ARM Cortex-M0 core can reach 50MHz, and the minimum operating frequency is 4MHz. When conditions permit, the MCU does not need to run at 50MHz.
When the MCU enters the idle mode, except for the CPU in the dormant state, all other hardware is in the active state. The data in the data memory and special function registers not involved in the program in the chip will keep the original value during the idle mode. But if the timer is running, the value in the counter register will increase. The MCU can be awakened by any interrupt or hardware reset in the idle mode. It should be noted that when the interrupt is used to wake up the MCU, the program will continue to run from the original stop point. When the hardware reset is used to wake up the MCU, the program will start from the beginning.
When the MCU enters power-down mode, the external crystal oscillator stops, the CPU, timer, and serial port all stop working, and only the external interrupt continues to work. The instruction that puts the MCU into sleep mode will be the last instruction executed by the MCU before sleep. After entering sleep mode, the data in the data memory and special function registers not involved in the program in the chip will maintain the original value. The MCU can be awakened by an external interrupt low level trigger, a falling edge trigger interrupt, or a hardware reset mode. It should be noted that when the MCU is awakened by an interrupt, the program continues to run from the original stop point. When the MCU is awakened by a hardware reset, the program will start from the beginning.
Previous article:19.5 System Reset
Next article:19.3 Hex Files
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
- How to use a computer
- [DIY] Transform electric car lights into 5V mobile power supply
- IIC control of DSP
- Can the master device send data to the slave device?
- What does the internal structure of this chip mean? Any experts passing by, please come in and give me some advice, please!!!
- 【AT32F421 Review】+RTC Electronic Clock
- CapTIvate capacitive touch sensing microcontrollers
- MES server and finished product marking machine control instructions
- [Synopsys IP Resources] AI+ML brings the long-running battle of chip verification to an end ahead of schedule
- Calculation method of maximum power handling of LTCC low-pass filter