Part Number: TMS320F280041
Other Parts Discussed in Thread: C2000WARE
Hi,
I am implementing control for phase shifted full bridge converter with TMS320F280041 microcontroller.
Power is controlled with EPWM1-EPWM4 phase shift. EPWM1 and EPWM4 are set in up-down mode and linked (EPWM1 sync out is used as EPWM4 sync in and phase controlled with TBPHS registers). Freq is 100kHz and duty 50%. Phase shift is in range [1; 0,5] (epwm1 lags after epwm4). Control loop frequency is 10kHz
This is working fine for me.
However, I am trying to implement synchronous rectifier control on EPM7 with usage of EPWM1 and EPM4 output OFF and ON events, similar like described with this topic:
https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1158329/tms320f280048-q1-how-to-obtain-sr-waveforms-by-monitoring-other-epwm-channels-on-and-off-edges?tisearch=e2e-sitesearch&keymatch=synchronize%252520rectifier#
I am using T1 event to do that, the idea is:
EPWM1: up-down mode, turn ON at CMPA up, turn OFF on CMPA down
EPWM4: up-down mode, turn ON at CMPA up, turn OFF on CMPA down, with phase shift in relation to EPWM1, CMPB-equal to CMPA is sync out for EPWM7
EPWM7: up-down mode, as default set as EPWM1, but sync in from EPWM4 used as T1 event, so output is controlled with T1 and CMPA events
As I see, that logic of T1 is related to phase shift. When phase shift is greater than 0.75, then my event for controlling EPWM7 output is T1D, below 0.75 this event changes to T1U.
So with that I must change "on the fly" configuration of action qualifier for EPWM7.
The problem is that, when I change this configuration when phase shift is 0.75 (which I do with checking TBPRD and TBPHS registers and their relation), then it looks like that sometimes it is too soon -
action qualifier configuration was changed so it reacts to T1U instead of T1D and this is ruining desired PWM waveform.
Could you help me investigate and understand this issue? I will update this topic with code and images later if needed.
I would like to stay with T1 event approach as I am using digital compare module with CMPSS for protection


