This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] TMS320F280025C:当 CMPAHR 为0时、HRPWM 似乎不准确

Guru**** 1937600 points
Other Parts Discussed in Thread: C2000WARE
请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1002506/tms320f280025c-hrpwm-seem-not-accuracy-when-cmpahr-is-0

器件型号:TMS320F280025C
主题中讨论的其他器件:C2000WARE

您好、专家、

我使用 C2000ware 的演示完成了 HRPWM 测试、

C:\ti\c2000Ware_3_04_00_00\driverlib\f28002x\examples\HRPWM

我只对下面的使用 compCount_test 进行了一些修改、以设置占空比、

HRPWM_setCounterCompareValue (ePWM[i]、HRPWM_COUNTER_COMPARE_A、compCount_test);

我使用示波器测量 PWM 输出的占空比、以下是 COMPCOUNT_TEST 值与占空比之间的关系。

我们可以看到、当 COMPCount_TES=10240、CMPAHR = 0时、占空比为59.1%、小于 COMPCount_TES=10239和 COMPCount_TES=10300时的占空比、

具有该值毫无意义。

这有什么问题吗? 我在此处发布代码以重现问题。

e2e.ti.com/.../hrpwm_5F00_ex4_5F00_duty_5F00_updown_5F00_sfo.7z

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    CMPAHR=0是一个无效的配置。 请始终设置为从1到0xFF。

    还启用了 AUTOCONV。  

x 出现错误。请重试或与管理员联系。