7
Detail Description
A hardware reset (by asserting XRST) should be
performed before starting any operation.
The user controls and configures the device by
programming a set of internal registers through a
serial interface. At the start of application, the
following setup data must be written to the setup
registers:
Address
(Hex) Register
Setup Data
(Hex)
03 SETUP0 01
04 SETUP1 01
0C SETUP2 01
0D SETUP3 01
0E SETUP4 01
Sensor Gain Settings
The sensor gain can be adjusted by varying the
photodiode size and integration time of the sensor
manually through the following registers.
Sensor Sensitivity ~ Photodiode Size x Integration
Time Slot
Setup Value for Photodiode Size
The following value can be written to each of the
photodiode size registers to adjust the gain of the
sensor. The default value after reset for these
registers is 07H.
Setup Value for Integration Time
The following value can be written to each of the
integration time registers to adjust the gain of the
sensor. The default value after reset for these
registers is 07H.
Sensor ADC Output Registers
To obtain sensor ADC value, ‘02’ Hex must be written
to ACQ register before reading the Sensor ADC Output
Registers.
Address
(Hex) Register Description
02 ACQ Acquire sensor analog to digital
converter (ADC) values when 02H
is written. Reset to 00H when
sensor acquisition is completed
44 ADCR Sensor Red channel ADC value
43 ADCG Sensor Green channel ADC value
42 ADCB Sensor Blue channel ADC value
Value (Hex) Photodiode Size
01 ¼
03 ½
07 ¾
0F Full
Value (Hex) Integration Time Slot
00 1
01 2
02 3
03 4
04 5
05 6
06 7
07 8
08 9
09 10
0A 11
0B 12
0C 13
0D 14
0E 15
0F 16
Address
(Hex) Register Description
0B PDASR Red Channel Photodiode Size
0A PDASG Green Channel Photodiode Size
09 PDASB Blue Channel Photodiode Size
11 TINTR Red Channel Integration Time
10 TINTG Green Channel Integration Time
0F TINTB Blue Channel Integration Time
8
Serial Interface Reference
Description
The programming interface to the ADJD-S313 is a
2-wire serial bus. The bus consists of a serial clock
(SCL) and a serial data (SDA) line. The SDA line is
bi-directional on ADJD-S313 and must be
connected through a pull-up resistor to the positive
power supply. When the bus is free, both lines are
HIGH.
The 2-wire serial bus on ADJD-S313 requires one
device to act as a master while all other devices
must be slaves. A master is a device that initiates a
data transfer on the bus, generates the clock signal
and terminates the data transfer while a device
addressed by the master is called a slave. Slaves
are identified by unique device addresses.
Both master and slave can act as a transmitter or a
receiver but the master controls the direction for
data transfer. A transmitter is a device that sends
data to the bus and a receiver is a device that
receives data from the bus.
The ADJD-S313 serial bus interface always operates
as a slave transceiver with a data transfer rate of
up to 100kbit/s.
Figure 1. START/STOP Condition
S
START condition
P
STOP condition
SDA
SCL
START/STOP Condition
The master initiates and terminates all serial data
transfers. To begin a serial data transfer, the master
must send a unique signal to the bus called a START
condition. This is defined as a HIGH to LOW
transition on the SDA line while SCL is HIGH.
The master terminates the serial data transfer by
sending another unique signal to the bus called a
STOP condition. This is defined as a LOW to HIGH
transition on the SDA line while SCL is HIGH.
The bus is considered to be busy after a START (S)
condition. It will be considered free a certain time
after the STOP (P) condition. The bus stays busy if
a repeated START (Sr) is sent instead of a STOP
condition.
The START and repeated START conditions are
functionally identical.
Data Transfer
The master initiates data transfer after a START
condition. Data is transferred in bits with the master
generating one clock pulse for each bit sent. For a
data bit to be valid, the SDA data line must be
stable during the HIGH period of the SCL clock line.
Only during the LOW period of the SCL clock line
can the SDA data line change state to either HIGH
or LOW.
SDA
SCL
Data valid Data change
Figure 2. Data Bit Transfer
9
The SCL clock line synchronizes the serial data
transmission on the SDA data line. It is always
generated by the master. The frequency of the SCL
clock line may vary throughout the transmission as
long as it still meets the minimum timing
requirements.
The master by default drives the SDA data line. The
slave drives the SDA data line only when sending
an acknowledge bit after the master writes data to
the slave or when the master requests the slave to
send data.
The SDA data line driven by the master may be
implemented on the negative edge of the SCL clock
line. The master may sample data driven by the
slave on the positive edge of the SCL clock line.
Figure shows an example of a master
implementation and how the SCL clock line and
SDA data line can be synchronized.
A complete data transfer is 8-bits long or 1-byte.
Each byte is sent most significant bit (MSB) first
followed by an acknowledge or not acknowledge
bit. Each data transfer can send an unlimited
number of bytes (depending on the data format).
Figure 3. Data Bit Synchronization
Figure 4. Data Byte Transfer
Figure 5. Slave-Receiver Acknowledge
Acknowledge/Not acknowledge
The receiver must always acknowledge each byte
sent in a data transfer. In the case of the slave-
receiver and master-transmitter, if the slave-
receiver does not send an acknowledge bit, the
master-transmitter can either STOP the transfer or
generate a repeated START to start a new transfer.
SDA
SCL
SDA data sampled on the
positive edge of SCL
SDA data driven on the
negative edge of SCL
SDA
SCL
MSB LSB
12 89
ACK
12 8
9
NO
ACK
S
or
Sr
Sr
or
P
P
Sr
START or repeated
START condition
STOP or repeated
START condition
MSB LSB
SCL
(MASTER)
8
9
SDA
(SLAVE-RECEIVER)
SDA
(MASTER-TRANSMITTER)
LSB
Acknowledge
Acknowledge
clock pulse
SDA left HIGH
by transmitter
SDA pulled LOW
by receiver

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