码迷,mamicode.com
首页 > 其他好文 > 详细

STM32 F4 Clock Sources

时间:2015-09-09 00:57:38      阅读:420      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!