Das R/W Bit ist Bestandteil der Adresse (Bit 0). Ist das Bit 0 auf 0, dann werden die vom Master gesendeten Daten auf das Port ausgegeben. Ist das Bit 0 auf 1, dann werden die Daten vom Port gelesen und an den Master gesendet.
Die I2C Adresse besteht eigentlich aus 2 Adressen: 0xX0 und 0xX1.
Siehe auch:
I2C Interface
PCF8574
SCPS068G–JULY 2001–REVISED MAY 2008.............................................. .................................................. .................................................. ............ www.ti.com
I2C communication with this device is initiated by a master sending a start condition, a high-to-low transition on
the SDA I/O while the SCL input is high. After the start condition, the device address byte is sent,
most-significant bit (MSB) first, including the data direction bit (R/W). This device does not respond to the general
call address. After receiving the valid address byte, this device responds with an acknowledge, a low on the SDA
I/O during the high of the acknowledge-related clock pulse. The address inputs (A0–A2) of the slave device must
not be changed between the start and the stop conditions.
The data byte follows the address acknowledge. If the R/W bit is high, the data from this device are the values
read from the P port. If the R/W bit is low, the data are from the master, to be output to the P port. The data byte
is followed by an acknowledge sent from this device. If other data bytes are sent from the master, following the
acknowledge, they are ignored by this device. Data are output only if complete bytes are received and
acknowledged. The output data will be valid at time, tpv, after the low-to-high transition of SCL and during the
clock cycle for the acknowledge.
A stop condition, which is a low-to-high transition on the SDA I/O while the SCL input is high, is sent by the
master.
Interface Definition
BIT
BYTE 7 (MSB) 6 5 4 3 2 1 0 (LSB)
I2C slave address L H L L A2 A1 A0 R/W
I/O data bus P7 P6 P5 P4 P3 P2 P1 P0
Lesezeichen