#define F_CPU 8000000UL #include "avr/io.h" #include "util/delay.h" int main ( ) { unsigned char i; DDRB = 0x08; i = 127; OCR0 = 127; TCCR0 = 0x73; while (i != 0) { OCR0 = i; _delay_ms(25); i++; } while (1); return 0; }