Files

50 lines
2.2 KiB
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
================================================================================
样例使用说明
================================================================================
版本历史
日期 版本 负责人 IAR MDK GCC 描述
2018-11-27 1.0 Husj 7.70 5.16 8.3.1 first version
================================================================================
平台说明
================================================================================
GCC工程,由Eclipse IDE外挂GNU-ARM Toolchain,再结合pyOCD GDB Server实现工程的编译、
链接和调试。在用Eclipse导入工程后,请将xxxx_PyOCDDebug中pyocd-gdbserver和SVD文件
设置为正确的路径;请将xxxx_PyOCDDownload中pyocd设置为正确的路径。注意,这些路径不
能包含非英文字符。
功能描述
================================================================================
本样例主要展示MCU的TIMER6的输出特定个数的PWM脉冲功能,
说明:
配置Timer61,hclk设置为168M,周期1us,输出PWM
设置Timer61的OVF溢出事件为Trigger source1
设置Timer62的OVF溢出事件为Trigger source0
配置Timer62,由Trigger source1触发向上计数,Timer61由Trigger source0 触发停止和清零计数器。
================================================================================
测试环境
================================================================================
测试用板:
---------------------
EV-HC32F460-LQFP100-050-V1.1
辅助工具:
---------------------
示波器
辅助软件:
---------------------
无
================================================================================
使用步骤
================================================================================
1) 打开工程编译并全速运行。
2) 示波器使用触发功能,每次程序运行的时候,捕获到6个PWM脉冲。
================================================================================
注意
================================================================================
================================================================================