TIMSK = (1<< TOIE1); setzt das Flag für den Overflow-Interrupt. Das steht wohl für TimerOverflowInterruptEnable.
Edit: War ja klar, dass diese Antwort zu einfach ist. WGM12 gesetzt bedeutet CTC-Mode, dann ist "TIMER1_OVF_vect" natürlich die falsche ISR. Allerdings ist WGM12 ein Flag in TCCR1B, richtig wäre deshalb:
(ungetestet)Code:TCCR1A = 0; TCCR1B = (1 << WGM12) | (1 << CS12); OCR1A=65535; TIMSK = (1<< OCIE1A); ISR (TIMER1_COMPA_vect) { [...] }
Lesezeichen