Turning off the clocks of unused peripherals allows the STM8 to reduce power consumption. The peripheral clock gating (PCG) mode allows the user to turn on or off the connection between fMASTER and the following peripherals at any time in the running mode:
ADC
I2C
AWU (register clock, not counter clock)
TIM[4:1]
CAN (register clock, not CAN clock)
After the STM8 system is reset, all peripheral clocks are in the on state. Users can turn off the corresponding peripheral clock by clearing the PCKEN bit in CLK_PCKENR1 or CLK_PCKENR2. However, before turning off the peripheral clock, users must set the corresponding bit to disable the peripheral.
To enable a peripheral, the user must first set the corresponding PCKEN bit in the CLK_PCKENR register, and then set the peripheral enable bit in the peripheral control register.
The AWU counter is driven by an internal or external clock (LSI or HSE) independent of fMASTER; therefore, the peripheral continues to run even if the clock to the register is turned off.
Previous article:STM8 master clock switching
Next article:STM8 Clock Security System (CSS)
Recommended ReadingLatest update time:2024-11-21 20:32
- Popular Resources
- Popular amplifiers
- STM8 C language programming (1) - basic program and startup code analysis
- Description of the BLDC back-EMF sampling method based on the STM8 official library
- STM32 MCU project example: Smart watch design based on TouchGFX (8) Associating the underlying driver with the UI
- uCOS-III Kernel Implementation and Application Development Practical Guide - Based on STM32 (Wildfire)
- Naxin Micro and Xinxian jointly launched the NS800RT series of real-time control MCUs
- How to learn embedded systems based on ARM platform
- Summary of jffs2_scan_eraseblock issues
- Application of SPCOMM Control in Serial Communication of Delphi7.0
- Using TComm component to realize serial communication in Delphi environment
- Bar chart code for embedded development practices
- Embedded Development Learning (10)
- Embedded Development Learning (8)
- Embedded Development Learning (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- Intel promotes AI with multi-dimensional efforts in technology, application, and ecology
- ChinaJoy Qualcomm Snapdragon Theme Pavilion takes you to experience the new changes in digital entertainment in the 5G era
- Infineon's latest generation IGBT technology platform enables precise control of speed and position
- Two test methods for LED lighting life
- Don't Let Lightning Induced Surges Scare You
- Application of brushless motor controller ML4425/4426
- Easy identification of LED power supply quality
- World's first integrated photovoltaic solar system completed in Israel
- Sliding window mean filter for avr microcontroller AD conversion
- What does call mean in the detailed explanation of ABB robot programming instructions?
- Breaking through the intelligent competition, Changan Automobile opens the "God's perspective"
- The world's first fully digital chassis, looking forward to the debut of the U7 PHEV and EV versions
- Design of automotive LIN communication simulator based on Renesas MCU
- When will solid-state batteries become popular?
- Adding solid-state batteries, CATL wants to continue to be the "King of Ning"
- The agency predicts that my country's public electric vehicle charging piles will reach 3.6 million this year, accounting for nearly 70% of the world
- U.S. senators urge NHTSA to issue new vehicle safety rules
- Giants step up investment, accelerating the application of solid-state batteries
- Guangzhou Auto Show: End-to-end competition accelerates, autonomous driving fully impacts luxury...
- Lotus launches ultra-900V hybrid technology "Luyao" to accelerate the "Win26" plan
- Thank you all for your help. Thank you very much.
- MAX3740/MAX3795 Laser Driver Average-Power Monitors
- Array sorting problem
- Robust Design of I2C Serial EEPROM Application System.pdf
- Original 100KWh Solar Photovoltaic Off-Grid Battery Management System
- What are some good ways to reverse check silk screen printing? Welcome to chat and share your experience
- Upgrade the embedded RISC-V compiler
- [HC32F460 Development Board Review] 02. Build the development environment, create a project, and implement the LED flashing function
- DCDC ripple experiment
- Ask everyone a question about 4G wireless data transmission