| 数据搜索系统,热门电子元器件搜索 |
|
TSL2569CS 数据表(PDF) 35 Page - OSRAM GmbH |
|
|
|||||||||||||||||||||||||||||
TSL2569CS 数据表(HTML) 35 Page - OSRAM GmbH |
|
35 / 56 page ![]() Page 34 ams Datasheet Document Feedback [v1-00] 2016-Apr-12 TSL2568, TSL2569 − Application Information: Software An interrupt will be generated upon completion of each conversion. The interrupt threshold registers are ignored. The following example illustrates the configuration of a level interrupt: // Set up end-of-conversion interrupt, Level style Address = 0x39 //Slave addr also 0x29 or 0x49 Command = 0x86 //Address Interrupt Register Data = 0x10 //Level style, every ADC cycle WriteByte (Address, Command, Data)) The following example pseudo code illustrates the configuration of an SMB Alert style interrupt when the light intensity changes 20% from the current value, and persists for 3 conversion cycles: // Read current light level Address = 0x39 //Slave addr also 0x29 or 0x49 Command = 0xAC //Set Command bit and Word bit ReadWord (Address, Command, DataLow, DataHigh) Channel0 = (256 * DataHigh) + DataLow //Calculate upper and lower thresholds T_Upper = Channel0 + (0.2 * Channel0) T_Lower = Channel0 – (0.2 * Channel0) //Write the lower threshold register Command = 0xA2 //Addr lower threshold reg, set Word Bit WriteWord (Address, Command, T_Lower.LoByte, T_Lower.HiByte) //Write the upper threshold register Command = 0xA4 //Addr upper threshold reg, set Word bit WriteWord (Address, Command, T_Upper.LoByte, T_Upper.HiByte) //Enable interrupt Command = 0x86 //Address interrupt register Data = 0x23 //SMBAlert style, PERSIST = 3 WriteByte (Address, Command, Data) |
|
链接网址 |
| 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 |