This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
Hello, now I'm checking TRM SPRUHM9B of TMS320F2807x.
http://www.tij.co.jp/jp/lit/ug/spruhm9b/spruhm9b.pdf
In Figure 15-8. Time-Base Counter Synchronization Scheme 4, SYNC signal is connected between EPWM1 to EPWM3, but EPWM4 is not connected from EWPM3 by SYNC signal.
On the other hands, in Figure 13-65. Control of Dual 3-Phase Inverter Stages as Is Commonly Used in Motor Control, SYNC signal is connected to EWPM6 from EWPM1.
Can SYNC signal of EPWM on F2807x connect to all of EPWM module? Or, only connect in 3 module(EPWM1 to EPWM3, and EPWM4 to EPWM6..)?
I think all of EPWM module can be connected by SYNC signal like the other Piccolo series, but let me confirm if F2807x also can be used as the same use case.
Regards,
Furuya
Furuya,
Sure- I will work on some sample code. It will likely be 1-2 weeks before delivery.
The basic idea of it is to use the Input X-Bar set to the pin which outputs the EPWM3A or B signal (whichever you want to sync to) and route that to EPWM4's DC submodule to create a sync event. You will then use the TBPHS register as necessary to adjust for the delay of the propagation (value will vary slightly with SYSCLK) and any phase shift.
Regards,
Kris
Hi Furuya,
EALLOW;
CpuSysRegs.PCLKCR0.bit.TBCLKSYNC = 0;
EDIS;
config all ePWMs
EALLOW;
CpuSysRegs.PCLKCR0.bit.TBCLKSYNC = 1;
EDIS;
This wll synchronise all ePWMs.