User Manual
10
Sleep After Interrupt Operation
After all the enabled engines/operational states have ex-
ecuted, causing a hardware interrupt, the state machine
returns to either IDLE or SLEEP, as selected by the Sleep
After Interrupt bit, SAI. SLEEP is entered when two condi-
tions are met: SAI = 1, and the INT pin has been asserted.
Entering SLEEP does not automatically change any of the
register settings (E.g. PON bit is still high, but the normal
operational state is over-ridden by SLEEP state). SLEEP
state is terminated by an I²C clear of the INT pin or if SAI
bit is cleared.
Proximity Operation
The Proximity detection feature provides distance mea-
surement by photodiode detection of reected IR energy
sourced by the integrated LED. The following registers and
control bits govern proximity operation and the opera-
tional ow is depicted in Figure 8.
Table 1. Proximity Controls
Register/Bit Address Description
ENABLE<PON> 0x80<0> Power ON
ENABLE<PEN> 0x80<2> Proximity Enable
ENABLE<PIEN> 0x80<5> Proximity Interrupt Enable
PILT 0x89 Proximity low threshold
PIHT 0x8B Proximity high threshold
PERS<PPERS> 0x8C<7:4> Proximity Interrupt Persistence
PPULSE<PPLEN> 0x8E<7:6> Proximity Pulse Length
PPULSE<PPULSE> 0x8E<5:0> Proximity Pulse Count
CONTROL<PGAIN> 0x8F<3:2> Proximity Gain Control
CONTROL<LDRIVE> 0x8F<7:6> LED Drive Strength
CONFIG2<PSIEN> 0x90<7> Proximity Saturation Interrupt Enable
CONFIG2<LEDBOOST> 0x90<5:4> Proximity/Gesture LED Boost
STATUS<PGSAT> 0x93<6> Proximity Saturation
STATUS<PINT> 0x93<5> Proximity Interrupt
STATUS<PVALID> 0x93<1> Proximity Valid
PDATA 0x9C Proximity Data
POFFSET_UR 0x9D Proximity Oset UP/RIGHT
POFFSET_DL 0x9E Proximity Oset DOWN/LEFT
CONFIG3<PCMP> 0x9F<5> Proximity Gain Compensation Enable
CONFIG3<PMSK_U> 0x9F<3> Proximity Mask UP Enable
CONFIG3<PMSK_D> 0x9F<2> Proximity Mask DOWN Enable
CONFIG3<PMSK_L> 0x9F<1> Proximity Mask LEFT Enable
CONFIG3<PMSK_R> 0x9F<0> Proximity Mask RIGHT Enable
PICLEAR 0xE5 Proximity Interrupt Clear
AICLEAR 0xE7 All Non-Gesture Interrupt Clear