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.

[参考译文] TMS320F28388D:如何随着时间的推移提高(或降低) PWM 信号的频率?

Guru**** 2614265 points


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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1033158/tms320f28388d-how-can-one-increase-or-decrease-the-frequency-of-a-pwm-signal-over-time

器件型号:TMS320F28388D

您好!

我目前正在开发用于步进电机控制的代码 、我正在使用 PWM 信号来驱动电机。 我希望开发的功能之一是能够定义 运动曲线。   目前、我希望实现梯形曲线。

虽然我知道如何使用 ePWM_setTimeBasePeriod()函数来更改基于时间的周期,但我 想知道,除了调用上述函数之外,是否还有其他方法可以随时间变化频率,该函数在每个 CTR=0触发的中断函数中进行。

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

    您可以设置 DMA 以自动执行此操作。 但这是您的两个选择。