ISR (TIMER1_COMPA_vect) // timer1 interrupt { duty_cycle--; if (duty_cycle == 0) { duty_cycle = 0xFF; } OCR1A = duty_cycle; }