Rgb Colour Senzor Tcs34725 [613898]
TCS3472
COLOR LIGHT-TO-DIGITAL CONVERTER
with IR FILTER
TAOS135 − AUGUST 2012
1The LUMENOLOGY /C0114 Company/C0114
/C0114Copyright /C0069 2012, TAOS Inc.
www.taosinc.comFeatures
/C0068Red, Green, Blue (RGB), and Clear Light
Sensing with IR Blocking Filter
− Programmable Analog Gain and
Integration Time
− 3,800,000:1 Dynamic Range− Very High Sensitivity — Ideally Suited for
Operation Behind Dark Glass
/C0068Maskable Interrupt
− Programmable Upper and Lower
Thresholds with Persistence Filter
/C0068Power Management
− Low Power — 2.5-/C0109 A Sleep State
− 65-/C0109 A Wait State with Programmable Wait
State Time from 2.4 ms to > 7 Seconds
/C0068I2C Fast Mode Compatible Interface
− Data Rates up to 400 kbit/s
− Input Voltage Levels Compatible with V DD
or 1.8 V Bus
/C0068Register Set and Pin Compatible with the
TCS3x71 Series
/C0068Small 2 mm /C0121 2.4 mm Dual Flat No-Lead
(FN) PackageApplications
/C0068RGB LED Backlight Control
/C0068Light Color Temperature Measurement
/C0068Ambient Light Sensing for Display
Backlight Control
/C0068Fluid and Gas Analysis
/C0068Product Color Verification and Sorting
End Products and Market Segments
/C0068TVs, Mobile Handsets, Tablets, Computers,
and Monitors
/C0068Consumer and Commercial Printing
/C0068Medical and Health Fitness
/C0068Solid State Lighting (SSL) and DigitalSignage
/C0068Industrial Automation
Description
The TCS3472 device provides a digital return of red, green, blue (RGB), and clear light sensing values. An IRblocking filter, integrated on-chip and localized to the color sensing photodiodes, minimizes the IR spectral
component of the incoming light and allows color measurements to be made accurately. The high sensitivity,
wide dynamic range, and IR blocking filter make the TCS3472 an ideal color sensor solution for use undervarying lighting conditions and through attenuating materials.
The TCS3472 color sensor has a wide range of applications including RGB LED backlight control, solid-state
lighting, health/fitness products, industrial process controls and medical diagnostic equipment. In addition, the
IR blocking filter enables the TCS3472 to perform ambient light sensing (ALS). Ambient light sensing is widely
used in display- based products such as cell phones, notebooks, and TVs to sense the lighting environment and
enable automatic display brightness for optimal viewing and power savings. The TCS3472, itself, can enter alower-power wait state between light sensing measurements to further reduce the average power consumption./C0114
/C0114
Texas Advanced Optoelectronic Solutions Inc.
1001 Klein Road /C0083 Suite 300 /C0083 Plano, TX 75074 /C0083 (972) 673-0759Package Drawing Not to ScalePACKAGE FN
DUAL FLAT NO-LEAD
(TOP VIEW)
6 SDA
5 INT4 NCV
DD 1
SCL 2
GND 3
TCS3472
COLOR LIGHT-TO-DIGITAL CONVERTER
with IR FILTER
TAOS135 − AUGUST 2012
2/C0114
/C0114Copyright /C0069 2012, TAOS Inc. The LUMENOLOGY /C0114 Company
www.taosinc.comFunctional Block Diagram
SDAVDDINT
SCLWait Control
Clear ADCUpper Limit
Lower LimitInterrupt
I2C Interface
GNDRed ADC
Green ADC
Blue ADCClear Data
Red Data
Green Data
Blue DataRGBC Control
BlueGreenRedClearIR-Blocking
Filter
Detailed Description
The TCS3472 light-to-digital converter contains a 3 × 4 photodiode array, four analog-to-digital converters
(ADC) that integrate the photodiode current, data registers, a state machine, and an I2C interface. The 3 × 4
photodiode array is composed of red-filtered, green-filtered, blue-filtered, and clear (unfiltered) photodiodes.
In addition, the photodiodes are coated with an IR-blocking filter. The four integrating ADCs simultaneouslyconvert the amplified photodiode currents to a 16-bit digital value. Upon completion of a conversion cycle, the
results are transferred to the data registers, which are double-buffered to ensure the integrity of the data. Allof the internal timing, as well as the low-power wait state, is controlled by the state machine.
Communication of t he TCS3472 data is accomplished over a fast, up to 400 kHz, two-wire I
2C serial bus. The
industry standard I2C bus facilitates easy, direct connection to microcontrollers and embedded processors.
In addition to the I2C bus, the TCS3472 provides a separate interrupt signal output. When interrupts are
enabled, and user-defined thresholds are exceeded, the active-low interrupt is asserted and remains asserted
until it is cleared by the controller. This interrupt feature simplifies and improves the efficiency of the system
software by eliminating the need to poll the TCS3472. The user can define the upper and lower interrupt
thresholds and apply an interrupt persistence filter. The interrupt persistence filter allows the user to define the
number of consecutive out-of-threshold events necessary before generating an interrupt. The interrupt outputis open-drain, so it can be wire-ORed with other devices.
TCS3472
COLOR LIGHT-TO-DIGITAL CONVERTER
with IR FILTER
TAOS135 − AUGUST 2012
3The LUMENOLOGY /C0114 Company/C0114
/C0114Copyright /C0069 2012, TAOS Inc.
www.taosinc.comTerminal Functions
TERMINAL
TYPE DESCRIPTIONNAME NO.TYPE DESCRIPTION
GND 3 Power supply ground. All voltages are referenced to GND.
INT 5 O Interrupt — open drain (active low).
NC 4 O No connect — do not connect.
SCL 2 I I2C serial clock input terminal — clock signal for I2C serial data.
SDA 6 I/O I2C serial data I/O terminal — serial data I/O for I2C .
VDD 1 Supply voltage.
Available Options
DEVICE ADDRESS PACKAGE − LEADS INTERFACE DESCRIPTION ORDERING NUMBER
TCS34721†0x39 FN−6 I2C Vbus = V DD Interface TCS34721FN
TCS34723†0x39 FN−6 I2C Vbus = 1.8 V Interface TCS34723FN
TCS34725 0x29 FN−6 I2C Vbus = V DD Interface TCS34725FN
TCS34727 0x29 FN−6 I2C Vbus = 1.8 V Interface TCS34727FN
†Contact TAOS for availability.
Absolute Maximum Ratings over operating free-air temperature range (unless otherwise noted)†
Supply voltage, V DD (Note 1) 3.8 V . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Input terminal voltage −0.5 V to 3.8 V . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Output terminal voltage −0.5 V to 3.8 V . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Output terminal current −1 mA to 20 mA . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Storage temperature range, T stg −40 °C to 85° C . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
ESD tolerance, human body model 2000 V . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
†Stresses beyond those listed under “absolute maximum ratings” may cause permanent damage to the device. These are stress ratings only, a nd
functional operation of the device at these or any other conditions beyond those indicated under “recommended operating conditions” is not
implied. Exposure to absolute-maximum-rated conditions for extended periods may affect device reliability.
NOTE 1: All voltages are with respect to GND.
Recommended Operating Conditions
MIN NOM MAX UNIT
Supply voltage, V DD (TCS34721 & TCS34725) (I2C Vbus = V DD) 2.7 3 3.6 V
Supply voltage, V DD (TCS34723 & TCS34727) (I2C Vbus = 1.8 V) 2.7 3 3.3 V
Operating free-air temperature, T A −30 70 °C
TCS3472
COLOR LIGHT-TO-DIGITAL CONVERTER
with IR FILTER
TAOS135 − AUGUST 2012
4/C0114
/C0114Copyright /C0069 2012, TAOS Inc. The LUMENOLOGY /C0114 Company
www.taosinc.comOperating Characteristics, V DD = 3 V, T A = 25/C0053 C (unless otherwise noted)
PARAMETER TEST CONDITIONS MIN TYP MAX UNIT
Active 235 330
IDD Supply current Wait state 65 μA IDD Supply current
Sleep state — no I2C activity 2.5 10μA
V INT SDA output low voltage3 mA sink current 0 0.4
V VOL INT, SDA output low voltage6 mA sink current 0 0.6V
ILEAK Leakage current, SDA, SCL, INT pins −5 5 μA
ILEAK Leakage current, LDR pin −5 5 μA
V SCL SDA input high voltageTCS34721 & TCS34725 0.7 V DDV VIH SCL, SDA input high voltageTCS34723 & TCS34727 1.25V
V SCL SDA input low voltageTCS34721 & TCS34725 0.3 V DDV VIL SCL, SDA input low voltageTCS34723 & TCS34727 0.54V
Optical Characteristics, V DD = 3 V, T A = 25/C0053 C, AGAIN = 16 /C0121, ATIME = 0xF6 (unless otherwise noted)
(Note 1)
PARAMETERTESTRed Channel Green Channel Blue Channel Clear Channel
UNIT PARAMETERTEST
CONDITIONS MIN TYP MAX MIN TYP MAX MIN TYP MAX MIN TYP MAXUNIT
λD = 465 nm
Note 20% 15% 10% 42% 65% 88% 11.0 13.8 16.6
ReIrradiance
responsivityλD = 525 nm
Note 34% 25% 60% 85% 10% 45% 13.2 16.6 20.0counts/
μW/
cm2 responsivity
λD = 615 nm
Note 480% 110% 0% 14% 5% 24% 15.6 19.5 23.4cm2
NOTES: 1. The percentage shown represents the ratio of the respective red, green, or blue channel value to the clear channel valu e.
2. The 465 nm input irradiance is supplied by an InGaN light-emitting diode with the following characteristics:
dominant wavelength λ D = 465 nm, spectral halfwidth Δλ ½ = 22 nm.
3. The 525 nm input irradiance is supplied by an InGaN light-emitting diode with the following characteristics:
dominant wavelength λ D = 525 nm, spectral halfwidth Δλ ½ = 35 nm.
4. The 615 nm input irradiance is supplied by a AlI nGaP light-emitting diode with the following characteristics:
dominant wavelength λ D = 615 nm, spectral halfwidth Δλ ½ = 15 nm.
RGBC Characteristics, VDD = 3 V, TA = 25 /C0053C, AGAIN = 16 /C0121, AEN = 1 (unless otherwise noted)
PARAMETER TEST CONDITIONS MIN TYP MAX UNIT
Dark ADC count value Ee = 0, AGAIN = 60 ×, ATIME = 0xD6 (100 ms) 0 1 5counts
ADC integration time step size ATIME = 0xFF 2.27 2.4 2.56 ms
ADC number of integration steps
(Note 5)1 256 steps
ADC counts per step (Note 5) 0 1024 counts
ADC count value (Note 5) ATIME = 0xC0 (153.6 ms) 0 65535 counts
Gi l i lt i t 1 × i4× 3.8 4 4.2
Gain scalin g, relative to 1 × gain16× 15 16 16 8 /C0121Gain scaling , relative to 1× gain
setting16× 15 16 16.8 /C0121setting
60× 58 60 63/C0121
NOTE 5: Parameter ensured by design and is not tested.
TCS3472
COLOR LIGHT-TO-DIGITAL CONVERTER
with IR FILTER
TAOS135 − AUGUST 2012
5The LUMENOLOGY /C0114 Company/C0114
/C0114Copyright /C0069 2012, TAOS Inc.
www.taosinc.comWait Characteristics, V DD = 3 V, T A = 25/C0053 C, WEN = 1 (unless otherwise noted)
PARAMETER TEST CONDITIONS CHANNEL MIN TYP MAX UNIT
Wait step size WTIME = 0xFF 2.27 2.4 2.56 ms
Wait number of integration steps (Note 1) 1 256 steps
NOTE 1: Parameter ensured by design and is not tested.
AC Electrical Characteristics, V DD = 3 V, T A = 25/C0053 C (unless otherwise noted)
PARAMETER† TEST CONDITIONS MIN TYP MAX UNIT
f(SCL) Clock frequency (I2C only) 0 400 kHz
t(BUF) Bus free time between start and stop condition 1.3 μs
t(HDSTA)Hold time after (repeated) start condition. After
this period, the first clock is generated.0.6 μs
t(SUSTA) Repeated start condition setup time 0.6 μs
t(SUSTO) Stop condition setup time 0.6 μs
t(HDDAT) Data hold time 0 μs
t(SUDAT) Data setup time 100 ns
t(LOW) SCL clock low period 1.3 μs
t(HIGH) SCL clock high period 0.6 μs
tF Clock/data fall time 300 ns
tR Clock/data rise time 300 ns
Ci Input pin capacitance 10 pF
†Specified by design and characterization; not production tested.
PARAMETER MEASUREMENT INFORMATION
Start
ConditionStop
ConditionPSDAt(SUSTO) t(SUDAT)t(HDDAT) t(BUF)
VIH
VILSCL
t(SUSTA) t(HIGH)t(F) t(R)
t(HDSTA)t(LOW)
VIH
VIL
PS S
Figure 1. Timing Diagrams
TCS3472
COLOR LIGHT-TO-DIGITAL CONVERTER
with IR FILTER
TAOS135 − AUGUST 2012
6/C0114
/C0114Copyright /C0069 2012, TAOS Inc. The LUMENOLOGY /C0114 Company
www.taosinc.comTYPICAL CHARACTERISTICS
Figure 2300 500 700 900Relative Responsivity
1100
λ − Wavelength − nmPHOTODIODE SPECTRAL RESPONSIVITY
RGBC
0.10.20.30.40.50.60.70.80.91
0TA = 25° CNormalized to
Clear
@ 755 nm
Red
GreenClear
Blue
Figure 3NORMALIZED RESPONSIVITY
vs.
ANGULAR DISPLACEMENT
/C0081 − Angular Displacement − °Normalized Responsivity
00.20.40.60.81.0
−90 −60 −30 0 30 60 90Optical Axis
/C0045/C0081 /C0043/C0081
0/C0053C25/C0053C
Figure 4NORMALIZED I DD
vs.
VDD and TEMPERATURE
VDD — VIDD Normalized @ 3 V, 25/C0053 C
94%96%98%100%102%104%106%108%110%
92%
2.7 2.8 2.9 3 3.1 3.2 3.375/C0053C
50/C0053C
Figure 5RESPONSIVITY TEMPERATURE
COEFFICIENT
400 600 800 1000Temperature Coefficient — ppm/ /C0053C
100100010,000
500 700 900
λ − Wavelength − nm
TCS3472
COLOR LIGHT-TO-DIGITAL CONVERTER
with IR FILTER
TAOS135 − AUGUST 2012
7The LUMENOLOGY /C0114 Company/C0114
/C0114Copyright /C0069 2012, TAOS Inc.
www.taosinc.comPRINCIPLES OF OPERATION
System States
An internal state machine provides system control of the RGBC and power management features of the device.
At power up, an internal power-on-reset initializes the device and puts it in a low-power Sleep state.
When a start condition is detected on the I2C bus, the device transitions to the Idle state where it checks the
Enable Register (0x00) PON bit. If PON is disabled, the device will return to the Sleep state to save power.
Otherwise, the device will remain in the Idle state until the RGBC function is enabled (AEN). Once enabled, thedevice will execute the Wait and RGBC states in sequence as indicated in Figure 5. Upon completion and return
to Idle, the device will automatically begin a new Wait-RGBC cycle as long as PON and AEN remain enabled.
!WEN
& AENSleep
Idle
RGBC WaitI2C
Start
!PON
WEN &
AEN
Figure 6. Simplified State Diagram
TCS3472
COLOR LIGHT-TO-DIGITAL CONVERTER
with IR FILTER
TAOS135 − AUGUST 2012
8/C0114
/C0114Copyright /C0069 2012, TAOS Inc. The LUMENOLOGY /C0114 Company
www.taosinc.comRGBC Operation
The RGBC engine contains RGBC gain control (AGAIN) and four integrating analog-to-digital converters (ADC)
for the RGBC photodiodes. The RGBC integration time (ATIME) impacts both the resolution and the sensitivity
of the RGBC reading. Integration of all four channels occurs simultaneously and upon completion of theconversion cycle, the results are transferred to the color data registers. This data is also referred to as channel
count .
The transfers are double-buffered to ensure that invalid data is not read during the transfer. After thetransfer, the device automatically moves to the next state in accordance with the configured state machine.
AGAIN(r0x0F, b1:0)
1/C0121, 4/C0121, 16/C0121 , 60/C0121 Gain
CDATAH(r0x15), CDATA(r0x14) Clear ADC
Red ADC
Green ADC
Blue ADCClear Data
Red Data
Green Data
Blue DataRGBC Control
BlueGreenRedClear
RDATAH(r0x17), RDATA(r0x16)
GDATAH(r0x19), GDATA(r0x18)
BDATAH(r0x1B), BDATA(r0x1A)ATIME(r0x0 1)
2.4 ms to 614 ms
Figure 7. RGBC Operation
NOTE: In this document, the nomenclature uses the bit field name in italics followed by the register address
and bit number to allow the user to easily identify the register and bit that controls the function. For example,
the power on (PON) is in register 0x00, bit 0. This is represented as PON (r0x00:b0).
The registers for programming the integration and wait times are a 2’s compliment values. The actual time can
be calculated as follows:
ATIME = 256 − Integration Time / 2.4 ms
Inversely, the time can be calculated from the register value as follows:
Integration Time = 2.4 ms × (256 − ATIME)
For example, if a 100-ms integration time is needed, the device needs to be programmed to:
256 − (100 / 2.4) = 256 − 42 = 214 = 0xD6
Conversely, the programmed value of 0xC0 would correspond to:
(256 − 0xC0) × 2.4 = 64 × 2.4 = 154 ms.
TCS3472
COLOR LIGHT-TO-DIGITAL CONVERTER
with IR FILTER
TAOS135 − AUGUST 2012
9The LUMENOLOGY /C0114 Company/C0114
/C0114Copyright /C0069 2012, TAOS Inc.
www.taosinc.comInterrupts
The interrupt feature simplifies and improves system efficiency by eliminating the need to poll the sensor for
light intensity values outside of a user-defined range. While the interrupt function is always enabled and its
status is available in the status register (0x13), the output of the interrupt state can be enabled using the RGBCinterrupt enable (AIEN) field in the enable register (0x00).
Two 16-bit interrupt threshold registers allow the user to set limits below and above a desired light level. Aninterrupt can be generated when the Clear data (CDATA) is less than the Clear interrupt low threshold (AILTx)
or is greater than the Clear interrupt high threshold (AIHTx).
It is important to note that the thresholds are evaluated in sequence, first the low threshold, then the high
threshold. As a result, if the low threshold is set above the high threshold, the high threshold is ignored and only
the low threshold is evaluated.
To further control when an interrupt occurs, the device provides a persistence filter. The persistence filter allows
the user to specify the number of consecutive out-of-range Clear occurrences before an interrupt is generated.
The persistence filter register (0x0C) allows the user to set the Clear persistence filter (APERS) value. See the
persistence filter register for details on the persistence filter value. Once the persistence filter generates aninterrupt, it will continue until a special function inte rrupt clear command is received (see command register).
Clear
ADCClear
Data
ClearUpper Limit
Lower LimitAIHTH(r0x07), AIHTL(r0x06)
Clear Persistence
AILTH(r0x05), AILTL(r0x04)APERS(r0x0C, b3:0)
Figure 8. Programmable Interrupt
TCS3472
COLOR LIGHT-TO-DIGITAL CONVERTER
with IR FILTER
TAOS135 − AUGUST 2012
10/C0114
/C0114Copyright /C0069 2012, TAOS Inc. The LUMENOLOGY /C0114 Company
www.taosinc.comSystem Timing
The system state machine shown in Figure 5 provides an overview of the states and state transitions that
provide system control of the device. This section highlights the programmable features, which affect the state
machine cycle time, and provides details to determine system level timing.
When the power management feature is enabled (WEN), the state machine will transition to the Wait state. The
wait time is determined by WLONG, which extends normal operation by 12 × when asserted, and WTIME. The
formula to determine the wait time is given in the box associated with the Wait state in Figure 9.
When the RGBC feature is enabled (AEN), the state machine will transition through the RGBC Init and RGBC
ADC states. The RGBC Init state takes 2.4 ms, while the RGBC ADC time is dependent on the integration time
(ATIME). The formula to determine RGBC ADC time is given in the associated box in Figure 9. If an interrupt
is generated as a result of the RGBC cycle, it will be asserted at the end of the RGBC ADC.
Sleep
Idle
WaitRGBC
ADC
RGBC
InitRGBC
WTIME: 1 ~ 256 steps
WLONG = 0 WLONG = 1
Time: 2.4 ms/step 28.8 ms/step
Range: 2.4 ms ~ 614 ms 28.8 ms ~ 7.37sTime: 2.4 msATIME: 1 ~ 256 steps
Time: 2.4 ms/stepRange: 2.4 ms ~ 614 ms!PON
Notes: 1. There is a 2.4 ms warm-up delay if PON is enabled. If PON is not enabled, the device will return to the Sleep state as shown.
2. PON, WEN, and AEN are fields in the Enable register (0x00).!WEN
& AENI2C Start
(Note 1)
WEN
& AEN
Figure 9. Detailed State Diagram
TCS3472
COLOR LIGHT-TO-DIGITAL CONVERTER
with IR FILTER
TAOS135 − AUGUST 2012
11The LUMENOLOGY /C0114 Company/C0114
/C0114Copyright /C0069 2012, TAOS Inc.
www.taosinc.comPower Management
Power consumption can be managed with the Wait state, because the Wait state typically consumes only 65 μA
of IDD current. An example of the power management feature is given below. With the assumptions provided
in the example, average I DD is estimated to be 152 μA.
Table 1. Power Management
SYSTEM STATE MACHINE
STATEPROGRAMMABLE
PARAMETER PROGRAMMED VALUE DURATIONTYPICAL
CURRENT
WaitWTIME 0xEE
43 2 ms 0 065 mA WaitWLONG 043.2 ms 0.065 mA
RGBC Init 2.40 ms 0.235 mA
RGBC ADC ATIME 0xEE 43.2 ms 0.235 mA
Average I DD Current = ((43.2 × 0.065) + (43.2 × 0.235) + (2.40 × 0.235)) / 89 /C0025 152 μA
Keeping with the same programmed values as the example, Table 2 shows how the average I DD current is
affected by the Wait state time, which is determined by WEN, WTIME, and WLONG. Note that the worst-case
current occurs when the Wait state is not enabled.
Table 2. Average I DD Current
WEN WTIME WLONG WAIT STATE AVERAGE I DD CURRENT
0 n/a n/a 0 ms 291 μA
1 0xFF 0 2.40 ms 280 μA
1 0xEE 0 43.2 ms 152 μA
1 0x00 0 614 ms 82 μA
1 0x00 1 7.37 s 67 μA
TCS3472
COLOR LIGHT-TO-DIGITAL CONVERTER
with IR FILTER
TAOS135 − AUGUST 2012
12/C0114
/C0114Copyright /C0069 2012, TAOS Inc. The LUMENOLOGY /C0114 Company
www.taosinc.comI2C Protocol
Interface and control are accomplished through an I2C serial compatible interface (standard or fast mode) to
a set of registers that provide access to device control functions and output data. The devices support the 7-bit
I2C addressing protocol.
The I2C standard provides for three types of bus transaction: read, write, and a combined protocol (Figure 10).
During a write operation, the first byte written is a command byte followed by data. In a combined protocol, thefirst byte written is the command byte followed by reading a series of bytes. If a read command is issued, theregister address from the previous command will be used for data access. Likewise, if the MSB of the command
is not set, the device will write a series of bytes at the address stored in the last valid command with a registeraddress. The command byte contains either control information or a 5-bit register address. The control
commands can also be used to clear interrupts.
The I
2C bus protocol was developed by Philips (now NXP). For a complete description of the I2C protocol, please
review the NXP I2C design specificati on at http ://www.i2c−bus.org/references/.
A Acknowledge (0)
N Not Acknowledged (1)
P Stop Condition
R Read (1)
S Start Condition
Sr Repeated Start Condition
W Write (0)
… Continuation of protocol
Master-to-Slave
Slave-to-Master
W7
Data Byte Slave Address S1
AA A8 11 1 8
Command Code1
P1
…
I2C Write Protocol
I2C Read Protocol
I2C Read Protocol — Combined FormatR7
Data Slave Address S1
AA A8 11 1 8
Data1
P1
…
W7
Slave Address Slave Address S1
AR A8 11 1 7 1 1
Command Code Sr1
A
Data A A81 8
Data1
P1
…
Figure 10. I2C Protocols
TCS3472
COLOR LIGHT-TO-DIGITAL CONVERTER
with IR FILTER
TAOS135 − AUGUST 2012
13The LUMENOLOGY /C0114 Company/C0114
/C0114Copyright /C0069 2012, TAOS Inc.
www.taosinc.comRegister Set
The TCS3472 is controlled and monitored by data registers and a command register accessed through the
serial interface. These registers provide for a variety of control functions and can be read to determine results
of the ADC conversions. The register set is summarized in Table 3.
Table 3. Register Address
ADDRESS RESISTER NAME R/W REGISTER FUNCTION RESET VALUE
−− COMMAND W Specifies register address 0x00
0x00 ENABLE R/W Enables states and interrupts 0x00
0x01 ATIME R/W RGBC time 0xFF
0x03 WTIME R/W Wait time 0xFF
0x04 AILTL R/W Clear interrupt low threshold low byte 0x00
0x05 AILTH R/W Clear interrupt low threshold high byte 0x00
0x06 AIHTL R/W Clear interrupt high threshold low byte 0x00
0x07 AIHTH R/W Clear interrupt high threshold high byte 0x00
0x0C PERS R/W Interrupt persistence filter 0x00
0x0D CONFIG R/W Configuration 0x00
0x0F CONTROL R/W Control 0x00
0x12 ID R Device ID ID
0x13 STATUS R Device status 0x00
0x14 CDATAL R Clear data low byte 0x00
0x15 CDATAH R Clear data high byte 0x00
0x16 RDATAL R Red data low byte 0x00
0x17 RDATAH R Red data high byte 0x00
0x18 GDATAL R Green data low byte 0x00
0x19 GDATAH R Green data high byte 0x00
0x1A BDATAL R Blue data low byte 0x00
0x1B BDATAH R Blue data high byte 0x00
The mechanics of accessing a specific register depends on the specific protocol used. See the section on I2C
protocols on the previous pages. In general, the COMMAND register is written first to specify the specific
control-status-data register for subsequent read/write operations.
TCS3472
COLOR LIGHT-TO-DIGITAL CONVERTER
with IR FILTER
TAOS135 − AUGUST 2012
14/C0114
/C0114Copyright /C0069 2012, TAOS Inc. The LUMENOLOGY /C0114 Company
www.taosinc.comCommand Register
The command register specifies the address of the target register for future write and read operations.
Table 4. Command Register
6 75 4
ADDR/SF2 31 0
COMMAND CMD TYPE − −
FIELD BITS DESCRIPTION
CMD 7 Select Command Register. Must write as 1 when addressing COMMAND register.
TYPE 6:5 Selects type of transaction to follow in subsequent data transfers:
FIELD VALUE INTEGRATION TIME
00 Repeated byte protocol transaction
01 Auto-increment protocol transaction
10 Reserved — Do not use
11 Special function — See description below
Byte protocol will repeatedly read the same register with each data access.
Block protocol will provide auto-increment function to read successive bytes.
ADDR/SF 4:0 Address field/special function field. Depending on the transaction type, see above, this field eitherspecifies a special function command or selects the specific control-status-data register for subsequent
read and write transactions. The field values listed below only apply to special function commands:
FIELD VALUE READ VALUE
00110 Clear channel interrupt clear
other Reserved — Do not write
The Clear channel interrupt clear special function clears any pending interrupt and is self-clearing.
TCS3472
COLOR LIGHT-TO-DIGITAL CONVERTER
with IR FILTER
TAOS135 − AUGUST 2012
15The LUMENOLOGY /C0114 Company/C0114
/C0114Copyright /C0069 2012, TAOS Inc.
www.taosinc.comEnable Register (0x00)
The Enable register is used primarily to power the TCS3472 device on and off, and enable functions and
interrupts as shown in Table 5.
Table 5. Enable Register
6 75 4
PON2 31 0
ENABLE Reserved AIENAddress
0x00AEN WEN Reserved
FIELD BITS DESCRIPTION
Reserved 7:5 Reserved. Write as 0.
AIEN 4 RGBC interrupt enable. When asserted, permits RGBC interrupts to be generated.
WEN 3Wait enable. This bit activates the wait feature. Writing a 1 activates the wait timer. Writing a 0 disables the
wait timer.
Reserved 2 Reserved. Write as 0.
AEN 1RGBC enable. This bit actives the two-channel ADC. Writing a 1 activates the RGBC. Writing a 0 disablesthe RGBC.
PON 1, 20Power ON. This bit activates the internal oscillator to permit the timers and ADC channels to operate.Writing a 1 activates the oscillator. Writing a 0 disables the oscillator.
NOTES: 1. See Power Management section for more information.
2. A minimum interval of 2.4 ms must pass after PON is asserted before an RGBC can be initiated.
TCS3472
COLOR LIGHT-TO-DIGITAL CONVERTER
with IR FILTER
TAOS135 − AUGUST 2012
16/C0114
/C0114Copyright /C0069 2012, TAOS Inc. The LUMENOLOGY /C0114 Company
www.taosinc.comRGBC Timing Register (0x01)
The RGBC timing register controls the internal integration time of the RGBC clear and IR channel ADCs in
2.4-ms increments. Max RGBC Count = (256 − ATIME) × 1024 up to a maximum of 65535.
Table 6. RGBC Timing Register
FIELD BITS DESCRIPTION
ATIME 7:0 VALUE INTEG_CYCLES TIME MAX COUNT
0xFF 1 2.4 ms 1024
0xF6 10 24 ms 10240
0xD5 42 101 ms 43008
0xC0 64 154 ms 65535
0x00 256 700 ms 65535
Wait Time Register (0x03)
Wait time is set 2.4 ms increments unless the WLONG bit is asserted, in which case the wait times are 12 ×
longer. WTIME is programmed as a 2’s complement number.
Table 7. Wait Time Register
FIELD BITS DESCRIPTION
WTIME 7:0 REGISTER VALUE WAIT TIME TIME (WLONG = 0) TIME (WLONG = 1)
0xFF 1 2.4 ms 0.029 sec
0xAB 85 204 ms 2.45 sec
0x00 256 614 ms 7.4 sec
TCS3472
COLOR LIGHT-TO-DIGITAL CONVERTER
with IR FILTER
TAOS135 − AUGUST 2012
17The LUMENOLOGY /C0114 Company/C0114
/C0114Copyright /C0069 2012, TAOS Inc.
www.taosinc.comRGBC Interrupt Threshold Registers (0x04 − 0x07)
The RGBC interrupt threshold registers provides the values to be used as the high and low trigger points for
the comparison function for interrupt generation. If the value generated by the clear channel crosses below the
lower threshold specified, or above the higher threshold, an interrupt is asserted on the interrupt pin.
Table 8. RGBC Interrupt Threshold Registers
REGISTER ADDRESS BITS DESCRIPTION
AILTL 0x04 7:0 RGBC clear channel low threshold lower byte
AILTH 0x05 7:0 RGBC clear channel low threshold upper byte
AIHTL 0x06 7:0 RGBC clear channel high threshold lower byte
AIHTH 0x07 7:0 RGBC clear channel high threshold upper byte
Persistence Register (0x0C)
The persistence register controls the filtering interrupt capabilities of the device. Configurable filtering isprovided to allow interrupts to be generated after each integration cycle or if the integration has produced a result
that is outside of the values specified by the threshold register for some specified amount of time.
Table 9. Persistence Register
6 75 4
APERS2 31 0
PERS ReservedAddress
0x0C
FIELD BITS DESCRIPTION
PPERS 7:4 Reserved
APERS 3:0 Interrupt persistence. Controls rate of interrupt to the host processor.
FIELD VALUE MEANING INTERRUPT PERSISTENCE FUNCTION
0000 Every Every RGBC cycle generates an interrupt
0001 1 1 clear channel value outside of threshold range
0010 2 2 clear channel consecutive values out of range
0011 3 3 clear channel consecutive values out of range
0100 5 5 clear channel consecutive values out of range
0101 10 10 clear channel consecutive values out of range
0110 15 15 clear channel consecutive values out of range
0111 20 20 clear channel consecutive values out of range
1000 25 25 clear channel consecutive values out of range
1001 30 30 clear channel consecutive values out of range
1010 35 35 clear channel consecutive values out of range
1011 40 40 clear channel consecutive values out of range
1100 45 45 clear channel consecutive values out of range
1101 50 50 clear channel consecutive values out of range
1110 55 55 clear channel consecutive values out of range
1111 60 60 clear channel consecutive values out of range
TCS3472
COLOR LIGHT-TO-DIGITAL CONVERTER
with IR FILTER
TAOS135 − AUGUST 2012
18/C0114
/C0114Copyright /C0069 2012, TAOS Inc. The LUMENOLOGY /C0114 Company
www.taosinc.comConfiguration Register (0x0D)
The configuration register sets the wait long time.
Table 10. Configuration Register
6 75 42 31 0
CONFIG Reserved WLONGAddress
0x0DReserved
FIELD BITS DESCRIPTION
Reserved 7:2 Reserved. Write as 0.
WLONG 1Wait Long. When asserted, the wait cycles are increased by a factor 12 × from that programmed in the
WTIME register.
Reserved 0 Reserved. Write as 0.
Control Register (0x0F)
The Control register provides eight bits of miscellaneous control to the analog block. These bits typically control
functions such as gain settings and/or diode selection.
Table 11. Control Register
6 75 42 31 0
CONTROLAddress
0x0FReserved AGAIN
FIELD BITS DESCRIPTION
Reserved 7:2 Reserved. Write bits as 0
AGAIN 1:0 RGBC Gain Control.
FIELD VALUE RGBC GAIN VALUE
00 1×gain
01 4×gain
10 16×gain
11 60×gain
ID Register (0x12)
The ID Register provides the value for the part number. The ID register is a read-only register.
Table 12. ID Register
6 75 42 31 0
ID IDAddress0x12
FIELD
BITS DESCRIPTION
ID 7:0 Part number identification0x44 = TCS34721 and TCS34725
ID 7:0 Part number identification0x4D = TCS34723 and TCS34727
TCS3472
COLOR LIGHT-TO-DIGITAL CONVERTER
with IR FILTER
TAOS135 − AUGUST 2012
19The LUMENOLOGY /C0114 Company/C0114
/C0114Copyright /C0069 2012, TAOS Inc.
www.taosinc.comStatus Register (0x13)
The Status Register provides the internal status of the device. This register is read only.
Table 13. Status Register
6 75 4
AVALID2 31 0
STATUS Reserved AINTAddress
0x13Reserved
FIELD BIT DESCRIPTION
Reserved 7:5 Reserved.
AINT 4 RGBC clear channel Interrupt.
Reserved 3:1 Reserved.
AVALID 0 RGBC Valid. Indicates that the RGBC channels have completed an integration cycle.
RGBC Channel Data Registers (0x14 − 0x1B)
Clear, red, green, and blue data is stored as 16-bit values. To ensure the data is read correctly, a two-byte read
I2C transaction should be used with a read word protocol bit set in the command register. With this operation,
when the lower byte register is read, the upper eight bits are stored into a shadow register, which is read by a
subsequent read to the upper byte. The upper register will read the correct value even if additional ADC
integration cycles end between the reading of the lower and upper registers.
Table 14. ADC Channel Data Registers
REGISTER ADDRESS BITS DESCRIPTION
CDATA 0x14 7:0 Clear data low byte
CDATAH 0x15 7:0 Clear data high byte
RDATA 0x16 7:0 Red data low byte
RDATAH 0x17 7:0 Red data high byte
GDATA 0x18 7:0 Green data low byte
GDATAH 0x19 7:0 Green data high byte
BDATA 0x1A 7:0 Blue data low byte
BDATAH 0x1B 7:0 Blue data high byte
TCS3472
COLOR LIGHT-TO-DIGITAL CONVERTER
with IR FILTER
TAOS135 − AUGUST 2012
20/C0114
/C0114Copyright /C0069 2012, TAOS Inc. The LUMENOLOGY /C0114 Company
www.taosinc.comAPPLICATION INFORMATION: HARDWARE
PCB Pad Layout
Suggested PCB pad layout guidelines for the Dual Flat No-Lead (FN) surface mount package are shown in
Figure 11.
4002500
4001000
17006501000
650Note: Pads can be
extended further if handsoldering is needed.
NOTES: A. All linear dimensions are in micrometers.
B. This drawing is subject to change without notice.
Figure 11. Suggested FN Package PCB Layout
TCS3472
COLOR LIGHT-TO-DIGITAL CONVERTER
with IR FILTER
TAOS135 − AUGUST 2012
21The LUMENOLOGY /C0114 Company/C0114
/C0114Copyright /C0069 2012, TAOS Inc.
www.taosinc.comPACKAGE INFORMATION
PACKAGE FN Dual Flat No-Lead
2000 /C0043 752400 /C0043 75
Photodiode Array Area2400 /C0043 75871
/C0043 75
203 /C0043 86 SDA
5 INT4 NCV
DD 1
SCL 2
GND 3TOP VIEW
SIDE VIEW
BOTTOM VIEW
Lead FreePb300
/C0043 50
PIN 1END VIEW
650 /C0043 50PIN OUT
TOP VIEW
750 /C0043 100650
/C0043 50PIN 1
300 /C0043 50650 /C0043 50877 /C0043 75
406369
295
nominal
NOTES: A. All linear dimensions are in micrometers. Dimension tolerance is ± 20 μ m unless otherwise noted.
B. The die is centered within the package within a tolerance of ± 3 mils.
C. Package top surface is molded with an electrically nonconductive clear plastic compound having an index of refraction of 1.55 .
D. Contact finish is copper alloy A194 with pre-plated NiPdAu lead finish.
E. This package contains no lead (Pb).
F. This drawing is subject to change without notice.
Figure 12. Package FN — Dual Flat No-Lead Packaging Configuration
TCS3472
COLOR LIGHT-TO-DIGITAL CONVERTER
with IR FILTER
TAOS135 − AUGUST 2012
22/C0114
/C0114Copyright /C0069 2012, TAOS Inc. The LUMENOLOGY /C0114 Company
www.taosinc.comCARRIER TAPE AND REEL INFORMATION
TOP VIEW
DETAIL A
2.21 /C0043 0.05
Ao0.254
/C0043 0.025/C0053 Max4.00
8.00
3.50 /C0043 0.05/C0106 1.50 4.002.00 /C0043 0.05
+ 0.30
− 0.101.75
B
B AA/C0106 0.50
/C0043 0.05
DETAIL B
2.61 /C0043 0.05
Bo5/C0053 Max
0.83 /C0043 0.05
Ko
NOTES: A. All linear dimensions are in millimeters. Dimension tolerance is ± 0.10 mm unless otherwise noted.
B. The dimensions on this drawing are for illustrative purposes only. Dimensions of an actual carrier may vary slightly.
C. Symbols on drawing A o, Bo, and K o are defined in ANSI EIA Standard 481−B 2001.
D. Each reel is 178 millimeters in diameter and contains 3500 parts.
E. TAOS packaging tape and reel conform to the requirements of EIA Standard 481−B.
F. In accordance with EIA standard, device pin 1 is located next to the sprocket holes in the tape.
G. This drawing is subject to change without notice.
Figure 13. Package FN Carrier Tape
TCS3472
COLOR LIGHT-TO-DIGITAL CONVERTER
with IR FILTER
TAOS135 − AUGUST 2012
23The LUMENOLOGY /C0114 Company/C0114
/C0114Copyright /C0069 2012, TAOS Inc.
www.taosinc.comSOLDERING INFORMATION
The FN package has been tested and has demonstrated an ability to be reflow soldered to a PCB
substrate. The process, equipment, and materials used in these test are detailed below.
The solder reflow profile describes the expected maximum heat exposure of components during the solder
reflow process of pr oduct on a PCB. Temperature is measured on top of component. The components should
be limited to a maximum of three passes through this solder reflow profile.
Table 15. Solder Reflow Profile
PARAMETER REFERENCE DEVICE
Average temperature gradient in preheating 2.5°C/sec
Soak time tsoak 2 to 3 minutes
Time above 217° C (T1) t1 Max 60 sec
Time above 230° C (T2) t2 Max 50 sec
Time above T peak −10°C (T3) t3 Max 10 sec
Peak temperature in reflow Tpeak 260°C
Temperature gradient in cooling Max −5° C/sec
t3
t2
t1 tsoakT3
T2
T1TpeakNot to scale — for reference only
Time (sec)Temperature (/C0053 C)
Figure 14. Solder Reflow Profile Graph
TCS3472
COLOR LIGHT-TO-DIGITAL CONVERTER
with IR FILTER
TAOS135 − AUGUST 2012
24/C0114
/C0114Copyright /C0069 2012, TAOS Inc. The LUMENOLOGY /C0114 Company
www.taosinc.comSTORAGE INFORMATION
Moisture Sensitivity
Optical characteristics of the device can be adversely affected during the soldering process by the release and
vaporization of moisture that has been previously absorbed into the package. To ensure the package contains
the smallest amount of absorbed moisture possible, each device is dry-baked prior to being packed for shipping.
Devices are packed in a sealed aluminized envelope called a moisture barrier bag with silica gel to protect them
from ambient moisture during shipping, handling, and storage before use.
The Moisture Barrier Bags should be stored under the following conditions:
Temperature Range < 40° C
Relative Humidity < 90%
Total Time No longer than 12 months from the date code on the aluminized envelope if
unopened.
Rebaking of the reel will be required if the devices have been stored unopened for more than 12 months and
the Humidity Indicator Card shows the parts to be out of the allowable moisture region.
Opened reels should be used within 168 hours if exposed to the following conditions:
Temperature Range < 30° C
Relative Humidity < 60%
If rebaking is required, it should be done at 50 °C for 12 hours.
The FN package has been assigned a moisture sensitivity level of MSL 3.
TCS3472
COLOR LIGHT-TO-DIGITAL CONVERTER
with IR FILTER
TAOS135 − AUGUST 2012
25The LUMENOLOGY /C0114 Company/C0114
/C0114Copyright /C0069 2012, TAOS Inc.
www.taosinc.comPRODUCTION DATA — information in this document is current at publication date. Products conform to
specifications in accordance with the terms of Texas Advanced Optoelectronic Solutions, Inc. standard
warranty. Production processing does not necessarily include testing of all parameters.
LEAD-FREE (Pb-FREE) and GREEN STATEMENT
Pb-Free (RoHS) TAOS’ terms Lead-Free or Pb-Free mean semiconductor products that are compatible with the current
RoHS requirements for all 6 substances, including the requirement that lead not exceed 0.1% by weight in homogeneous
materials. Where designed to be soldered at high temperatures, TAOS Pb-Free products are suitable for use in specifiedlead-free processes.
Green (RoHS & no Sb/Br) TAOS defines Green to mean Pb-Free (RoHS compatible), and free of Bromine (Br) and
Antimony (Sb) based flame retardants (Br or Sb do not exceed 0.1% by weight in homogeneous material).Important Information and Disclaimer The information provided in this statement represents TAOS’ knowledge and
belief as of the date that it is provided. TAOS bases its knowledge and belief on information provided by third parties,
and makes no representation or warranty as to the accuracy of such information. Efforts are underway to better integrate
information from third parties. TAOS has taken and continues to take reasonable steps to provide representativeand accurate information but may not have conducted destructive testing or chemical analysis on incoming materials and
chemicals. TAOS and TAOS suppliers consider certain information to be proprietary, and thus CAS numbers and other
limited information may not be available for release.
NOTICE
Texas Advanced Optoelectronic Solutions, Inc. (T AOS) reserves the right to make changes to the products contained in this
document to improve performance or for any other purpose, or to discontinue them without notice. Customers are advised
to contact TAOS to obtain the latest product information before placing orders or designing TAOS products into systems.
TAOS assumes no responsibility for the use of any products or circuits described in this document or customer product
design, conveys no license, either expressed or implied, under any patent or other right, and makes no representation that
the circuits are free of patent infringement. TAOS further makes no claim as to the suitability of its products for any particu lar
purpose, nor does TAOS assume any liability arising out of the use of any product or circuit, and specifically disclaims any
and all liability, including without limitation consequential or incidental damages.
TEXAS ADVANCED OPTOELECTRONIC SOLUTIONS, INC. PRODUCTS ARE NOT DESIGNED OR INTENDED FOR
USE IN CRITICAL APPLICATIONS IN WHICH THE FAILURE OR MALFUNCTION OF THE TAOS PRODUCT MAY
RESULT IN PERSONAL INJURY OR DEATH. USE OF T AOS PRODUCTS IN LIFE SUPPORT SYSTEMS IS EXPRESSLY
UNAUTHORIZED AND ANY SUCH USE BY A CUSTOMER IS COMPLETELY AT THE CUSTOMER’S RISK.
LUMENOLOGY, TAOS, the TAOS logo, and Texas Advanced Optoelectronic Solutions are registered trademarks of Texas Advanced
Optoelectronic Solutions Incorporated.
TCS3472
COLOR LIGHT-TO-DIGITAL CONVERTER
with IR FILTER
TAOS135 − AUGUST 2012
26/C0114
/C0114Copyright /C0069 2012, TAOS Inc. The LUMENOLOGY /C0114 Company
www.taosinc.com
Copyright Notice
© Licențiada.org respectă drepturile de proprietate intelectuală și așteaptă ca toți utilizatorii să facă același lucru. Dacă consideri că un conținut de pe site încalcă drepturile tale de autor, te rugăm să trimiți o notificare DMCA.
Acest articol: Rgb Colour Senzor Tcs34725 [613898] (ID: 613898)
Dacă considerați că acest conținut vă încalcă drepturile de autor, vă rugăm să depuneți o cerere pe pagina noastră Copyright Takedown.
