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.

[参考译文] TMDSCNCD28335:为 PWM 占空比分配外部控制

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1055528/tmdscncd28335-assigning-external-control-for-pwm-duty-cycle

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

您好!

我有一个关于 eCAP APWM 示例的快速问题、该示例生成占空比为50%的 PWM。 我想从外部信号更改此占空比、而不是使用固定占空比。

提前感谢

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

    我假设您将根据施加到器件引脚上的电压来控制占空比、请查看 ADC 示例。

    将该代码与 APWM 示例相结合。 将 ADC 值缩放到 ACMP 寄存器中(这是 CAPx 寄存器之一)

    示例位于 C2000ware 中、位于以下位置: C:\ti\c2000\C2000Ware_3_04_00_00\device_support\F2833x\examples

    此致、
    Cody