Any peripheral of any MCU needs a clock, and the same is true for 8051. In order to allow users to better understand power consumption, STM32 sets a switch for the clock of each peripheral, allowing users to precisely control and shut down unnecessary devices to save power.
The 51 MCU does not need to configure the IO clock, just because the same clock is used by default, which is convenient, but the power consumption cannot be reduced.
For example, a certain function is not needed, but it is still running.
STM32 needs to configure the clock, so that the power consumption of those functions that are not needed can be removed.
When you want to turn off an IO, just turn off the corresponding clock enable. However, in 51, the IO clock is not set when using IO. In STM32, there are external and internal clocks. Study the clock carefully.
ARM chips are all like this. Peripherals usually need to be clocked before their registers can be set (i.e., the peripherals can be used). STM32, LPC1XXX, etc. are all like this.
The purpose of doing this is to save power, using the so-called clock gating technology.
This also belongs to the category of synchronous circuits in circuits: synchronous circuits always require 1 clock.
Previous article:About STM32 header files
Next article:STM32 series microcontroller development tools and applications - keil
Recommended ReadingLatest update time:2024-11-16 13:21
- Popular Resources
- Popular amplifiers
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
- [Flower carving DIY] Interesting and fun music visualization project (11) --- WS2812 fantasy light strip
- Prize-winning live broadcast | Application registration for ON Semiconductor's high-efficiency products in smart fast charging is open!
- Draw a SparkRoad RGB LCD expansion board
- Hundreds of drones lost control and crashed into buildings. Are programmers to blame?
- [Lazy self-care fish tank control system] BLE_MESH network test, multiple elements are not allowed
- TMS320C6747 timer
- Add sound to post
- Detailed explanation of MSP430 crystal oscillator configuration
- 【XMC4800 Relax EtherCAT Kit Review】+ Review Post, EtherCAT Slave Module Application Expansion
- [Raspberry Pi 3B+ Review] Multithreading & TCP Server