Analysis of Dynamic Clock Configuration of MSP430 Series MCU

Publisher:bonbonoLatest update time:2012-06-04 Source: 21ic Keywords:MSP430 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

This article combines the MSP430 series microprocessors to discuss in detail the design method of reducing power consumption by controlling and changing the clock frequency of the MCU.

1 Causes of power consumption

In CMOS circuits, power consumption loss mainly includes two parts: static power consumption loss and dynamic power consumption loss. Among them, static power consumption is mainly caused by the leakage current of the reverse-biased PN junction and the subthreshold current of the transistor, and its most important form is leakage loss. In fact, in theory, there will be no electrostatic power consumption loss in CMOS circuits, because there is no direct path from the power supply to the ground, but in fact, there will always be leakage current in transistors, resulting in leakage loss. Under the 0.18μm process level, its proportion in power consumption is about 5% to 10%, which can generally be ignored (but with the improvement of the process and the reduction of the power supply voltage, its proportion will gradually increase). In this way, in CMOS circuits, dynamic power consumption has become the main component of the power consumption of this system, accounting for more than 90% of the overall power consumption. Quantitative analysis of the dynamic power consumption of the circuit can be expressed by the following formula:

Among them: C is the load capacitance; VDD is the power supply voltage; ? is the flip probability, that is, the number of charge and discharge cycles that occur in each clock cycle; fCLK is the clock frequency. From this formula, we can see how to reduce dynamic power consumption and thus reduce the power consumption of the entire CMOS circuit. That is, we can reduce the flip load capacitance, reduce the power supply voltage, reduce the flip probability of the node, or reduce the clock frequency. This article will focus on how to dynamically reduce the clock frequency to achieve low power design.

2 Dynamic Clock Low Power Management Principle

MCU system design is a very complex process. Under some conditions, all the hardware resources of the entire system may be used, but in some applications, only a small part of the hardware resources may be needed; in some applications, a very high clock frequency may be required, while in other applications, it can work at a very low operating frequency. For example: when the task volume is large, the MCU works at full load, which requires a higher clock frequency and consumes more power; when the task volume is small, the MCU load is light, the required clock frequency is lower, and the power consumption can be reduced accordingly. Dynamically configuring the system's clock frequency is to dynamically manage the system's operating frequency to reduce the MCU's power consumption without sacrificing system performance.

3 Low-power dynamic clock implementation

Figure 1 shows the basic clock module of the MSP430 series MCU.

The MSP430 basic clock module contains the following three clock input sources.

(1) LFXT1CLK low-frequency clock source: generated by the LFXT1 oscillator (as shown in Figure 2). After resetting OSCOff in the status register by software, LFXT1 starts to work, that is, the system works at a low frequency. If LFXT1CLK is not used as an SMCLK or MCLK signal, OSCOff can be set by software to disable LFXT1 from working.

(2) XT2CLK high-frequency clock source: generated by the XT2 oscillator. It generates the clock signal XT2CLK, and its operating characteristics are similar to those of the LFXT1 oscillator when it works in high-frequency mode. The XT2 oscillator can be easily set to work or not through software. When XT2CLK is not used as SMCLK or MCLK signal, turn off XT2 and select other clock sources.

(3) DCOCLK Digitally controlled RC oscillator. Generated by the DCO oscillator integrated in the clock module. The DCO oscillator is an RC oscillator whose frequency can be adjusted by software. Its control logic is shown in Figure 3. When the oscillators LFXT1 and XT2 are disabled or fail, the DCO oscillator is automatically selected as the clock source of MCLK. Therefore, system interrupt requests caused by oscillator failure can be responded to, even when the CPU is turned off.

[page]

The basic clock module can provide three clock signals required by the system, namely: ACLK, MCLK, and SMCLK. Among them, the auxiliary clock ACLK is obtained by dividing the LFXT1CLK signal by 1, 2, 4, or 8. ACLK can be selected by software as the clock signal of each peripheral module, and is generally used for low-speed peripherals; the system main clock MCLK can be selected by software from one of the three LFXT1CLK, XT2CLK, and DCOCLK, and then divided by 1, 2, 4, or 8. MCLK is mainly used for CPU and system. The subsystem clock SMCLK can be selected by software from LFXT1CLK and DCOCLK, or XT2CLK and DCOCLK, and then divided by 1, 2, 4, or 8, and is mainly used for high-speed peripheral modules. The system can select the appropriate system clock frequency through software according to actual needs. These three clocks of different frequencies are output to different modules, so as to reasonably utilize the system power supply and achieve ultra-low power consumption of the entire system, which is crucial for battery-powered systems. In specific applications, the working status of the CPU and each clock source is shown in Table 1.

4 Dynamic Clock Application Examples

An ultra-low power real-time clock is constructed by connecting an MSP430 to an external 32768Hz crystal. The structure is shown in Figure 4.

Some of the code is as follows:

setc

Dadc.b SEC

cmp.b #060h, SEC

jlo CLKend

clr.b SEC

dadc.b MIN

cmp.b #060h, MIN

jlo CLKend

clr.b MIN

CLKend;

The MSP430 CPU is made to work in a burst state, and is in the LMP3 state most of the time. Only after the unit time in the program code is reached, it will start a very short operation, and the current consumption during the operation is about 250μA. By calculating the instruction execution time, it is found that the program running time in a 1s period is only 100μs, and the average system current is about 0.83μA, which shows that its working power consumption is quite low.

This article analyzes the dynamic clock configuration of the MSP430 series MCU and introduces how to achieve low power design by dynamically changing the MCU system clock. In practical applications, low power design can be effectively achieved by using the clock source reasonably through software settings.

Keywords:MSP430 Reference address:Analysis of Dynamic Clock Configuration of MSP430 Series MCU

Previous article:Design of embedded DTMF dial decoder using MSP430
Next article:Application of MSP430F449 in miniaturized low-power data acquisition module

Recommended ReadingLatest update time:2024-11-16 22:56

Anti-interference design of single chip microcomputer software system
  To improve the reliability of the MCU application system, we must start with the hardware and software and improve the system's own defense behavior. The following methods to improve reliability are not used alone. Only by effectively combining these methods according to the actual situation can we achieve the best a
[Microcontroller]
Anti-interference design of single chip microcomputer software system
Analysis of Common Errors in Microcontroller Assembly Language
1. Analysis of the reasons for the failure of assembly software assembly: Here we use the macro assembler A51 in the Keil C51 software package as the compiler. When writing the assembly language of the microcontroller, you must pay attention to certain syntax. For detailed introduction, please refer to relevant
[Microcontroller]
An efficient and fast algorithm for calculating square roots using a single chip microcomputer
When we use 8-bit MCU programming and use the square root algorithm, if we call the built-in subroutine, the generated code is too much and the efficiency is low. Because the software's built-in algorithm uses floating-point type for calculation, in reality we often only need to return integer data. Using the followin
[Microcontroller]
Design of high-precision electronic scale based on AVR microcontroller
0 Introduction With the continuous development of electronic technology and automated measurement technology, traditional weighing systems can no longer meet people's needs in terms of function, accuracy, cost performance, etc., especially in terms of intelligence, portability, and measurement of tiny masses. I
[Microcontroller]
Design of high-precision electronic scale based on AVR microcontroller
Microcontroller interrupt experiment
I have been confused about interrupts and timing these past two days. I heard that this thing can improve the efficiency of the CPU, and I think it should be a very important programming method, so I found a small program in the book, hoping to discover something from the experiment. The requirement is to use timer
[Microcontroller]
Simulation Design of Digital Voltmeter Based on 51 Single Chip Microcomputer
Abstract: The design uses AT89C51 single-chip microcomputer, A/D converter ADC0808 and common anode digital tube as the main hardware, and analyzes the digital voltmeter Proteus software simulation circuit design and programming method. The single-chip microcomputer is applied to measurement technology, ADC0808 is u
[Industrial Control]
Simulation Design of Digital Voltmeter Based on 51 Single Chip Microcomputer
Design of video intercom system based on 51 single chip microcomputer and Lonworks
With the emergence of intelligent residential areas, traditional doorbells are no longer suitable for modern families. People hope to understand the situation of visitors in a new way, while ensuring their own safety and reducing unnecessary troubles. Therefore, various doorbells have quietly entered thousands of ho
[Microcontroller]
Design of video intercom system based on 51 single chip microcomputer and Lonworks
51 microcontroller control stepper motor hardware connection part
1. Summary: This case explains the hardware connection part of the stepper motor controlled by the 51 microcontroller. Later, we will explain the microcontroller program, S-curve acceleration and deceleration method, host computer and other related content. 2. Functional schematic diagram: 2.1, 51 microcontroller: ①
[Microcontroller]
51 microcontroller control stepper motor hardware connection part
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号