Ich will eigentlich nur einen PCF8591 ansteuern.

Eine analog Spannung, die an dem Pin AIN0 des 8591 anliegt soll ausgelesen werden.

Wie gesagt wird ein Mega8515 benutzt als MC benutzt.

Ich habe bis jetzt folgenden Code:
Code:
$regfile = "m8515.dat"                                      'ATmega8515-Deklarationen
$crystal = 4000000                                          'Quarz: 4 MHz
$baud = 9600

Dim Wert As Byte

Config Scl = Portb.2
Config Sda = Portb.3

I2cinit

I2cstart
I2cwbyte &B10010000
I2cwbyte &B00000000
I2cstop

I2cstart
I2cwbyte &B10010001
Do
   I2crbyte Wert , Ack
   Print Wert
Loop
I2cstop

End                                                         'end program
Ich bekomme aber nur sinnlose Ergebnise daraus.
Irgendwas ist mit dem Code nicht in Ordnung.