c0ed5d099f | ||
---|---|---|
.vscode | ||
CMSIS | ||
build | ||
cmake | ||
n32g430_std_periph_driver | ||
source | ||
.clang-format | ||
.gitignore | ||
CMakeLists.txt | ||
README.md | ||
n32g430_flash.ld | ||
project.cmake | ||
startup_n32g430_gcc.s |
README.md
-
功能描述
- 这个例程显示读端口的高电平和低电平,并控制LED (D1、D2)闪烁
- 控制IO端口电平翻转
-
使用环境
软件开发环境:KEIL MDK-ARM V5.34.0.0 IAR EWARM 8.50.1 硬件环境:基于N32G430C8L7-STB V1.0评估板开发
3.使用说明
/*描述相关模块配置方法;例如:时钟,I/O等*/
SystemClock:128MHz
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)会闪烁
-
注意事项 当检测到PA6引脚处于高电平时,关闭JTAG,当PA6引脚处于低电平时,打开JTAG
-
Function description
- This routine shows the high and low levels of the read port and controls the LED (D1、D2) to flash
- Control IO port level flip
-
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
-
Instructions for use
/* Describe related module configuration methods; for example: clock, I/O, etc. */ SystemClock:128MHz 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 */
- After compiling, download the program to reset and run;
- 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
-
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