ams AG

TAOS Inc.
is now
ams AG
The technical content of this TAOS datasheet is still valid.
Contact information:
Headquarters:
ams AG
Tobelbaderstrasse 30
8141 Unterpremstaetten, Austria
Tel: +43 (0) 3136 500 0
e-Mail: [email protected]
Please visit our website at www.ams.com
TSL2581, TSL2583
LIGHT-TO-DIGITAL CONVERTER
r
r
TAOS134A − JULY 2012
PACKAGE CS
6-LEAD CHIPSCALE
(TOP VIEW)
Features
D 30 More Sensitive Than the TSL2560/61
Device
D Approximates Human Eye Response
D Programmable ALS Interrupt Function with
al
id
PACKAGE FN
DUAL FLAT NO-LEAD
(TOP VIEW)
Time Supporting 1,000,000-to-1 Dynamic
Range
Available in Ultra-Small 1.25 mm 1.75 mm
Chipscale Package and Small 2 mm 2 mm
Flat No-Lead Package
VDD 1
D Automatically Rejects 50/60-Hz Lighting
ADDR SEL 2
GND 3
D Low Quiescent Current 3 A in Power
D
Down Mode
RoHS Compliant
5 INT
4 SCL
Package Drawings are Not to Scale
Applications
End Products and Market Segments
D Ambient Light Sensor (ALS) for Display
Brightness Control
Description
6 SDA
am
lc s
on A
te G
nt
st
il
Ripple
4 SCL
GND 3
D Programmable Analog Gain and Integration
D
5 INT
ADDR SEL 2
User-Defined Upper and Lower Threshold
Settings
16-Bit Digital Output with I2C Fast-Mode at
400 kHz
lv
D
6 SDA
VDD 1
D
D
D
D
HDTVs
Laptops and Tablets
Mobile Handsets
Monitors
ch
ni
ca
The TSL2581 and TSL2583 are very-high sensitivity light-to-digital converters that transform light intensity to
a digital signal output capable of direct I2C interface. Each device combines one broadband photodiode (visible
plus infrared) and one infrared-responding photodiode on a single CMOS integrated circuit capable of providing
a near-photopic response over an effective 16-bit dynamic range (16-bit resolution). Two integrating ADCs
convert the photodiode currents to a digital output that represents the irradiance measured on each channel.
This digital output can be input to a microprocessor where illuminance (ambient light level) in lux is derived using
an empirical formula to approximate the human eye response. The TSL2581 device supports a traditional level
style interrupt that remains asserted until the firmware clears it.
Te
While useful for general purpose light sensing applications, the TSL2581/83 devices are designed particularly
for displays (LCD, OLED, etc.) with the purpose of extending battery life and providing optimum viewing in
diverse lighting conditions. Display panel backlighting, which can account for up to 50 to 60 percent of total
platform power, can be automatically managed. Both devices are also ideal for controlling keyboard illumination
based upon ambient lighting conditions. Illuminance information can further be used to manage exposure
control in digital cameras. The TSL2581/83 devices are ideal in notebook/tablet PCs, LCD monitors, flat-panel
televisions, cell phones, and digital cameras. In addition, other applications include street light control, security
lighting, sunlight harvesting, machine vision, and automotive instrumentation clusters.
The LUMENOLOGY r Company
Copyright E 2012, TAOS Inc.
r
Texas Advanced Optoelectronic Solutions Inc.
1001 Klein Road S Suite 300 S Plano, TX 75074 S (972)
r 673-0759
www.taosinc.com
1
TSL2581, TSL2583
LIGHT-TO-DIGITAL CONVERTER
TAOS134A − JULY 2012
Functional Block Diagram
Channel 0
Visible and IR
Channel 1
IR Only
VDD
Command
Register
Address Select
ADDR SEL
ADC
Register
Interrupt
al
id
Integrating
A/D Converter
INT
SCL
Two-Wire Serial Interface
lv
SDA
am
lc s
on A
te G
nt
st
il
Detailed Description
The TSL2581 and TSL2583 are second-generation ambient light sensor devices. Each contains two integrating
analog-to-digital converters (ADC) that integrate currents from two photodiodes. Integration of both channels
occurs simultaneously. Upon completion of the conversion cycle, the conversion result is transferred to the
Channel 0 and Channel 1 data registers, respectively. The transfers are double-buffered to ensure that the
integrity of the data is maintained. After the transfer, the device automatically begins the next integration cycle.
Communication to the device is accomplished through a standard, two-wire I2C serial bus. Consequently, the
TSL258x device can be easily connected to a microcontroller or embedded controller. No external circuitry is
required for signal conditioning, thereby saving PCB real estate as well. Because the output of the TSL258x
device is digital, the output is effectively immune to noise when compared to an analog signal.
Te
ch
ni
ca
The TSL258x devices also support an interrupt feature that simplifies and improves system efficiency by
eliminating the need to poll a sensor for a light intensity value. The primary purpose of the interrupt function is
to detect a meaningful change in light intensity. The concept of a meaningful change can be defined by the user
both in terms of light intensity and time, or persistence, of that change in intensity. The TSL258x devices have
the ability to define a threshold above and below the current light level. An interrupt is generated when the value
of a conversion exceeds either of these limits.
Copyright E 2012, TAOS Inc.
The LUMENOLOGY r Company
r
r
2
www.taosinc.com
TSL2581, TSL2583
LIGHT-TO-DIGITAL CONVERTER
TAOS134A − JULY 2012
Terminal Functions
TERMINAL
NO.
ADDR SEL
2
GND
3
INT
5
SCL
SDA
VDD
1
TYPE
I
DESCRIPTION
Address select — three-state.
Power supply ground. All voltages are referenced to GND.
O
Interrupt — open drain.
4
I
Serial clock input terminal — clock signal.
6
I/O
Serial data I/O terminal — serial data I/O.
al
id
NAME
Supply voltage.
DEVICE
PACKAGE − LEADS
TSL2581
CS−6
TSL2581
FN−6
I2C Bus = VDD
TSL2583†
CS−6
I2C Bus = 1.8 V
FN−6
I2C Bus = 1.8 V
ORDERING NUMBER
Bus = VDD
TSL2581CS
TSL2581FN
TSL2583CS
am
lc s
on A
te G
nt
st
il
†
INTERFACE TYPE
I2C
TSL2583
lv
Available Options
TSL2583FN
Contact TAOS for availability.
Absolute Maximum Ratings over operating free-air temperature range (unless otherwise noted)†
Supply voltage, VDD (see Note 1) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3.8 V
Digital output voltage range, VO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . −0.5 V to 3.8 V
Digital output current, IO . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . −1 mA to 20 mA
Storage temperature range, Tstg . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . −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, and
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.
Supply voltage, VDD
ca
Recommended Operating Conditions
NOM
MAX
2.7
3
3.6
V
70
°C
−30
ni
Operating free-air temperature, TA
MIN
SCL SDA input low voltage,
SCL,
voltage VIL
ch
SCL SDA input high voltage,
SCL,
voltage VIH
TSL2581 (Note 2)
0.3 VDD
TSL2583 (Note 3)
0.54
TSL2581 (Note 2)
0.7 VDD
TSL2583 (Note 3)
1.25
UNIT
V
V
Te
NOTES: 2. Meets I2C specifications where VBUS = VDD .
3. Meets I2C specifications where VBUS = 1.8 V.
The LUMENOLOGY r Company
Copyright E 2012, TAOS Inc.
r
r
www.taosinc.com
3
TSL2581, TSL2583
LIGHT-TO-DIGITAL CONVERTER
TAOS134A − JULY 2012
Electrical Characteristics over recommended operating free-air temperature range (unless
otherwise noted)
PARAMETER
TEST CONDITIONS
MIN
Active
Supply current
INT SDA output low voltage
INT,
I LEAK
Leakage current
UNIT
250
μA
10
μA
3 mA sink current
0
0.4
V
6 mA sink current
0
0.6
V
−5
5
μA
Power down —
VOL
MAX
175
I2C
3
activity
al
id
IDD
TYP
Operating Characteristics, VDD = 3 V, TA = 25C, (unless otherwise noted) (Notes 1, 2, 3, and 4)
TEST CONDITIONS
CHANNEL
Oscillator frequency
Ee = 0, ATIME = 0xB6 (200 ms),
gain = 16×
Dark ADC count value
Ch0
Ch1
Ch0
Full scale ADC count value
ATIME = 0x6C (400 ms)
ADC count value
ADC count value ratio: Ch1/Ch0
Irradiance responsivity
750
MAX
UNIT
795
kHz
0
1
5
0
1
5
65535
Ch1
λp = 850 nm, ATIME = 0xF6 (27 ms)
Ee = 220 μW/cm2, gain = 16×
Ch0
Ch1
5000
6000
700
4000
Ch1
5000
6000
counts
2750
10 8
10.8
15 8
15.8
20.8
20 8
λp = 850 nm
41
55
68
Ch0
29.1
Ch1
4
Ch0
22.8
Ch1
12.5
%
counts/
(μW/
cm2)
8×
Ch0
7
8
Ch1
7
8
9
16×
Ch0
15
16
17
Ch1
15
16
17
111×, decoupling capacitor 25 mm
from VDD pin (Note 5)
Ch0
97
107
115
Ch1
100
115
125
ca
counts
65535
4000
λp = 625 nm
λp = 850 nm
nm, ATIME = 0xF6 (27 ms)
Gain scaling (relative to 1×)
37887
Ch0
Ch0
counts
37887
Ch1
λp = 625 nm, ATIME = 0xF6 (27 ms)
Ee = 171.6 μW/cm2, gain = 16×
λp = 625 nm
nm, ATIME = 0xF6 (27 ms)
Re
TYP
705
am
lc s
on A
te G
nt
st
il
ATIME = 0xDB (100 ms)
MIN
lv
PARAMETER
fosc
9
×
Te
ch
ni
NOTES: 1. Optical measurements are made using small-angle incident radiation from light-emitting diode optical sources. Visible 640 nm LEDs
and infrared 850 nm LEDs are used for final product testing for compatibility with high-volume production.
2. The 625 nm irradiance Ee is supplied by an AlInGaP light-emitting diode with the following characteristics: peak wavelength
λp = 625 nm and spectral halfwidth Δλ½ = 20 nm.
3. The 850 nm irradiance Ee is supplied by a light-emitting diode with the following characteristics: peak wavelength
λp = 850 nm and spectral halfwidth Δλ½ = 42 nm.
4. The integration time Tint, is dependent on internal oscillator frequency (fosc) and on the number of integration cycles (ATIME) in the
Timing Register (0xFF) as described in the Register section. For nominal fosc = 750 kHz, nominal Tint = 2.7 ms × ATIME.
5. 111× gain is affected by the line inductance between the VDD pin and the decoupling capacitor. See Figure 3 for 111× gain scale
versus line inductance characteristic.
Copyright E 2012, TAOS Inc.
The LUMENOLOGY r Company
r
r
4
www.taosinc.com
TSL2581, TSL2583
LIGHT-TO-DIGITAL CONVERTER
TAOS134A − JULY 2012
AC Electrical Characteristics, VDD = 3 V, TA = 25C (unless otherwise noted)
PARAMETER†
MIN
TYP
MAX
UNIT
Conversion time
2.7
688
ms
f(SCL)
Clock frequency
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
t(HDDAT)
Data hold time
t(SUDAT)
Data setup time
100
t(LOW)
SCL clock low period
1.3
t(HIGH)
SCL clock high period
tF
Clock/data fall time
tR
Clock/data rise time
Ci
Input pin capacitance
μs
μs
0.9
ns
μs
lv
0
al
id
t(CONV)
0.6
am
lc s
on A
te G
nt
st
il
†
TEST CONDITIONS
μs
300
ns
300
ns
10
pF
Specified by design and characterization; not production tested.
PARAMETER MEASUREMENT INFORMATION
t(LOW)
VIH
SCL
VIL
t(R)
t(F)
t(HDSTA)
t(BUF)
t(HIGH)
t(HDDAT)
t(SUSTA)
t(SUSTO)
t(SUDAT)
VIH
SDA
P
S
Start
Condition
S
Start
P
Stop
t(LOWSEXT)
SCLACK
SCLACK
t(LOWMEXT)
t(LOWMEXT)
ni
Stop
Condition
ca
VIL
t(LOWMEXT)
SDA
Te
ch
SCL
The LUMENOLOGY r Company
Figure 1. Timing Diagrams
Copyright E 2012, TAOS Inc.
r
r
www.taosinc.com
5
TSL2581, TSL2583
LIGHT-TO-DIGITAL CONVERTER
TAOS134A − JULY 2012
TYPICAL CHARACTERISTICS
111 GAIN SCALE
vs.
LINE INDUCTANCE
SPECTRAL RESPONSIVITY
1
Line Inductance − nH
130
0
5
10
0.4
Ch 1
0.2
al
id
0.6
126
122
lv
High Gain Mode Scale — Ch 0
118
Ch 1
114
am
lc s
on A
te G
nt
st
il
Normalized Responsivity
0.8
15
110
Ch 0
0
300
106
400
500
600
700
800
900 1000 1100
0
λ − Wavelength − nm
5
10
15
20
Distance to Capacitor − mm
Figure 2
Figure 3
NORMALIZED RESPONSIVITY
vs.
ANGULAR DISPLACEMENT
1.0
ca
Normalized Responsivity
0.8
Te
ch
ni
0.6
Copyright E 2012, TAOS Inc.
0.4
0.2
0
−90
90
−60
−30
0
30
60
− Angular Displacement − °
Figure 4
The LUMENOLOGY r Company
r
r
6
www.taosinc.com
TSL2581, TSL2583
LIGHT-TO-DIGITAL CONVERTER
TAOS134A − JULY 2012
PRINCIPLES OF OPERATION
Analog-to-Digital Converter
al
id
The TSL258x contains two integrating analog-to-digital converters (ADC) that integrate the currents from the
channel 0 and channel 1 photodiodes. Integration of both channels occurs simultaneously, and upon completion
of the conversion cycle the conversion result is transferred to the channel 0 and channel 1 data registers,
respectively. The transfers are double buffered to ensure that invalid data is not read during the transfer. After
the transfer, the device automatically begins the next integration cycle.
Digital Interface
lv
Interface and control of the TSL258x is accomplished through a two-wire serial interface to a set of registers
that provide access to device control functions and output data. The serial interface is compatible with I2C bus
Fast-Mode. The TSL258x offers three slave addresses that are selectable via an external pin (ADDR SEL). The
slave address options are shown in Table 1.
am
lc s
on A
te G
nt
st
il
Table 1. Slave Address Selection
ADDR SEL TERMINAL LEVEL
SLAVE ADDRESS
GND
0101001
Float
0111001
VDD
1001001
Te
ch
ni
ca
NOTE: A read/write bit should be appended to the slave address by the master device to properly communicate with the TSL258x device.
The LUMENOLOGY r Company
Copyright E 2012, TAOS Inc.
r
r
www.taosinc.com
7
TSL2581, TSL2583
LIGHT-TO-DIGITAL CONVERTER
TAOS134A − JULY 2012
I2C 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.
al
id
The I2C standard provides for three types of bus transaction: read, write, and a combined protocol (Figure 5).
During a write operation, the first byte written is a command byte followed by data. In a combined protocol, the
first byte written is the command byte followed by reading a series of bytes. If a read command is issued, the
register 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 register
address. The command byte contains either control information or a 5-bit register address. The control
commands can also be used to clear interrupts.
...
Acknowledge (0)
Not Acknowledged (1)
Stop Condition
Read (1)
Start Condition
Repeated Start Condition
Write (0)
Continuation of protocol
Master-to-Slave
Slave-to-Master
1
am
lc s
on A
te G
nt
st
il
A
N
P
R
S
Sr
W
lv
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.i2c−bus.org/references/.
7
S
1
Slave Address
W
1
8
A
1
Command Code
8
A
1
Data Byte
A
8
1
1
...
P
I2C Write Protocol
1
7
S
1
Slave Address
R
1
8
A
1
Data
A
Data
1
...
A
P
I2C Read Protocol
1
S
Slave Address
W
1
8
1
1
7
1
1
Command Code
A
Sr
Slave Address
R
A
ca
7
A
8
1
Data
A
8
Data
1
A
1
...
P
I2C Read Protocol — Combined Format
Figure 5. I2C Protocols
Te
ch
ni
1
Copyright E 2012, TAOS Inc.
The LUMENOLOGY r Company
r
r
8
www.taosinc.com
TSL2581, TSL2583
LIGHT-TO-DIGITAL CONVERTER
TAOS134A − JULY 2012
Register Set
The TSL258x is controlled and monitored by sixteen 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 2.
Table 2. Register Address
RESISTER NAME
−−
COMMAND
Specifies register address
REGISTER FUNCTION
00h
CONTROL
Control of basic functions
01h
TIMING
02h
INTERRUPT
03h
TLLOW
Low byte of low interrupt threshold
04h
TLHIGH
High byte of low interrupt threshold
05h
THLOW
Low byte of high interrupt threshold
06h
THHIGH
High byte of high interrupt threshold
07h
ANALOG
Analog control register
14h
15h
16h
17h
18h
19h
1Eh
W
Integration time/gain control
Interrupt control
lv
R/W
am
lc s
on A
te G
nt
st
il
12h
R/W
al
id
ADDRESS
ID
Part number / Rev ID
DATA0LOW
ADC channel 0 LOW data register
DATA0HIGH
ADC channel 0 HIGH data register
DATA1LOW
ADC channel 1 LOW data register
DATA1HIGH
ADC channel 1 HIGH data register
TIMERLOW
Manual integration timer LOW register
TIMERHIGH
Manual integration timer HIGH register
ID2
TSL2581 / TSL2583 ID
R
R/W
Te
ch
ni
ca
The mechanics of accessing a specific register is given in the I2C Protocol section. In general, the COMMAND
register is written first to specify the specific control/status register for following read/write operations.
The LUMENOLOGY r Company
Copyright E 2012, TAOS Inc.
r
r
www.taosinc.com
9
TSL2581, TSL2583
LIGHT-TO-DIGITAL CONVERTER
TAOS134A − JULY 2012
Command Register
The command register specifies the address of the target register for subsequent read and write operations and
contains eight bits as described in Table 3. The command register defaults to 00h at power on.
Table 3. Command Register
7
6
CMD
5
4
3
2
TRANSACTION
FIELD
BIT
CMD
7
1
0
Reset
00h
ADDRESS
DESCRIPTION
Select command register. Must write as 1 when addressing COMMAND register.
FIELD VALUE
6:5
00
Repeated byte protocol transaction
01
Auto-increment protocol transaction
10
Reserved — Do not use
am
lc s
on A
te G
nt
st
il
TRANSACTION
DESCRIPTION
lv
Select type of transaction to follow in subsequent data transfers:
al
id
Bit :
11
Special function — See description below
Transaction type 00 will repeatedly read the same register with each data access.
Transaction type 01 will provide an auto−increment function to read successive register bytes.
Address field/special function field. Depending on the transaction type, see above, this field either
specifies a special function command or selects the specific control-status-register for following write and
read transactions. The field values listed below apply only to special function commands:
FIELD VALUE
ADDRESS
40
4:0
DESCRIPTION
00000
Reserved. Write as 0000b.
00001
Clear any pending interrupt and is a write−once−to−clear bit
00010
When the Timing Register is set to 00h, a SendByte command with the ADDRESS field
set to 0010b will stop a manual integration. The actual length of the integration cycle
may be read in the MANUAL INTEGRATION TIMER Register.
00011
When the Timing Register is set to 00h, a SendByte command with the ADDRESS field
set to 0011b will start a manual integration. The actual length of the integration cycle
may be read in the MANUAL INTEGRATION TIMER Register.
x11xx
Reserved. Write as 11xxb.
Te
ch
ni
ca
NOTE: An I2C block transaction will continue until the Master sends a stop condition. Only the Send Byte Protocol should be used when clearing
interrupts.
Copyright E 2012, TAOS Inc.
The LUMENOLOGY r Company
r
r
10
www.taosinc.com
TSL2581, TSL2583
LIGHT-TO-DIGITAL CONVERTER
TAOS134A − JULY 2012
Control Register (00h)
The CONTROL register primarily used to power the TSL258x device up and down as shown in Table 4.
Table 4. Control Register
7
6
Address
00h
Reserved
FIELD
BIT
5
4
3
ADC_INTR
ADC_VALID
Resv
2
1
Reserved
ADC_EN
DESCRIPTION
Reserved. Write as 0.
0
POWER
Reset
00h
al
id
Bit :
Reserved
7:6
ADC_INTR
5
ADC Interrupt. Read only. Indicates that the device is asserting an interrupt.
ADC_VALID
4
ADC Valid. Read only. Indicates that the ADC channel has completed an integration cycle.
Reserved
3:2
ADC_EN
1
ADC Enable. This field enables the two ADC channels to begin integration. Writing a 1 activates the ADC
channels, and writing a 0 disables the ADCs.
POWER
0
Power On. Writing a 1 powers on the device, and writing a 0 turns it off.
am
lc s
on A
te G
nt
st
il
lv
Reserved. Write as 0.
NOTE: ADC_EN and POWER must be asserted before the ADC changes will operate correctly. After POWER is asserted, a 2-ms delay is
required before asserting ADC_EN.
NOTE: The TSL258x device registers should be configured before ADC_EN is asserted.
Timing Register (01h)
The TIMING register controls the internal integration time of the ADC channels in 2.7-ms increments. The
TIMING register defaults to 00h at power on.
Table 5. Timing Register
Bit :
7
6
Address
01h
5
4
3
2
1
0
ATIME
FIELD
BIT
Reset
00h
DESCRIPTION
ca
Integration Cycles. Specifies the integration time in 2.7-ms intervals. Time is expressed as a 2’s
complement number. So, to quickly work out the correct value to write: (1) determine the number of
2.7-ms intervals required, and (2) then take the 2’s complement. For example, for a 1 × 2.7-ms interval,
0xFF should be written. For 2 × 2.7-ms intervals, 0xFE should be written. The maximum integration time
is 688.5 ms (00000001b).
Writing a 0x00 to this register is a special case and indicates manual timing mode. See CONTROL and
MANUAL INTEGRATION TIMER Registers for other device options related to manual integration.
TIME
−
Manual integration
00000000
1
2.7 ms
11111111
2
5.4 ms
11111110
19
51.3 ms
11101101
37
99.9 ms
11011011
74
199.8 ms
10110110
148
399.6 ms
01101100
255
688.5 ms
00000001
ni
7:0
Te
ch
ATIME
INTEG_CYCLES
VALUE
NOTE: The Send Byte protocol cannot be used when ATIME is greater than 127 (for example ATIME[7] = 1) since the upper bit is set aside for
write transactions in the COMMAND register.
The LUMENOLOGY r Company
Copyright E 2012, TAOS Inc.
r
r
www.taosinc.com
11
TSL2581, TSL2583
LIGHT-TO-DIGITAL CONVERTER
TAOS134A − JULY 2012
Interrupt Register (02h)
The INTERRUPT register controls the extensive interrupt capabilities of the device. The open-drain interrupt
pin is active low and requires a pull-up resistor to VBUS in order to pull high in the inactive state. The Interrupt
Register provides control over when a meaningful interrupt will occur. The concept of meaningful change can
be defined by the user both in terms of light intensity and time, or persistence of that change in intensity. The
value must cross the threshold (as configured in the Threshold Registers 03h through 06h) and persist for some
period of time, as outlined in Table 8.
are based on the value of Channel 0 only.
Table 6. Interrupt Control Register
7
6
5
4
Address
02h
Resv
INTR_STOP
Resv
INTR
FIELD
BITS
Resv
7
Reserved. Write as 0.
INTR_STOP
6
Stop ADC integration on interrupt. When high, ADC integration will stop once an interrupt is asserted. To
resume operation (1) de-assert ADC_EN using CONTROL register, (2) clear interrupt using COMMAND
register, and (3) re-assert ADC_EN using CONTROL register. Note: Use this bit to isolate a particular
condition when the sensor is continuously integrating.
2
1
PERSIST
0
am
lc s
on A
te G
nt
st
il
Bit :
3
lv
Note: Interrupts
al
id
When a level Interrupt is selected, an interrupt is generated whenever the last conversion results in a value
outside of the programmed threshold window. The interrupt is active-low and remains asserted until cleared by
writing an 11 in the TRANSACTION field in the COMMAND register.
Reset
00h
DESCRIPTION
Resv
5
Reserved. Write as 0.
INTR
4
INTR Control Select. This field determines mode of interrupt logic according to Table 7, below.
PERSIST
3:0
Interrupt persistence. Controls rate of interrupts to the host processor as shown in Table 8, below.
Table 7. Interrupt Control Select
INTR FIELD VALUE
READ VALUE
Interrupt output disabled
1
Level Interrupt
Te
ch
ni
ca
0
Copyright E 2012, TAOS Inc.
The LUMENOLOGY r Company
r
r
12
www.taosinc.com
TSL2581, TSL2583
LIGHT-TO-DIGITAL CONVERTER
TAOS134A − JULY 2012
Table 8. Interrupt Persistence Select
Every ADC cycle generates interrupt
0001
Any value outside of threshold range
0010
2 integration time periods out of range
0011
3 integration time periods out of range
0100
4 integration time periods out of range
0101
5 integration time periods out of range
0110
6 integration time periods out of range
0111
7 integration time periods out of range
1000
8 integration time periods out of range
1001
9 integration time periods out of range
1010
10 integration time periods out of range
1011
11 integration time periods out of range
1100
12 integration time periods out of range
1101
13 integration time periods out of range
1110
14 integration time periods out of range
1111
15 integration time periods out of range
Te
ch
ni
ca
am
lc s
on A
te G
nt
st
il
0000
al
id
INTERRUPT PERSIST FUNCTION
lv
PERSIST FIELD VALUE
The LUMENOLOGY r Company
Copyright E 2012, TAOS Inc.
r
r
www.taosinc.com
13
TSL2581, TSL2583
LIGHT-TO-DIGITAL CONVERTER
TAOS134A − JULY 2012
Interrupt Threshold Registers (03h − 06h)
al
id
The interrupt threshold registers store the values to be used as the high and low trigger points for the comparison
function for interrupt generation. If the value generated by channel 0 crosses below or is equal to the low
threshold specified, an interrupt is asserted on the interrupt pin. If the value generated by channel 0 crosses
above the high threshold specified, an interrupt is asserted on the interrupt pin. Registers TLLOW and
TLHIGH provide the low byte and high byte, respectively, of the lower interrupt threshold. Registers THLOW
and THHIGH provide the low and high bytes, respectively, of the upper interrupt threshold. The high and low
bytes from each set of registers are combined to form a 16-bit threshold value. The interrupt threshold registers
default to 00h on power up.
Table 9. Interrupt Threshold Registers
ADDRESS
BITS
TLLOW
3h
7:0
ADC channel 0 lower byte of the low threshold
DESCRIPTION
TLHIGH
4h
7:0
ADC channel 0 upper byte of the low threshold
THLOW
5h
7:0
ADC channel 0 lower byte of the high threshold
THHIGH
6h
7:0
ADC channel 0 upper byte of the high threshold
am
lc s
on A
te G
nt
st
il
lv
REGISTER
NOTE: Since two 8-bit values are combined for a single 16-bit value for each of the high and low interrupt thresholds, the Send Byte protocol should
not be used to write to these registers. Any values transferred by the Send Byte protocol with the MSB set would be interpreted as the
COMMAND field and stored as an address for subsequent read/write operations and not as the interrupt threshold information as desired.
The Write Word protocol should be used to write byte-paired registers. For example, the TLLOW and TLHIGH registers (as well as the
THLOW and THHIGH registers) can be written together to set the 16-bit ADC value in a single transaction.
Analog Register (07h)
The ANALOG register provides eight bits of control to the analog block. These bits control the analog gain
settings of the device.
Table 10. Analog Register
7
Address
07h
6
5
4
3
2
1
RESV
FIELD
BITS
Resv
7:3
0
GAIN
Reset
00h
DESCRIPTION
ca
Bit :
Reserved. Write as 0.
Gain Control. Sets the analog gain of the device according to the following table.
x00
1×
ni
GAIN VALUE
2:0
x01
8×
x10
16×
x11
111×
Te
ch
Gain
FIELD VALUE
Copyright E 2012, TAOS Inc.
The LUMENOLOGY r Company
r
r
14
www.taosinc.com
TSL2581, TSL2583
LIGHT-TO-DIGITAL CONVERTER
TAOS134A − JULY 2012
ID Register (12h)
The ID register provides the value for both the part number and silicon revision number for that part number.
It is a read-only register whose value never changes.
Table 11. ID Register
7
6
5
Address
12h
4
3
2
PARTNO
1
Reset
−−
REVNO
BITS
DESCRIPTION
PARTNO
7:4
Part Number Identification: field value 1001b
REVNO
3:0
Revision number identification
lv
FIELD
0
al
id
Bit :
ADC Channel Data Registers (14h − 17h)
am
lc s
on A
te G
nt
st
il
The ADC channel data are expressed as 16-bit values spread across two registers. The ADC channel 0 data
registers, DATA0LOW and DATA0HIGH provide the lower and upper bytes, respectively, of the ADC value of
channel 0. Registers DATA1LOW and DATA1HIGH provide the lower and upper bytes, respectively, of the ADC
value of channel 1. All channel data registers are read-only and default to 00h on power up.
Table 12. ADC Channel Data Registers
REGISTER
ADDRESS
BITS
DATA0LOW
14h
7:0
ADC channel 0 lower byte
DESCRIPTION
DATA0HIGH
15h
7:0
ADC channel 0 upper byte
DATA1LOW
16h
7:0
ADC channel 1 lower byte
DATA1HIGH
17h
7:0
ADC channel 1 upper byte
The upper byte data registers can only be read following a read to the corresponding lower byte register. When
the lower byte register is read, the upper eight bits are strobed 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.
ca
NOTE: The Read Word protocol can be used to read byte-paired registers. For example, the DATA0LOW and DATA0HIGH registers (as well as
the DATA1LOW and DATA1HIGH registers) may be read together to obtain the 16-bit ADC value in a single transaction
Manual Integration Timer Registers (18h − 19h)
ch
ni
The MANUAL INTEGRATION TIMER registers provide the number of cycles in 10.9 μs increments that
occurred during a manual start/stop integration period. The timer is expressed as a 16-bit value across two
registers. See CONTROL and TIMING Registers for further instructions in configuring a manual integration.
The maximum time that can be derived without an overflow is 714.3 ms.
Te
Bit :
7
Table 13. Manual Integration Timer Registers
6
5
Address
18h 19h
4
3
2
1
Reset
00h
TIMER
REGISTER
ADDRESS
BITS
TIMERLOW
18h
7:0
Manual Integration Timer lower byte
TIMERHIGH
19h
7:0
Manual Integration Timer upper byte
The LUMENOLOGY r Company
0
DESCRIPTION
Copyright E 2012, TAOS Inc.
r
r
www.taosinc.com
15
TSL2581, TSL2583
LIGHT-TO-DIGITAL CONVERTER
TAOS134A − JULY 2012
ID2 Register (1Eh)
In combination with the ID register, the ID2 register provides a means to identify the device as a TSL2581 or
a TSL2583. Although this is a W/R register, it is strongly advised that this register not be written to. Any value
written to this register could adversely affect the performance of the device.
Table 14. ID2 Register
Address
00h
7
6
5
Reserved
4
3
ID
2
1
Reserved
BIT
DESCRIPTION
Reserved
7:6
Reserved.
ID
5:4
ID. 00b = TSL2581, 11b = TSL2583
Reserved
3:0
Reserved.
Reset
00h
Te
ch
ni
ca
am
lc s
on A
te G
nt
st
il
lv
FIELD
0
al
id
Bit :
Copyright E 2012, TAOS Inc.
The LUMENOLOGY r Company
r
r
16
www.taosinc.com
TSL2581, TSL2583
LIGHT-TO-DIGITAL CONVERTER
TAOS134A − JULY 2012
APPLICATION INFORMATION: SOFTWARE
Basic Operation
al
id
After applying VDD, the device will initially be in the power-down state. To operate the device, issue a command
to access the CONTROL register followed by the data value 01h to the CONTROL register to power up the
device. The TIMING register should be configured for the preferred integration period, and then the ADC_EN
should be set to 1 to enable both ADC channels.
For example code that illustrates initializing and reading the device, see TAOS Designer’s Notebook Number
42: TSL258x: Accurate ADC Readings after Enable.
NO
lv
EXT
PWR
am
lc s
on A
te G
nt
st
il
YES
POWER
DOWN
(Power = 0)
ACTIVE
(ADC_EN = 0
Power = 1)
ALS
(ADC_EN = 1
Power =1)
Te
ch
ni
ca
Figure 6. State Diagram
The LUMENOLOGY r Company
Copyright E 2012, TAOS Inc.
r
r
www.taosinc.com
17
TSL2581, TSL2583
LIGHT-TO-DIGITAL CONVERTER
TAOS134A − JULY 2012
APPLICATION INFORMATION: SOFTWARE
Interrupts
al
id
The interrupt feature of the TSL258x device simplifies and improves system efficiency by eliminating the need
to poll the sensor for a light intensity value. Interrupt mode is determined by the INTR field in the INTERRUPT
CONTROL Register. The interrupt feature may be disabled by writing a field value of 00h to the Interrupt Control
Register (02h) so that polling can be performed.
am
lc s
on A
te G
nt
st
il
lv
The versatility of the interrupt feature provides many options for interrupt configuration and usage. The primary
purpose of the interrupt function is to signal a meaningful change in light intensity. However, it can also be used
as an end-of-conversion signal. The concept of a meaningful change can be defined by the user both in terms
of light intensity and time, or persistence, of that change in intensity. The TSL258x device implements two
16-bit-wide interrupt threshold registers that allow the user to define thresholds above and below a desired light
level. An interrupt will then be generated when the value of a conversion exceeds either of these limits. For
simplicity of programming, the threshold comparison is accomplished only with Channel 0. This simplifies
calculation of thresholds that are based, for example, on a percent of the current light level. It is adequate to
use only one channel when calculating light intensity differences because, for a given light source, the channel 0
and channel 1 values are linearly proportional to each other and thus both values scale linearly with light
intensity.
To further control when an interrupt occurs, the TSL258x device provides an interrupt persistence feature. This
feature allows the user to specify a number of conversion cycles for which a light intensity exceeding either
interrupt threshold must persist before actually generating an interrupt. This can be used to prevent transient
changes in light intensity from generating an unwanted interrupt. With a value of 1, an interrupt occurs
immediately whenever either threshold is exceeded. With values of N, where N can range from 2 to 15, N
consecutive conversions must result in values outside the interrupt window for an interrupt to be generated. For
example, if N is equal to 10 and the integration time is 402 ms, then an interrupt will not be generated unless
the light level persists for more than 4 seconds outside the threshold.
The interrupt line goes active low and remains low until the interrupt is cleared by selecting the Special Function
in the COMMAND register and writing a 0 to the Interrupt Clear field value.
Te
ch
ni
ca
To configure the interrupt as an end-of-conversion signal so that every ADC integration cycle generates an
interrupt, the interrupt PERSIST field in the Interrupt Control Register (02h) is set to 0000b. An interrupt will be
generated upon completion of each conversion. The interrupt threshold registers are ignored.
Copyright E 2012, TAOS Inc.
The LUMENOLOGY r Company
r
r
18
www.taosinc.com
TSL2581, TSL2583
LIGHT-TO-DIGITAL CONVERTER
TAOS134A − JULY 2012
APPLICATION INFORMATION: SOFTWARE
System Considerations
There are three system design considerations to take into account when using this device:
D The initial Channel 0 and Channel 1 ADC values (14h~17h) after ADC_EN is asserted should be discarded
because the first ADC values are affected by transients associated with the power up of the analog circuitry.
al
id
D It is recommended that the ADC_EN be disabled before changing the analog gain (GAIN) in the Analog
register (07h) because the change will affect the integration in progress, yielding an indeterminate result.
D The integration time (ITIME) in the Timing register (01h) can be changed at any time; however, the change
will take effect only upon completion of the current ALS cycle.
am
lc s
on A
te G
nt
st
il
lv
Regarding the first design consideration, there are several ways that the initial ADC values can be discarded.
One option is to use the interrupt persistence (PERSIST) in the Interrupt Control register (02h) equal to 2
(0010b), such that an interrupt is generated after the second ADC cycle when the values are valid. To ensure
an interrupt, the interrupt high and low threshold registers (03h~06h) can both be set to 0, which is the default
value. Once the interrupt occurs, the interrupt thresholds and PERSIST can be modified as desired.
To ensure the shortest time in the initial ADC cycle, another option is to set ITIME to the minimum, assert
ADC_EN, and then change ITIME to the preferred integration time. Clear the first interrupt produced by the
minimum integration time cycle so subsequent interrupts are the result of the modified integration time.
Te
ch
ni
ca
For example code that satisfies the system considerations listed above, see TAOS Designer’s Notebook
Number 42: TSL258x: Accurate ADC Readings after Enable.
The LUMENOLOGY r Company
Copyright E 2012, TAOS Inc.
r
r
www.taosinc.com
19
TSL2581, TSL2583
LIGHT-TO-DIGITAL CONVERTER
TAOS134A − JULY 2012
APPLICATION INFORMATION: SOFTWARE
Calculating Lux
al
id
The TSL258x is intended for use in ambient light detection applications such as display backlight control, where
adjustments are made to display brightness or contrast based on the brightness of the ambient light, as
perceived by the human eye. Conventional silicon detectors respond strongly to infrared light, which the human
eye does not see. This can lead to significant error when the infrared content of the ambient light is high, such
as with incandescent lighting, due to the difference between the silicon detector response and the brightness
perceived by the human eye.
lv
This problem is overcome in the TSL258x through the use of two photodiodes. One of the photodiodes
(channel 0) is sensitive to both visible and infrared light, while the second photodiode (channel 1) is sensitive
primarily to infrared light. An integrating ADC converts the photodiode currents to digital outputs. Channel 1
digital output is used to compensate for the effect of the infrared component of light on the channel 0 digital
output. The ADC digital outputs from the two channels are used in a formula to obtain a value that approximates
the human eye response in the commonly used Illuminance unit of Lux:
Lux = 0.105 CH0 − 0.208 CH1
Lux = 0.1088 CH0 − 0.2231 CH1
Lux = 0.0729 CH0 − 0.1286 CH1
Lux = 0.060 CH0 − 0.10 CH1
Lux/CH0 = 0
FN Package
For CH1/CH0 = 0.00 to 0.30
For CH1/CH0 = 0.30 to 0.38
For CH1/CH0 = 0.38 to 0.45
For CH1/CH0 = 0.45 to 0.54
For CH1/CH0 > 0.54
Lux = 0.130 CH0 − 0.240 CH1
Lux = 0.1649 CH0 − 0.3562 CH1
Lux = 0.0974 CH0 − 0.1786 CH1
Lux = 0.062 CH0 − 0.100 CH1
Lux/CH0 = 0
am
lc s
on A
te G
nt
st
il
Chipscale Package
For CH1/CH0 = 0.00 to 0.25
For CH1/CH0 = 0.25 to 0.38
For CH1/CH0 = 0.38 to 0.45
For CH1/CH0 = 0.45 to 0.60
For CH1/CH0 > 0.60
The formulas shown above were obtained by optical testing with fluorescent and incandescent light sources,
and apply only to open-air applications. Optical apertures (e.g. light pipes) will affect the incident light on the
device.
ca
Simplified Lux Calculation
Te
ch
ni
Below is the argument and return value including source code (shown on following page) for calculating lux with
the TSL2583FN. The source code is intended for embedded and/or microcontroller applications. All floating
point arithmetic operations have been eliminated since embedded controllers and microcontrollers generally
do not support these types of operations. Because floating point has been removed, scaling must be performed
prior to calculating illuminance if the integration time is not 400 msec and/or if the gain is not 1× as denoted in
the source code on the following pages.
Copyright E 2012, TAOS Inc.
The LUMENOLOGY r Company
r
r
20
www.taosinc.com
TSL2581, TSL2583
LIGHT-TO-DIGITAL CONVERTER
TAOS134A − JULY 2012
al
id
//****************************************************************************
//
// Copyright 2004−2008 TAOS, Inc.
//
// THIS CODE AND INFORMATION IS PROVIDED ”AS IS” WITHOUT WARRANTY OF ANY
// KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
// IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
// PURPOSE.
//
// Module Name:
// lux.cpp
//
//****************************************************************************
#define LUX_SCALE 16 // scale by 2^16
#define RATIO_SCALE 9 // scale ratio by 2^9
See Timing Register
am
lc s
on A
te G
nt
st
il
#define CH_SCALE 16 // scale channel values by 2^16
#define NOM_INTEG_CYCLE 148 // Nominal 400 ms integration.
lv
//−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
// Integration time scaling factors
//−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
//−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
// Gain scaling factors
//−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
#define CH0GAIN128X 107 // 128X gain scalar for Ch0
#define CH1GAIN128X 115 // 128X gain scalar for Ch1
//−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
// FN Package coefficients
//−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
ni
ca
// For Ch1/Ch0=0.00 to 0.30:
//
Lux=0.130*Ch0−0.240*Ch1
//
// For Ch1/Ch0=0.30 to 0.38:
//
Lux=0.1649*Ch0−0.3562*Ch1
//
// For Ch1/Ch0=0.38 to 0.45:
//
Lux=0.0974*Ch0−0.1786*Ch1
//
// For Ch1/Ch0=0.45 to 0.54:
//
Lux=0.062*Ch0−0.10*Ch1
//
// For Ch1/Ch0>0.54:
//
Lux/Ch0=0
//
//−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
#define K1C 0x009A // 0.30 * 2^RATIO_SCALE
#define B1C 0x2148 // 0.130 * 2^LUX_SCALE
#define M1C 0x3d71 // 0.240 * 2^LUX_SCALE
ch
#define K2C 0x00c3 // 0.38 * 2^RATIO_SCALE
#define B2C 0x2a37 // 0.1649 * 2^LUX_SCALE
#define M2C 0x5b30 // 0.3562 * 2^LUX_SCALE
Te
#define K3C 0x00e6 // 0.45 * 2^RATIO_SCALE
#define B3C 0x18ef // 0.0974 * 2^LUX_SCALE
#define M3C 0x2db9 // 0.1786 * 2^LUX_SCALE
#define K4C 0x0114 // 0.54 * 2^RATIO_SCALE
#define B4C 0x0fdf // 0.062 * 2^LUX_SCALE
#define M4C 0x199a // 0.10 * 2^LUX_SCALE
#define K5C 0x0114 // 0.54 * 2^RATIO_SCALE
#define B5C 0x0000 // 0.00000 * 2^LUX_SCALE
#define M5C 0x0000 // 0.00000 * 2^LUX_SCALE
The LUMENOLOGY r Company
Copyright E 2012, TAOS Inc.
r
r
www.taosinc.com
21
TSL2581, TSL2583
LIGHT-TO-DIGITAL CONVERTER
TAOS134A − JULY 2012
unsigned
unsigned
unsigned
unsigned
long
long
long
long
am
lc s
on A
te G
nt
st
il
lv
al
id
// lux equation approximation without floating point calculations
//////////////////////////////////////////////////////////////////////////////
// Routine: unsigned int CalculateLux(unsigned int ch0, unsigned int ch0, int iType)
//
// Description: Calculate the approximate illuminance (lux) given the raw
//
channel values of the TSL2583. The equation if implemented
//
as a piece−wise linear approximation.
//
// Arguments: unsigned int iGain − gain, where 0:1X, 1:8X, 2:16X, 3:128X
//
unsigned int tIntCycles − INTEG_CYCLES defined in Timing Register
//
unsigned int ch0 − raw channel value from channel 0 of TSL2583
//
unsigned int ch1 − raw channel value from channel 1 of TSL2583
//
unsigned int iType − package type (1:CS)
//
// Return:
unsigned int − the approximate illuminance (lux)
//
//////////////////////////////////////////////////////////////////////////////
unsigned int CalculateLux(unsigned int iGain, unsigned int tIntCycles, unsigned int ch0,
unsigned int ch1, int iType)
{
//−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
// first, scale the channel values depending on the gain and integration time
// 1X, 400ms is nominal setting
chScale0;
chScale1;
channel1;
channel0;
// No scaling if nominal integration (148 cycles or 400 ms) is used
if (tIntCycles == NOM_INTEG_CYCLE)
chScale0 = (1 << CH_SCALE);
else
chScale0 = (NOM_INTEG_CYCLE << CH_SCALE) / tIntCycles;
ch
ni
ca
switch (iGain)
{
case 0: // 1x gain
chScale1 = chScale0;
// No scale. Nominal setting
break;
case 1: // 8x gain
chScale0 = chScale0 >> 3;
// Scale/multiply value by 1/8
chScale1 = chScale0;
break;
case 2: // 16x gain
chScale0 = chScale0 >> 4;
// Scale/multiply value by 1/16
chScale1 = chScale0;
break;
case 3: // 128x gain
chScale1 = chScale0 / CH1GAIN128X; //Ch1 gain correction factor applied
chScale0 = chScale0 / CH0GAIN128X; //Ch0 gain correction factor applied
break;
}
Te
// scale the channel values
channel0 = (ch0 * chScale0) >> CH_SCALE;
channel1 = (ch1 * chScale1) >> CH_SCALE;
//−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
// find the ratio of the channel values (Channel1/Channel0)
// protect against divide by zero
Copyright E 2012, TAOS Inc.
The LUMENOLOGY r Company
r
r
22
www.taosinc.com
TSL2581, TSL2583
LIGHT-TO-DIGITAL CONVERTER
TAOS134A − JULY 2012
unsigned long ratio1 = 0;
if (channel0 != 0) ratio1 = (channel1 << (RATIO_SCALE+1)) / channel0;
// round the ratio value
unsigned long ratio = (ratio1 + 1) >> 1;
am
lc s
on A
te G
nt
st
il
lv
al
id
// is ratio <= eachBreak?
unsigned int b, m;
switch (iType)
{
case 1: // CS package
if ((ratio >= 0) && (ratio <= K1C))
{b=B1C; m=M1C;}
else if (ratio <= K2C)
{b=B2C; m=M2C;}
else if (ratio <= K3C)
{b=B3C; m=M3C;}
else if (ratio <= K4C)
{b=B4C; m=M4C;}
else if (ratio > K5C)
{b=B5C; m=M5C;}
break;
}
unsigned long temp;
unsigned long lux;
temp = ((channel0 * b) − (channel1 * m));
// round lsb (2^(LUX_SCALE−1))
temp += (1 << (LUX_SCALE−1));
// strip off fractional portion
lux = temp >> LUX_SCALE;
return(lux);
Te
ch
ni
ca
}
The LUMENOLOGY r Company
Copyright E 2012, TAOS Inc.
r
r
www.taosinc.com
23
TSL2581, TSL2583
LIGHT-TO-DIGITAL CONVERTER
TAOS134A − JULY 2012
APPLICATION INFORMATION: HARDWARE
Power Supply Decoupling and Application Hardware Circuit
al
id
The power supply lines must be decoupled with a 0.1 μF capacitor placed as close to the device package as
possible (Figure 7). The bypass capacitor should have low effective series resistance (ESR) and low effective
series inductance (ESI), such as the common ceramic types, which provide a low impedance path to ground
at high frequencies to handle transient currents caused by internal logic switching.
Figure 3 shows how the 111× gain is impacted by the line inductance between the VDD pin and the decoupling
capacitor.
VBUS
0.1 F
am
lc s
on A
te G
nt
st
il
TSL2581/
TSL2583
lv
VDD
RP
RP
RPI
INT
SCL
SDA
Figure 7. Bus Pull-Up Resistors
Pull-up resistors (RP) maintain the SCL and SDA lines at a high level when the bus is free and ensure the signals
are pulled up from a low to a high level within the required rise time. The I2C bus protocol was developed by
Philips (now NXP). The pull-up resistor (RP) value is a function of the I2C bus speed, the supply voltage, and
the capacitive bus loading. Users should consult the NXP I2C design specification
(http://www.i2c−bus.org/references/) for assistance. With a lightly loaded bus running at 400 kbps and
VBUS = 3 V, 1.5 kΩ resistors have been found to be viable.
Te
ch
ni
ca
A pull-up resistor (RPI) is also required for the interrupt (INT), which functions as a wired-AND signal in a similar
fashion to the SCL and SDA lines. A typical impedance value between 10 kΩ and 100 kΩ can be used.
Copyright E 2012, TAOS Inc.
The LUMENOLOGY r Company
r
r
24
www.taosinc.com
TSL2581, TSL2583
LIGHT-TO-DIGITAL CONVERTER
TAOS134A − JULY 2012
APPLICATION INFORMATION: HARDWARE
PCB Pad Layouts
Suggested PCB pad layout guidelines for the CS chipscale package are shown in Figure 8.
al
id
0.50
0.50
0.21
lv
6
am
lc s
on A
te G
nt
st
il
0.50
NOTES: A. All linear dimensions are in millimeters.
B. This drawing is subject to change without notice.
Figure 8. Suggested CS Package PCB Layout
Suggested PCB pad layout guidelines for the Dual Flat No-Lead (FN) surface mount package are shown in
Figure 9.
2.3
0.9
0.9
0.40
0.65
ca
1.70
ni
0.65
0.40
Figure 9. Suggested FN Package PCB Layout
Te
ch
NOTES: A. All linear dimensions are in millimeters.
B. This drawing is subject to change without notice.
The LUMENOLOGY r Company
Copyright E 2012, TAOS Inc.
r
r
www.taosinc.com
25
TSL2581, TSL2583
LIGHT-TO-DIGITAL CONVERTER
TAOS134A − JULY 2012
PACKAGE INFORMATION
PACKAGE CS
Six-Lead Chipscale
TOP VIEW
al
id
PIN OUT
BOTTOM VIEW
1250
PIN 1
SDA 6
INT 5
1750
SCL 4
3 GND
am
lc s
on A
te G
nt
st
il
PHOTODIODE ARRAY
2 ADDR SEL
lv
442
10
1 VDD
442
10
END VIEW
415 20
710 45
6 100
BOTTOM VIEW
CL of Photodiode
Array Area
CL of Solder Contacts
8 Nominal
375 30
139 Nominal
ca
500
BSC
PIN 1
ch
375 30
C
L
of Photodiode Array Area
6
500
BSC
210 30
Pb
Lead Free
All linear dimensions are in micrometers. Dimension tolerance is ± 25 μm unless otherwise noted.
Solder bumps are formed of Sn (96.5%), Ag (3%), and Cu (0.5%).
The layer above the photodiode is glass and epoxy with an index of refraction of 1.53.
This drawing is subject to change without notice.
Te
NOTES: A.
B.
C.
D.
of Solder Contacts
ni
500
BSC
C
L
Figure 10. Package CS — Six-Lead Chipscale Packaging Configuration
Copyright E 2012, TAOS Inc.
The LUMENOLOGY r Company
r
r
26
www.taosinc.com
TSL2581, TSL2583
LIGHT-TO-DIGITAL CONVERTER
TAOS134A − JULY 2012
PACKAGE INFORMATION
PACKAGE FN
Dual Flat No-Lead
TOP VIEW
442 10
al
id
PIN OUT
TOP VIEW
PIN 1
Vdd 1
442
10
6 SDA
2000 75
5 INT
lv
ADDR SEL 2
2000
75
END VIEW
4 SCL
am
lc s
on A
te G
nt
st
il
GND 3
Photo-Active Area
SIDE VIEW
295
Nominal
650 50
203 8
BOTTOM VIEW
650
BSC
CL of Solder Contacts
300
50
CL of Photodiode Array Area
(Note B)
20 Nominal
ch
PIN 1
of Solder Contacts
CL
Photodiode Array Area (Note B)
Pb
750 150
Lead Free
All linear dimensions are in micrometers. Dimension tolerance is ± 20 μm unless otherwise noted.
The die is centered within the package within a tolerance of ± 75 μm.
Package top surface is molded with an electrically nonconductive clear plastic compound having an index of refraction of 1.55.
Contact finish is copper alloy A194 with pre-plated NiPdAu lead finish.
This package contains no lead (Pb).
This drawing is subject to change without notice.
Te
NOTES: A.
B.
C.
D.
E.
F.
C
L
ni
ca
140 Nominal
Figure 11. Package FN — Dual Flat No-Lead Packaging Configuration
The LUMENOLOGY r Company
Copyright E 2012, TAOS Inc.
r
r
www.taosinc.com
27
TSL2581, TSL2583
LIGHT-TO-DIGITAL CONVERTER
TAOS134A − JULY 2012
CARRIER TAPE AND REEL INFORMATION
TOP VIEW
2.00 0.05
1.75
1.50
4.00
al
id
4.00
B
+ 0.30
8.00
− 0.10
lv
3.50 0.05
0.60
0.05
DETAIL A
5 Max
B
A
am
lc s
on A
te G
nt
st
il
A
DETAIL B
5 Max
0.250
0.02
1.35 0.05
1.85 0.05
0.97 0.05
Bo
Ko
All linear dimensions are in millimeters. Dimension tolerance is ± 0.10 mm unless otherwise noted.
The dimensions on this drawing are for illustrative purposes only. Dimensions of an actual carrier may vary slightly.
Symbols on drawing Ao, Bo, and Ko are defined in ANSI EIA Standard 481−B 2001.
Each reel is 178 millimeters in diameter and contains 3500 parts.
TAOS packaging tape and reel conform to the requirements of EIA Standard 481−B.
In accordance with EIA standard, device pin 1 is located next to the sprocket holes in the tape.
This drawing is subject to change without notice.
Te
ch
NOTES: A.
B.
C.
D.
E.
F.
G.
ni
ca
Ao
Copyright E 2012, TAOS Inc.
Figure 12. Package CS Carrier Tape
The LUMENOLOGY r Company
r
r
28
www.taosinc.com
TSL2581, TSL2583
LIGHT-TO-DIGITAL CONVERTER
TAOS134A − JULY 2012
CARRIER TAPE AND REEL INFORMATION
TOP VIEW
2.00 0.05
1.75
1.50
4.00
al
id
4.00
B
+ 0.30
8.00
− 0.10
1.00
0.25
B
A
am
lc s
on A
te G
nt
st
il
A
lv
3.50 0.05
DETAIL B
DETAIL A
5 Max
5 Max
0.254
0.02
2.18 0.05
Ao
2.18 0.05
0.83 0.05
Bo
ni
ca
Ko
All linear dimensions are in millimeters. Dimension tolerance is ± 0.10 mm unless otherwise noted.
The dimensions on this drawing are for illustrative purposes only. Dimensions of an actual carrier may vary slightly.
Symbols on drawing Ao, Bo, and Ko are defined in ANSI EIA Standard 481−B 2001.
Each reel is 178 millimeters in diameter and contains 3500 parts.
TAOS packaging tape and reel conform to the requirements of EIA Standard 481−B.
In accordance with EIA standard, device pin 1 is located next to the sprocket holes in the tape.
This drawing is subject to change without notice.
Te
ch
NOTES: H.
I.
J.
K.
L.
M.
N.
The LUMENOLOGY r Company
Figure 13. Package FN Carrier Tape
Copyright E 2012, TAOS Inc.
r
r
www.taosinc.com
29
TSL2581, TSL2583
LIGHT-TO-DIGITAL CONVERTER
TAOS134A − JULY 2012
SOLDERING INFORMATION
The package has been tested and have demonstrated an ability to be reflow soldered to a PCB substrate.
Table 15. Solder Reflow Profile
PARAMETER
REFERENCE
DEVICE
Average temperature gradient in preheating
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 Tpeak −10°C (T3)
t3
Max 10 sec
Tpeak
260° C (−0°C/+5°C)
am
lc s
on A
te G
nt
st
il
Peak temperature in reflow
lv
Soak time
2.5°C/sec
Temperature gradient in cooling
Tpeak
al
id
The solder reflow profile describes the expected maximum heat exposure of components during the solder
reflow process of product 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.
Max −5°C/sec
Not to scale — for reference only
T3
T2
ca
Temperature (C)
T1
Time (sec)
t3
ni
t2
t1
Figure 14. Solder Reflow Profile Graph
Te
ch
tsoak
Copyright E 2012, TAOS Inc.
The LUMENOLOGY r Company
r
r
30
www.taosinc.com
TSL2581, TSL2583
LIGHT-TO-DIGITAL CONVERTER
TAOS134A − JULY 2012
STORAGE INFORMATION
Moisture Sensitivity
al
id
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 molding compound. To ensure the
package molding compound 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 with silica
gel to protect them from ambient moisture during shipping, handling, and storage before use.
CS package
5°C to 50°C
60% maximum
1 year out of bag at ambient < 30°C / 60% RH
am
lc s
on A
te G
nt
st
il
Temperature Range
Relative Humidity
Floor Life
lv
The CS package has been assigned a moisture sensitivity level of MSL 2 and the devices should be stored under
the following conditions:
Rebaking will be required if the aluminized envelope has been open for more than 1 year. If rebaking is required,
it should be done at 50°C for 12 hours.
FN package
The FN package has been assigned a moisture sensitivity level of MSL 3 and the devices should be stored under
the following conditions:
Temperature Range
Relative Humidity
Total Time
Opened Time
5°C to 50°C
60% maximum
12 months from the date code on the aluminized envelope — if unopened
168 hours or fewer
Te
ch
ni
ca
Rebaking will be required if the devices have been stored unopened for more than 12 months or if the aluminized
envelope has been open for more than 168 hours. If rebaking is required, it should be done at 50°C for 12 hours.
The LUMENOLOGY r Company
Copyright E 2012, TAOS Inc.
r
r
www.taosinc.com
31
TSL2581, TSL2583
LIGHT-TO-DIGITAL CONVERTER
TAOS134A − JULY 2012
PRODUCTION 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
al
id
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).
am
lc s
on A
te G
nt
st
il
lv
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 other
limited 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.
ca
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 CUSTOMER’S RISK.
Te
ch
ni
LUMENOLOGY, TAOS, the TAOS logo, and Texas Advanced Optoelectronic Solutions are registered trademarks of Texas Advanced
Optoelectronic Solutions Incorporated.
Copyright E 2012, TAOS Inc.
The LUMENOLOGY r Company
r
r
32
www.taosinc.com