![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/325411/image.png)
How can I generate Arbitrary PWM with specific pattern on C2834x DSP?
2 visualizzazioni (ultimi 30 giorni)
Mostra commenti meno recenti
Hello.
I am trying to generate a signal with same width as in figure on 2834x DSP using c2000 support package. Unfortunately ePWm modules CANNOT be used and the only option that I have got are the GPIO pins. I tried repeating sequence stair block and it worked fine When sampling time was 1/(3*140000). However, when decreasing the samplig time to 1/(12*140000), the PWM pin behaviour becomes awkward and the pins is either always ON r always OFF. I tried modifing the step size to be lower value 1/(120*140000), but it also gave this awkward behaviour.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/316602/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/316605/image.png)
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/316608/image.png)
0 Commenti
Risposte (1)
Venkatesh Chilapur
il 2 Lug 2020
Hi,
Here is an idea:
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/325411/image.png)
I set the solver to 0.01step time in above case.
HTH,
Regards,
Venkatesh C
Vedere anche
Categorie
Scopri di più su C2000 Microcontroller Blockset in Help Center e File Exchange
Prodotti
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!