English
Language : 

TSL25723FN Datasheet, PDF (9/24 Pages) List of Unclassifed Manufacturers – LIGHT-TO-DIGITAL CONVERTER
TSL2572
LIGHT-TO-DIGITAL CONVERTER
TAOS132 − MARCH 2012
Interrupts
The interrupt feature simplifies and improves system efficiency by eliminating the need to poll the sensor for
light intensity values outside of a user-defined range. While the interrupt function is always enabled and it’s
status is available in the status register (0x13), the output of the interrupt state can be enabled using the ALS
interrupt enable (AIEN) fields in the enable register (0x00).
Two 16-bit interrupt threshold registers allow the user to set limits below and above a desired light level. An
interrupt can be generated when the ALS CH0 data (C0DATA) falls outside of the desired light level range, as
determined by the values in the ALS interrupt low threshold registers (AILTx) and ALS interrupt high threshold
registers (AIHTx).
It is important to note that the thresholds are evaluated in sequence, first the low threshold, then the high
threshold. As a result, if the low threshold is set above the high threshold, the high threshold is ignored and only
the low threshold is evaluated.
To further control when an interrupt occurs, the device provides a persistence filter. The persistence filter allows
the user to specify the number of consecutive out-of-range ALS occurrences before an interrupt is generated.
The persistence filter register (0x0C) allows the user to set the ALS persistence filter (APERS) value. See the
persistence filter register for details on the persistence filter values. Once the persistence filter generates an
interrupt, it will continue until a special function interrupt clear command is received (see command register).
AIHTH(r07), AIHTL(r06)
APERS(r0x0C, b3:0)
CH0
CH0
ADC
CH0
Data
Upper Limit
Lower Limit
AILTH(r05), AILTL(r04)
ALS Persistence
Figure 8. Programmable Interrupt
The LUMENOLOGY r Company
r
r
www.taosinc.com
Copyright E 2012, TAOS Inc.
9