STM32F4 外部时钟更改
系统默认配置为:
PLL_VCO = HSE_VALUE/PLL_MPLL_N = 25_000_000/25336 = 336M
SYSCLK = PLL_VCO/PLL_P = 336_000_000/2 = 168M
更改后配置为:
PLL_VCO = HSE_VALUE/PLL_MPLL_N = 18432000/18432336000 = 336M
SYSCLK = PLL_VCO/PLL_P = 336_000_000/2 = 168M

以F407/外部晶振为18.432Mhz为例更改位置如下:
#if !defined (HSE_VALUE)
#define HSE_VALUE ((uint32_t)18432000) /*!< Value of the External oscillator in Hz */

#if defined (STM32F40_41xxx) || defined (STM32F427_437xx) || defined (STM32F429_439xx) || defined (STM32F401xx)
#define PLL_M 18432

#if defined (STM32F40_41xxx)
#define PLL_N 336000

相关文章:

  • 2022-01-19
  • 2021-12-20
  • 2021-06-29
  • 2021-11-08
  • 2021-12-18
  • 2021-04-06
  • 2021-04-18
猜你喜欢
  • 2021-04-05
  • 2021-09-05
  • 2022-12-23
  • 2021-11-19
  • 2022-01-28
  • 2021-07-12
  • 2021-07-07
相关资源
相似解决方案