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
lid 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) PPERS(r0x0C, b7:4)
va Prox
Integration
Prox
ADC
ill CH0
CH1
Prox
Data
Upper Limit
Lower Limit
PILTH(r0x09), PILTL(r0x08)
Prox Persistence
Technicaaml scoAnGtent st Figure10.ProgrammableInterrupt
Copyright E 2011, TAOS Inc.
10
r
www.taosinc.com
The LUMENOLOGY r Company
r