ZHCSJQ8C may 2019 – june 2023 TCA9548A-Q1
PRODUCTION DATA
Reading from a target is very similar to writing, but the controller sends a START condition, followed by the target address with the R/ W bit set to 1 (signifying a read). The target acknowledges the read request, and the controller releases the SDA bus but continues supplying the clock to the target. During this part of the transaction, the controller becomes the controller-receiver, and the target becomes the target-transmitter.
The controller continues to send out the clock pulses, but releases the SDA line so that the target can transmit data. At the end of every byte of data, the controller sends an ACK to the target, letting the target know that it is ready for more data. Once the controller has received the number of bytes it is expecting, it sends a NACK, signaling to the target to halt communications and release the bus. The controller follows this up with a STOP condition.
Figure 8-5 shows an example of reading a single byte from a target register.