Other Parts Discussed in Thread: C2000WARE
Tool/software: Code Composer Studio
i have been trying to develop spwm code for 3 phase inverter and have been partially successful. The code seems to work but it has an error of holding the high state for 4 periods (20k epwm freq).
the specs are:
20k epwm signal, 60hz sine wave (thus 333 LUT).
below is my workspace showing the sinewave's output. used the interrupt to access the LUT and update the compare values every time the carrier signal reaches zero.
SPWM code
Sope video and image
As can be seen in the above image, it maintains a 1 state for 4 periods of the carrier frequency.
any help is appreciated, thanks.