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.
Hello,
I am trying to understand how to halt the repetition of an EPWMx pulse train output, such that the last pulse is not truncated. The figure below illustrates the situation. I'd prefer to use a software command to initiate the halting, such as EPWM1.AQCSFRC.bit.CSFA = 2, which would place the output to a continuous high value, which is what I want. However, I want the final negative-going pulse to be like all those before it. In my case, the document sprug04a.pdf applies, and I have studied all the submodules including Dead Band and Trip Zone, but all I can gather from this document is that if the software forcing (CSFA=2) command happens to occur during the negative-going pulse, the pulse width will be truncated accordingly, that is, the forcing action is completely asynchronous to EPWM1 signal. I searched the community threads on E2E and some of the topics come close to what I am trying to do, but nothing seems conclusive that this is possible. I am just beginning to use ePWM modules, so perhaps I am missing something. I would greatly appreciate any suggestions.
Thanks,
Nick
Nick,
Which C2000 device are you using? There's not a straightforward way to do what you're looking for with the ePWM, but I'm pretty sure it can be done.
What does your trigger event look like? Is it a short pulse or a long event? Is there an expected range?
Can you explain why you want this to be a software triggered event? Most users prefer for this to be hardware as it is generally a fail event causing the PWM shutdown.
Regards,
Kris
Nick,
I think I understand most of it, but the "one-time sync" is throwing me off a bit. Is the goal to have the waveform only run for one period, or it runs many times and will terminate after the trigger?
Could your "trigger" be to just change your CAU to be greater than PRD, therefore it is never reached and the waveform is never set low? Assuming you are using shadow mode, this would result in the current PWM period completing as normal and the following one staying constant high because there is not an AQ event to change it.
Just a note, the EPWM guide you linked to is for an older device. Use the following document for future reference. It won't make any difference in this scenario, but may help you in other areas. Your EPWM has more features than the F2833x.
http://www.ti.com/lit/ug/spruhe8d/spruhe8d.pdf
Regards,
Kris