VV5410 & VV6410
Serial Control Bus
cd5410-6410f-3-0.fm
Commercial in confidence
60/105
9.
Serial Control Bus
9.1
Writing configuration information to the video sensor and reading both sensor status and configuration information back from the
sensor is performed via the 2-wire serial interface.
General Description
Communication using the serial bus centres around a number of registers internal to the video sensor. These registers store
sensor status, set-up, exposure and system information. Most of the registers are read/write allowing the receiving equipment to
change their contents. Others (such as the chip id) are read only.
The main features of the serial interface include:
Variable length read/write messages.
Indexed addressing of information source or destination within the sensor.
Automatic update of the index after a read or write message.
Message abort with negative acknowledge from the master.
Byte oriented messages.
The contents of all internal registers accessible via the serial control bus are encapsulated in each start-of-field line - see Section
8.3.5.
9.2
The co- processor or host must perform the role of a communications master and the camera acts as either a slave receiver or
transmitter.The communication from host to camera takes the form of 8-bit data with a maximum serial clock host frequency of up
to 100 kHz. Since the serial clock is generated by the bus master it determines the data transfer rate. Data transfer protocol on
the bus is illustrated in Figure 35.
Serial Communication Protocol
9.3
Information is packed in 8-bit packets (bytes) always followed by an acknowledge bit. The internal data is produced by sampling
sdaat a rising edge of scl The external data must be stable during the high period of scl The exceptions to this are
stop(P) conditions when sdafalls or rises respectively, while sclis high.
Data Format
A message contains at least two bytes preceded by a startcondition and followed by either a stopor repeated start, (Sr)followed
by another message.
The first byte contains the device address byte which includes the data direction read,(r), ~write (~w), bit. The lsb of the address
byte indicates the direction of the message. If the lsb is set high then the master will read data from the slave and if the lsb is reset
low then the master will write data to the slave. After the r, ~w bit is sampled, the data direction cannot be changed, until the next
address byte with a new r, ~wbit is received.
1
2
7
8
A
Start condition
Stop condition
SDA
SCL
Acknowledge
P
S
3
4
5
6
Address or data byte
MSB
LSB
Figure 35 : Serial Interface Data Transfer Protocol