NVIC_IRQ_Mask
Go to file
xiaoyuluoke 3bfe926e71 第一次提交 2024-07-25 14:41:24 +08:00
.vscode 第一次提交 2024-07-25 14:41:24 +08:00
CMSIS 第一次提交 2024-07-25 14:41:24 +08:00
build 第一次提交 2024-07-25 14:41:24 +08:00
cmake 第一次提交 2024-07-25 14:41:24 +08:00
n32g430_std_periph_driver 第一次提交 2024-07-25 14:41:24 +08:00
source 第一次提交 2024-07-25 14:41:24 +08:00
.clang-format 第一次提交 2024-07-25 14:41:24 +08:00
.gitignore Initial commit 2024-07-25 14:40:07 +08:00
CMakeLists.txt 第一次提交 2024-07-25 14:41:24 +08:00
README.md 第一次提交 2024-07-25 14:41:24 +08:00
n32g430_flash.ld 第一次提交 2024-07-25 14:41:24 +08:00
project.cmake 第一次提交 2024-07-25 14:41:24 +08:00
startup_n32g430_gcc.s 第一次提交 2024-07-25 14:41:24 +08:00

README.md

1、功能说明

/* 简单描述工程功能 */
    这个例程配置并演示使用EXIT外部中断及TIM定时器中断

2、使用环境

    软件开发环境KEIL MDK-ARM V5.34.0.0
                  IAR EWARM 8.50.1
    硬件环境基于评估板N32G430C8L7-STB V1.0开发

3、使用说明

/* 描述相关模块配置方法;例如:时钟I/O等 */
    SystemClock128MHz

    USART: TX-PA9, RX-PA10波特率115200
    EXITPA0为浮空输入模式外部中断线 - EXIT_LINE0开启外部中断
    TIM预分频系数 - SystemClock/1200-1周期 - 1200-1开启定时器中断

/* 描述Demo的测试步骤和现象 */
    1.编译后下载程序复位运行;
    2.查看串口打印信息定时器中断信息每1S打印一次按下按键打印停止再次按下则继续打印表明程序运行正常

4、注意事项

  1. Function description /* A brief description of the engineering function */ This routine configures and demonstrates the use of EXIT external interrupts and TIM timer interrupts

  2. Use environment

    Software development environment: KEIL MDK-ARM V5.34.0.0 IAR EWARM 8.50.1 Hardware environment: Developed based on the evaluation board N32G430C8L7-STB V1.0

  3. Instructions for use
    /* Describe the related module configuration method; For example: clock, I/O, etc. / SystemClock: 128 MHZ USART: TX-PA9, RX-PA10, baud rate 115200 EXIT: PA0 is in floating input mode, and external interrupt line -exit_line0 is used to enable external interrupt TIM: Pre-dividing frequency coefficient - (SystemClock/1200-1), period - (1200-1), start timer interrupt / Describes the test steps and symptoms of Demo */

    1. Reset and run the downloaded program after compilation;
    2. Check the serial port printing information. The timer interrupt information is printed every 1S. Press the button to stop printing, and press it again to continue printing, indicating that the program is running normally.
  4. Precautions None