TSL2569T TAOS, TSL2569T Datasheet - Page 24

Light to Digital Converters Light to Digital Sensor

TSL2569T

Manufacturer Part Number
TSL2569T
Description
Light to Digital Converters Light to Digital Sensor
Manufacturer
TAOS
Datasheet

Specifications of TSL2569T

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
TMB-6
Lead Free Status / RoHS Status
Lead free / RoHS Compliant
TSL2568, TSL2569
LIGHT-TO-DIGITAL CONVERTER
TAOS091D − DECEMBER 2008
// 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
//
//
//
// Arguments: unsigned int iGain − gain, where 0:1X, 1:16X
//
//
//
//
//
//
// Return:
//
//////////////////////////////////////////////////////////////////////////////
unsigned int CalculateLux(unsigned int iGain, unsigned int tInt, unsigned int ch0,
unsigned int ch1, int iType)
{
24
Copyright E 2008, TAOS Inc.
//−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
// 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)
{
}
// scale if gain is NOT 16X
if (!iGain) chScale = chScale << 4;
// scale the channel values
channel0 = (ch0 * chScale) >> CH_SCALE;
channel1 = (ch1 * chScale) >> CH_SCALE;
//−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
// find the ratio of the channel values (Channel1/Channel0)
// protect against divide by zero
unsigned long ratio1 = 0;
if (channel0 != 0) ratio1 = (channel1 << (RATIO_SCALE+1)) / channel0;
// round the ratio value
unsigned long ratio = (ratio1 + 1) >> 1;
// is ratio <= eachBreak ?
unsigned int b, m;
unsigned int − the approximate illuminance (lux)
case 0:
case 1:
default:
channel values of the TSL2568. The equation if implemented
as a piece−wise linear approximation.
unsigned int tInt − integration time, where 0:13.7mS, 1:100mS, 2:402mS,
unsigned int ch0 − raw channel value from channel 0 of TSL2568
unsigned int ch1 − raw channel value from channel 1 of TSL2568
unsigned int iType − package type (0:T, 1:CS)
chScale = CHSCALE_TINT0;
break;
chScale = CHSCALE_TINT1;
break;
chScale = (1 << CH_SCALE);
break;
3:Manual
r
www.taosinc.com
// 13.7 msec
// 101 msec
// assume no scaling
// scale 1X to 16X
r
The LUMENOLOGY r Company

Related parts for TSL2569T