This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

F28335 ePWM block duty cycle logic for SPWM wave

Other Parts Discussed in Thread: CONTROLSUITE

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)