Comprehensive Overview of ARM Cortex-M Clocks

Master the STM32 clock tree in one article – taking F401 as an exampleCW32L010-M0+ clock tree overview✅ HSE / LSE (external crystal oscillator) → high precision, but higher power consumption, requires startup time✅ HSI / LSI (internal RC oscillator) → fast startup, low power consumption, but poor precisionComprehensive Overview of ARM Cortex-M ClocksWhat is the RTC peripheral used for? It uses LSE (external low-speed oscillator)

  1. Typically uses a 32.768 kHz crystal oscillator
  2. High precision (±20ppm level)
  3. Suitable for RTC (real-time clock), low power timing
  4. Requires a long startup time (hundreds of ms)
  5. Extremely low power consumption

Suitable for RTC and low power applications, ensuring long-term timingRequires an additional 32.768 kHz crystal oscillator, occupying PCB spaceIf you want to remove one oscillator, it should be the internal one, HSI (internal high-speed RC oscillator).Comprehensive Overview of ARM Cortex-M ClocksCW32 locks the internal HSI at 48MComprehensive Overview of ARM Cortex-M ClocksIf you find it inaccurate, or if you need a larger value, you can read and write here in flashComprehensive Overview of ARM Cortex-M ClocksModify hereComprehensive Overview of ARM Cortex-M ClocksStable timeComprehensive Overview of ARM Cortex-M ClocksYou can select here

  1. System default startup clock (after reset)
  2. Low-cost applications that do not require high precision clocks
  3. Fast wake-up applications (low power mode)
  4. Internal RC oscillator, suitable for I2C, UART, GPIO, and other general peripherals

Comprehensive Overview of ARM Cortex-M Clocks

Leave a Comment