Board: TMS320F2808
Converter is: Single Phase Inverter or
: Three Phase Inverter
Load is: Resistive type
Problem in: Across load, voltage waveform is sinusoidal but the frequency of load is not 50 Hz
i.e. fundamental frequency.
PWM pulse generate for inverter by comparing either 50 Hz sinusoidal signal with 2 KHz high frequency or Fixed DC value with 2 KHz high frequency. 50 Hz Sinusoidal signal generate using sin() function or lookup table.
PWM pulse generates by comparing 50 Hz sinusoidal signal with 2 KHz high frequency signal and feed to the inverter module. Sinusoidal function generate using sin() and 2KHz high frequency signal generate using Period bit register [TBPRD], MODE bits (UP-DOWN-mode).
Inverter drive DC voltage at input side and generate AC sinusoidal voltage at output side across resistive load, but the frequency of the load voltage is not closer to 50 Hz, it around (4 to 12) Hz.
# So how to drive 50 Hz frequency across load and I am attaching my sample code for Sinusoidal PWM generation: