Hi Bala,
The problem is that EVA and EVB have 2 separate timers. The phase separation of
PWMs from the two units has to do with when the EVA timer (T1) is started
relative to EVB (T3). The best way to minimize this separation is to start T3
timer immediately after T1 timer. To close the gap more, you can initialize the
T3 timer with start count so it equals T1 when it is started. This initial value
depends on timer scaling and count mode. To see the code in action, you can
download a free trial of VisSim, a block diagram language for easy model based
development for F28xx targets here: http://www.vissim.com/downloads/demos.html.
Just start VisSim and place 2 Full Compare PWM blocks in a diagram, right click
them to set up desired PWM behavior, and click the "compile" button to generate
code to see exactly how it is done.
Regards,
Jim