Echt lustig. Im Datenblatt des Mega16 steht zum 16-Bit Zugriff auf das OCRXY-Register:
Das Auslesen würde dann etwa so aussehen:To do a 16-bit write, the High byte must be written before the Low byte. For a 16-bit read, the
Low byte must be read before the High byte.
Code:Dim Temp As Integer , X As Integer X = Ocr3bl 'lowbyte Temp = Ocr3bh * 256 'highbyte X = X + Temp
Lesezeichen