Text: MSP430 can choose to use up to 3 oscillators depending on the model. We can choose the appropriate oscillation frequency according to the needs, and can turn off the oscillator at any time when not needed to save power. The three oscillators are:
(1) DCO digital controlled RC oscillator. It is inside the chip and can be turned off when not in use. The oscillation frequency of DCO is affected by the ambient temperature and the operating voltage of the MSP430, and the frequency generated by the same model of chip is also different. However, the adjustment function of DCO can improve its performance. Its adjustment is divided into the following three steps: a: Select BCSCTL1.RSELx to determine the nominal frequency of the clock; b: Select DCOCTL.DCOx to make segmented coarse adjustments based on the nominal frequency; c: Select the value of DCOCTL.MODx for fine adjustments.
(2) LFXT1 is connected to a low-frequency oscillator. Typically, it is connected to a 32768HZ clock oscillator, directly connected between XIN and XOUT. In this case, the oscillator does not need to be connected to a load capacitor. It can also be connected to a standard crystal oscillator of 450KHZ~8MHZ, in which case a load capacitor is required. The frequency signal generated by LXFT1 is ACLK. The low-speed clock requires hundreds of milliseconds to stabilize.
(3) XT2 is connected to a standard crystal oscillator of 450KHZ~8MHZ. The external standard crystal oscillator is connected between XT2IN and XT2OUT. At this time, a load capacitor needs to be connected and it can be turned off when not in use.
Low-frequency oscillators are mainly used to reduce energy consumption, such as in battery-powered systems, while high-frequency oscillators are used to respond quickly to events or for the CPU to perform large amounts of calculations.
MSP430 has three clock signals: MCLK system main clock; SMCLK system sub-clock; ACLK auxiliary clock.
(1) MCLK system main clock. In addition to the CPU operation using this clock, peripheral modules can also use it. MCLK can select any clock signal generated by an oscillator and divide it by 1, 2, 4, or 8 as its signal source.
(2) SMCLK system sub-clock. For use by peripheral modules. It can be divided by the registers of each module before use. SMCLK can be the clock signal generated by the XT2CLK or DCOCLK oscillator and divided by 1, 2, 4, or 8 as its signal source.
(3) ACLK auxiliary clock. For use by peripheral modules. It can be divided by the registers of each module before use. However, ACLK can only be divided by 1, 2, 4, or 8 by LFXT1 as a signal source. It can be used as a background clock to wake up the CPU.
(4) ACLK/N, ACK buffer output, it can be obtained by ACL.1.2.4.8 division, and can only be used externally.
After PUC is reset, the signal sources of MCLK and SMCLK are DCO, and the oscillation frequency of DCO is 800KHZ. The signal source of ACLK is LFXT1.
The MSP430 contains a crystal oscillator failure monitoring circuit that monitors the clock signals output by LFXT1 (working in high-frequency mode) and XT2. When the clock signal is lost for 50us, the monitoring circuit detects the oscillator failure. If the MCLK signal comes from LFXT1 or XT2, the MSP430 automatically switches the MCLK signal to DCO, which ensures that the program continues to run. However, the MSP430 does not monitor the LFXT1 working in low-frequency mode.
Previous article:How does MCU output PWM waveform?
Next article:Msp430f149 learning system clock setting
Recommended ReadingLatest update time:2024-11-16 16:55
- Popular Resources
- Popular amplifiers
- Practical Development of Automotive FlexRay Bus System (Written by Wu Baoxin, Guo Yonghong, Cao Yi, Zhao Dongyang, etc.)
- RT-Thread Kernel Implementation and Application Development Practical Guide: Based on STM32
- MSP430 series single chip microcomputer system engineering design and practice
- oled multi-chip calling program
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Innolux's intelligent steer-by-wire solution makes cars smarter and safer
- 8051 MCU - Parity Check
- How to efficiently balance the sensitivity of tactile sensing interfaces
- What should I do if the servo motor shakes? What causes the servo motor to shake quickly?
- 【Brushless Motor】Analysis of three-phase BLDC motor and sharing of two popular development boards
- Midea Industrial Technology's subsidiaries Clou Electronics and Hekang New Energy jointly appeared at the Munich Battery Energy Storage Exhibition and Solar Energy Exhibition
- Guoxin Sichen | Application of ferroelectric memory PB85RS2MC in power battery management, with a capacity of 2M
- Analysis of common faults of frequency converter
- In a head-on competition with Qualcomm, what kind of cockpit products has Intel come up with?
- Dalian Rongke's all-vanadium liquid flow battery energy storage equipment industrialization project has entered the sprint stage before production
- Allegro MicroSystems Introduces Advanced Magnetic and Inductive Position Sensing Solutions at Electronica 2024
- Car key in the left hand, liveness detection radar in the right hand, UWB is imperative for cars!
- After a decade of rapid development, domestic CIS has entered the market
- Aegis Dagger Battery + Thor EM-i Super Hybrid, Geely New Energy has thrown out two "king bombs"
- A brief discussion on functional safety - fault, error, and failure
- In the smart car 2.0 cycle, these core industry chains are facing major opportunities!
- The United States and Japan are developing new batteries. CATL faces challenges? How should China's new energy battery industry respond?
- Murata launches high-precision 6-axis inertial sensor for automobiles
- Ford patents pre-charge alarm to help save costs and respond to emergencies
- New real-time microcontroller system from Texas Instruments enables smarter processing in automotive and industrial applications
- TI TMS320F28335 program SVPWM source program
- 【Smart Kitchen】Environmental Sensor PCB Design
- 5. Printf implementation and DMA implementation of USART0
- When debugging a program with JT-LINK simulation, a message appears saying that CORTEX-M cannot be found after just a few minutes of debugging. What is the reason?
- Unboxing - ESP32-S2 and ESP32-S3 Development Boards + Modules
- Is children's programming a waste of money?
- Last day! Comment to win | Have you ever fallen into the trap of measuring power ripple in the video?
- [ESP32-Korvo Review] (3) Compilation of ESP-Skainet Project
- Reading SHT3x with ESP8266
- [Hua Diao Experience] 13 Building the PlatformIO IDE development environment for ESP32C3