Stm32 clock configuration method

Source: Internet
Author: User

Stm32 has three different clock types used to drive the system clock (sysclk)

(1) HSI (internal clock)

(2) HSE (external clock, provided by excellent vibration)

(3) PLL (PLL clock)

 

The reuse configuration is as follows:

Use HSE as the input source of the PLL, configure the PLL to 72 MHz, then use the PLL as the system clock, and finally configure other clocks as the system clock crossover output.

 

 

Note:

(1) When HSI is used as the input of the PLL clock, the maximum system clock can only reach 64 MHz;

(2) when using the USB function, HSE and PLL must be used simultaneously, and the CPU frequency must be 48 MHz or 72 MHz;

(3) When the ADC sampling time is 1 US, apb2 must be set to 14, 28, or 56 MHz;

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.