How to calculate the "power consumption" of a microcontroller

Publisher:感恩的7号Latest update time:2022-12-07 Source: zhihu Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

The power consumption of a microcontroller is very difficult to calculate, and at high temperatures, the power consumption of a microcontroller is still a particularly important parameter.

For the time being, the power consumption of the microcontroller is divided as follows:

1. Internal power consumption (related to frequency)

2. Power consumption of digital input and output ports

2.1 Input port

2.2 Output high

2.3 output low

3. Analog input port power consumption

Some basic parameters can be derived from the following table:

First we calculate the internal power consumption

The power consumption of a microcontroller is generally related to the operating frequency. At a fixed frequency, it is related to the function. There are two calculation methods.

The first one is fixed frequency, and the increase and decrease functions cause current changes:


The second type, frequency change, does not consider the use of modules:


Next, calculate the digital port power consumption:


For the digital output port, according to the data in the table, the internal Rdson is obtained, and the internal power consumption of high output and low output can be calculated.

What needs to be noted here is that the power consumption of the input port is generally not large, but the power consumption of the designed IO port is large when current is injected. At this time, the clamping diode is working, so pay attention to this part of the power consumption.


P=I.inject*Vf_diode

Input power consumption is relatively small when there is no Clamped. If the input voltage is too high or too low, it will cause many problems.


All power consumption of the MCU is the sum of the three parts.

P.MCU=P.internal+P.IO+P.Analog


Reference address:How to calculate the "power consumption" of a microcontroller

Previous article:Introduction to hardware and software concepts of microcontroller
Next article:Daniel summarizes several important concepts of microcontrollers

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号