See the end of the clock tree (stm32F407VGET6)
1. The first thing that needs to be clarified is the clock configuration
The main clock and peripheral corresponding clock reference clock tree are as follows:
For example:
You can configure it as follows: That is, the default configuration in [1] (SetSysClock function of system_stm32F4xx.c)
Configure SYSCLK, HCLK, PCLK2, PCLK1
Configure the master clock:
Reference [1] has a good description:
The internal/external clock selection:
Configure RCC->CFGR through the corresponding register,
The internal clock HSI is selected at first, and then the external clock 8MHz crystal oscillator is used; if the external crystal oscillator is unstable, the internal clock is automatically used.
Another configuration (you can redefine the clock again in the main function when setting the RCC function) RCC function configuration:
The result
System clock = 168M
AHB=168M
APB1=84M (divided by two PCLK1)
APB2=168M (1-divided frequency PCLK2)
What are the allocations of each bus, and what is mounted on the AHB bus? What is mounted on the APB1 bus? What is mounted on the APB2 bus?
The bus matrix can be used to manage access arbitration between master buses, and the arbitration adopts a round-robin scheduling algorithm
For the specific buses to which the peripherals are connected, see p52, as shown in the following table
Among them: With the help of two AHB/APB bus bridges APB1 and APB2, full
Synchronous connection, allowing flexible selection of peripheral frequencies.
Table 1:
Clock Tree:
【1】STM32F4 Development Guide - Library Function Version
【2】STM32F4XX Chinese Reference Manual
Previous article:Research on STM32 clock initialization
Next article:STM32 Problem Record: This time Keil compiler is to blame
Recommended ReadingLatest update time:2024-11-16 00:36
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- 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
- Advanced usage of embedded C language
- A strange problem of TMS320F2812 caused by an eCAN bug
- [Evaluation of EVAL-M3-TS6-665PN development board] 2. Detailed explanation of functions
- A brief discussion on PCI_Express architecture.rar
- Free application: Allwinner heterogeneous multi-core AI intelligent vision V853 development board
- [Mill MYB-YT507 development board trial experience] Python displays memory and CPU real-time status 2
- I can't understand the circuit diagram at all
- Infrared ToF technology will significantly improve the performance and reliability of proximity sensors
- [IoT indoor environment monitor based on ESP32-S2-Kaluga-1] Development environment experience-ESP-IDF
- [Xianji HPM6750 Review] RT-Thread Development Environment Construction and Hello World