I am programming for a sine-wave UPS/Inverter using PIC.
I am using a 32 points sinetable to get values for the timer to make sine-wave for each half cycle - full cycle 64 points (32 - mirror 32).
I succeeded in getting a sine-wave also. So far it seems OK.
Now I need to introduce PWM to this sine-wave so that voltage remains stable irrespective of load.
I am looking for a logic/example code/suggestions to implement PWM based on output voltage reading from ADC.
I am coding in PIC assembly to reduce code size, but I can understand C code also
Thanks.
I am using a 32 points sinetable to get values for the timer to make sine-wave for each half cycle - full cycle 64 points (32 - mirror 32).
I succeeded in getting a sine-wave also. So far it seems OK.
Now I need to introduce PWM to this sine-wave so that voltage remains stable irrespective of load.
I am looking for a logic/example code/suggestions to implement PWM based on output voltage reading from ADC.
I am coding in PIC assembly to reduce code size, but I can understand C code also
Thanks.