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.

[参考译文] TMS320F28335:如何使用 ePWM 块生成相移载波?

Guru**** 2471920 points


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

https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1477724/tms320f28335-how-to-generate-phase-shifted-carrier-using-epwm-blocks

器件型号:TMS320F28335

工具与软件:

我使用的是 DSP F28335。 我需要生成三个120度相移载波。 我曾尝试通过添加相位偏移来实现此目的、但仍然未在脉冲中获得相移。

ePWM 设置如下

fsw = 10e3;
TINV=1/Fsw
clk=150e+6;%system clk
tbprd=TINV*clk/2;%基于时间的周期
对于0度 相位偏移值(TBPHS)、则为"0"。

 对于120度相位偏移值为"(tbprd*120)/360"

 对于-120度相位偏移值为"(tbprd*240)/360"

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

    Ankita、您好!

    我不熟悉 MCU 的 Matlab 界面。

    请在加载代码后进行检查、如果寄存器配置正确、则进行初始化。

    具体来说、相位使能已设置且 TBPHS 寄存器具有正确的值。

    如何为 EPWM2和3选择同步源? 由于相位值在同步事件时加载、正确选择同步源非常重要

    谢谢