RCC_ClockConfig
Go to file
xiaoyuluoke 3772288777 第一次提交 2024-07-25 15:02:31 +08:00
.vscode 第一次提交 2024-07-25 15:02:31 +08:00
CMSIS 第一次提交 2024-07-25 15:02:31 +08:00
build 第一次提交 2024-07-25 15:02:31 +08:00
cmake 第一次提交 2024-07-25 15:02:31 +08:00
n32g430_std_periph_driver 第一次提交 2024-07-25 15:02:31 +08:00
source 第一次提交 2024-07-25 15:02:31 +08:00
.clang-format 第一次提交 2024-07-25 15:02:31 +08:00
.gitignore Initial commit 2024-07-25 15:01:19 +08:00
CMakeLists.txt 第一次提交 2024-07-25 15:02:31 +08:00
README.md 第一次提交 2024-07-25 15:02:31 +08:00
n32g430_flash.ld 第一次提交 2024-07-25 15:02:31 +08:00
project.cmake 第一次提交 2024-07-25 15:02:31 +08:00
startup_n32g430_gcc.s 第一次提交 2024-07-25 15:02:31 +08:00

README.md

1、功能说明

/* 简单描述工程功能 */
这个例程配置并演示设置不同的系统时钟并通过MCO PA8输出时钟

2、使用环境

/* 软件开发环境:当前工程使用的软件工具名称及版本号 */
IDE工具KEIL MDK-ARM 5.34.0.0
         IAR  EWARM 8.50.1
  
/* 硬件环境:工程对应的开发硬件平台 */
开发板N32G430C8L7-STB V1.0     

3、使用说明

/* 描述相关模块配置方法;例如:时钟I/O等 */
USARTTX - PA9波特率115200
GPIOPA8 - 复用为MC0时钟输出

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

4、注意事项 PLL输出频率必须大于等于32MHz

  1. Function description

    /* Briefly describe the project function */ This example configures and demonstrates setting different system clocks and outputting them from PA8 with MCO

  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 V5.34.0.0 IAR EWARM 8.50.1

    /* Hardware environment: the development hardware platform corresponding to the project */ Development board: N32G430C8L7-STB V1.0

  3. Instructions for use

    /* Describe related module configuration methods; for example: clock, I/O, etc. */ USART: TX - PA9, baud rate 115200 GPIO: PA8 - multiplexed as MC0 clock output

    /* Describe the test steps and phenomena of the Demo */

    1. After compiling, download the program to reset and run;
    2. Configure the system clock as HSI, HSE, PLL respectively, use the serial port to print out the current SYSCLK, HCLK, PCLK1, PCLK2 and other information, and use the PA8 multiplexing pin to output the clock, and view it with an oscilloscope;
  4. Matters needing attention The PLL frequency must be greater than or equal to 32MHz