TSL2561CL TAOS, TSL2561CL Datasheet - Page 26

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
TSL2560, TSL2561
LIGHT-TO-DIGITAL CONVERTER
TAOS059N − MARCH 2009
#define K4C
#define B4C
#define M4C
#define K5C
#define B5C
#define M5C
#define K6C
#define B6C
#define M6C
#define K7C
#define B7C
#define M7C
#define K8C
#define B8C
#define M8C
// lux equation approximation without floating point calculations
//////////////////////////////////////////////////////////////////////////////
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//
//////////////////////////////////////////////////////////////////////////////
unsigned int CalculateLux(unsigned int iGain, unsigned int tInt, unsigned int ch0,
{
26
Copyright E 2009, TAOS Inc.
Routine:
Description: Calculate the approximate illuminance (lux) given the raw
Arguments:
Return:
unsigned int ch1, int iType)
//−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
// first, scale the channel values depending on the gain and integration time
// 16X, 402mS is nominal.
// scale if integration time is NOT 402 msec
unsigned long chScale;
unsigned long channel1;
unsigned long channel0;
switch (tInt)
{
case 0:
case 1:
default:
0x010a // 0.520 * 2^RATIO_SCALE
0x0282 // 0.0392 * 2^LUX_SCALE
0x03df // 0.0605 * 2^LUX_SCALE
0x014d // 0.65 * 2^RATIO_SCALE
0x0177 // 0.0229 * 2^LUX_SCALE
0x01dd // 0.0291 * 2^LUX_SCALE
0x019a // 0.80 * 2^RATIO_SCALE
0x0101 // 0.0157 * 2^LUX_SCALE
0x0127 // 0.0180 * 2^LUX_SCALE
0x029a // 1.3 * 2^RATIO_SCALE
0x0037 // 0.00338 * 2^LUX_SCALE
0x002b // 0.00260 * 2^LUX_SCALE
0x029a // 1.3 * 2^RATIO_SCALE
0x0000 // 0.000 * 2^LUX_SCALE
0x0000 // 0.000 * 2^LUX_SCALE
chScale = CHSCALE_TINT0;
break;
chScale = CHSCALE_TINT1;
break;
chScale = (1 << CH_SCALE);
unsigned int CalculateLux(unsigned int ch0, unsigned int ch0, int iType)
channel values of the TSL2560. The equation if implemented
as a piece−wise linear approximation.
unsigned int iGain − gain, where 0:1X, 1:16X
unsigned int tInt − integration time, where 0:13.7mS, 1:100mS, 2:402mS,
unsigned int ch0 − raw channel value from channel 0 of TSL2560
unsigned int ch1 − raw channel value from channel 1 of TSL2560
unsigned int iType − package type (T or CS)
unsigned int − the approximate illuminance (lux)
3:Manual
// 13.7 msec
// 101 msec
// assume no scaling
r
www.taosinc.com
r
The LUMENOLOGY r Company

Related parts for TSL2561CL