Hallo Richard,
so richtig weitergeholfen hat mir dein Hinweis leider nicht.
Ich ahbe aus dem RN-Wissen folgendes Beispiel:
Code:
$regfile = "M32def.dat" ' the used chip
$crystal = 16000000 ' frequency used
$baud = 9600
Config Scl = Portb.0 ' Ports fuer IIC-Bus, nicht Standard !
Config Sda = Portb.1
' Config I2cdelay = 10 ' je höher der Wert umso langsamer der Bus
I2cinit
Const Pcf_write = &H40 ' Slaveadresse
Const Pcf_read = &H41
' Startausgabe
Print
Print "I2C-Soft Demo mit PCF 8574"
Print
Do
I2cstart
I2cwbyte Pcf_write
I2cwbyte &HAA
I2cstop
Print Err ' Err = 0 -> kein Fehler !
Waitms 500
I2cstart
I2cwbyte Pcf_write
I2cwbyte &H55
I2cstop
Print Err ' Err = 0 -> kein Fehler !
Waitms 500
Loop
End
Hier wird die Slaveadresse mit H40 angegeben.
Wie müsste ich in diesem Beispielfall die drei Adresspins belegen?
Lesezeichen