hi all,
How do I generate a sin wave using PWM? The way I have thought is just to create a triangular wave with equal steps of the PWM duty cycle (depending on freq) and then filter out the harmonics with a hw filter. But what if I want to generate a sin wave instead of a triangular wave, how do I calculate the steps for the duty cycle of the PWM? These steps are not equal, so I will need to store them in a table. Any ideas?
thanks Ivan