数据搜索系统,热门电子元器件搜索
  Chinese  ▼
ALLDATASHEETCN.COM

X  

TCS3414CS 数据表(PDF) 31 Page - ams AG

部件名 TCS3414CS
功能描述  DIGITAL COLOR SENSORS
PDF  41 Pages
Scroll/Zoom Zoom In 100%  Zoom Out
制造商  AMSCO [ams AG]
网页  http://www.ams.com
标志 AMSCO - ams AG

TCS3414CS 数据表(HTML) 31 Page - ams AG

Back Button TCS3414CS Datasheet HTML 27Page - ams AG TCS3414CS Datasheet HTML 28Page - ams AG TCS3414CS Datasheet HTML 29Page - ams AG TCS3414CS Datasheet HTML 30Page - ams AG TCS3414CS Datasheet HTML 31Page - ams AG TCS3414CS Datasheet HTML 32Page - ams AG TCS3414CS Datasheet HTML 33Page - ams AG TCS3414CS Datasheet HTML 34Page - ams AG TCS3414CS Datasheet HTML 35Page - ams AG Next Button
Zoom Inzoom in Zoom Outzoom out
 31 / 41 page
background image
TCS3404, TCS3414
DIGITAL COLOR SENSORS
TAOS137A − APRIL 2011
30
r
r
Copyright
E 2011, TAOS Inc.
The LUMENOLOGY
r Company
www.taosinc.com
APPLICATION INFORMATION: SOFTWARE
Interrupts
The interrupt feature of the TCS3404/14 device simplifies and improves system efficiency by eliminating the
need to poll the sensor for a light intensity value. Interrupt mode is determined by the INTR field in the Interrupt
Control Register. The interrupt feature may be disabled by writing a field value of 00h to the Interrupt Control
Register (02h) 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 signal 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 TCS3404/14 device implements two
16-bit-wide interrupt threshold registers that allow the user to define thresholds above and below a desired 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 uses the Interrupt Source Register (03h) to select which
ADC channel (1 through 4) to generate the interrupt. This simplifies calculation of thresholds that are based on
a percent of the current light level. For example, it is adequate to use only one channel (e.g. green channel) when
calculating light intensity differences since, for a given light source, channel values are linearly proportional to
each other and thus each value scales linearly with light intensity.
To further control when an interrupt occurs, the TCS3404/14 device provides an interrupt persistence feature.
This feature allows the user to specify the length in time of the number of consecutive ADC channel values 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. See
Table 6 regarding the number of timer values provided.
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 Interrupt Clear field in the the COMMAND
register to 11b. 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 so that every ADC integration cycle generates an
interrupt, the interrupt PERSIST field in the Interrupt Control Register (02h) is set to 000b. 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 end−of−conversion interrupt, Level style
Address = 0x39
//Slave address − alternatively 0x29 or 0x49
Command = 0x83
//Interrupt Source Register
Data = 0x01
//Select Channel 2
WriteByte(Address, Command, Data)
Command = 0x82
//Address Interrupt Register
Data = 0x10
//Level style, every ADC cycle
WriteByte(Address, Command, Data)



Html Pages

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41


数据表 下载

Go To PDF Page


链接网址



ALLDATASHEET是否为您带来帮助?  [ DONATE ] 

关于 Alldatasheet   |   广告服务   |   联系我们   |   隐私政策   |   数据表链接    |   链接交换   |   制造商名单
All Rights Reserved©Alldatasheet.com


Mirror Sites
English : Alldatasheet.com  |   English : Alldatasheet.net  |   Chinese : Alldatasheetcn.com  |   German : Alldatasheetde.com  |   Japanese : Alldatasheet.jp
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