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.

TMS320F28377D: How to stop ePWM after one switching period and how to make ePWM turn on twice per perid

Part Number: TMS320F28377D
Other Parts Discussed in Thread: SYSCONFIG

Hi, 

I am using the SysConfig feature in F28377D to produce my ePWM by modufying cbl-exp8.  

1. Please how can I make all my PWM (4 of them) to run just for one switching period and stop?

2. With reference to the figure below, I want my ePWM (s4) to turn on twice in a switching cycle, please how can I achieve this in SysConfig? 

Thank you Slight smile

  • Hi Olutayo,

    1. The TRM is the best source for this information but the method will depend on the desired state of the PWM pins once you "stop" PWM operation. The most common method used to "stop" all or selected PWM outputs is to use the Trip Zone module (for example, a one-shot forced trip; this video explains the trip zone and CBC vs OST trips). Another method could be to stop the clock to the timer, or perhaps change your action qualifier settings so that they result in no PWM activity. 

    2. To have the PWM pulse more than once within a PWM period, you just need to configure the right action qualifiers. I've done so as an example in a very simple case where EPWM1A goes high on 0, low on CMPAU, high on PRD, low on CMPAD to create two pulses within an up-down PWM counter period. Just be sure to stay within datasheet switching frequency specs while doing this. 

    Best Regards,

    Allison