Missing pulse with variable phase shift and configuring action qualifier
Hello,
I am using simulink to program c2000 TMS320F28379D microcontroller to test a dc-ac converter. I have a variable phase-shift input to the epwm. My TBPRD is 330 and the phase shift counter value can vary from -165 to 165 for up count mode. I am having issue with missing pulses near zero crossing. I posted this question on TI forum and got a suggestion to implement a trigger to check if TBCTR is less than CMPA and the TBPHS value is greater than CMPA. Below is the link for the link for the question I asked and the response. I see that there is a way to specify software synchronization through input port. However, I am not sure how to configure TBCTR and input the suggested logic in simulink.
The suggested logic is toselect EPWMxSYNC as the T1 event source and then set the action taken on T1-up to be setting the EPWM2A high. In this way, the action from a T1-up event would supplement what the missing CMPA(up) = 1000 action would have done.
Keep in mind that when these conditions are not true, the T1-up/down events need to be disabled to prevent it from affecting your desired duty cycle. Let me know if you have further questions here or have made any other progress.
How can I implement this logic in the epwm to handle these missing pulses?
Question I posted on TI forum
https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1372906/tms320f28379d-tms320f28379d-missing-pulses-with-variable-phase-shift
TI forum response
https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1312604/tms320f28379d-tms320f28379d-phase-shift-pwm-missing-pulse
I have also attached the simulink file. Would it be possible to check if my epwm configurations are correct? I have a missing pulse near the zero crossing of ac line voltage since a sharp phase shift transition happens there.
Thank you in advance.Hello,
I am using simulink to program c2000 TMS320F28379D microcontroller to test a dc-ac converter. I have a variable phase-shift input to the epwm. My TBPRD is 330 and the phase shift counter value can vary from -165 to 165 for up count mode. I am having issue with missing pulses near zero crossing. I posted this question on TI forum and got a suggestion to implement a trigger to check if TBCTR is less than CMPA and the TBPHS value is greater than CMPA. Below is the link for the link for the question I asked and the response. I see that there is a way to specify software synchronization through input port. However, I am not sure how to configure TBCTR and input the suggested logic in simulink.
The suggested logic is toselect EPWMxSYNC as the T1 event source and then set the action taken on T1-up to be setting the EPWM2A high. In this way, the action from a T1-up event would supplement what the missing CMPA(up) = 1000 action would have done.
Keep in mind that when these conditions are not true, the T1-up/down events need to be disabled to prevent it from affecting your desired duty cycle. Let me know if you have further questions here or have made any other progress.
How can I implement this logic in the epwm to handle these missing pulses?
Question I posted on TI forum
https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1372906/tms320f28379d-tms320f28379d-missing-pulses-with-variable-phase-shift
TI forum response
https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1312604/tms320f28379d-tms320f28379d-phase-shift-pwm-missing-pulse
I have also attached the simulink file. Would it be possible to check if my epwm configurations are correct? I have a missing pulse near the zero crossing of ac line voltage since a sharp phase shift transition happens there.
Thank you in advance. Hello,
I am using simulink to program c2000 TMS320F28379D microcontroller to test a dc-ac converter. I have a variable phase-shift input to the epwm. My TBPRD is 330 and the phase shift counter value can vary from -165 to 165 for up count mode. I am having issue with missing pulses near zero crossing. I posted this question on TI forum and got a suggestion to implement a trigger to check if TBCTR is less than CMPA and the TBPHS value is greater than CMPA. Below is the link for the link for the question I asked and the response. I see that there is a way to specify software synchronization through input port. However, I am not sure how to configure TBCTR and input the suggested logic in simulink.
The suggested logic is toselect EPWMxSYNC as the T1 event source and then set the action taken on T1-up to be setting the EPWM2A high. In this way, the action from a T1-up event would supplement what the missing CMPA(up) = 1000 action would have done.
Keep in mind that when these conditions are not true, the T1-up/down events need to be disabled to prevent it from affecting your desired duty cycle. Let me know if you have further questions here or have made any other progress.
How can I implement this logic in the epwm to handle these missing pulses?
Question I posted on TI forum
https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1372906/tms320f28379d-tms320f28379d-missing-pulses-with-variable-phase-shift
TI forum response
https://e2e.ti.com/support/microcontrollers/c2000-microcontrollers-group/c2000/f/c2000-microcontrollers-forum/1312604/tms320f28379d-tms320f28379d-phase-shift-pwm-missing-pulse
I have also attached the simulink file. Would it be possible to check if my epwm configurations are correct? I have a missing pulse near the zero crossing of ac line voltage since a sharp phase shift transition happens there.
Thank you in advance. missing pulse, trigger MATLAB Answers — New Questions