Quest for a sinewave, using PWM. Atmega168 DDS Sinewave Generator With fancy low-pass. Atmega16 Sinewave Generator with 'Fast PWM Mode' of AVR PWM Sine Wave Generation aka. Direct to Digital Synthesis [DDS], ATmega328P and ATmega8.