TSL2560 TAOS [TEXAS ADVANCED OPTOELECTRONIC SOLUTIONS], TSL2560 Datasheet - Page 24
![no-image](/images/no-image-200.jpg)
TSL2560
Manufacturer Part Number
TSL2560
Description
LIGHT-TO-DIGITAL CONVERTER
Manufacturer
TAOS [TEXAS ADVANCED OPTOELECTRONIC SOLUTIONS]
Datasheet
1.TSL2560.pdf
(42 pages)
Available stocks
Company
Part Number
Manufacturer
Quantity
Price
TSL2560, TSL2561
LIGHT-TO-DIGITAL CONVERTER
TAOS059Q − NOVEMBER 2009
//****************************************************************************
//
//
//
//
//
//
//
//
//
//
//
//****************************************************************************
#define LUX_SCALE
#define RATIO_SCALE 9
//−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
// Integration time scaling factors
//−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
#define CH_SCALE
#define CHSCALE_TINT0
#define CHSCALE_TINT1
//−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
// T, FN, and CL Package coefficients
//−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
// For Ch1/Ch0=0.00 to 0.50
//
//
//
//
//
//
//
//
//
//
//
//
//
//
// For Ch1/Ch0=0.50 to 0.61:
//
//
// For Ch1/Ch0=0.61 to 0.80:
//
//
// For Ch1/Ch0=0.80 to 1.30:
//
//
// For Ch1/Ch0>1.3:
//
//−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−−
#define K1T
#define B1T
#define M1T
#define K2T
24
Copyright E 2009, TAOS Inc.
Copyright E 2004−2005 TAOS, Inc.
THIS CODE AND INFORMATION IS PROVIDED ”AS IS” WITHOUT WARRANTY OF ANY
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
PURPOSE.
Module Name:
lux.cpp
Lux/Ch0=0.0304−0.062*((Ch1/Ch0)^1.4)
piecewise approximation
Lux/Ch0=0.0224−0.031*(Ch1/Ch0)
Lux/Ch0=0.0128−0.0153*(Ch1/Ch0)
Lux/Ch0=0.00146−0.00112*(Ch1/Ch0)
Lux/Ch0=0
0x0040
0x01f2
0x01be
0x0080
14
For Ch1/Ch0=0.00 to 0.125:
For Ch1/Ch0=0.125 to 0.250:
For Ch1/Ch0=0.250 to 0.375:
For Ch1/Ch0=0.375 to 0.50:
// scale by 2^14
// scale ratio by 2^9
10
0x7517 // 322/11 * 2^CH_SCALE
0x0fe7 // 322/81 * 2^CH_SCALE
Lux/Ch0=0.0304−0.0272*(Ch1/Ch0)
Lux/Ch0=0.0325−0.0440*(Ch1/Ch0)
Lux/Ch0=0.0351−0.0544*(Ch1/Ch0)
Lux/Ch0=0.0381−0.0624*(Ch1/Ch0)
// 0.125 * 2^RATIO_SCALE
// 0.0304 * 2^LUX_SCALE
// 0.0272 * 2^LUX_SCALE
// 0.250 * 2^RATIO_SCALE
// scale channel values by 2^10
r
www.taosinc.com
r
The LUMENOLOGY r Company