STM32 F4 Clock Sources

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)
 { 
 } 
}

 

 

posted @ 2015-09-08 23:16  IAmAProgrammer  阅读(725)  评论(0编辑  收藏  举报