Hallo

Das geht so nicht

if (TIFR = (1<<TOV1) )

Sollte so aussehen

#include <avr/io.h>
...
/* Fuehre Aktion aus, wenn Bit Nr. 1 (das "zweite" Bit) in PINC gesetzt (1) ist */
if ( PINC & (1<<PINC1) ) {
/* Aktion */
}


Siehe dazu auch

http://www.mikrocontroller.net/artic...immten_Zustand

und

http://www.mikrocontroller.net/artic...immten_Zustand


MFG
Dieter