﻿1、功能说明

    /* 简单描述工程功能 */
    这个例程配置并演示设置不同的系统时钟，并用MCO从PB3输出出来


2、使用环境

    /* 软件开发环境：当前工程使用的软件工具名称及版本号 */
    IDE工具：KEIL MDK-ARM 5.34.0.0
                 IAR EWARM 8.50.1
      
    /* 硬件环境：工程对应的开发硬件平台 */
     N32A052系列：
            基于评估板N32A052KBQ7_STB V1.0开发
     

3、使用说明

    /* 描述相关模块配置方法；例如:时钟，I/O等 */
    USART：TX - PA9，波特率115200
    GPIO：PB3 - 复用为MC0时钟输出

    /* 描述Demo的测试步骤和现象 */
    1.编译后下载程序复位运行；
    2.分别配置系统时钟为HSI、HSE、PLL、LSI，分别使用串口打印出当前SYSCLK、HCLK、PCLK1、PCLK2等信息，并且可以使用PB3复用引脚输出时钟，用示波器查看；


4、注意事项
   当系统时钟为LSI时，波特率设置为1200才能打印
    

1. Function description

     /* Briefly describe the engineering function */
     This example configures and demonstrates the setting of different system clocks, and uses MCO to output from PB3


2. Use environment

    /* Software development environment: the name and version number of the software tool used in the current project */
    IDE tool: KEIL MDK-ARM 5.34.0.0
              IAR EWARM 8.50.1
      
    /* Hardware environment: the development hardware platform corresponding to the project */
     N32A052 series:
            Developed based on the evaluation board N32A052KBQ7_STB V1.0

3. Instructions for use

     /* Describe the configuration method of related modules; for example: clock, I/O, etc. */
     USART: TX-PA9, baud rate 115200
     GPIO: PB3-multiplexed as MC0 clock output

     /* Describe the test steps and phenomena of Demo */
     1. After compiling, download the program to reset and run;
     2. Configure the system clock as HSI, HSE, PLL and LSI respectively, and use the serial port to print out the current SYSCLK, HCLK, PCLK1, PCLK2 and other information, and use the PB3 multiplex pin to output the clock and view it with an oscilloscope;


4. Attention
    Printing is only possible when system clock is LSI and the baud rate is configured to 1200