Hello Chris
I am sitting and analyzing function DRV_setupPwms. How synchronization of EPWM1,2,3 modules is done? As I understand, three reference modulating waves Ta,Tb,Tc are compared against triangular waves which are IN PHASE.
It seems you don’t use SyncIn pulse to cause TBPHS register to be loaded into the TBCTR register. You don’t use Master-Slave scheme at all.
Instead you set up all three EPWM1,2,3 modules to work as Masters and use TBCLKSYNC bit of PCLKCR0 to synchronize them. Does it really work? Will TBCLK clocks be in phase over time?
Why you don’t use Master-Slave scheme as it is described in SPRUGE9E page 91 ?
Thank you