31/60
VV6501 Serial Control Bus
This example assumes that a write message has already taken place and the residual index value
is 32
10
. A value of 85
10
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
= 36
10
) is read as 15
10
(see
Figure 27
).
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 27: No data write followed by same location read
Figure 28: Multiple location write
S
A
Sr A
A
A
P
21
h
36
h
21
h
36
h
15
h
A
0
0
No data write Read index and data
SA 11
h
AAA20
h
10
h
C1
h
1
Incremental write
P
I2C Registers VV6501
32/60
5 I2C Registers
5.1 Register map
Sensor registers may be split into 5 main categories:
Status Registers (read only)
Setup registers with bit significant functions
Exposure parameters that influence output image brightness
Video timing functions
Audio functions
Any internal register that can be written to can also be read from. There are a number of read only
registers that contain device status information, (for example design revision details).
Names that end with H or L denote the most or least significant part of the internal register. Note
that unused locations in the H byte are packed with zeroes.
A detailed description of each register follows. The address indexes are shown as decimal numbers
in brackets [ ]. Note that there are many unused register locations.
33/60
VV6501 I2C Registers
Table 9: Serial interface address map
Index Name Length R/W Default Comments
Status registers
0x00 deviceH 8 RO 0x1F Chip identification number including
revision indicator (501 Rev0).
0x01 deviceL 8 RO 0x50
0x02 status0 8 RO 0x10 Status information
0x09 dark_avgH 4 RO 0 This is the average pixel value
returned from the dark line offset
cancellation algorithm
(2’s complement notation)
0x0A dark_avgL 8 RO 0
0x0E frame counter 8 RO Current frame count (0-255)
Setup registers
0x10 setup0 8 R/W 0x1 Low-power and video timing
0x11 setup1 8 R/W 0x80 Various parameters
0x14 fg_modes 8 R/W 0 FST and QCK setup
0x15 pin_mapping 7 R/W 0 FST and QCK mapping modes
0x16 vshuffle/mirrors 8 R/W 0 Read-out order of data
0x17 op_format 7 R/W 0x18 Output coding formats
Exposure registers
0x20 fineH 2 R/W 0 Fine exposure
0x21 fineL 8 R/W
0x22 coarseH 2 R/W 0x20A Coarse exposure
0x23 coarseL 8 R/W
0x24 analogue gain 4 R/W 0 Analogue gain setting
0x25 clk_div 4 R/W Clock division
0x2C dark offsetH 3 R/W 0 Dark line offset cancellation value
(2’s complement notation)
0x2D dark offsetL 8 R/W
0x2E dark offset setup 3 R/W 0x61 Dark line offset cancellation enable
Video timing registers
0x52 line_lengthH 2 R/W 0x2F9 Line length (pixel clocks)
0x53 line_lengthL 8 R/W
0x54 frame_lengthH 2 R/W 0x20B Frame length (lines)
0x55 frame_lengthL 8 R/W
Audio register
0x79 audio 4 R/W 0x9 Audio setup register

VV6501C001

Mfr. #:
Manufacturer:
STMicroelectronics
Description:
Video ICs Color Sensor for STV0674 or STV0676
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet