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.

ePWM force to stop output

Hi,

I'm using ePWM1A/1B to output two chanels of PWMs, 1A and 1B are synchronized, set with a Deadband.

Is there any method that I can stop PWM1B output and keep 1A outputting by s/w forece? and at suitable timepoint can let 1B work again?

I read the TZ spec but I think it needs external signals, I'd like noly s/w trigger to stop it / re-work.

Regards,

Felix

  • This might be possible by using the Action Qualifier (AQ) submodule of the ePWM.  When software determines that PWM1B should not doing anything, it could modify the action for channel B to "do nothing".  And then when software determines it should turn back on, setup the appropriate action at that time.

    This is just my initial thoughts.  I haven't verified this.

  • Brandon,

    Thanks, I tried another way that setup the 1B pin as GPIO and set High output, it seems working now but I'd like confirm if this is reliable, thanks a lot!

    Regards,

    Felix

  • Hi Felix,

    I believe using the action qualifier method is the best way to solve this issue. However, in this case you should not use the dead-band sub-module of the PWM. Instead you will need to generate PWM1A and 1B outputs using the action qualifier. You could then force PWM1B low using the action qualifier settings.

    The action qualifier method allows you to force the output low/high at a known good point of the PWM cycle (example: at the end of the current period). Configuring the 1B output as GPIO and setting it high will work, but the action may take effect at anytime in the current PWM cycle. If this is acceptable for the powerstage/load that your PWMs are driving, this should be OK.

    Hrishi

  • Hi Hrishi,

    Thanks a lot!

    Regards,

    Felix