F28335 ePWM block duty cycle logic for SPWM wave
1 次查看(过去 30 天)
显示 更早的评论
I want to generate SPWM wave with 20KHz switching frequency and 50Hz modulating signal frequency. I am using F28335 ePWM block in simulink to do that. That block has duty cycle as input parameter. For SPWM wave, duty cycle should continuously vary, in perticular pattern. can any one suggest some logic to do that.any general logic will help(other than simulink blocks) . p.s. need logic to vary duty cycle of ePWM block in simulink to get SPWM(sinusoidal PWM) signal on F28335 board. any general logic will also help.(other than simulink blocks)
2 个评论
回答(1 个)
bharadwaj r
2015-8-17
use the CMPA register in the ePWM module to change the duty cycle of the PWM
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 C2000 Microcontroller Blockset 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!