Files
LFP_48V_mBMS_FW/APP_R3221/example/timer6/PwmHwCompare/Readme.txt

52 lines
2.2 KiB
Plaintext
Raw 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-29 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输出功能,
说明:
配置timer6,hclk设置为168M,PWM周期400us,死区时间10us
================================================================================
测试环境
================================================================================
测试用板:
---------------------
EV-HC32F460-LQFP100-050-V1.1
辅助工具:
---------------------
示波器
辅助软件:
---------------------
无
================================================================================
使用步骤
================================================================================
1) 打开工程编译并全速运行。
2) 使用示波器测试PE09和PE08的输出波形,
看到PE09(Timer61 PWMA)和PE08(Timer61 PWMB)输出PWM波形,PWMA的占空比一大一小交替,
PWMB与PWMA反相,
并且PWMB的下降沿早于PWMA的上升沿10us,
PWMB的上升沿晚于PWMA的下降沿10us。
================================================================================
注意
================================================================================
================================================================================