Danke, mit "volatile" funktioniert es. Davon hab ich aber vorher noch nichts gehört, weil ich globale Variablen bis jetzt auch ohne volatile fehlerfrei benutzen konnte.

Warum muss ich OCR1A noch -1 rechnen?

Gruß Luz