VV5301 & VV6301
this example, the gain value (index = 3610) is read as 1510:
Serial Control Bus
No data write
Read index and data
S 3310 A 0 3610 A Sr 3310 A 0 3610 A 1510 A P
Figure 17 : No data write followed by same location read.
As mentioned in the previous example, the read message is terminated with a negative acknowledge (A) from the master.
8.6.4 Same location multiple data write.
It may be desirable to write a succession of data to a common location. This is useful when the status of a bit must be toggled.
Write to pin_mapping
S 3210 A 0 2110 A
Toggle control bit
410
A
010 A
410 P
Figure 18 : Same location multiple data write.
8.6.5 Same location multiple data read
When an exposure related value (fine
H, fineL, coarseH, coarse L, gain or clk_div) is written, it takes effect on the output at the beginning of the next video frame,
(remember that the application of the gain value is a frame later than the other exposure parameters). To signal the consumption
of the written value, a flag is set when any of the exposure or gain registers are written and is reset at the start of the next frame.
This flag appears in status0 register and may be monitored by the bus master. To speed up reading from this location, the sensor
will repeatedly transmit the current value of the register, as long as the master acknowledges each byte read.
In the below example, a fineH exposure value of 0 is written, the status register is addressed (no data byte) and then constantly
read until the master terminates the read message.
Write fineL with zero
Address the status0 register
S 3210 A 0 3310 A
010
A Sr 3210 A
Read continuously...
010 A
Sr 3310 A 0 010 A
110 A
110
A
...until flag reset
110
A
010 A P
Figure 19 : Same location multiple data read.
110 A
40/50
cd5301_6301f-3-0.fm
Commercial in confidence