TSL2568, TSL2569
LIGHT-TO-DIGITAL CONVERTER
TAOS091D  DECEMBER 2008
19
The LUMENOLOGY r Company
r
r
Copyright E 2008, TAOS Inc.
www.taosinc.com
APPLICATION INFORMATION: SOFTWARE
Interrupts
The interrupt feature of the TSL256x device simplifies and improves system efficiency by eliminating the need
to poll the sensor for a light intensity value. Interrupt styles are determined by the INTR field in the Interrupt
Register. The interrupt feature may be disabled by writing a field value of 00h to the Interrupt Control Register
so that polling can be performed.
The versatility of the interrupt feature provides many options for interrupt configuration and usage. The primary
purpose of the interrupt function is to provide a meaningful change in light intensity. However, it also be used
as an end-of-conversion signal. The concept of a meaningful change can be defined by the user both in terms
of light intensity and time, or persistence, of that change in intensity. The TSL256x device implements two
16-bit-wide interrupt threshold registers that allow the user to define a threshold above and below the current
light level. An interrupt will then be generated when the value of a conversion exceeds either of these limits. For
simplicity of programming, the threshold comparison is accomplished only with Channel 0. This simplifies
calculation of thresholds that are based, for example, on a percent of the current light level. It is adequate to
use only one channel when calculating light intensity differences since, for a given light source, the channel 0
and channel 1 values are linearly proportional to each other and thus both values scale linearly with light
intensity.
To further control when an interrupt occurs, the TSL256x device provides an interrupt persistence feature. This
feature allows the user to specify a number of conversion cycles for which a light intensity exceeding either
interrupt threshold must persist before actually generating an interrupt. This can be used to prevent transient
changes in light intensity from generating an unwanted interrupt. With a value of 1, an interrupt occurs
immediately whenever either threshold is exceeded. With values of N, where N can range from 2 to 15, N
consecutive conversions must result in values outside the interrupt window for an interrupt to be generated. For
example, if N is equal to 10 and the integration time is 402 ms, then an interrupt will not be generated unless
the light level persists for more than 4 seconds outside the threshold.
Two different interrupt styles are available: Level and SMBus Alert. The difference between these two interrupt
styles is how they are cleared. Both result in the interrupt line going active low and remaining low until the
interrupt is cleared. A level style interrupt is cleared by setting the CLEAR bit (bit 6) in the COMMAND register.
The SMBus Alert style interrupt is cleared by an Alert Response as described in the Interrupt Control Register
section and SMBus specification.
To configure the interrupt as an end-of-conversion signal, the interrupt PERSIST field is set to 0. Either Level
or SMBus Alert style can be used. 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 endofconversion 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)
相关PDF资料
TSL257SM-LF IC LIGHT-VOLTAGE SMD SIDELOOKER
TSL260R-LF IC IR LIGHT-VOLT CONV SIDELOOKER
TSL260RSM-LF IC IR LIGHT-VOLT CONV SMD SIDELK
TSL3301CL IC LINEAR SENSOR ARRAY 8CHIPLED
TXM-418-LR_ TRANSMITTER 418MHZ LR SERIES
TXM-900-HP3-SPS TRANSMTR RF 902-928MHZ 8P/100S
VJ3505M011SXMSRA0 ANTENNA 470-860MHZ UHF SMD
VJ5301M868MXBSR RF ANTENNA
相关代理商/技术参数
TSL256Y WAF 制造商:Texas Instruments 功能描述:
TSL257 制造商:TAOS 制造商全称:TEXAS ADVANCED OPTOELECTRONIC SOLUTIONS 功能描述:HIGH-SENSITIVITY LIGHT-TO-VOLTAGE CONVERTER
TSL2571 制造商:TAOS 制造商全称:TEXAS ADVANCED OPTOELECTRONIC SOLUTIONS 功能描述:LIGHT-TO-DIGITAL CONVERTER
TSL2571 EVM 功能描述:光学传感器开发工具 Evaluation Module TSL2571x RoHS:否 制造商:ams 工具用于评估: 接口类型: 最大工作温度:
TSL25711 制造商:TAOS 制造商全称:TEXAS ADVANCED OPTOELECTRONIC SOLUTIONS 功能描述:LIGHT-TO-DIGITAL CONVERTER
TSL25711FN 功能描述:光学数位转换器 Light to Digital I2C I/F RoHS:否 制造商:ams 数据总线宽度: 峰值波长:470 nm 最大工作频率: 工作电源电压: 工作电流: 最大工作温度:+ 85 C 最小工作温度:- 40 C 封装 / 箱体:Chipscale-6 封装:Reel
TSL25711FN-CUT TAPE 制造商:AMS 功能描述:TSL25771 Series 850 nm Light to Digital Converter w/ Proximity Sensing - 3 Pin
TSL25713 制造商:TAOS 制造商全称:TEXAS ADVANCED OPTOELECTRONIC SOLUTIONS 功能描述:LIGHT-TO-DIGITAL CONVERTER