tsl2561cs Pacer Components, tsl2561cs Datasheet - Page 27

no-image

tsl2561cs

Manufacturer Part Number
tsl2561cs
Description
Light-to-digital Converter
Manufacturer
Pacer Components
Datasheet
}
The LUMENOLOGY r Company
}
unsigned long temp;
temp = ((channel0 * b) − (channel1 * m));
// do not allow negative lux value
if (temp < 0) temp = 0;
// round lsb (2^(LUX_SCALE−1))
temp += (1 << (LUX_SCALE−1));
// strip off fractional portion
unsigned long lux = temp >> LUX_SCALE;
return(lux);
else if (ratio > K8C)
break;
{b=B8C; m=M8C;}
r
www.taosinc.com
LIGHT-TO-DIGITAL CONVERTER
r
TSL2560, TSL2561
TAOS059L − JANUARY 2008
Copyright E 2008, TAOS Inc.
27

Related parts for tsl2561cs