TSL2581CS TAOS, TSL2581CS Datasheet - Page 24

Light to Digital Converters Light to Digital 30x Sensitivity

TSL2581CS

Manufacturer Part Number
TSL2581CS
Description
Light to Digital Converters Light to Digital 30x Sensitivity
Manufacturer
TAOS
Datasheet

Specifications of TSL2581CS

Data Bus Width
16 bit
Peak Wavelength
625 nm, 850 nm
Maximum Operating Frequency
795 KHz
Operating Supply Voltage
2.7 V to 3.6 V
Operating Current
175 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
DFN-6
Lead Free Status / RoHS Status
Lead free / RoHS Compliant

Available stocks

Company
Part Number
Manufacturer
Quantity
Price
Part Number:
TSL2581CS
Manufacturer:
TAOS
Quantity:
8 000
TSL2580, TSL2581
LIGHT-TO-DIGITAL CONVERTER
TAOS098 − MARCH 2010
//////////////////////////////////////////////////////////////////////////////
unsigned int CalculateLux(unsigned int iGain, unsigned int tIntCycles, unsigned int ch0,
unsigned int ch1, int iType)
{
// No scaling if nominal integration (148 cycles or 400 ms) is used
24
Copyright E 2010, TAOS Inc.
//−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
// first, scale the channel values depending on the gain and integration time
// 1X, 400ms is nominal setting
unsigned long chScale0;
unsigned long chScale1;
unsigned long channel1;
unsigned long channel0;
if (tIntCycles == NOM_INTEG_CYCLE)
else
switch (iGain)
{
}
// 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
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;
switch (iType)
{
chScale0 = (1 << CH_SCALE);
chScale0 = (NOM_INTEG_CYCLE << CH_SCALE) / tIntCycles;
case 0: // 1x gain
case 1: // 8x gain
case 2: // 16x gain
case 3: // 128x gain
case 1: // FN package
chScale1 = chScale0;
break;
chScale0 = chScale0 >> 3;
chScale1 = chScale0;
break;
chScale0 = chScale0 >> 4;
chScale1 = chScale0;
break;
chScale1 = chScale0 / CH1GAIN128X; //Ch1 gain correction factor applied
chScale0 = chScale0 / CH0GAIN128X; //Ch0 gain correction factor applied
break;
if ((ratio >= 0) && (ratio <= K1C))
else if (ratio <= K2C)
else if (ratio <= K3C)
{b=B1C; m=M1C;}
{b=B2C; m=M2C;}
r
www.taosinc.com
// No scale.
// Scale/multiply value by 1/8
// Scale/multiply value by 1/16
Nominal setting
r
The LUMENOLOGY r Company

Related parts for TSL2581CS