Der Mega32 hat 4 mal Hardware PWM. Je einmal 8 Bit an Timer 0 und 2. Sowie 2 mal bis 16 Bit an Timer 1. Sonst ist das Programm so etwa die Standartmethode.