7
Principles of Operation
System State Machine
The APDS-9190 provides control of proximity detection
and power management functionality through an internal
state machine. After a power-on-reset, the device is in
the sleep mode. As soon as the PON bit is set, the device
will move to the start state. It will then continue through
the Prox and Wait states. If these states are enabled, the
device will execute each function. If the PON bit is set to
a 0, the state machine will continue until all conversions
are completed and then go into a low power sleep mode.
Figure 6. Simplied State Diagram
Note: In this document, the nomenclature uses the bit eld name in
italics followed by the register number and bit number to allow the
user to easily identify the register and bit that controls the function. For
example, the power on (PON) is in register 0, bit 0. This is represented as
PON (r0:b0).
Proximity Detection
Proximity sensing uses an internal IR LED light source to
emit light which is then viewed by the integrated light
detector to measure the amount of reected light when
an object is in the light path. The amount of light detected
from a reected surface can then be used to determine an
object’s proximity to the sensor. The APDS-9190 is factory
calibrated to meet the requirement of proximity sensing
of 100 +/- 20 mm, thus eliminating the need for factory
calibration of the end equipment. When the APDS-9190
is placed behind a typical glass surface, the proximity
detection achieved is around 25 to 40 mm, thus providing
an ideal touch-screen disable.
The APDS-9190 has controls for the number of IR pulses
(PPCOUNT), the integration time (PTIME), the LED drive
current (PDRIVE) and the photodiode conguration
(PDIODE). The photodiode conguration can be set to no
diode (test mode), infrared diode (recommended), Ch0
diode or a combination of both diodes. At the end of the
integration cycle, the results are latched into the proximity
data (PDATA) register.
The LED drive current is controlled by a regulated current
sink on the LDR pin. This feature eliminates the need to
use a current limiting resistor to control LED current. The
LED drive current can be congured for 12.5 mA, 25 mA,
50 mA, or 100mA. For higher LED drive requirements, an
external P type transistor can be used to control the LED
current.
The number of LED pulses can be programmed to a value
of 1 to 255 pulses as needed. Increasing the number of
LED pulses at a given current will increase the sensor sen-
sitivity. Sensitivity grows by the square root of the number
of pulses. Each pulse has a 16 µS period.
The proximity integration time (PTIME) is the period of
time that the internal ADC converts the analog signal
to a digital count. It is recommend that this be set to a
minimum of PTIME = 0xFF or 2.72 ms.
Figure 7. Proximity IR LED Waveform
Sleep
Start
WaitProx
PON = 1 (r0:b0)
PON = 0 (r0:b0)
LED O
IRLED Pulses
Subtract
Background
Add IR+
Background
LED On
16 µs