#define F_CPU 16000000L
//
#include <avr/io.h>
#include <avr/interrupt.h>
//
SIGNAL(TIMER1_COMPA_vect) {
	
}
//
int main(void) {
	TCCR1A = 0;	//Set timer to 0;
	ICR1 = 19999;	//Puls wird alle 20ms gesendet;
	TCCR1A = (1<<WGM11);	//WGM 111 == FAST PWM;
	TCCR1B = (1 << WGM13) | (1<<WGM12) | (1 << CS11);	//Prescaler = 8;
	DDRB |= _BV(5) |  _BV(6);	//port 5 und 6 als Output;
	//
	TCCR1A |= 2 <<  6;
	TCCR1A |= 2 <<  4;
	//
	OCR1A = ICR1 * 2 /20;
	OCR1B = ICR1 * 2 /20;
	//
	TIMSK1 = (1<<TOIE1);
	sei();
	while(1) {}
}
