Analysis of low-power standby mode and power-down mode of single-chip microcomputer

Publisher:guqian999Latest update time:2020-06-09 Source: eefocusKeywords:MCU Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

In a battery-powered system, sometimes in order to reduce battery power consumption, it is necessary to use low-power mode when the program is not running. There are two types of low-power modes: standby mode and power-off mode.


The low power mode is controlled by the power control register PCON, which we mentioned in the previous lesson. The power control register is an 8-bit register defined bit by bit. Its format is as follows


PCON is mainly a special register set for power control of CHMOS type microcontroller. The unit address is 87H and its structure format is as follows:

PCON Power Management Register Structure

PCOND7D6D5D4D3D2D1D0 bit sign SMOD

GF1GF0PDIDL

PCON flag bit description:

In CHMOS type microcontrollers, except for the SMOD bit, all other bits are dummy. SMOD is the serial port baud rate multiplication bit. When SMOD = 1, the serial port baud rate is doubled. The system reset defaults to SMOD = 0.

Analysis of low-power standby mode and power-down mode of single-chip microcomputer

Definition of each bit: SMOD: This bit is related to serial port communication.

SMOD=0; When serial port mode is 1, 2, 3, the baud rate is normal.

SMOD=1; When serial port mode is 1, 2, or 3, the baud rate is doubled.

GF1, GF0: Two general working flags that users can use freely.

PD: Power-down mode setting bit.

PD=0 The microcontroller is in normal working state.

PD=1 The MCU enters the Power Down mode and can be awakened by an external interrupt or hardware reset mode. After entering the Power Down mode, the external crystal oscillator stops oscillating, the CPU , timer , and serial port all stop working, and only the external interrupt works.

IDL: Idle mode setting bit.

IDL=0 The microcontroller is in normal working state.

IDL=1 The MCU enters the idle mode. Except for the CPU, all other parts continue to work. In the idle mode, it can be awakened by any interrupt or hardware reset.

SMOD is the baud rate multiplication bit used in serial communication. GF1 is the general flag bit 1 and GF0 is the general flag bit 0. PD is the power-down mode bit. PD=1 enters the power-down mode. IDL is the standby mode bit. IDL=1 enters the standby mode. In other words, as long as an instruction is executed to make the PD bit or IDL bit 1, then how does the microcontroller enter or exit the power-down working mode and standby working mode? Let's introduce it.


1 Standby mode

Entering standby mode

When the instruction is used to make the IDL of the PCON register = 1, the system enters the standby mode. At this time, the CPU stops working, but the clock signal is still provided to the RAM, timer, interrupt system and serial port. At the same time, the stack pointer SP, program counter PC, program status word PSW, accumulator ACC and all general registers are frozen. The current consumption of the microcontroller is reduced from 24mA to 3.7mA, which can save power consumption.


Exiting standby mode

To exit the standby mode, you can introduce an interrupt and arrange a RETI instruction in the interrupt program. We don't know what an interrupt is yet. Of course, it doesn't matter. In fact, the standby mode is similar to the sleep mode when we use the computer.


2 Power-off mode

Entering standby mode

When the instruction is used to make the PD of the PCON register = 1, the power-down mode is entered. At this time, all operations of the microcontroller stop, and only the data in the internal RAM is retained. In the power-down mode, the power supply can be reduced to 2V and the power consumption is only 50uA. At this time, the display and hard disk are also turned off.


Exiting standby mode

The only way to exit the power-down mode is to reset. However, the reset should be performed after the power supply voltage returns to normal. The reset time should be greater than 1mS. The power supply voltage cannot be reduced before entering the power-down mode. Therefore, a reliable microcontroller circuit is better to have a power detection circuit. Obviously, the power-down mode and the standby mode are two different low-power working modes. The former can reduce power consumption when there is no external event trigger, while the latter is used when the program stops running.


KEIL MCU C language standby mode implementation:

PCON=0X02; //MCU enters standby mode (power-down mode)

Keywords:MCU Reference address:Analysis of low-power standby mode and power-down mode of single-chip microcomputer

Previous article:Analysis of the process of reading and writing data in single chip EEPROM
Next article:Blood Glucose Monitor Solution Based on C8051 MCU

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

51 single chip microcomputer uses ec11 rotary encoder digital tube display
#include reg51.h #define GPIO_DIG P0 unsigned char code DIG_CODE ={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f};//Display the value of 0~9 int tmp = 1; #define uchar unsigned char sbit BB = P1^0;//Connect to encoder A end sbit AA = P1^1;//Connect to encoder B end void delayms(uchar count) {         uchar i,j;  
[Microcontroller]
Control design of CNC machine tools based on 89C51 and 89C52 microcontrollers
1 Introduction In CNC machine tools, manual operation panels are always indispensable. Its characteristics are: 1. Some input quantities are mutually exclusive and misoperation is not allowed. The requirements are guaranteed by mechanical interlocking relationships; 2. Key on/off Use levels to trigger different states
[Microcontroller]
Control design of CNC machine tools based on 89C51 and 89C52 microcontrollers
Several Precise Timing Programming Methods for Single Chip Microcomputer Timing Interrupt
Introduction: The interrupt response delay time of the MCS-51 microcontroller depends on whether other interrupt service routines are in progress, or on what instruction is being executed. The interrupt response time in a single interrupt system is 3 to 8 machine cycles . Regardless of the cause of the error, their im
[Microcontroller]
What is the function of pull-up and pull-down resistors in microcontrollers?
A pull-up resistor pulls an uncertain signal to a high level through a resistor. At the same time, this resistor also plays a current limiting role. A pull-down resistor pulls the signal to a low level. For example, when our IO is set to open-drain output high level or high impedance state, the default level is unce
[Microcontroller]
What is the function of pull-up and pull-down resistors in microcontrollers?
Design of SPI Communication of PIC Microcontroller
#include #define uchar unsigned char #define uint unsigned int #define cs RC2 #define dout RC4 #define nop() asm(“nop”) __CONFIG(0x3B31); const uchar table[]={0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d, 0x07,0x7f,0x6f,0x77,0x7c,0x39,0x5e,0x79,0x71}; float data_temp; void delay(uint x); void init(); void didi(volatile num); vo
[Microcontroller]
Design of SPI Communication of PIC Microcontroller
MCU Program Crash and Runaway Troubleshooting Guide
1. Unexpected interruption. Is an interruption enabled, but the interruption flag is not responded to or cleared, causing the program to keep interrupting and cause the illusion of a crash? 2. Improper handling of interrupt variables. If you define some global variables that will be modified in the interrupt, you shou
[Microcontroller]
Basic functions of 51 microcontroller
The development of microcontrollers has gone through stages such as 4-bit, 8-bit, 16-bit and 32-bit. Due to their powerful functions, 8-bit microcontrollers are widely used in various fields such as industrial control, intelligent interfaces, and instrumentation. 8-bit microcontrollers still occupy a mainstream positi
[Microcontroller]
AVR single chip microcomputer hardware circuit design
Reset circuit design Mega16 has built-in power-on reset design. And in the fuse position, you can control the extra time when resetting, so the reset circuit outside the AVR can be designed very simply when powered on: just pull a 10K resistor to VCC (R0). For reliability, add a 0.1uF capacitor (C0) to eliminat
[Microcontroller]
AVR single chip microcomputer hardware circuit design
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号