phase offset two (lead_lag) epwm using c2000 F28379D

Hi , I want to make two PWM module signals that are leading and algging every two periode, as described in the attached phots, so the first signal is leading in the first periode but lagging in the second periode.
the result on the real scope is not accurate ? how to genrate them using high frequncy epwm blocks.
best regards

6 Comments

Hi @mouadh, The scope screenshot you shared looks similar to the result (Signal_SHAPE.jpg) you are aiming for.
Below are some useful resources that explain how to achieve the desired phase shift. The first link provides a comprehensive explanation of the different ePWM synchronization options and how to set them up:
Additionally, you might find this example helpful—it includes a model configured for a 120-degree phase delay, which could serve as a good starting point:
Hi , @Umeshraja , thnaks for the respond, i have looked to thouse examples, but i could not figure out how to make two signals leadings and lagings every 2 periodes , it does not work on the real oscilloscope , if you have any idea, please let me know. thanks in advance
Hi @mouadh, could you attach the model and expected output clearly?
Hi@Umeshraja, the upper model is not working on the normal oscilloscope, so please find attahcd this model (works fine). this model give me shifted signals for each periode as seen in the (signal from simulink.jbg ) attached, but as i described above and is shown in the image (screeshot_signal.jpg) ,i want the phase of the shift to change every two periode , so S2 will lead S1 in the first periode , but in the second periode , S2 will lead S1. how to implement that?
Thanks in advance
Hi @mouadh, One approach you might consider is to generate odd-period and even-period signals separately. The odd-period signals can have a time period of 2T with a negative phase shift, while the even-period signals can use a positive phase shift. You can then combine these independently generated signals to form the final result.
Hi@Umeshraja , would you please draw the carriers and the sin for me, iam bit lost here.
thnaks in advance

Sign in to comment.

Answers (0)

Asked:

on 14 Jun 2025

Commented:

on 19 Jun 2025

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!