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

README.md

  1. 功能描述

    1. 这个例程显示读端口的高电平和低电平并控制LED (D1、D2)闪烁
    2. 控制IO端口电平翻转
  2. 使用环境

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

3.使用说明

/*描述相关模块配置方法;例如:时钟I/O等*/
SystemClock128MHz
GPIO:选择PA6作为读端口PA1、PA7控制LED (D1、D2)闪烁


/*描述Demo的测试步骤和现象*/
1. 编译完成后,下载程序复位运行;
2. 检查PA6引脚电平:
    如果是高电平LED (D2)常亮;
    如果是低电平则LED (D1)常亮。PA13/PA15/PB4/PA14/PB3依次接LED(D3)如果LED3端口高LED(D3)会闪烁
  1. 注意事项 当检测到PA6引脚处于高电平时关闭JTAG当PA6引脚处于低电平时打开JTAG

  2. Function description

    1. This routine shows the high and low levels of the read port and controls the LED (D1、D2) to flash
    2. Control IO port level flip
  3. 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

  4. Instructions for use

    /* Describe related module configuration methods; for example: clock, I/O, etc. */ SystemClock128MHz GPIO: PA6 is selected as the read level port, PA1, PA7 control LED (D1, D2) to flash

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

    1. After compiling, download the program to reset and run;
    2. Check the level of the PA6 port: If it is high level, LED (D2) is always on; If it is low level, the LED (D1) is always on, and the. PA13/PA15/PB4/PA14/PB3 are connected to LED(D3) in turn, if LED3 port is high, LED(D3) will blink
  5. Matters needing attention When it is detected that the PA6 port is at a high level, close JTAG, and when the PA6 port is at a low level, open the JTAG