Zitat Zitat von The Man
unsigned int* rot;
rot = &OCRn;
So müsste es gehen:

Code:
unsigned int* rot;
rot = (unsigned int*)&OCR2
Getestet -> Bei mir kommt kein Fehler.

Allerdings machen mir beim Disassemblieren diese zwei Zeilen Sorgen:
Code:
+00000030:   B7CD        IN      R28,0x3D         In from I/O location
+00000031:   B7DE        IN      R29,0x3E         In from I/O location