Hello,
I'm working with the microcontroller TMS320F28062PZPS.
As discovered on the forum topics, there are 2 cases, how the events are treated by EPWM module:
1. Using TZCTL [TZA & TZB]:
In this case the ouput change is applied immediatly upon event detection (for. eg. output is forced low).
Output then returns back when TBCTR = 0x0000 (for eg. on the start of the next period).
The blue line is PWM, the red line is current. When the current value triggers the event, the pwm goes low and stays low until the next period.
2. Using TZCTL [DCxEVT1 & 2]:
In this case the output change is applied immedialty, too.
But as soon as event condition is gone, the output returns back to original state.
This can be clearly seen on the image. The current (red line) is constantly trigging the event. So the pwm has being "chopped".
My question is:
Is it possible, to configure DCxEVT1 or 2 to work as TZA and TZB ?
So that also in the second case the pwm signal won't be chopped ?
I'm asking this, because I have 2 different trip conditions, which need 2 different actions.
For eg.:
Trip condition 1: PWMxA -> Forced HI, PWMxB -> Forced LO
Trip condition 2: PWMxA -> Forced LO, PWMxB -> Forced HI
If I understand right, TZCTL [TZA and TZB] reactions can be "connected" only to one trip condition.
With using TZCTL [ DCxEVT1 and DCxEVT2 ] I cover both conditions (but in this case I would need the output to remain latched till the end of the pwm period).
Thanks and best regards
Andrej

