VV6501
Serial Control Bus
This example assumes that a write message has already taken place and the residual index value
is 3210. A value of 8510 is read from the fineH exposure register. Note that the read message is
terminated with a negative acknowledge (A) from the master: it is not guaranteed that the master
will be able to issue a stop condition at any other time during a read message. This is because if the
data sent by the slave is all zeros, the sda line cannot rise, which is part of the stop condition.
4.3.3
No data write followed by same location read
When a location is to be read and the value of the stored index is not known, a write message with
no data byte must be written first, specifying the index. The read message then completes the
message sequence. To avoid relinquishing the serial to bus to another master, a repeated start
condition is asserted between the write and read messages. In this example, the gain value (index
= 3610) is read as 1510 (see Figure 27).
Figure 27: No data write followed by same location read
No data write
S 21h A 0 36h
Read index and data
A Sr 21h A 0 36h
A 15h A P
As mentioned in the previous example, the read message is terminated with a negative
acknowledge (A) from the master.
4.3.4 Multiple location write
If the automatic increment bit is set (MSB of the index byte), it is possible to write data bytes to
consecutive adjacent internal registers without having to send explicit indexes prior to sending each
data byte. An auto-increment write to the exposure registers with their default values is shown in
Figure 28.
Figure 28: Multiple location write
Incremental write
S 20h A 1 10h A
11h
A C1h
AP
31/60