您的位置:首页 > 其它

STM32 F4 Clock Sources

2015-09-08 23:16 260 查看

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








内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: