#include "avr/io.h" #include "avr/interrupt.h" int main ( ) { ddrb |= 0x82; ddrc = 0x00; ddrd = 0xff; tcnt0 = -160; tccr0 = 0x01; tcnt1h = (-640)>>8; tcnt1l = (-640); tccr1a = 0x00; tccr1b = 0x01; timsk = (1<>8; tcnt1l = (-640); portb ^= 0x80; }