| 전자부품 데이터시트 검색엔진 |
|
TSL2580FN 데이터시트(PDF) 35 Page - OSRAM GmbH |
|
|
|||||||||||||||||||||||||||||
TSL2580FN 데이터시트(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: |
|
링크 URL |
| 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 |