首页 > 其他 > 详细

STM32 F4 Clock Sources

时间:2015-09-09 00:54:38      阅读:482      评论:0      收藏:0      [点我收藏+]

STM32 F4 Clock Sources

Goal: routing clock sources to the microcontroller output pin (MCO1) 
 
High-speed internal (HSI) clock is 16MHz
High-speed external (HSE) clock is 8MHz (very precise)
PLL CLK is configured to be 84MHz because I have a 100MHz oscilloscope (unfortunately can‘t visualize the max 168MHz)
#include <stm32f4xx.h>
#include "mcu_config.h"

int main(void)
{                    
   GPIO_config(); // Initializing and clocking PA.8

   RCC_MCO1Config(RCC_MCO1Source_HSI,    RCC_MCO1Div_1);
// RCC_MCO1Config(RCC_MCO1Source_HSE,    RCC_MCO1Div_1);
// RCC_MCO1Config(RCC_MCO1Source_PLLCLK, RCC_MCO1Div_1);

 while(1)
 { 
 } 
}

 技术分享

技术分享

技术分享

技术分享

 

STM32 F4 Clock Sources

原文:http://www.cnblogs.com/shangdawei/p/4793317.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!