BEEPER_Output
Go to file
xiaoyuluoke f1419cece8 第一次提交 2024-07-25 10:28:32 +08:00
.vscode 第一次提交 2024-07-25 10:28:32 +08:00
CMSIS 第一次提交 2024-07-25 10:28:32 +08:00
build 第一次提交 2024-07-25 10:28:32 +08:00
cmake 第一次提交 2024-07-25 10:28:32 +08:00
n32g430_std_periph_driver 第一次提交 2024-07-25 10:28:32 +08:00
source 第一次提交 2024-07-25 10:28:32 +08:00
.clang-format 第一次提交 2024-07-25 10:28:32 +08:00
.gitignore
CMakeLists.txt 第一次提交 2024-07-25 10:28:32 +08:00
README.md 第一次提交 2024-07-25 10:28:32 +08:00
n32g430_flash.ld 第一次提交 2024-07-25 10:28:32 +08:00
project.cmake 第一次提交 2024-07-25 10:28:32 +08:00
startup_n32g430_gcc.s 第一次提交 2024-07-25 10:28:32 +08:00

README.md

  1. 功能描述

    演示beeper模块的用法。

  2. 使用环境

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

3.使用说明

1. 时钟源:APB2(64MHz) + PSC(32) + Div(1024)
2. 输出端口:
PA6 AF_PP
PA7 AF_PP

3.测试步骤和现象 a:编译并下载代码,进入调试模式 b:用示波器查看波形,验证结果

  1. 注意事项

    1. PA6和PA7的波形互补
    2. APB2时钟频率选择寄存器BEEPER_CTRL.PSC位是根据主频确定的这样输出波形不会失真。
  2. Function description

    This example demonstrates the usage of the beeper module.

  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

    1. Clock source: APB2(64MHz) + PSC(32) + Div(1024)

    2. Output port: PA6 AF_PP PA7 AF_PP

    3. Test steps and phenomena a: Compile and download the code, enter Debug mode b: View the waveform with an oscilloscope to verify the results

  5. Matters needing attention

    1. The waveforms of PA6 and PA7 are complementary
    2. The value of the APB2 clock frequency selection register BEEPER_CTRL.PSC bit is determined according to the main frequency, so that the output waveform will not be distorted.