Copy of TCS3772-B
-
Upload
vammayi9845 -
Category
Documents
-
view
216 -
download
0
Transcript of Copy of TCS3772-B
-
7/30/2019 Copy of TCS3772-B
1/32
TCS3772
COLOR LIGHT-TO-DIGITAL CONVERTER
with PROXIMITY SENSINGTAOS145B SEPTEMBER 2012
1
The LUMENOLOGYr Companyr
r
CopyrightE 2012, TAOS Inc.
www.taosinc.com
Features
D RGB and Clear Color Sensing andProximity Detection in a Single Device
D Color Light Sensing with IR-Blocking Filter Programmable Analog Gain and
Integration Time 3,800,000:1 Dynamic Range
Very High Sensitivity Ideally Suited forOperation Behind Dark Glass
D Proximity Detection Ambient Light Rejection Programmable Integration Time Current Sink Driver for External IR LED
D Maskable Light and Proximity Interrupt Programmable Upper and Lower
Thresholds with Persistence Filter
D Power Management
Low Power 2.5-mA Sleep State 65-mA Wait State withProgrammable Wait
State Time from 2.4 ms to > 7 Seconds
D I2C Fast Mode Compatible Interface Data Rates up to 400 kbit/s Input Voltage Levels Compatible with VDD
or 1.8 V Bus
D Register Set and Pin Compatible with theTCS3x71 Series
D Small 2 mm y 2.4 mm Dual Flat No-Lead(FN) Package
Applications
D RGB LED Backlight Control
D Ambient Light Color Temperature Sensing
D Cell Phone Touch Screen Disable
D Mechanical Switch ReplacementD Industrial Process Control
D Medical Diagnostics
End Products and Market Segments
D HDTVs, Mobile Handsets, Tablets, andPortable Media Payers
D Medical and Commercial Instrumentation
D Toys
D Solid State and General Lighting
Description
The TCS3772 device family provides red, green, blue, and clear (RGBC) light sensing and, when coupled with
an external IR LED, proximity detection. These devices detect light intensity under a variety of lighting conditionsand through a variety of attenuation materials, including dark glass. The proximity detection feature allows a
large dynamic range of operation for accurate short distance detection, such as in a cell phone, for detectingwhen the user positions the phone close to their ear. An internal state machine provides the ability to put thedevice into a low power state in between proximity and RGBC measurements providing very low average powerconsumption.
The color sensing feature is useful in applications such as LED RGB backlight control, solid state lighting,reflected LED color sampler, or fluorescent light color temperature detection. With the addition of an IR blocking
filter, the device is an excellent ambient light sensor, color temperature monitor, and general purpose colorsensor.
r
r
Texas Advanced Optoelectronic Solutions Inc.1001 Klein Road S Suite 300 S Plano, TX 75074 S (972) 673-0759
Package Drawing Not to Scale
PACKAGE FN
DUAL FLAT NO-LEAD
(TOP VIEW)
6 SDA
5 INT
4 LDR
VDD 1
SCL 2
GND 3
-
7/30/2019 Copy of TCS3772-B
2/32
TCS3772
COLOR LIGHT-TO-DIGITAL CONVERTER
with PROXIMITY SENSINGTAOS145B SEPTEMBER 2012
2
r
r
CopyrightE 2012, TAOS Inc. The LUMENOLOGY r Company
www.taosinc.com
Functional Block Diagram
SDA
VDD
INT
SCL
LDR
Wait Control
Prox
ADC
Prox Control
Prox
Data
IR LED Constant
Current Sink
Clear ADC
Prox
Integration
Upper Limit
Upper Limit
Lower Limit
Lower Limit
Interrupt
I2CInterface
GND
Red ADC
Green ADC
Blue ADC
Clear Data
Red Data
Green Data
Blue Data
RGBC Control
Blue
Green
Red
Clear
Detailed Description
The TCS3772 is a next-generation digital color light sensor device containing four integrating analog-to-digital
converters (ADCs) that integrate currents from photodiodes. The device contains a 3 4 photodiode array usedfor color measurements and a 1 4 photodiode array used for proximity measurements. Integration of all colorsensing channels occurs simultaneously. Upon completion of the conversion cycle, the conversion result istransferred to the corresponding data registers. The transfers are double-buffered to ensure that the integrity
of the data is maintained. Communication with the device is accomplished through a fast (up to 400 kHz),two-wire I2C serial bus for easy connection to a microcontroller or embedded controller.
The device provides a separate pin for level-style interrupts. The interrupt feature simplifies and improves
system efficiency by eliminating the need to poll a sensor for a light intensity value. When interrupts are enabled,an interrupt is generated when the value of a clear channel or proximity conversion is greater than an upperthreshold or less than a lower threshold. Once the interrupt is asserted, it remains asserted until cleared by the
controlling firmware. In addition, a programmable interrupt persistence filter allows the user to set the numberof consecutive clear channel or proximity conversions outside of the threshold region that are necessary totrigger an interrupt. Interrupt thresholds and persistence filter settings are configured independently for bothclear and proximity.
Proximity detection requires only a single external IR LED. An internal LED driver can be configured to providea constant current sink of 12.5 mA, 25 mA, 50 mA, or 100 mA of current. No external current limiting resistor
is required. The number of proximity LED pulses can be programmed from 1 to 255 pulses. Each pulse has a14-s period.
-
7/30/2019 Copy of TCS3772-B
3/32
TCS3772
COLOR LIGHT-TO-DIGITAL CONVERTER
with PROXIMITY SENSINGTAOS145B SEPTEMBER 2012
3
The LUMENOLOGYr Companyr
r
CopyrightE 2012, TAOS Inc.
www.taosinc.com
Terminal Functions
TERMINAL
NAME NO.TYPE DESCRIPTION
GND 3 Power supply ground. All voltages are referenced to GND.
INT 5 O Interrupt open drain (active low).
LDR 4 O LED driver for proximity emitter open drain.
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
TCS37721 0x39 FN6 I2C Vbus = VDD Interface TCS37721FN
TCS37723 0x39 FN6 I2C Vbus = 1.8 VInterface TCS37723FN
TCS37725 0x29 FN6 I2C Vbus = VDD Interface TCS37725FN
TCS37727 0x29 FN6 I2C Vbus = 1.8 VInterface TCS37727FN Contact TAOS for availability.
Absolute Maximum Ratings over operating free-air temperature range (unless otherwise noted)
Supply voltage, VDD (Note 1) 3.8 V. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Input terminal voltage 0.5 V to 3.8 V. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Output terminal voltage (except LDR) 0.5 V to 3.8 V. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Output terminal voltage (LDR) 0.5 V to 3.8 V. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Output terminal current(except LDR) 1 mA to 20 mA. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .Storage temperature range, Tstg 40C to 85C. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .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, andfunctional 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, VDD (TCS37721 & TCS37725) (I2C Vbus = VDD) 2.7 3 3.6 V
Supply voltage, VDD (TCS37723 & TCS37727) (I2C Vbus = 1.8 V) 2.7 3 3.3 V
Operating free-air temperature, TA 30 70 C
-
7/30/2019 Copy of TCS3772-B
4/32
TCS3772
COLOR LIGHT-TO-DIGITAL CONVERTER
with PROXIMITY SENSINGTAOS145B SEPTEMBER 2012
4
r
r
CopyrightE 2012, TAOS Inc. The LUMENOLOGY r Company
www.taosinc.com
Operating Characteristics, VDD = 3 V, TA = 255C (unless otherwise noted)
PARAMETER TEST CONDITIONS MIN TYP MAX UNIT
Active LDR pulses off 235 330
IDD Supply current Wait state 65 A
Sleep state no I2C activity 2.5 10
3 mA sink current 0 0.4VOL INT, SDA output low voltage
6 mA sink current 0 0.6V
ILEAK Leakage current, SDA, SCL, INT pins 5 5 A
ILEAK Leakage current, LDR pin 5 5 A
TCS37721 & TCS37725 0.7 VDDVIH SCL, SDA input high voltage
TCS37723 & TCS37727 1.25V
TCS37721 & TCS37725 0.3 VDDVIL SCL, SDA input low voltage
TCS37723 & TCS37727 0.54V
Optical Characteristics, VDD = 3 V, TA = 255C, AGAIN = 16y, ATIME = 0xF6 (unless otherwise noted)(Note 1)
TEST Red Channel Green Channel Blue Channel Clear ChannelPARAMETER
CONDITIONS MIN TYP MAX MIN TYP MAX MIN TYP MAX MIN TYP MAXUNIT
D = 465 nmNote 2
0% 15% 10% 42% 65% 88% 11.0 13.8 16.6
ReIrradianceresponsivity
D = 525 nmNote 3
4% 25% 60% 85% 10% 45% 13.2 16.6 20.0counts/W/
2
D = 615 nmNote 4
80% 110% 0% 14% 5% 24% 15.6 19.5 23.4
cm
NOTES: 1. The percentage shown represents the ratio of the respective red, green, or blue channel value to the clear channel value.
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 AlInGaP light-emitting diode with the following characteristics:dominant wavelength D = 615 nm, spectral halfwidth = 15 nm.
RGBC Characteristics, VDD = 3 V, TA = 255C, AGAIN = 16y, 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 5 countsADC 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
4 3.8 4 4.2Gain scaling, relative to 1 gain, 16 15 16 16.8 yse ng
60 58 60 63NOTE 5: Parameter ensured by design and is not tested.
-
7/30/2019 Copy of TCS3772-B
5/32
TCS3772
COLOR LIGHT-TO-DIGITAL CONVERTER
with PROXIMITY SENSINGTAOS145B SEPTEMBER 2012
5
The LUMENOLOGYr Companyr
r
CopyrightE 2012, TAOS Inc.
www.taosinc.com
Proximity Characteristics, VDD = 3 V, TA = 255C, PEN = 1 (unless otherwise noted)
PARAMETER TEST CONDITIONS MIN TYP MAX UNIT
IDD Supply current LDR pulse on 3 mA
ADC conversion time step size PTIME = 0xFF 2.27 2.4 2.56 ms
ADC number of integration steps
(Note 1)
1 256 steps
ADC counts per step (Note 1) PTIME = 0xFF 0 1023 counts
ADC count valuep = 850 nm, Ee = 770.1 W/cm2, PTIME = 0xFB,PPULSE = 1 (Note 3)
1350 1900 counts
ADC output responsivity p = 850 nm, PTIME = 0xFF, PPULSE = 1 (Note 3) 0.175 0.211 0.247counts/
W/cm2
Noise (Notes 1, 2, 3) Ee = 0, PTIME = 0xFF, PPULSE = 8 (Note 6) 2 % FS
LED pulse count (Note 1) 0 255 pulses
LED pulse period 14.0 s
LED pulse width LED on time 6.3 s
PDRIVE = 0 80 106 132
ISINK sink current @ 1.6 V, PDRIVE = 1 50
LED drive current
. ,
LDR pin PDRIVE = 2 25 mA
PDRIVE = 3 12.5
Maximum operating distance
(Notes 1, 4, 5)
PDRIVE = 0 (100 mA), PPULSE = 64
Emitter: p = 850 nm, 20 half angle, and 60 mW/srObject: 16 20-inch, 90% reflective Kodak Gray Card
(white surface)
Optics: Open view (no glass, no optical attenuation)
30 inches
NOTES: 1. Parameter is ensured by design or characterization and is not tested.
2. Proximity noise is defined as one standard deviation of 600 samples.
3. Proximity noise typically increases as PPULSE4. Greater operating distances are achievable with appropriate optical system design considerations. See available TAOS application
notes for additional information.
5. Maximum operating distance is dependent upon emitter and the reflective properties of the objects surface.
6. Proximity noise test was done using the following circuit:
TCS3772
VDD
1 mF
22 W
15.0 W1
3 4
VDD
GND LDR
Wait Characteristics, VDD = 3 V, TA = 255C, 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 steps (Note 7) 1 256 steps
NOTE 7: Parameter ensured by design and is not tested.
-
7/30/2019 Copy of TCS3772-B
6/32
TCS3772
COLOR LIGHT-TO-DIGITAL CONVERTER
with PROXIMITY SENSINGTAOS145B SEPTEMBER 2012
6
r
r
CopyrightE 2012, TAOS Inc. The LUMENOLOGY r Company
www.taosinc.com
AC Electrical Characteristics, VDD = 3 V, TA = 255C (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
StartCondition
StopCondition
P
SDA
t(SUSTO)t(SUDAT)t(HDDAT)t(BUF)
VIH
VIL
SCL
t(SUSTA)t(HIGH)
t(F)t(R)
t(HDSTA)
t(LOW)
VIH
VIL
P SS
Figure 1. Timing Diagrams
-
7/30/2019 Copy of TCS3772-B
7/32
TCS3772
COLOR LIGHT-TO-DIGITAL CONVERTER
with PROXIMITY SENSINGTAOS145B SEPTEMBER 2012
7
The LUMENOLOGYr Companyr
r
CopyrightE 2012, TAOS Inc.
www.taosinc.com
TYPICAL CHARACTERISTICS
Figure 2
300 500 700 900
RelativeResponsivity
1100
Wavelength nm
PHOTODIODE SPECTRAL RESPONSIVITY
RGBC
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1
0
TA = 25C
Normalized to
Clear@ 605 nm
Red
Green
Clear
Blue
Figure 3
300 500 700 900
RelativeResponsivity
1100
Wavelength nm
PHOTODIODE SPECTRAL RESPONSIVITY
PROXIMITY
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1
0
Figure 4
NORMALIZED RESPONSIVITY
vs.
ANGULAR DISPLACEMENT
Q Angular Displacement
NormalizedResponsivity
0
0.2
0.4
0.6
0.8
1.0
90 60 30 0 30 60 90
OpticalAxis
-Q +Q
Figure 5
NORMALIZED RESPONSIVITY
vs.
ANGULAR DISPLACEMENT
Q Angular Displacement
NormalizedResponsivity
0
0.2
0.4
0.6
0.8
1.0
90 60 30 0 30 60 90
OpticalAxis
-Q +Q
-
7/30/2019 Copy of TCS3772-B
8/32
TCS3772
COLOR LIGHT-TO-DIGITAL CONVERTER
with PROXIMITY SENSINGTAOS145B SEPTEMBER 2012
8
r
r
CopyrightE 2012, TAOS Inc. The LUMENOLOGY r Company
www.taosinc.com
TYPICAL CHARACTERISTICS
05C
255C
Figure 6
NORMALIZED IDD
vs.VDD and TEMPERATURE
VDD V
IDD
Normalized@3V,255C
94%
96%
98%
100%
102%
104%
106%
108%
110%
92%
2.7 2.8 2.9 3 3.1 3.2 3.3
755C
505C
25 mA
12.5 mA
Figure 7
LDR Voltage V
LDRCurrentmA
TYPICAL LDR CURRENT
vs.
VOLTAGE
50 mA
100 mA
0 0.5 1 1.5 2 2.50
20
40
60
80
100
120
140
160
3
Figure 8
RESPONSIVITY TEMPERATURE
COEFFICIENT
400 600 800 1000
TemperatureCoefficient
ppm/5C
100
1000
10,000
500 700 900
Wavelength nm
-
7/30/2019 Copy of TCS3772-B
9/32
TCS3772
COLOR LIGHT-TO-DIGITAL CONVERTER
with PROXIMITY SENSINGTAOS145B SEPTEMBER 2012
9
The LUMENOLOGYr Companyr
r
CopyrightE 2012, TAOS Inc.
www.taosinc.com
PRINCIPLES OF OPERATION
System State Machine
The TCS3772 provides control of RGBC, proximity detection, and power management functionality through an
internal state machine (Figure 9). After a power-on-reset, the device is in the sleep mode. As soon as the PON
bit is set, the device will move to the start state. It will then continue through the Prox, Wait, and RGBC states.If these states are enabled, the device will execute each function. If the PON bit is set to 0, the state machinewill continue until all conversions are completed and then go into a low power sleep mode.
Sleep
Start
Wait
RGBCProx
PON = 1(r0x00:b0)
PON = 0(r0x00:b0)
Figure 9. Simplified State Diagram
NOTE: In this document, the nomenclature uses the bit field name in italics followed by the register number andbit 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 0, bit 0. This is represented as PON (r0x00:b0).
-
7/30/2019 Copy of TCS3772-B
10/32
TCS3772
COLOR LIGHT-TO-DIGITAL CONVERTER
with PROXIMITY SENSINGTAOS145B SEPTEMBER 2012
10
r
r
CopyrightE 2012, TAOS Inc. The LUMENOLOGY r Company
www.taosinc.com
RGBC 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)
1y, 4y, 16y, 60y Gain
CDATAH(r0x15), CDATA(r0x14)Clear ADC
Red ADC
Green ADC
Blue ADC
Clear Data
Red Data
Green Data
Blue Data
RGBC Control
Blue
Green
Red
Clear
RDATAH(r0x17), RDATA(r0x16)
GDATAH(r0x19), GDATA(r0x18)
BDATAH(r0x1B), BDATA(r0x1A)
ATIME(r0x01)
2.4 ms to 700 ms
Figure 10. RGBC Operation
The registers for programming the integration and wait times are a 2s compliment values. The actual time canbe 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
-
7/30/2019 Copy of TCS3772-B
11/32
TCS3772
COLOR LIGHT-TO-DIGITAL CONVERTER
with PROXIMITY SENSINGTAOS145B SEPTEMBER 2012
11
The LUMENOLOGYr Companyr
r
CopyrightE 2012, TAOS Inc.
www.taosinc.com
Proximity Detection
Proximity detection is accomplished by measuring the amount of light energy, generally from an IR LED,reflected off an object to determine its distance. The proximity light source, which is external to the TCS3772
device, is driven by the integrated proximity LED current driver as shown in Figure 6.
Prox
Integration
Prox Control
Prox
ADC
Prox LED
Current Driver
PDATAH(r0x019)
PDRIVE(r0x0F, b7:6)
Prox
Data
External IR
LED PTIME(r0x02)
PVALID(r0x13, b1)
VDD PPULSE(r0x0E)
Background Energy
PDATAL(r0x018)
LDR
Object
Figure 11. Proximity Detection
The LED current driver, output on the LDR terminal, provides a regulated current sink that eliminates the need
for an external current limiting resistor. PDRIVE sets the drive current to 100 mA, 50 mA, 25 mA. To drive anexternal light source with more than 100 mA or to minimize on-chip ground bounce, LDR can be used to
drive an external p-type transistor, which, in turn, drives the light source.
Referring to the Detailed State Machine figure, the LED current driver pulses the external IR LED as shown in
Figure 12 during the Prox Accum state. Figure 12 also illustrates that the LED On pulse has a fixed width of6.3 s and period of 14.0 s. So, in addition to setting the proximity drive current, 1 to 255 proximity pulses
(PPULSE) can be programmed. When deciding on the number of proximity pulses, keep in mind that the signalincreases proportionally to PPULSE, while noise increases by the square root of PPULSE.
LED On LED Off
IR LED Pulses
Background
Energy
Reflected IR LED +
Background Energy
14.0 ms
6.3 ms
Figure 12. Proximity LED Current Driver Waveform
Figure 11 illustrates light rays emitting from an external IR LED, reflecting off an object, and being absorbed bythe proximity photodiode.
http://d/desktop_7-2.ileaf/TAOS.ilcab/TAOS_Data_Sheets.ilboo/CT403-E1.1.ildochttp://d/desktop_7-2.ileaf/TAOS.ilcab/TAOS_Data_Sheets.ilboo/CT403-E1.1.ildoc -
7/30/2019 Copy of TCS3772-B
12/32
TCS3772
COLOR LIGHT-TO-DIGITAL CONVERTER
with PROXIMITY SENSINGTAOS145B SEPTEMBER 2012
12
r
r
CopyrightE 2012, TAOS Inc. The LUMENOLOGY r Company
www.taosinc.com
Referring again to Figure 12, the reflected IR LED and the background energy is integrated during the LED On
time, then during the LED Off time, the integrated background energy is subtracted from the LED On timeenergy, leaving the external IR LED energy to accumulate from pulse to pulse.
After the programmed number of proximity pulses have been generated, the proximity ADC converts and scalesthe proximity measurement to a 16-bit value, then stores the result in two 8-bit proximity data (PDATAx)
registers. ADC scaling is controlled by the proximity ADC conversion time (PTIME) which is programmable from1 to 256 2.4-ms time units. However, depending on the application, scaling the proximity data will equally scale
any accumulated noise. Therefore, in general, it is recommended to leave PTIME at the default value of one2.4-ms ADC conversion time (0xFF).
Once the first proximity cycle has completed, the proximity valid (PVALID) bit in the Status register will be setand remain set until the proximity detection function is disabled (PEN).
For additional information on using the proximity detection function behind glass and for optical system designguidance, please see available TAOS application notes.
-
7/30/2019 Copy of TCS3772-B
13/32
TCS3772
COLOR LIGHT-TO-DIGITAL CONVERTER
with PROXIMITY SENSINGTAOS145B SEPTEMBER 2012
13
The LUMENOLOGYr Companyr
r
CopyrightE 2012, TAOS Inc.
www.taosinc.com
Interrupts
The interrupt feature simplifies and improves system efficiency by eliminating the need to poll the sensor forlight intensity or proximity 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 usingthe proximity interrupt enable (PIEN) or Clear interrupt enable (AIEN) fields in the enable register (0x00).
Four 16-bit interrupt threshold registers allow the user to set limits below and above a desired light level andproximity range. An interrupt can be generated when the Clear data (CDATA) is less than the Clear interruptlow threshold registers (AILTx) or greater than the Clear interrupt high threshold registers (AIHTx). Likewise,an out-of-range proximity interrupt can be generated when the proximity data (PDATA) falls below the proximityinterrupt low threshold (PILTx) or exceeds the proximity interrupt high threshold (PIHTx).
It is important to note that the thresholds are evaluated in sequence, first the low threshold, then the highthreshold. 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 or proximity occurrences before an interruptis generated. The persistence register (0x0C) allows the user to set the Clear persistence (APERS) and theproximity persistence (PPERS) values. See the persistence register for details on the persistence filter values.Once the persistence filter generates an interrupt, it will continue until a special function interrupt clear commandis received (see command register).
Prox
ADC
Prox
Data
Clear
ADCClear
Data
Prox
Integration
Clear
Upper Limit
Upper Limit
Lower Limit
Lower Limit
Prox Persistence
PILTH(r0x09), PILTL(r0x08)
AIHTH(r0x07), AIHTL(r0x06)
Clear Persistence
AILTH(r0x05), AILTL(r0x04)
PIHTH(r0x0B), PIHTL(r0x0A) PPERS(r0x0C, b7:4)
APERS(r0x0C, b3:0)
Figure 13. Programmable Interrupt
-
7/30/2019 Copy of TCS3772-B
14/32
TCS3772
COLOR LIGHT-TO-DIGITAL CONVERTER
with PROXIMITY SENSINGTAOS145B SEPTEMBER 2012
14
r
r
CopyrightE 2012, TAOS Inc. The LUMENOLOGY r Company
www.taosinc.com
System Timing
The system state machine shown in Figure 9 provides an overview of the states and state transitions thatprovide 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 proximity detection feature is enabled (PEN), the state machine transitions through the Prox Accum,
Prox Wait, and Prox ADC states. The Prox Wait time is a fixed 2.4 ms, whereas the Prox Accum time isdetermined by the number of proximity LED pulses (PPULSE) and the Prox ADC time is determined by theintegration time (PTIME). The formulas to determine the Prox Accum and Prox ADC times are given in theassociated boxes in Figure 14. If an interrupt is generated as a result of the proximity cycle, it will be assertedat the end of the Prox ADC state.
When the power management feature is enabled (WEN), the state machine will transition in turn to the Waitstate. The wait time is determined by WLONG, which extends normal operation by 12 when asserted, andWTIME. The formula to determine the wait time is given in the box associated with the Wait state in Figure 14.
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 14. If an interruptis generated as a result of the RGBC cycle, it will be asserted at the end of the RGBC ADC.
ProxWait
Sleep
Idle
Wait
ProxAccum
RGBCADC
RGBCInit
RGBC
ProxADC
Prox
PPULSE: 0 ~ 255 pulses
Time: 14.0 s/pulseRange: 0 ~ 3.6 ms
Time: 2.4 ms
PTIME: 1 ~ 256 steps
Time: 2.4 ms/step
Range: 2.4 ms ~ 614 ms 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.37s
Time: 2.4 ms
ATIME: 1 ~ 256 steps
Time: 2.4 ms/step
Range: 2.4 ms ~ 614 ms!WEN &
!AEN
AEN
!PON
WEN
!AEN
!PEN & WEN& AEN
!WEN &AEN
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, PEN, WEN, and AEN are fields in the Enable register (0x00).
!PEN & !WEN& AEN
PEN
I2C Start(Note 1)
Figure 14. Detailed State Diagram
-
7/30/2019 Copy of TCS3772-B
15/32
TCS3772
COLOR LIGHT-TO-DIGITAL CONVERTER
with PROXIMITY SENSINGTAOS145B SEPTEMBER 2012
15
The LUMENOLOGYr Companyr
r
CopyrightE 2012, TAOS Inc.
www.taosinc.com
Power Management
Power consumption can be managed with the Wait state, because the Wait state typically consumes only 65 Aof IDD current. An example of the power management feature is given below. With the assumptions provided
in the example, average IDD is estimated to be 186 A.
Table 1. Power Management
SYSTEM STATE MACHINESTATE
PROGRAMMABLEPARAMETER PROGRAMMED VALUE DURATION
TYPICALCURRENT
Prox Accum PPULSE 0x04 0.056 ms
Prox Accum LED On 0.025 ms (Note 1) 109 mA
Prox Accum LED Off 0.031 ms (Note 2) 0.235 mA
Prox Wait 2.40 ms 0.235 mA
Prox ADC PTIME 0xFF 2.40 ms 0.235 mA
WTIME 0xEEWait
WLONG 043.1 ms 0.065 mA
ALS Init 2.40 ms 0.235 mA
ALS ADC ATIME 0xEE 43.1 ms 0.235 mA
NOTES: 1. Prox Accum LED On time = 6.3 s per pulse 4 pulses = 25.2s = 0.025 ms2. Prox Accum LED Off time = 7.7 s per pulse 4 pulses = 30.9s = 0.031 ms
Average IDD Current = ((0.025 109) + (0.031 0.235) + (2.40 0.235) +(43.1 0.065) + (43.1 0.263) + (2.40 0.235 2)) / 93 186 A
Keeping with the same programmed values as the example, Table 2 shows how the average IDD current isaffected 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 IDD Current
WEN WTIME WLONG WAIT STATE AVERAGE IDD CURRENT0 n/a n/a 0 ms 289 A
1 0xFF 0 2.40 ms 279 A
1 0xEE 0 43.1 ms 186 A
1 0x00 0 613 ms 82 A
1 0x00 1 7.36 s 67 A
-
7/30/2019 Copy of TCS3772-B
16/32
TCS3772
COLOR LIGHT-TO-DIGITAL CONVERTER
with PROXIMITY SENSINGTAOS145B SEPTEMBER 2012
16
r
r
CopyrightE 2012, TAOS Inc. The LUMENOLOGY r Company
www.taosinc.com
I2C Protocol
Interface and control are accomplished through an I2C serial compatible interface (standard or fast mode) toa 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 15).
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 commandis 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 controlcommands can also be used to clear interrupts.
The I2C bus protocol was developed by Philips (now NXP). For a complete description of the I2C protocol, please
review the NXP I2C design specification at http://www.i2cbus.org/references/.
A Acknowledge (0)N Not Acknowledged (1)P Stop ConditionR Read (1)S Start ConditionSr Repeated Start ConditionW Write (0)
... Continuation of protocolMaster-to-SlaveSlave-to-Master
W
7
Data ByteSlave AddressS
1
A AA
81 1 1 8
Command Code
1
P
1
...
I2C Write Protocol
I2C Read Protocol
I2C Read Protocol Combined Format
R
7
DataSlave AddressS
1
A AA
81 1 1 8
Data
1
P
1...
W
7
Slave AddressSlave AddressS
1
A RA
81 1 1 7 1 1
Command Code Sr
1
A
Data AA
8 1 8
Data
1
P
1
...
Figure 15. I2C Protocols
-
7/30/2019 Copy of TCS3772-B
17/32
TCS3772
COLOR LIGHT-TO-DIGITAL CONVERTER
with PROXIMITY SENSINGTAOS145B SEPTEMBER 2012
17
The LUMENOLOGYr Companyr
r
CopyrightE 2012, TAOS Inc.
www.taosinc.com
Register Set
The TCS3772 is controlled and monitored by data registers and a command register accessed through theserial 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
0x02 PTIME R/W Proximity 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
0x08 PILTL R/W Proximity interrupt low threshold low byte 0x00
0x09 PILTH R/W Proximity interrupt low threshold high byte 0x00
0x0A PIHTL R/W Proximity interrupt high threshold low byte 0x00
0x0B PIHTH R/W Proximity interrupt high threshold high byte 0x00
0x0C PERS R/W Interrupt persistence filters 0x00
0x0D CONFIG R/W Configuration 0x00
0x0E PPULSE R/W Proximity pulse count 0x00
0x0F CONTROL R/W Gain control register 0x00
0x12 ID R Device ID ID
0x13 STATUS R Device status 0x00
0x14 CDATA R Clear ADC data low byte 0x00
0x15 CDATAH R Clear ADC data high byte 0x000x16 RDATA R Red ADC data low byte 0x00
0x17 RDATAH R Red ADC data high byte 0x00
0x18 GDATA R Green ADC data low byte 0x00
0x19 GDATAH R Green ADC data high byte 0x00
0x1A BDATA R Blue ADC data low byte 0x00
0x1B BDATAH R Blue ADC data high byte 0x00
0x1C PDATA R Proximity ADC data low byte 0x00
0x1D PDATAH R Proximity ADC 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 specificcontrol/status register for following read/write operations.
-
7/30/2019 Copy of TCS3772-B
18/32
TCS3772
COLOR LIGHT-TO-DIGITAL CONVERTER
with PROXIMITY SENSINGTAOS145B SEPTEMBER 2012
18
r
r
CopyrightE 2012, TAOS Inc. The LUMENOLOGY r Company
www.taosinc.com
Command Register
The command registers specifies the address of the target register for future write and read operations.
Table 4. Command Register
67 5 4
ADDR/SF
23 1 0
COMMAND CMD TYPEReset0x00
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 controlstatusregister for following writeand read transactions. The field values listed below apply only to special function commands:
FIELD VALUE READ VALUE
00101 Proximity interrupt clear
00110 Clear channel interrupt clear
00111 Proximity and Clear interrupt clear
other Reserved Do not write
The ALS and Proximity interrupt clear special functions clear any pending interrupt(s) and are selfclearing.
-
7/30/2019 Copy of TCS3772-B
19/32
TCS3772
COLOR LIGHT-TO-DIGITAL CONVERTER
with PROXIMITY SENSINGTAOS145B SEPTEMBER 2012
19
The LUMENOLOGYr Companyr
r
CopyrightE 2012, TAOS Inc.
www.taosinc.com
Enable Register (0x00)
The Enable register is used primarily to power the TCS3772 device on and off, and enable functions andinterrupts as shown in Table 5.
Table 5. Enable Register
67 5 4
PON
23 1 0
ENABLE Reserved Resv AIENReset0x00
AENPIEN WEN PEN
FIELD BITS DESCRIPTION
Reserved 7:6 Reserved. Write as 0.
PIEN 5 Proximity interrupt enable. When asserted, permits proximity interrupts to be generated.
AIEN 4 Clear channel interrupt enable. When asserted, permits Clear interrupts to be generated.
WEN 3Wait enable. This bit activates the wait feature. Writing a 1 activates the wait timer. Writing a 0 disables thewait timer.
PEN 2Proximity enable. This bit activates the proximity function. Writing a 1 enables proximity. Writing a 0disables proximity.
AEN 1 RGBC enable. This bit actives the two-channel ADC. Writing a 1 activates RGBC. Writing a 0 disablesRGBC.
PON 0Power 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. During reads and writes over the I2Cinterface, this bit is temporarily overridden and the oscillator is enabled, independent of the state of PON.
-
7/30/2019 Copy of TCS3772-B
20/32
TCS3772
COLOR LIGHT-TO-DIGITAL CONVERTER
with PROXIMITY SENSINGTAOS145B SEPTEMBER 2012
20
r
r
CopyrightE 2012, TAOS Inc. The LUMENOLOGY r Company
www.taosinc.com
RGBC Time Register (0x01)
The RGBC timing register controls the internal integration time of the RGBC clear and IR channel ADCs in2.4-ms increments. Upon power up, the RGBC time register is set to 0xFF.
Table 6. RGBC Time Register
FIELD BITS DESCRIPTION
ATIME 7:0 VALUE INTEG_CYCLES TIME MAX COUNT
0xFF 1 2.4 ms 1024
0xF6 10 24 ms 10240
0xD6 42 101 ms 43008
0xAD 64 154 ms 65535
0x00 256 614 ms 65535
Proximity Time Register (0x02)
The proximity timing register controls the integration time of the proximity ADC in 2.4 ms increments. Upon
power up, the proximity time register is set to 0xFF. It is recommended that this register be programmed to avalue of 0xFF (1 integration cycle).
Max Prox Count = ((256 PTIME) 1024)) 1 up to a maximum of 65535
Table 7. Proximity Time Register
FIELD BITS DESCRIPTION
PTIME 7:0 VALUE INTEG_CYCLES TIME MAX COUNT
0xFF 1 2.4 ms 1023
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 2s complement number. Upon power up, the wait time register is set to 0xFF.
Table 8. 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
NOTE: The Proximity Wait Time Register should be configured before PEN and/or AEN is/are asserted.
-
7/30/2019 Copy of TCS3772-B
21/32
TCS3772
COLOR LIGHT-TO-DIGITAL CONVERTER
with PROXIMITY SENSINGTAOS145B SEPTEMBER 2012
21
The LUMENOLOGYr Companyr
r
CopyrightE 2012, TAOS Inc.
www.taosinc.com
Clear Interrupt Threshold Registers (0x04 0x07)
The Clear interrupt threshold registers provides the values to be used as the high and low trigger points for thecomparison 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 9. Clear Interrupt Threshold Registers
REGISTER ADDRESS BITS DESCRIPTION
AILTL 0x04 7:0 Clear channel low threshold lower byte
AILTH 0x05 7:0 Clear channel low threshold upper byte
AIHTL 0x06 7:0 Clear channel high threshold lower byte
AIHTH 0x07 7:0 Clear channel high threshold upper byte
Proximity Interrupt Threshold Registers (0x08 0x0B)
The proximity interrupt threshold registers provide the values to be used as the high and low trigger points forthe comparison function for interrupt generation. If the value generated by proximity channel crosses below the
lower threshold specified, or above the higher threshold, an interrupt is signaled to the host processor.
Table 10. Proximity Interrupt Threshold Registers
REGISTER ADDRESS BITS DESCRIPTION
PILTL 0x08 7:0 Proximity ADC channel low threshold lower byte
PILTH 0x09 7:0 Proximity ADC channel low threshold upper byte
PIHTL 0x0A 7:0 Proximity ADC channel high threshold lower byte
PIHTH 0x0B 7:0 Proximity ADC channel high threshold upper byte
-
7/30/2019 Copy of TCS3772-B
22/32
TCS3772
COLOR LIGHT-TO-DIGITAL CONVERTER
with PROXIMITY SENSINGTAOS145B SEPTEMBER 2012
22
r
r
CopyrightE 2012, TAOS Inc. The LUMENOLOGY r Company
www.taosinc.com
Persistence Filter Register (0x0C)
The persistence filter 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. Separatefiltering is provided for proximity and the clear channel.
Table 11. Persistence Filter Register
67 5 4
APERS
23 1 0
PERS PPERSReset0x00
FIELD BITS DESCRIPTION
PPERS 7:4 Proximity interrupt persistence. Controls rate of proximity interrupt to the host processor.
FIELD VALUE INTERRUPT PERSISTENCE FUNCTION
0000 Every proximity cycle generates an interrupt
0001 1 proximity value out of range
0010 2 consecutive proximity values out of range
... ...
1111 15 consecutive proximity values out of range
APERS 3:0 Clear Interrupt persistence. Controls rate of Clear channel interrupt to the host processor.
FIELD VALUE INTERRUPT PERSISTENCE FUNCTION
0000 Every RGBC cycle generates an interrupt
0001 1 clear channel value outside of threshold range
0010 2 clear channel consecutive values out of range
0011 3 clear channel consecutive values out of range
0100 5 clear channel consecutive values out of range
0101 10 clear channel consecutive values out of range
0110 15 clear channel consecutive values out of range
0111 20 clear channel consecutive values out of range1000 25 clear channel consecutive values out of range
1001 30 clear channel consecutive values out of range
1010 35 clear channel consecutive values out of range
1011 40 clear channel consecutive values out of range
1100 45 clear channel consecutive values out of range
1101 50 clear channel consecutive values out of range
1110 55 clear channel consecutive values out of range
1111 60 clear channel consecutive values out of range
-
7/30/2019 Copy of TCS3772-B
23/32
TCS3772
COLOR LIGHT-TO-DIGITAL CONVERTER
with PROXIMITY SENSINGTAOS145B SEPTEMBER 2012
23
The LUMENOLOGYr Companyr
r
CopyrightE 2012, TAOS Inc.
www.taosinc.com
Configuration Register (0x0D)
The configuration register sets the wait long time.
Table 12. Configuration Register
67 5 4 23 1 0
CONFIG Reserved WLONGReset0x00Reserved
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 theWTIME register.
Reserved 0 Reserved. Write as 0.
Proximity Pulse Count Register (0x0E)
The proximity pulse count register sets the number of proximity pulses that will be transmitted.
Table 13. Proximity Pulse Count Register
67 5 4 23 1 0
PPULSE PPULSEReset0x00
FIELD BITS DESCRIPTION
PPULSE 7:0 Proximity Pulse Count. Specifies the number of proximity pulses to be generated.
-
7/30/2019 Copy of TCS3772-B
24/32
TCS3772
COLOR LIGHT-TO-DIGITAL CONVERTER
with PROXIMITY SENSINGTAOS145B SEPTEMBER 2012
24
r
r
CopyrightE 2012, TAOS Inc. The LUMENOLOGY r Company
www.taosinc.com
Control Register (0x0F)
The Control register provides eight bits of miscellaneous control to the analog block.
Table 14. Control Register
67 5 4 23 1 0
CONTROL PDRIVEReset0x00Reserved AGAIN
FIELD BITS DESCRIPTION
PDRIVE 7:6 Proximity LED Drive Strength.
FIELD VALUE LED STRENGTH
00 100 mA
01 50 mA
10 25 mA
11 12.5 mA
Reserved 5:2 Reserved. Write bits as 0
AGAIN 1:0 RGBC Gain Control.
FIELD VALUE RGBC GAIN VALUE
00 1 gain01 4 gain10 16 gain11 60 gain
ID Register (0x12)
The ID Register provides the value for the part number. The ID register is a read-only register.
Table 15. ID Register
67 5 4 23 1 0
ID IDResetID
FIELD BITS DESCRIPTION
0x40 = TCS37721 & TCS37725ID 7:0 Part number identification
0x49 = TCS37723 & TCS37727
-
7/30/2019 Copy of TCS3772-B
25/32
TCS3772
COLOR LIGHT-TO-DIGITAL CONVERTER
with PROXIMITY SENSINGTAOS145B SEPTEMBER 2012
25
The LUMENOLOGYr Companyr
r
CopyrightE 2012, TAOS Inc.
www.taosinc.com
Status Register (0x13)
The Status Register provides the internal status of the device. This register is read only.
Table 16. Status Register
67 5 4
AVALID
23 1 0
STATUS Reserved Resv AINTReset0x00ReservedPINT PVALID
FIELD BIT DESCRIPTION
Reserved 7:6 Reserved.
PINT 5 Proximity Interrupt.
AINT 4 Clear channel Interrupt.
Reserved 3:2 Reserved.
PVALID 1 Proximity Valid. Indicates that a proximity cycle has completed since PEN was asserted.
AVALID 0 RGBC Val id. Indicates that the RGBC cycle has completed since AEN was asserted.
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 readI2C 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 asubsequent 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 17. 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
Proximity Data Registers (0x1C 0x1D)
Proximity data is stored as a 16-bit value. To ensure the data is read correctly, a two-byte read I 2C transactionshould be used with a read word protocol bit set in the command register. With this operation, when the lowerbyte register is read, the upper eight bits are stored into a shadow register, which is read by a subsequent readto the upper byte. The upper register will read the correct value even if additional ADC integration cycles endbetween the reading of the lower and upper registers.
Table 18. PDATA Registers
REGISTER ADDRESS BITS DESCRIPTION
PDATA 0x1C 7:0 Proximity data low byte
PDATAH 0x1D 7:0 Proximity data high byte
-
7/30/2019 Copy of TCS3772-B
26/32
TCS3772
COLOR LIGHT-TO-DIGITAL CONVERTER
with PROXIMITY SENSINGTAOS145B SEPTEMBER 2012
26
r
r
CopyrightE 2012, TAOS Inc. The LUMENOLOGY r Company
www.taosinc.com
APPLICATION INFORMATION: HARDWARE
LED Driver Pin with Proximity Detection
In a proximity sensing system, the IR LED can be pulsed by the TCS3772 with more than 100 mA of rapidly
switching current, therefore, a few design considerations must be kept in mind to get the best performance. The
key goal is to reduce the power supply noise coupled back into the device during the LED pulses.
The first recommendation is to use two power supplies; one for the device VDD and the other for the IR LED.In many systems, there is a quiet analog supply and a noisy digital supply. By connecting the quiet supply to
the VDD pin and the noisy supply to the LED, the key goal can be meet. Place a 1-F low-ESR decouplingcapacitor as close as possible to the VDD pin and another at the LED anode, and a 22-F capacitor at the outputof the LED voltage regulator to supply the 100-mA current surge.
TCS3772 INT
SDA
SCL
VDD
LDR
1 mF
VoltageRegulator
VoltageRegulator
. 22 mF
* Cap Value Per Regulator Manufacturer Recommendation
IR LED
GND
VBUS
RP RP RPIC*
1 mF
Figure 16. Proximity Sensing Using Separate Power Supplies
If it is not possible to provide two separate power supplies, the device can be operated from a single supply.A 22- resistor in series with the VDD supply line and a 1-F low ESR capacitor effectively filter any power supplynoise. The previous capacitor placement considerations apply.
TCS3772 INT
SDA
SCL
VDD
LDR
1 mF
VoltageRegulator
. 22 mF
IR LED
GND
VBUS
RP RP RPI
1 mF
22 W
Figure 17. Proximity Sensing Using Single Power Supply
VBUS in the above figures refers to the I2C bus voltage which is either VDD or 1.8 V. Be sure to apply the specified
I2C bus voltage shown in the Available Options table for the specific device being used.
The I2C signals and the Interrupt are open-drain outputs and require pullup resistors. The pull-up resistor (R P)value is a function of the I2C bus speed, the I2C bus voltage, and the capacitive load. The TAOS EVM runningat 400 kbps, uses 1.5-k resistors. A 10-k pull-up resistor (RPI) can be used for the interrupt line.
-
7/30/2019 Copy of TCS3772-B
27/32
TCS3772
COLOR LIGHT-TO-DIGITAL CONVERTER
with PROXIMITY SENSINGTAOS145B SEPTEMBER 2012
27
The LUMENOLOGYr Companyr
r
CopyrightE 2012, TAOS Inc.
www.taosinc.com
APPLICATION INFORMATION: HARDWARE
PCB Pad Layout
Suggested land pattern based on the IPC7351B Generic Requirements for Surface Mount Design and Land
Pattern Standard (2010) for the small outline no-lead (SON) package is shown in Figure 18.
0.35 y 6
2.70
1.20
0.65
0.65
1.20
TOP VIEW
NOTES: A. All linear dimensions are in millimeters.
B. This drawing is subject to change without notice.
Figure 18. Suggested FN Package PCB Layout
-
7/30/2019 Copy of TCS3772-B
28/32
TCS3772
COLOR LIGHT-TO-DIGITAL CONVERTER
with PROXIMITY SENSINGTAOS145B SEPTEMBER 2012
28
r
r
CopyrightE 2012, TAOS Inc. The LUMENOLOGY r Company
www.taosinc.com
PACKAGE INFORMATION
PACKAGE FN Dual Flat No-Lead
650BSC
TOP VIEW
SIDE VIEW
BOTTOM VIEW
Lead Free
Pb
300+ 50
2000
+ 75
2400 + 75
PIN 1
PIN 1
END VIEW
650 + 50
PIN OUTTOP VIEW
750 + 100
295Nominal
406+ 10
CL of Solder Contacts andPhotodiode Array Area (Note B)
CL of Solder Contacts
of Photodiode Array Area (Note B)CL
125 Nominal
6 SDA
5 INT
4 LDR
VDD 1
SCL 2
GND 3
496 + 10
Photodiode Active Area
(Note C)
NOTES: A. All linear dimensions are in micrometers.
B. The die is centered within the package within a tolerance of 75 m.C. Double-Half Etch (DHE) is 97 20 m. Non-DHE is 203 8 m.D. Package top surface is molded with an electrically nonconductive clear plastic compound having an index of refraction of 1.55.
E. Contact finish is copper alloy A194 with pre-plated NiPdAu lead finish.
F. This package contains no lead (Pb).
G. This drawing is subject to change without notice.
Figure 19. Package FN Dual Flat No-Lead Packaging Configuration
-
7/30/2019 Copy of TCS3772-B
29/32
TCS3772
COLOR LIGHT-TO-DIGITAL CONVERTER
with PROXIMITY SENSINGTAOS145B SEPTEMBER 2012
29
The LUMENOLOGYr Companyr
r
CopyrightE 2012, TAOS Inc.
www.taosinc.com
CARRIER TAPE AND REEL INFORMATION
TOP VIEW
DETAIL A
2.21 + 0.05
Ao
0.254
+ 0.02
55 Max
4.00
8.00
3.50 + 0.05
j 1.504.00
2.00 + 0.05
+ 0.30
0.10
1.75
B
BA A
j 0.50+ 0.05
DETAIL B
2.61 + 0.05
Bo
55 Max
0.83 + 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 Ao, Bo, and Ko are defined in ANSI EIA Standard 481B 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 481B.
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 20. Package FN Carrier Tape
-
7/30/2019 Copy of TCS3772-B
30/32
TCS3772
COLOR LIGHT-TO-DIGITAL CONVERTER
with PROXIMITY SENSINGTAOS145B SEPTEMBER 2012
30
r
r
CopyrightE 2012, TAOS Inc. The LUMENOLOGY r Company
www.taosinc.com
SOLDERING INFORMATION
The FN package has been tested and has demonstrated an ability to be reflow soldered to a PCB substrate.
The solder reflow profile describes the expected maximum heat exposure of components during the solderreflow process of product on a PCB. Temperature is measured on top of component. The components shouldbe limited to a maximum of three passes through this solder reflow profile.
Table 19. Solder Reflow Profile
PARAMETER REFERENCE TCS3772
Average temperature gradient in preheating 2.5C/sec
Soak time tsoak 2 to 3 minutes
Time above 217C (T1) t1 Max 60 sec
Time above 230C (T2) t2 Max 50 sec
Time above Tpeak10C (T3) t3 Max 10 sec
Peak temperature in reflow Tpeak 260C
Temperature gradient in cooling Max 5C/sec
t3
t2
t1tsoak
T3
T2
T1
TpeakNot to scale for reference only
Time (sec)
Temperature(5C)
Figure 21. Solder Reflow Profile Graph
-
7/30/2019 Copy of TCS3772-B
31/32
TCS3772
COLOR LIGHT-TO-DIGITAL CONVERTER
with PROXIMITY SENSINGTAOS145B SEPTEMBER 2012
31
The LUMENOLOGYr Companyr
r
CopyrightE 2012, TAOS Inc.
www.taosinc.com
STORAGE 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 baked prior to being dry packed for shipping.Devices are dry packed in a sealed aluminized envelope called a moisture-barrier bag with silica gel to protectthem from ambient moisture during shipping, handling, and storage before use.
Shelf Life
The calculated shelf life of the device in an unopened moisture barrier bag is 12 months from the date code onthe bag when stored under the following conditions:
Shelf Life: 12 monthsAmbient Temperature: < 40C
Relative Humidity: < 90%
Rebaking of the devices will be required if the devices exceed the 12 month shelf life or the Humidity Indicator
Card shows that the devices were exposed to conditions beyond the allowable moisture region.
Floor Life
The FN package has been assigned a moisture sensitivity level of MSL 3. As a result, the floor life of devicesremoved from the moisture barrier bag is 168 hours from the time the bag was opened, provided that the devicesare stored under the following conditions:
Floor Life: 168 hoursAmbient Temperature: < 30C
Relative Humidity: < 60%
If the floor life or the temperature/humidity conditions have been exceeded, the devices must be rebaked priorto solder reflow or dry packing.
Rebaking Instructions
When the shelf life or floor life limits have been exceeded, rebake at 50C for 12 hours.
-
7/30/2019 Copy of TCS3772-B
32/32
TCS3772
COLOR LIGHT-TO-DIGITAL CONVERTER
with PROXIMITY SENSINGTAOS145B SEPTEMBER 2012
PRODUCTION DATA information in this document is current at publication date. Products conform tospecifications in accordance with the terms of Texas Advanced Optoelectronic Solutions, Inc. standardwarranty. 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 specified
lead-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 representative
and 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 otherlimited information may not be available for release.
NOTICE
Texas Advanced Optoelectronic Solutions, Inc. (TAOS) 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 particular
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 TAOS PRODUCTS IN LIFE SUPPORT SYSTEMS IS EXPRESSLY
UNAUTHORIZED AND ANY SUCH USE BY A CUSTOMER IS COMPLETELY AT THE CUSTOMERS RISK.
LUMENOLOGY, TAOS, the TAOS logo, and Texas Advanced Optoelectronic Solutions are registered trademarks of Texas Advanced
Optoelectronic Solutions Incorporated.