Hello all,
In my application, I have EPWM1A and EPWM1B working with complementary configuration. I also monitor one analog input signal. Once it is higher the upper threshold, force EPWM1A low and force EPWM1B high; Once it is lower than the lower threshold, force EPWM1A high and force EPWM1B low. Both EPWMs shall be working in CBC mode.
Right now, I can use digital compare sub-module to give me DCAEVT2 and DCBEVT2 (I can only use EVT2 because only EVT2 can work with CBC). DCAEVT2 can be configured as trip zone CBC source and trip zone action can be set as "force EPWM low" or "force EPWM high". I can do the same thing for DCBEVT2.
The only problem with this approach is that I can not set trip zone on EPWM on different events.
For example, I can set DCAEVT2 when exceeding upper threshold and set DCABEVT2 when exceeding upper threshold. Then configure TZA = force EPWM low and configure TZB = force EPWM high. By doing this, only half of what I want is done.
Can someone help me on this? (Also, TZCTL2 doesn't work for my case because EPWM is working as counting up and down mode).
Thank you!