10
Addressing
Each slave device on the serial bus needs to have a unique
address. This is the rst byte that is sent by the master-
transmitter after the START condition. The address is
dened as the rst seven bits of the rst byte.
The eighth bit or least signicant bit (LSB) determines
the direction of data transfer. A one in the LSB of the rst
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
rst byte and set itself up as a slave-transmitter or slave-
receiver depending on the LSB of the rst byte.
The slave address on ADJD-S371-QR999 is 0x74 (7-bits).
Data Format
ADJD-S371-QR999 uses a register-based programming
architecture. Each register has a unique address and
controls a specic function inside the chip.
To write to a register, the master rst generates a START
condition. Then it sends the slave address for the device
it wants to communicate with. The least signicant 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 9. Slave addressing
Figure 10. Register byte write protocol
A6 A5 A4 A3 A2 A1 A0
1 1 1 0 1 0 0
R/W
SLAVE ADDRESS
MSB LSB
S A6 A5 A4 A3 A2 A1 A0 W A D7 D6 D5 D4 D3 D2 D1 D0 A D7 D6 D5 D4 D3 D2 D1 D0 A P
START CONDITION MASTER WILL WRITE DATA STOP CONDITION
MASTER SENDS
SLAVE ADDRESS
MASTER WRITES
REGISTER ADDRESS
MASTER WRITES
REGISTER DATA
SLAVE ACKNOWLEDGE SLAVE ACKNOWLEDGE SLAVE ACKNOWLEDGE
11
To read from a register, the master rst generates a START
condition. Then it sends the slave address for the device
it wants to communicate with. The least signicant 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 signicant 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 11. Register byte read protocol
S A6 A5 A4 A3 A2 A1 A0 W A D7 D6 D5 D4 D3 D2 D1 D0 A Sr A6 A5 A4 A3 A2 A1 A0 R A D7 D6 D5 D4 D3 D2 D1 D0 A P
START
CONDITION MASTER WILL WRITE DATA MASTER WILL READ DATA
REPEATED START
CONDITION
STOP
CONDITION
MASTER SENDS
SLAVE ADDRESS
MASTER SENDS
SLAVE ADDRESS
MASTER WRITES
REGISTER ADDRESS
MASTER READS
REGISTER DATA
SLAVE ACKNOWLEDGE SLAVE ACKNOWLEDGE SLAVE ACKNOWLEDGE MASTER NOT
ACKNOWLEDGE
12
Pin Name Description
1 LED -VE LED cathode
2 NC No connection
3 LED +VE LED anode
4 SDA Bidirectional data pin. A pull-up resistor should be tied to SDA because it goes tri-state to
output logic 1
5 DVDD Digital power pin
6 SCL Serial interface clock
7 AVDD Analog power pin
8 SLEEP Sleep pin. 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.
9 AGND Analog ground pin
10 XRST Reset pin. Global, asynchronous, active-low system reset. When asserted low, XRST resets all
registers. Minimum reset pulse low is 1us and must be provided by external circuitry.
11 DGND Digital ground pin
12 XCLK External clock input
Mechanical Drawing
SENSOR
PCB
LIGHT SEPARATOR
LED
SECTION A - A
1.80
A A
3.90
4.50
1
12 11 10
9
8
7
654
2
3
1
2
3
ORIENTATION MARK
0.80
BOTTOM SIDE
LED PAD
(AT TOP SIDE)
TOP SIDE
(LED AREA)
FOOTPRINT AT BOTTOM SIDE
12
4

ADJD-S371-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