Datasheet
TSL2591 – 14 Datasheet - Apr. 2013 - ams163.5
The ALS interrupt threshold registers provide the values to be
used as the high and low trigger points for the comparison
function for interrupt generation. If C0DATA crosses below the
low threshold specified, or above the higher threshold, an
interrupt is asserted on the interrupt pin.
If the C0DATA exceeds the persist thresholds (registers: 0x04 –
0x07) for the number of persist cycles configured in the PERSIST
register an interrupt will be triggered. If the C0DATA exceeds
the no-persist thresholds (registers: 0x08 – 0x0B) an interrupt
will be triggered immediately following the end of the current
integration.
Note that while the interrupt is observable in the STATUS
register (0x13), it is visible only on the INT pin when AIEN or
NPIEN are enabled in the ENABLE register (0x00).
Upon power up, the interrupt threshold registers default to
0x00.
Register Address Bits Description
AILTL 0x04 7:0 ALS low threshold lower byte
AILTH 0x05 7:0 ALS low threshold upper byte
AIHTL 0x06 7:0 ALS high threshold lower byte
AIHTH 0x07 7:0 ALS high threshold upper byte
NPAILTL 0x08 7:0 No Persist ALS low threshold lower byte
NPAILTH 0x09 7:0 No Persist ALS low threshold upper byte
NPAIHTL 0x0A 7:0 No Persist ALS high threshold lower byte
NPAIHTH 0x0B 7:0 No Persist ALS high threshold upper byte
ALS Interrupt Threshold Register
(0x04 − 0x0B)