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.

LAUNCHXL-F28027: syncing ePWM blocks on Simulink

Part Number: LAUNCHXL-F28027

Hi,

I'm working on a project very similar to the example "Control of a 3-Phase Interleaved DC/DC Converter" from the ePWM reference guide, shown below. 

I have 3 ePWM blocks, one working as the master module, the other two as slaves 120 and 240 deg phase-shifted. I would like them to output exactly the same signal, just phase-shifted. 
My input to the ePWM blocks, which is the duty cycle (just one value for all three of them) obtained from the current values read in by three ADC blocks and their successive elaboration through a closed-loop control system, is varying because of the nature of my hardware. Even if this varies at the same frequency as my ePWM blocks, the two frequencies don't seem to be synchronised. As a consequence the three ePWM blocks read in the given duty cycle value at different moments (each when its own timer starts counting-->timer=zero. Alternative options are available, but none puts different ePWM blocks in relation with each other). This means, that if the duty cycle varies between the timer start of ePWM1 and that of ePWM2, the latter will output a different PWM signal.

Is there a way to synchronise all three PWM blocks to read in the duty cycle value at the same time, independently from their timers running at different phase angles?

Alternatively, I have tried triggering all 3 ADC blocks through the same ePWM block ( the master ), so that the current inputs and thus the processed output value for the duty cycle wouldn't change throught the whole ePWM1 timer period (master). That somehow didn't work, though. ((didn't make use of any interrupt option))

Thanks in advance for your help,

Andrea