I am doing a project about control a motor whose power supplied by a inverter.

The inverter is drived by Sinusoidal PWM waveform generated by PIC.

I try to use look-up table to generate but difficult to control the frequency and firing angle.

Thanks for your answers.