赞
踩
STM32CubeMX
,可以图形化方便的查看时钟树配置,并且还不容易出错,并且可以让软件帮忙配置 RCC_OscInitStruct.OscillatorType = RCC_OSCILLATORTYPE_HSI48|RCC_OSCILLATORTYPE_HSE; /* HSE */
RCC_OscInitStruct.HSEState = RCC_HSE_ON; /* HSE 外部晶振开启 */
RCC_OscInitStruct.HSI48State = RCC_HSI48_ON;
RCC_OscInitStruct.PLL.PLLState = RCC_PLL_ON; /* 使用PLL */
RCC_OscInitStruct.PLL.PLLSource = RCC_PLLSOURCE_HSE; /* PLL 时钟源为HSE */
RCC_OscInitStruct.PLL.PLLM = 5; /* 除 */
RCC_OscInitStruct.PLL.PLLN = 192; /* 乘 */
RCC_OscInitStruct.PLL.PLLP = 2; /* 除 */
25MHz / 5 * 192 / 2 = 480 MHz
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。