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.

[参考译文] PWM eCAP

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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1130537/pwm-ecap

我们正在尝试使用 Simulink 中的 PWM eCAP 函数。 我们的电流设置具有事件1/3捕获的下降沿和2/4捕获的上升沿。 我们已经尝试过 uint16和 uint32、我们得到的物理值丝毫不会与提供给它的 kHz 输入相关联。 您是否会碰巧知道导致这种情况的原因?

以下是我们获得的值的一些示例:

50%占空比(5V、1V 偏移):

55%占空比(5V、1V 偏移):