
TSL2671
DIGITAL PROXIMITY DETECTOR
TAOS118 ? JANUARY 2011
Interrupts
The interrupt feature simplifies and improves system efficiency by eliminating the need to poll the sensor for
a proximity value. The interrupt mode is determined by the state of the PIEN field in the ENABLE register.
Two 16-bit-wide interrupt threshold registers allow the user to define upper and lower threshold limits. An
interrupt can be generated when the proximity data (PDATA) exceeds the upper threshold value (PIHTx) or falls
below the lower threshold (PILTx).
To further control when an interrupt occurs, the device provides an interrupt persistence feature. This feature
allows the user to specify a number of conversion cycles for which an event exceeding the proximity interrupt
threshold must persist (PPERS) before actually generating an interrupt. See the register descriptions for details
on the length of the persistence.
PIHTH(r0x0B), PIHTL(r0x0A)
Upper Limit
PPERS(r0x0C, b7:4)
Prox Persistence
Prox
Integration
Prox
ADC
Prox
Data
CH0
CH1
Lower Limit
PILTH(r0x09), PILTL(r0x08)
Figure 10. Programmable Interrupt
Copyright E 2011, TAOS Inc.
10
r
www.taosinc.com
r
The LUMENOLOGY r Company