SPWM using F28035 ePWM

7 次查看(过去 30 天)
Derick
Derick 2023-11-7
编辑: Sayan 2023-12-12
Hello,
I am using the Ti F28035 microcontroller to generate sine PWM, as depicted in the PWM figure. I have successfully generated a signal. However, I've encountered an issue with the signal's frequency. Instead of the desired 60 Hz, it measures at 232.7 mHz on the oscilloscope, despite achieving a switching frequency of 50 kHz, which I confirmed. I have created a Simulink model, as illustrated in Figure 2, with the sine parameters provided in the figure. I kindly request assistance in resolving this matter to attain the 60 Hz pulse."
.

采纳的回答

Sayan
Sayan 2023-12-12
编辑:Sayan 2023-12-12
Hi Derick,
I understand from your issue that the SPWM frequency is not the same as desired (60 Hz) when you try to generate it with the model shown above using the ePWM block.
The possible reasons for the same and their resolution are mentioned below.
  • You have provided the value of "Samples per period" of the Sine Wave block as "floor((2*pi)/(60*1e-5))" which does not implement discrete sine wave of frequency 60 Hz. You can use "floor(1/(60*1e-5))" which will implement 60Hz discrete sine wave as the reference "CMPA" values for the ePWM block.
  • Verify the comparison conditions with "CMPA" and "CMPB" in the "ePWMA" and "ePWMB" tabs are selected as required.
You can find more information on Sine Wave and ePWM blocks in the following documentations.
Hope this helps in resolving the issue.

更多回答(0 个)

Community Treasure Hunt

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

Start Hunting!

Translated by