Functional differences of three clocks of MSP430 microcontroller

Publisher:第二眼帅哥Latest update time:2015-07-01 Source: diangonKeywords:MSP430 Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere
The system clocks of the MSP430 microcontroller are divided into three types: MCLK, SMCLK and ACLK. One, several or all of them can be turned off as needed. 
The units in the MCU that require clocks include the CPU and some on-chip peripherals. The functional differences of the three clocks are as follows:
1. MCLK: Main system clock, a clock specifically provided for CPU operation. The higher the MCLK frequency is configured, the faster the CPU executes. Although the faster the CPU speed, the higher the power consumption, but the high-frequency MCLK can make the CPU work for a shorter time. Therefore, the correct low-power design is not to reduce MCLK as much as possible, but to turn off MCLK immediately when the CPU is not in use. In most applications, the time required for CPU calculation is very short, so the method of intermittently turning on MCLK (waking up the CPU) has a very obvious energy-saving effect.
2. SMCLK: Sub-system clock, which is specifically designed to provide services for some on-chip peripherals that require high-speed clocks, such as timers and ADC sampling. When the CPU is in sleep mode, as long as SMCLK is on, the timer and ADC can still work (usually after the on-chip peripherals have completed their work, an interrupt is triggered to wake up the CPU to do subsequent work).
3.ACLK: Auxiliary Clock. The frequency of the auxiliary clock is very low, so even if it is always on, the power consumption is not large. Of course, it can also be turned off. The auxiliary clock can be supplied to those on-chip peripherals that only need a low-frequency clock, such as the LCD controller. It can also be used to generate a beat time base and cooperate with the timer to intermittently wake up the CPU.

Keywords:MSP430 Reference address:Functional differences of three clocks of MSP430 microcontroller

Previous article:How to determine whether the crystal oscillator in the circuit is overdriven
Next article:Principle of single chip microcomputer crystal oscillator circuit

Recommended ReadingLatest update time:2024-11-23 08:34

MSP430 Watchdog Timer
      2.WDT interrupt: The watchdog has two working modes: watchdog mode and interval mode. There are two situations in which WDTIFG is set: a watchdog overflow occurs in the watchdog mode, a timer overflow occurs in the interval timing mode, and the global interrupt enable GIE and WDTIE are both en
[Microcontroller]
MSP430 Watchdog Timer
Multifunctional multi-rate three-phase energy meter based on MSP430 single chip microcomputer
With the development of the national economy, the electricity consumption of enterprises and individuals has increased significantly. Now the time of electricity consumption of users is relatively concentrated, so that the load curve of the power system varies greatly. In order to adjust the load curve and ma
[Power Management]
Some commonly used C language control programs for msp430 --- ADC12 (3)
Below is an example of a single conversion of the ADC12 serial channel: //ADC12 serial channel single #include msp430x14x.h unsigned ADC_Result1,ADC_Result2; void ADC12_Init(); void main(){  WDTCTL = WDTPW + WDTHOLD;  ADC12_Init();         ADC12CTL0 |= ADC12SC;  _BIS_SR(GIE);         while(1); } // void A
[Microcontroller]
MSP430F5529 (III) Unified Clock System UCS-2
Experiment 2: Configure MCLK and SMCLK to XT1 (XT1 of F5529 is 32.768KHZ) /*1. Configure IO ports 5.4 and 5.5 to XT1 function. */ /*2. Configure XCAP to XCAP_3, i.e. 12PF capacitor. */ /*3. Clear XT1OFF flag. */ /*4. Wait for XT1 to start oscillating. */ #include     void main(void){      P1SEL |= BIT0;P1DIR |=
[Microcontroller]
MSP430F5529 (III) Unified Clock System UCS-2
Design and implementation of vehicle leveling device based on MSP430F
With the development of national defense technology, more and more military weapons need to change their working locations at any time according to mission requirements. In order to ensure the mobility of these military weapons, vehicles are often used as transportation carriers. Large weapons such as rocket launche
[Microcontroller]
Design and implementation of vehicle leveling device based on MSP430F
MSP430F5438 study notes initialization XT1
// Clock defaults   // FLL clock FLL select XT1   // Auxiliary clock ACLK selects XT1 32768Hz   // Main system clock MCLK selection DCOCLKDIV 1048576Hz   // Subsystem clock SMCLK selection DCOCLKDIV 1048576Hz   #include  msp430.h    int main(void)   {       WDTCTL = WDTPW+WDTHOLD; // Stop watchdog       P4DI
[Microcontroller]
MSP430 Development Considerations and Requirements
The following are some summaries in using MSP430:  1. System clock problem:  The system uses DCO by default. When using external high-speed crystal oscillator XT2, you must turn on XT2 yourself, delay 50us to wait for XT2 to start oscillating, and then manually clear the OFIFG bit in IFG1  !!!! Be sure to pay attentio
[Microcontroller]
Design of DC broadband amplifier based on MSP430
With the development of social productivity, people are eager to be able to quickly and accurately transmit multimedia information anytime and anywhere over long distances. As a result, wireless communication technology has developed rapidly and the technology has become more and more mature. The broadband amplifier is
[Microcontroller]
Design of DC broadband amplifier based on MSP430
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号