Check Your Understanding10.2.3Check Your Understanding
1.
An I2C bus has four devices connected to the same SCL and SDA lines. The controller addresses the device at 0x70. How many of the four examine those address bits?
All four examine the address; only the one at address 0x70 responds with ACK.
Correct. Because all devices share SDA, every device sees every bit. Each one compares the address it hears against its own; only the matching device pulls SDA LOW for the ACK.
Only the device at address 0x70 sees the bits; the others are unaware of the transaction.
All devices are physically connected to SDA and SCL. They all receive every bit. There is no mechanism to hide bits from particular devices, and none is needed: a device that does not recognize the address simply stays quiet.
Two devices are selected at once; the one with the lower address wins.
On a correctly configured bus each device has a distinct address, so only one can match a given address byte. Parts that ship with the same default address usually have pins or solder pads for changing a few of its bits, which is exactly what you would use to avoid this.
The controller pre-selects one device before sending the address byte, so only that device responds.
There is no such pre-selection step. The address byte itself is the selection, and every device evaluates it in parallel.
SDA changes while SCL is HIGH; data bits may change only while SCL is LOW.
Correct. The normal rule is that SDA holds still during the SCL HIGH phase, because that is when the receiver reads it. START and STOP deliberately break that rule, so an SDA edge while SCL is HIGH cannot be a bit value.
The controller holds SCL LOW for twice as long before the START condition.
SCL timing does not change at the START. What distinguishes it is SDA changing while SCL is HIGH, not anything about SCL itself.
The controller transmits a reserved 0xFF byte immediately before the START condition.
No such preamble exists. START is identified entirely by the relationship between SDA and SCL.
SDA is held LOW for at least eight SCL cycles before data transmission begins.
SDA falls once, for one transition, at the START. The key is when SDA changes, while SCL is HIGH, not how long it stays LOW.
After sending the 7-bit address and the R/W bit, the controller releases SDA and watches it during the ninth SCL pulse. SDA is HIGH during that pulse. What does this tell the controller?
No device recognized the address (NACK). The controller should issue a STOP rather than continue.
Correct. A matching device would pull SDA LOW. If SDA stays HIGH, nobody claimed the address, and the controller ends the transaction with a STOP to free the bus.
The transaction completed successfully and the data was received.
A successful address phase shows SDA LOW, the device pulling it down. SDA HIGH after the address byte means the opposite: no device answered.
The device is busy and will pull SDA LOW on the next SCL pulse, once it is ready.
A device that needs more time holds SCL LOW, not SDA. That is called clock stretching, and the ACK still has to arrive in its own clock pulse. SDA HIGH during the ninth pulse is a NACK.
Two devices share the same address and are colliding on SDA, producing an indeterminate voltage.
If two devices shared an address and both acknowledged, both would pull SDA LOW and the line would read LOW. Open-drain signaling has no indeterminate state. SDA HIGH means nobody responded at all.