A Single Idea Ruined a Design in STM32 Development: The Dilemma of Ignoring USB Clock Requirements

A Single Idea Ruined a Design in STM32 Development: The Dilemma of Ignoring USB Clock Requirements

Introduction Recently, I have been researching mechanical fault diagnosis and decided to create a small accelerometer, planning to use the STM32F1 as the main controller. Initially, I planned to use an external crystal oscillator as the main clock for the STM32, but to further reduce the size of the board, I decided to remove the … Read more

Comprehensive Overview of ARM Cortex-M Clocks

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 precisionWhat is the RTC peripheral used for? It … Read more

Clock Configuration Method for STM32F103 Microcontroller

Clock Configuration Method for STM32F103 Microcontroller

In microcontrollers, the STM32F103 is powerful and widely used. To ensure the stable operation and performance optimization of the STM32F103 system, configuring its clock system is essential. So, how do we configure it? 1. Clock Source Selection HSI: Internal RC oscillator with a frequency of 8MHz, suitable for situations where clock frequency accuracy is not … Read more

MCU Clock Configuration and External Crystal Selection

MCU Clock Configuration and External Crystal Selection

To improve system performance while reducing power consumption, MCUs typically provide four types of clocks: High-Speed External Clock (HSE): Generated by an external high-frequency crystal oscillator. Low-Speed External Clock (LSE): Generated by an external low-frequency crystal oscillator, generally at 32.768kHz, used to drive the real-time clock (RTCCLK). High-Speed Internal Clock (HSI): Generated by an internal … Read more

Understanding STM32 Clocks

Understanding STM32 Clocks

Introduction to STM32 Clock Sources 1. The main clock sources of STM32 are: Internal Clock External Clock Phase Locked Loop (PLL) Frequency Multiplier Output Clock 1.1 Detailed Introduction HSI (Internal High-Speed Clock) It is an RC oscillator with a frequency of up to 8MHz, which can be used as the system clock and PLL input. … Read more