i configured 2 ePWM modules in f28335 using simulink.
(1) module 1 is giving 50Hz square wave.
(2) module 2 is giving 20000Hz SPWM wave.
for sync between these two modules, i set SYNCO of PWM1 to CTR=ZERO. Also Synchronization action of PWM2 to zero counter offset.
problem: 20000Hz wave is slowly shifting with respect to 50Hz wave.
p.s. SPWM wave has 50Hz of modulating signal frequency. So both wave should give one constant pattern on oscilloscope.