| 数据搜索系统,热门电子元器件搜索 |
|
TSL2580CS 数据表(PDF) 35 Page - OSRAM GmbH |
|
|
|||||||||||||||||||||||||||||
TSL2580CS 数据表(HTML) 35 Page - OSRAM GmbH |
|
35 / 53 page ![]() Page 34 ams Datasheet Document Feedback [v1-00] 2016-Apr-05 TSL2580, TSL2581 − Application Information: Software Simplified Lux Calculation Below is the argument and return value including source code (shown on following page) for calculating lux with the TSL2581FN. The source code is intended for embedded and/or microcontroller applications. All floating point arithmetic operations have been eliminated since embedded controllers and microcontrollers generally do not support these types of operations. Because floating point has been removed, scaling must be performed prior to calculating illuminance if the integration time is not 400 msec and/or if the gain is not 1x as denoted in the source code on the following pages //**************************************************************************** // // Copyright ams AG // // 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 // //**************************************************************************** #define LUX_SCALE 16 // scale by 2^16 #define RATIO_SCALE 9 // scale ratio by 2^9 //--------------------------------------------------- // Integration time scaling factors //--------------------------------------------------- #define CH_SCALE 16 // scale channel values by 2^16 #define NOM_INTEG_CYCLE 148 // Nominal 400 ms integration. See Timing Register //--------------------------------------------------- // Gain scaling factors //--------------------------------------------------- #define CH0GAIN128X 107 // 128X gain scalar for Ch0 #define CH1GAIN128X 115 // 128X gain scalar for Ch1 //--------------------------------------------------- // FN Package coefficients //--------------------------------------------------- // For Ch1/Ch0=0.00 to 0.30: //Lux=0.130*Ch0-0.240*Ch1 // For Ch1/Ch0=0.30 to 0.38: // Lux=0.1649*Ch0-0.3562*Ch1 // // For Ch1/Ch0=0.38 to 0.45: |
|
链接网址 |
| ALLDATASHEET是否为您带来帮助? [ DONATE ] |
关于 Alldatasheet | 广告服务 | 联系我们 | 隐私政策 | 数据表链接 | 链接交换 | 制造商名单 All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |