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.

TMS320F28379D: PWM issue

Part Number: TMS320F28379D

Tool/software:

Dear team,

I’m trying to generate a complementary-like signal using a single ePWM module on the F28379D. Specifically, I want to output two signals: ePWM1A and ePWM1B. They don’t need to be complementary, but they should have a 180-degree phase difference, and I need to be able to control their duty cycles individually.

Ideally, I’d like to achieve this using only one ePWM module, instead of using two separate ones.

However, when I try to control ePWM1A and ePWM1B independently without enabling the complementary mode, it seems I need three Compare values to achieve this.

So I’m wondering: is there any other way to achieve this with a single ePWM? Maybe by using additional features like CMPC or TCR? Our goal is to implement this purely through software.

Best,

Peter

  • Hello Peter,

    If you want to make ePWM and ePWMB complementary (out of phase 180deg), you could use inverted mode available in Dead-band submodule. 

    If you want to adjust them separately, you could add individual action qualifier actions, let's say Action qualifier does the action on CMPA which is used for PWMA and on CMPB which is used for PWMB.