Other Parts Discussed in Thread: C2000WARE, SYSCONFIG
Hi all!
In example epwm_ex3_synchronization.c synchronisation part is missign i gues for epwm3.
Apart from that time base counter value is also updated with same phase shifting value to initilaize phase shifting value(the code part is below). What is the purpose of that?
When I update phase shifiting value dynamically should I update the time base counter value every time?
thanks in advance.
cheers,
epwm_ex3_synchronization.c lines 136-142
//
// Initialize PWM2 with phase shift of 300 TBCLKs
//
initEPWM(myEPWM2_BASE);
EPWM_selectPeriodLoadEvent(myEPWM2_BASE, EPWM_SHADOW_LOAD_MODE_SYNC);
EPWM_setPhaseShift(myEPWM2_BASE, 300);
EPWM_setTimeBaseCounter(myEPWM2_BASE, 300);