| Electronic Components Datasheet Search |
|
TSL2583 Datasheet(PDF) 24 Page - ams AG |
|
|
|||||||||||||||||||||||||||||
TSL2583 Datasheet(HTML) 24 Page - ams AG |
|
24 / 33 page ![]() TSL2581, TSL2583 LIGHT-TO-DIGITAL CONVERTER TAOS134A − JULY 2012 23 The LUMENOLOGY r Company r r Copyright E 2012, TAOS Inc. www.taosinc.com 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) { case 1: // CS package if ((ratio >= 0) && (ratio <= K1C)) {b=B1C; m=M1C;} else if (ratio <= K2C) {b=B2C; m=M2C;} else if (ratio <= K3C) {b=B3C; m=M3C;} else if (ratio <= K4C) {b=B4C; m=M4C;} else if (ratio > K5C) {b=B5C; m=M5C;} break; } unsigned long temp; unsigned long lux; temp = ((channel0 * b) − (channel1 * m)); // round lsb (2^(LUX_SCALE−1)) temp += (1 << (LUX_SCALE−1)); // strip off fractional portion lux = temp >> LUX_SCALE; return(lux); } |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List 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 |