Regarding ePWM setttings in MATLAB Simulink for TMSF28335 DSP board
2 次查看(过去 30 天)
显示 更早的评论
I am working on DSP F28335, with simulink (MATLAB 2013b). I am stuck with how to configure ePWM(5 AND 6) in MATLAB. When I generate PWM signals using ePWM(1-4), the outputs can be read on the oscilloscope. But this is not the case with ePWM(5-6). What essential steps should i take in MATLAB simulink in order to fix it?
Regards
Mayank
0 个评论
回答(4 个)
Logeesan Arunachalam
2019-5-17
Hi Mayank,
Can you guide me how to generate PWM using ePWM 1- 4. I have been struck for almost 2 weeks. I tried different simulink models, but nothing successful.
Thanks in advance.
2 个评论
minzue93
2019-5-17
I hope this helps you, check the snapshots for the simulink model and parameters settings.
For the value shown as 15000, it is obtained by (150MHz/10kHz) where 10 kHz is the switching frequency and 150MHz is a fixed value for the dsp. The constant (0.35) is considered as an input DC signal, however, it can be replaced also by an AC sine input signal with the same settings. The snapshot shows using ePWM1. The same procedure is applicable for the other PWMs by selecting the ePWM number as presented in the second snapshot as "Module".
![1.bmp](https://www.mathworks.com/matlabcentral/answers/uploaded_files/219964/1.bmp)
![2.bmp](https://www.mathworks.com/matlabcentral/answers/uploaded_files/219965/2.bmp)
![3.bmp](https://www.mathworks.com/matlabcentral/answers/uploaded_files/219966/3.bmp)
![4.bmp](https://www.mathworks.com/matlabcentral/answers/uploaded_files/219967/4.bmp)
![5.bmp](https://www.mathworks.com/matlabcentral/answers/uploaded_files/219968/5.bmp)
![6.bmp](https://www.mathworks.com/matlabcentral/answers/uploaded_files/219969/6.bmp)
Logeesan Arunachalam
2019-8-13
Hi Minzue,
I am able to generate the PWM signal. I want to know how to set duty cycle and systemclock period. Also explain to replacing constant value with AC sine value. What does (u*15000/2) represents.
Logeesan Arunachalam
2019-5-20
Greetings minzue93,
Thanks for your guidance. Keep the good work. It worked.
0 个评论
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!