TCS34711 TAOS [TEXAS ADVANCED OPTOELECTRONIC SOLUTIONS], TCS34711 Datasheet - Page 9

no-image

TCS34711

Manufacturer Part Number
TCS34711
Description
COLOR LIGHT-TO-DIGITAL CONVERTER
Manufacturer
TAOS [TEXAS ADVANCED OPTOELECTRONIC SOLUTIONS]
Datasheet
Interrupts
State Diagram
The LUMENOLOGY r Company
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 RGBC
interrupt enable (AIEN) field in the enable register (0x00).
Two 16-bit interrupt threshold registers allow the user to set limits below and above a desired light level range.
An interrupt can be generated when the RGBC Clear data (CDATA) falls outside of the desired light level
range, as determined by the values in the RGBC interrupt low threshold registers (AILTx) and RGBC interrupt
high threshold registers (AIHTx). It is important to note that the low threshold value must be less than the high
threshold value for proper operation.
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 RGBC occurrences before an interrupt is generated.
The persistence register (0x0C) allows the user to set the persistence (APERS) value. See the persistence
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).
Figure 9 shows a more detailed flow for the state machine. The device starts in the sleep mode. The PON bit
is written to enable the device. A 2.4-ms delay will occur before entering the start state. If the WEN bit is set,
the state machine will cycle through the wait state. If the WLONG bit is set, the wait cycles are extended by 12
over normal operation. When the wait counter terminates, the state machine will step to the RGBC state.
The AEN should always be set. In this case, a minimum of 1 integration time step should be programmed. The
RGBC state machine will continue until it reaches the terminal count, at which point the data will be latched in
the RGBC register and the interrupt set, if enabled.
WLONG = 1
1 to 256 steps
Step: 29 ms
Time: 29 ms − 7.4 s
Minimum − 29 ms
WLONG = 0
1 to 256 steps
Step: 2.4 ms
Time: 2.4 ms − 614 ms
Minimum − 2.4 ms
Clear
Clear
ADC
Check
Figure 9. Expanded State Diagram
Figure 8. Programmable Interrupt
Wait
Clear
Data
r
WEN = 1
PON = 1
AIHTH(r 07), AIHTL(r 06)
AILTH(r 05), AILTL(r 04)
www.taosinc.com
Lower Limit
Upper Limit
Sleep
Wait
Start
COLOR LIGHT-TO-DIGITAL CONVERTER
PON = 0
RGBC Persistence
PPERS(r 0x0C, b3:0)
Check
ALS
r
AEN = 1
Time: 2.4 ms − 614 ms
Time: 2.4 ms
Copyright E 2011, TAOS Inc.
Delay
TAOS115 − MARCH 2011
ALS
ALS
1 to 256steps
Step: 2.4 ms
TCS3471
×
9

Related parts for TCS34711