User Manual

20
Enable Register (0x80)
The ENABLE register is used to power the device on/o, enable functions and interrupts.
Field Bits Description
Reserved 7 Reserved. Write as 0.
GEN 6 Gesture Enable. When asserted, the gesture state machine can be activated.
Activation is subject to the states of PEN and GMODE bits.
PIEN 5 Proximity Interrupt Enable. When asserted, it permits proximity interrupts to be generated, subject to the
persistence lter settings.
AIEN 4 ALS Interrupt Enable. When asserted, it permits ALS interrupts to be generated, subject to the persistence
lter settings.
WEN 3 Wait Enable. This bit activates the wait feature. Writing a one activates the wait timer. Writing a zero
disables the wait timer.
PEN 2 Proximity Detect Enable. This eld activates the proximity detection.
Writing a one activates the proximity. Writing a zero disables the proximity.
AEN 1 ALS Enable. This eld activates ALS function. Writing a one activates the ALS. Writing a zero disables the
ALS.
PON 0 Power ON. This eld activates the internal oscillator to permit the timers and ADC channels to operate.
Writing a one activates the oscillator. Writing a zero disables the oscillator and puts the device into a low
power sleep mode. During reads and writes over the I2C interface, this bit is temporarily overridden and
the oscillator is enabled, independent of the state of PON.
Note: Before enabling Gesture, Proximity, or ALS, all of the bits associated with control of the desired function must be set. Changing control register
values while operating may result in invalid results.
ADC Integration Time Register (0x81)
The ATIME register controls the internal integration time of ALS/Color analog to digital converters. Upon power up, the
ADC integration time register is set to 0xFF.
The maximum count (or saturation) value can be calculated based upon the integration time and the size of the count
register (i.e. 16 bits). For ALS/Color, the maximum count will be the lesser of either:
• 65535 (based on the 16 bit register size) or
The result of equation: CountMAX = 1025 x CYCLES
Field Bits Description
ATIME 7:0
FIELD VALUE CYCLES TIME MAX COUNT
0 256 712 ms 65535
182 72 200 ms 65535
= 256 – TIME / 2.78 ms
219 37 103 ms 37889
246 10 27.8 ms 10241
255 1 2.78 ms 1025
Note: The ATIME register is only applicable to ALS/Color engine (16-bit data). The integration time for the 8-bit Proximity/Gesture engine, is a factor of
four less than the nominal time (2.78ms), resulting in a xed time of 0.696ms.