Reducing MCU power consumption in practice

Publisher:幸福微风Latest update time:2015-11-12 Source: eefocusKeywords:MCU Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
   Some time ago, I used 51 to make an infrared remote control for a PC, which can realize basic functions. Considering the actual situation, it is necessary to put the microcontroller into sleep mode. Write it down here for future use.

   The sleep mode of the microcontroller is mainly controlled by the PCON register, and its register is as shown below:

Reducing MCU power consumption in practice

POF: Power-on reset flag. When the microcontroller is powered on for the first time, this flag is 1 and can be cleared by software.

PD: When it is set to 1, the microcontroller enters power-down mode and can be awakened by an external interrupt low level or falling edge triggered interrupt. When  entering down mode, the external clock, CPU, timer, and serial port all stop working, and only the external interrupt continues to work.

   In order to reduce the power consumption of the microcontroller and make it more energy-efficient, a sleep mode can be added to it. When no button is pressed within 3 minutes, the microcontroller enters sleep mode. Here, a parameter can be used for counting, that is, each time the remote control is pressed, the parameter is increased by 1. When no change is detected in this parameter within three minutes, it can automatically enter the Pown Down mode.

   The transmission mode of infrared remote control is as follows:

Reducing MCU power consumption in practice


   By default, when IR1838 does not receive a signal, the output is high level. When a signal is received, the received signal will be inverted and output. Therefore, when a key code is received, it will first output a low level of 9ms, that is, a falling edge can trigger an external interrupt to wake up the microcontroller and start working. In this way, the power consumption of the microcontroller can be reduced.

Keywords:MCU Reference address:Reducing MCU power consumption in practice

Previous article:2 I/O ports detect 6 buttons
Next article:How to represent decimal numbers in registers in a microcontroller

Recommended ReadingLatest update time:2024-11-16 13:27

MCU 12864LCD scrolling display
#include reg52.h   #define Disp_On 0x3f #define Disp_Off 0x3e #define  Col_Add      0x40                                                                                                                                                                                                                           
[Microcontroller]
Software and Hardware Design of 51 Single Chip Microcomputer Matrix Keyboard
  The following introduces the programming method of the matrix keyboard using the 51 single-chip integrated learning system as the hardware platform. The specific function is: after pressing the key, the key value is displayed on a digital tube. The 0 to 16 keys correspond to display 0 to F respectively.   1. Hardwar
[Microcontroller]
Software and Hardware Design of 51 Single Chip Microcomputer Matrix Keyboard
Production of 51 single chip digital tube serial display board
Materials: 6 common cathode SEGs (I made 4), 6 SN74HC595Ns (I used 4), pins, and some wires SEG digital tube display Digital tube serial display schematic diagram 74hc595 pin description: The microcontroller controls multiple digital tube displays through a small number of ports. 595 structure diagram The ca
[Microcontroller]
Production of 51 single chip digital tube serial display board
51 MCU Series Knowledge 4--Parallel Port (1)
one The 51 single-chip microcomputer has 4 parallel input/output ports, each port has 8 port lines, so the 4 ports have a total of 32 port lines. Each port is a bidirectional port, which can be used as both an input port and an output port. Each port contains a latch and an input buffer and an output driver. (Practi
[Microcontroller]
51 MCU Series Knowledge 4--Parallel Port (1)
Design of LED digital display tube control by AT90S8515 single chip microcomputer
1. Circuit The attached figure is a schematic diagram of the circuit for controlling digital display by AT90S8515 (only the circuit for the interface with the digital tube is drawn in the figure, and the rest of the wiring is omitted). The PBO~PB7 of the single-chip microcomputer is connected to the a~h pins of the LE
[Microcontroller]
Design of LED digital display tube control by AT90S8515 single chip microcomputer
Analysis on the Application of AVR Microcontroller in Industrial Heating Control System
1 Introduction The application of single-chip microcomputer in the field of industrial control is different from that in the civil and commercial fields. The environment of industrial control is relatively harsh, with many interference sources. The common interference sources come from the electrostatic induction, pea
[Microcontroller]
Analysis on the Application of AVR Microcontroller in Industrial Heating Control System
Realize communication between microcontrollers through infrared interface
  Infrared is an electromagnetic wave with a wavelength of 750nm to 1mm. Its frequency is higher than microwaves but lower than visible light. It is a kind of light that is invisible to human eyes. Infrared communication generally uses near-infrared in the infrared band with a wavelength of 0.75μm to 25μm. At present,
[Microcontroller]
Realize communication between microcontrollers through infrared interface
Design of Intelligent Basketball Scorekeeper Based on Single Chip Microcomputer
1 System Design 1.1 System Analysis Based on the STC89C52 chip in the MCS-51 series, a basketball timekeeping, scoring, second counting, sound prompt, wireless remote control system, and synchronous monitoring are designed to enable the addition and subtraction of the scores of the A/B teams, accurately reco
[Microcontroller]
Design of Intelligent Basketball Scorekeeper Based on Single Chip Microcomputer
Latest Microcontroller Articles
  • Download from the Internet--ARM Getting Started Notes
    A brief introduction: From today on, the ARM notebook of the rookie is open, and it can be regarded as a place to store these notes. Why publish it? Maybe you are interested in it. In fact, the reason for these notes is ...
  • Learn ARM development(22)
    Turning off and on interrupts Interrupts are an efficient dialogue mechanism, but sometimes you don't want to interrupt the program while it is running. For example, when you are printing something, the program suddenly interrupts and another ...
  • Learn ARM development(21)
    First, declare the task pointer, because it will be used later. Task pointer volatile TASK_TCB* volatile g_pCurrentTask = NULL;volatile TASK_TCB* vol ...
  • Learn ARM development(20)
    With the previous Tick interrupt, the basic task switching conditions are ready. However, this "easterly" is also difficult to understand. Only through continuous practice can we understand it. ...
  • Learn ARM development(19)
    After many days of hard work, I finally got the interrupt working. But in order to allow RTOS to use timer interrupts, what kind of interrupts can be implemented in S3C44B0? There are two methods in S3C44B0. ...
  • Learn ARM development(14)
  • Learn ARM development(15)
  • Learn ARM development(16)
  • Learn ARM development(17)
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号