#include "avr/io.h" #include "avr/interrupt.h" int main () { ddra = 0xff; ddrd = 0xff; ddrb |= 0x40; portb |= 0x01; tcnt0 = -200; tccr0 = 0x06; tcnt1h = (-31250)>>8; tcnt1l = (-31250)&0xff; tccr1a = 0x00; tccr1b = 0x04; timsk = (1<>8; tcnt1l = (-31250)&0xff; porta ++; }