10
Addressing
Each slave device on the serial bus needs to have a
unique address. This is the first byte that is sent by
the master-transmitter after the START condition.
The address is defined as the first seven bits of the
first byte.
The eighth bit or least significant bit (LSB)
determines the direction of data transfer. A ‘one’
in the LSB of the first byte indicates that the master
will read data from the addressed slave (master-
receiver and slave-transmitter). A ‘zero’ in this
position indicates that the master will write data
to the addressed slave (master-transmitter and
slave-receiver).
A device whose address matches the address sent
by the master will respond with an acknowledge
for the first byte and set itself up as a slave-
transmitter or slave-receiver depending on the LSB
of the first byte.
The slave address on ADJD-S313 is 0x58 (7-bits).
In the case of the master-receiver and slave-
transmitter, the master generates a not
acknowledge to signal the end of the data transfer
to the slave-transmitter. The master can then send
a STOP or repeated START condition to begin a new
data transfer.
In all cases, the master generates the acknowledge
or not acknowledge SCL clock pulse.
SCL
(MASTER)
89
SDA
(SLAVE-TRANSMITTER)
SDA
(MASTER-RECEIVER)
Acknowledge
clock pulse
LSB
SDA left HIGH
by transmitter
Not
acknowledge
SDA left HIGH
by receiver
P
Sr
STOP or repeated
START condition
Figure 6. Master-Receiver Acknowledge
MSB LSB
R/W
A1
A6 A5 A4 A3 A2
A0
Slave address
10 110
0
0
Figure 7. Slave Addressing
11
A6 A5 A4 A3 A2 A1 A0 W AS A PD7 D6 D5 D4 D3 D2 D1 D0 D7 D6 D5 D4 D3 D2 D1 D0
Master sends
slave address
Master writes
register address
Master writes
register data
Master will write dataStart condition Stop condition
Slave acknowledge
A
Slave acknowledgeSlave acknowledge
Data format
ADJD-S313 uses a register-based programming
architecture. Each register has a unique address and
controls a specific function inside the chip.
To write to a register, the master first generates a
START condition. Then it sends the slave address
for the device it wants to communicate with. The
least significant bit (LSB) of the slave address must
indicate that the master wants to write to the slave.
The addressed device will then acknowledge the
master.
The master writes the register address it wants to
access and waits for the slave to acknowledge. The
master then writes the new register data. Once the
slave acknowledges, the master generates a STOP
condition to end the data transfer.
Figure 8. Register Byte Write Protocol
A6 A5 A4 A3 A2 A1 A0 W AS D7 D6 D5 D4 D3 D2 D1 D0
Master will write dataStart condition
Slave acknowledge
A PD7 D6 D5 D4 D3 D2 D1 D0
Stop condition
A6 A5 A4 A3 A2 A1 A0 RSr
Master will read data
Repeated start
condition
Slave acknowledge
A
Master not
acknowledge
A
Slave acknowledge
Master sends
slave address
Master writes
register address
Master sends
slave address
Master reads
register data
To read from a register, the master first generates
a START condition. Then it sends the slave address
for the device it wants to communicate with. The
least significant bit (LSB) of the slave address must
indicate that the master wants to write to the slave.
The addressed device will then acknowledge the
master.
The master writes the register address it wants to
access and waits for the slave to acknowledge. The
master then generates a repeated START condition
and resends the slave address sent previously. The
least significant bit (LSB) of the slave address must
indicate that the master wants to read from the
slave. The addressed device will then acknowledge
the master.
The master reads the register data sent by the slave
and sends a no acknowledge signal to stop reading.
The master then generates a STOP condition to end
the data transfer.
Figure 9. Register Byte Read Protocol
12
Powering the Device
Ground Connection
AGND and DGND must both be set to 0V and
preferably star-connected to a central power source
as shown in the application diagram. A potential
difference between AGND and DGND may cause the
ESD diodes to turn on inadvertently.
Pin Information
15
AVDD DGND DVDDAGND
XRST
SDASLV
SCLSLV
Voltage
Regulator
Voltage
Regulator
HOST
SYSTEM
XRST
SDA
SCL
10
12
11
19
8, 16,
17, 18
5, 6 7
Star-connected ground
SLEEP
10k
HOST
SYSTEM
10k
10k
10k
DVDD
PIN NAME TYPE DESCRIPTION
1 NC No connect No connect. Leave floating.
2 NC No connect No connect. Leave floating.
3 NC No connect No connect. Leave floating.
4 NC No connect No connect. Leave floating.
5 DGND Ground Tie to digital ground.
6 DGND Ground Tie to digital ground.
7 DVDD Power Digital power pin.
8 AGND Ground Tie to analog ground.
9 NC No connect No connect. Leave floating.
10 XRST Input Global, asynchronous, active-low system reset. When asserted low, XRST
resets all registers. Minimum reset pulse low is 10 µs and must be provided by
external circuitry.
11 SCLSLV Input SDASLV and SCLSLV are the serial interface communications pins. SDASLV is
the bidirectional data pin and SCLSLV is the interface clock. A pull-up resistor
should be tied to SDASLV because it goes tri-state to output logic 1.
12 SDASLV Input/Output
(tri-state high)
13 NC No connect No connect. Leave floating.
14 NC No connect No connect. Leave floating.
15 SLEEP Input When SLEEP=1, the device goes into sleep mode. In sleep mode, all analog
circuits are powered down and the clock signal is gated away from the core
logic resulting in very low current consumption.
16 AGND Ground Tie to analog ground.
17 AGND Ground Tie to analog ground.
18 AGND Ground Tie to analog ground.
19 AVDD Power Analog power pin.
20 NC No connect No connect. Leave floating.
Application Diagrams

ADJD-S313-QR999

Mfr. #:
Manufacturer:
Broadcom / Avago
Description:
Light to Digital Converters RGB Color Sensor
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet