I am using 16f72 asm code to generate sinusoidal PWM.I not getting idea to start,Theory says that sine pwm can be generated by comparing sine and triangular waves.
I know how to use CCP module.can anyone help me how to do the same using software.
Mr AMK1971 given me good logic..i have tried using CCP1 in compare mode,but i didnt get the correct output.Is the pwm will be generated only using CCP1 in PWM mode?
My input freq is 50HZ and switching freq is 20khz.