TSL2571
LIGHT-TO-DIGITAL CONVERTER
TAOS117A − FEBRUARY 2011
Enable Register (0x00)
The ENABLE register is used to power the device on/off, enable functions, and interrupts.
Table 3. Enable Register
7
6
5
4
3
2
1
0
Address
0x00
Reserved
AIEN
WEN
Reserved
AEN
PON
ENABLE
FIELD
Reserved
AIEN
BITS
7:5
4
DESCRIPTION
Reserved. Write as 0.
ALS interrupt mask. When asserted, permits ALS interrupts to be generated.
Wait enable. This bit activates the wait feature. Writing a 1 activates the wait timer. Writing a 0 disables the
wait timer.
WEN
3
Reserved
AEN
2
1
Reserved. Write as 0.
ALS Enable. Writing a 1 activates the ALS. Writing a 0 disables the ALS.
Power ON. This bit activates the internal oscillator to permit the timers and ADC channels to operate.
Writing a 1 activates the oscillator. Writing a 0 disables the oscillator.
1
PON
0
NOTE 1: A minimum interval of 2.72 ms must pass after PON is asserted before ALS can be initiated. This required time is enforced by the
hardware in cases where the firmware does not provide it.
ALS Timing Register (0x01)
The ALS timing register controls the internal integration time of the ALS ADCs in 2.72-ms increments.
Table 4. ALS Timing Register
FIELD
BITS
DESCRIPTION
INTEG_CYCLES
ATIME
7:0
VALUE
0xFF
0xF6
TIME
MAX COUNT
1024
1
2.72 ms
27.2 ms
101 ms
174 ms
696 ms
10
37
64
256
10240
0xDB
0xC0
0x00
37888
65535
65535
Copyright E 2011, TAOS Inc.
The LUMENOLOGY r Company
r
r
14
www.taosinc.com