User Manual
27
Conguration Three Register (0x9F)
The CONFIG3 register is used to select which photodiodes are used for proximity. Two photodiodes are paired to provide
signal. In proximity mode, UP and RIGHT photodiodes are connected forming a diode pair; similarly the DOWN and LEFT
photodiodes form a diode pair.
Field Bits Description
RESERVED 7:6 Reserved. Write as 0.
PCMP 5 Proximity Gain Compensation Enable. This bit provides gain compensation when proximity
photodiode signal is reduced as a result of sensor masking. If only one diode of the diode pair
is contributing, then only half of the signal is available at the ADC; this results in a maximum
ADC value of 127. Enabling PCMP enables an additional gain of 2X, resulting in a maximum
ADC value of 255.
PMASK_X (U, D, L, R) PCMP
0, 1, 1, 1 1
1, 0, 1, 1 1
1, 1, 0, 1 1
1, 1, 1, 0 1
0, 1, 0, 1 1
1, 0, 1, 0 1
All Others 0
SAI 4 Sleep After Interrupt. When enabled, the device will automatically enter low power mode
when the INT pin is asserted and the state machine has progressed to the SAI decision block.
Normal operation is resumed when INT pin is cleared over I2C.
PMASK_U 3 Proximity Mask UP Enable. Writing a 1 disables this photodiode.
PMASK_D 2 Proximity Mask LEFT Enable. Writing a 1 disables this photodiode.
PMASK_L 1 Proximity Mask LEFT Enable. Writing a 1 disables this photodiode.
PMASK_R 0 Proximity Mask RIGHT Enable. Writing a 1 disables this photodiode.
Gesture Proximity Enter Threshold Register (0xA0)
The Gesture Proximity Enter Threshold Register value is compared with Proximity value, PDATA, to determine if the
gesture state machine is entered. The proximity persistence lter, PPERS, is not used to determine gesture state machine
entry.
Field Bits Description
GPENTH 7:0 Gesture Proximity Entry Threshold. This register sets the Proximity threshold value used to
determine a “gesture start” and subsequent entry into the gesture state machine.