
VV5410 & VV6410
Serial Control Bus
cd5410-6410f-3-0.fm
Commercial in confidence
82/105
9.6
This section gives guidelines on the basic operations to read data from and write data to the serial interface.
Types of messages
The serial interface supports variable length messages. A message may contain no data bytes, one data byte or many data
bytes. This data can be written to or read from common or different locations within the sensor. The range of instructions
available are detailed below.
Write no data byte, only sets the index for a subsequent read message.
Single location data write or read for monitoring (real time control)
Multiple location read or write for fast information transfers.
Examples of these operations are given below. A full description of the internal registers is given in the previous section. For all
examples the slave address used is 32
10
for writing and 33
10
for reading. The write address includes the read/write bit (the lsb)
set to zero while this bit is set in the read address.
9.6.1
When a random value is written to the sensor, the message will look like this:
Single location, single data write.
In this example, the fineHexposure register (index = 32
10
) is set to 85
10
. The r/w bit is set to zero for writing and the
of the index byte) is set to zero to disable automatic increment of the index after writing the value. The address index is preserved
and may be used by a subsequent read. The write message is terminated with a stop condition from the master.
bit (msbit
9.6.2
A read message always contains the index used to get the first byte.
Single location, single data read.
This example assumes that a write message has already taken place and the residual index value is 32
10
. A value of 85
from the fineHexposure 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 sdaline cannot rise, which is part of the stop condition.
is read
Figure 38 : Single location, single write.
S
32
10
A
0
32
10
A
85
10
A
P
Start
Device
address
Ack
Index
Data
Stop
Inc
Figure 39 : Single location, single read.
S
33
10
A
0
32
10
A
85
10
A
P
Start
Device
address
Ack
Index
Data
Stop
Master reads from slave, acknowledging
each byte