TSL2561CL TAOS, TSL2561CL Datasheet - Page 21

Light to Digital Converters Ambient Light Sensor Light to Digital

TSL2561CL

Manufacturer Part Number
TSL2561CL
Description
Light to Digital Converters Ambient Light Sensor Light to Digital
Manufacturer
TAOS
Datasheet

Specifications of TSL2561CL

Data Bus Width
20 bit
Peak Wavelength
640 nm, 940 nm
Maximum Operating Frequency
780 KHz
Operating Supply Voltage
2.7 V to 3.6 V
Operating Current
0.6 mA to 15 uA
Maximum Operating Temperature
+ 70 C
Minimum Operating Temperature
- 30 C
Interface Type
I2C
Maximum Fall Time
300 ns
Maximum Rise Time
300 ns
Mounting Style
SMD/SMT
Resolution
16 bit
Package / Case
Chip LED
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
Interrupts
// Set up end−of−conversion interrupt, Level style
The LUMENOLOGY r Company
The interrupt feature of the TSL256x device simplifies and improves system efficiency by eliminating the need
to poll the sensor for a light intensity value. Interrupt styles are determined by the INTR field in the Interrupt
Register. The interrupt feature may be disabled by writing a field value of 00h to the Interrupt Control Register
so that polling can be performed.
The versatility of the interrupt feature provides many options for interrupt configuration and usage. The primary
purpose of the interrupt function is to provide a meaningful change in light intensity. However, it 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 TSL256x device implements two
16-bit-wide interrupt threshold registers that allow the user to define a threshold above and below the current
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 since, 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 TSL256x 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.
Two different interrupt styles are available: Level and SMBus Alert. The difference between these two interrupt
styles is how they are cleared. Both result in the interrupt line going active low and remaining low until the
interrupt is cleared. A level style interrupt is cleared by setting the CLEAR bit (bit 6) in the COMMAND register.
The SMBus Alert style interrupt is cleared by an Alert Response as described in the Interrupt Control Register
section and SMBus specification.
To configure the interrupt as an end-of-conversion signal, the interrupt PERSIST field is set to 0. Either Level
or SMBus Alert style can be used. An interrupt will be generated upon completion of each conversion. The
interrupt threshold registers are ignored. The following example illustrates the configuration of a level interrupt:
Address = 0x39
Command = 0x86
Data = 0x10
WriteByte(Address, Command, Data)
APPLICATION INFORMATION: SOFTWARE
r
www.taosinc.com
//Slave addr also 0x29 or 0x49
//Address Interrupt Register
//Level style, every ADC cycle
LIGHT-TO-DIGITAL CONVERTER
r
TSL2560, TSL2561
Copyright E 2009, TAOS Inc.
TAOS059N − MARCH 2009
21

Related parts for TSL2561CL