Hallo,

ich habe jetzt etwas herumprobiert und mit diesem Code bekomme ich 36 khz, allerdings ergeben meine Berechnungen etwas VÖLLIG anderes!
Code:
#include <avr/io.h> 
#include <avr/interrupt.h> 
#include <avr/signal.h> 

volatile uint8_t count = 0; 
volatile uint8_t serv1 = 0;
volatile uint8_t serv2 = 0;
volatile uint8_t pos = 0;


int main(void) 
{ 
 TCCR2 |= (1<<COM20) | (1<<WGM21) | (1<<CS21);
 OCR2 = 71;
 DDRB = (1<<PB3);
 while(1) {};

}
Der Vorteiler ist hierbei 8... ICh muss aber unbedingt herausfinden, was da nicht stimmt.