NOA3315W
Digital Proximity Sensor
with Dual Ambient Light
Sensors and Interrupt
Description
The NOA3315W combines an advanced digital proximity sensor
and LED driver with dual ambient light sensors (ALS) and tri−mode
I2C interface with interrupt capability in an integrated monolithic
device. Multiple power management features and very low active
sensing power consumption directly address the power requirements
of battery operated mobile phones and mobile internet devices.
The proximity sensor measures reflected light intensity with a high
degree of precision and excellent ambient light rejection. The
NOA3315W enables a proximity sensor system with a 16:1
programmable LED drive current range and a 30 dB overall proximity
detection range. The dual ambient light sensors include one with a
photopic light filter and one with no filter. Both have dark current
compensation and high sensitivity eliminating inaccurate light level
detection and insuring proper backlight control even in the presence of
dark cover glass.
The NOA3315W is ideal for improving the user experience by
enhancing the screen interface with the ability to measure distance for
near/far detection in real time and the ability to respond to ambient
lighting conditions to control display backlight intensity.
Features
•
•
•
•
•
•
•
• Proximity detection distance threshold I2C
•
•
•
•
programmable with 12−bit resolution and eight
integration time ranges (16−bit effective resolution)
Effective for Measuring Distances up to 200 mm and
Beyond
Excellent IR and Ambient Light Rejection including
Sunlight (up to 50K lux) and CFL Interference
Programmable LED Drive Current from 10 mA to
160 mA in 5 mA Steps, no External Resistor Required
User Programmable LED Pulse Frequency
© Semiconductor Components Industries, LLC, 2016
December, 2016 − Rev. 1
ORDERING INFORMATION
Device
NOA3315W
Wafer Size
Temp Range
200 mm wafer
−40°C to 80°C
• Dual ALS senses ambient light and provides 16−bit
Device
Very Low Power Consumption
♦ Stand−by current 2.8 mA (monitoring I2C interface
only, Vdd = 3 V)
♦ ALS operational current 50 mA per sensor
♦ Proximity sensing average operational current
100 mA
♦ Average LED sink current 75 mA
These Devices are Pb−Free, Halogen Free/BFR Free
and are RoHS Compliant
Proximity Sensing
•
AMBIENT LIGHT PROXIMITY SENSOR
Ambient Light Sensing
• Proximity Sensor, LED Driver and Dual ALS in One
•
www.onsemi.com
output counts on the I2C bus directly proportional to the
ambient light intensity
Photopic Spectral Response of ALS1 Nearly Matches
Human Eye
Broadband response of ALS2 supports compensation
for spectral shifts encountered with different types of
cover glass
Dynamic Dark Current Compensation
Linear Response over the Full Operating Range
3 ranges – 100 counts/lux, 10 counts/lux, 1 count/lux
Senses Intensity of Ambient Light from 0.02 lux to 52k
lux with 21−bit Effective Resolution (16−bit converter)
Programmable Integration Times (50 ms, 100 ms,
200 ms, 400 ms)
Additional Features
• Programmable interrupt function including independent
•
•
1
upper and lower threshold detection or threshold based
hysteresis for proximity and or ALS
Level or Edge Triggered Interrupts
Proximity persistence feature reduces interrupts by
providing hysteresis to filter fast transients such as
camera flash
Publication Order Number:
NOA3315W/D
NOA3315W
• Automatic power down after single measurement or
•
•
•
• No External Components Required except the IR LED
continuous measurements with programmable interval
time for both ALS and PS functions
Wide Operating Voltage Range (2.3 V to 3.6 V)
Wide Operating Temperature Range (−40°C to 80°C)
I2C Serial Communication Port
♦ Standard mode – 100 kHz
♦ Fast mode – 400 kHz
♦ High speed mode – 3.4 MHz
and Power Supply Decoupling Caps
Applications
• Senses human presence in terms of distance and senses
ambient light conditions, saving display power in
applications such as:
♦ Smart phones, mobile internet devices, MP3 players,
GPS
♦ Mobile device displays and backlit keypads
Figure 1. NOA3315W Application Block Diagram
Table 1. PAD FUNCTION DESCRIPTION
Pad
Pad Name
Description
1
VDD
Power pad
2
VSS
Ground pad
3
LED_GND
4
LED
IR LED output pad
5
INT
Interrupt output pad, open−drain
6
SDA
Bi−directional data signal for communications with the I2C master
7
SCL
External I2C clock supplied by the I2C master
Ground pad for IR LED driver
www.onsemi.com
2
NOA3315W
Table 2. ABSOLUTE MAXIMUM RATINGS
Rating
Symbol
Value
Unit
Input power supply
VDD
4.0
V
Input voltage range
Vin
−0.3 to VDD + 0.2
V
Output voltage range
Vout
−0.3 to VDD + 0.2
V
TJ(max)
100
°C
TSTG
−40 to 80
°C
ESD Capability, Human Body Model (Note 1)
ESDHBM
2
kV
ESD Capability, Charged Device Model (Note 1)
ESDCDM
500
V
Moisture Sensitivity Level
MSL
3
−
Lead Temperature Soldering (Note 2)
TSLD
260
°C
Maximum Junction Temperature
Storage Temperature
Stresses exceeding those listed in the Maximum Ratings table may damage the device. If any of these limits are exceeded, device functionality
should not be assumed, damage may occur and reliability may be affected.
1. This device incorporates ESD protection and is tested by the following methods:
ESD Human Body Model tested per EIA/JESD22−A114
ESD Charged Device Model tested per ESD−STM5.3.1−1999
Latchup Current Maximum Rating: ≤ 100 mA per JEDEC standard: JESD78
2. For information, please refer to our Soldering and Mounting Techniques Reference Manual, SOLDERRM/D
Table 3. OPERATING RANGES
Rating
Power supply voltage
Symbol
Min
VDD
2.3
Typ
Unit
3.6
V
5
mA
Power supply current, stand−by mode (VDD = 3.0 V)
IDDSTBY
Power supply average current, ALS1 operating 100 ms
integration time and 500 ms intervals
IDDALS1
50
mA
Power supply average current, ALS2 operating 100 ms
integration time and 500 ms intervals
IDDALS2
50
mA
100
mA
Power supply average current, PS operating 300 ms integration
time and 100 ms intervals
LED average sink current, PS operating at 300 ms integration
time and 100 ms intervals and LED current set at 50 mA
I2C signal voltage (Note 3)
2.8
Max
IDDPS
47
ILED
75
VDD_I2C
1.6
1.8
mA
2.0
V
Low level input voltage (VDD_I2C related input levels)
VIL
−0.3
0.3 VDD_I2C
V
High level input voltage (VDD_I2C related input levels)
VIH
0.7 VDD_I2C
VDD_I2C + 0.2
V
Hysteresis of Schmitt trigger inputs
Vhys
0.1 VDD_I2C
Low level output voltage (open drain) at 3 mA sink current (INT)
VOL
V
0.2 VDD_I2C
V
II
−10
10
mA
Output low current (INT)
IOL
3
−
mA
Operating free−air temperature range
TA
−40
80
°C
Input current of IO pin with an input voltage between 0.1 VDD
and 0.9 VDD
3. The
I2C
interface is functional to 3.0 V, but timing is only guaranteed up to 2.0 V. High Speed mode is guaranteed to be functional to 2.0 V.
www.onsemi.com
3
NOA3315W
Table 4. ELECTRICAL CHARACTERISTICS (Unless otherwise specified, these specifications apply over 2.3 V < VDD < 3.6 V,
1.7 V < VDD_I2C < 1.9 V, −40°C < TA < 80°C, 10 pF < Cb < 100 pF) (See Note 4)
Parameter
LED pulse current
Symbol
Min
ILED_pulse
10
Typ
Max
Unit
160
mA
LED pulse current step size
ILED_pulse_step
LED pulse current accuracy
ILED_acc
−20
+20
%
Interval Timer Tolerance
Tolf_timer
−35
+35
%
Edge Triggered Interrupt Pulse Width
PWINT
SCL clock frequency
Hold time for START condition. After this period, the first
clock pulse is generated.
Rise time of both SDA and SCL (input signals) (Note 5)
Fall time of both SDA and SCL (input signals) (Note 5)
Rise time of SDA output signal (Note 5)
Fall time of SDA output signal (Note 5)
Set−up time for STOP condition
mS
50
fSCL_std
10
100
100
400
fSCL_hs
100
3400
THD;STA_std
4.0
−
tHD;STA_fast
0.6
−
tHD;STA_hs
0.160
−
tLOW_std
4.7
−
tLOW_fast
1.3
−
tLOW_hs
0.160
−
tHIGH_std
4.0
−
tHIGH_fast
0.6
−
tHIGH_hs
0.060
−
tHD;DAT_d_std
0
3.45
tHD;DAT_d_fast
0
0.9
tHD;DAT_d_hs
0
0.070
tSU;DAT_std
250
−
tSU;DAT_fast
100
−
tSU;DAT_hs
10
tr_INPUT_std
20
1000
tr_INPUT_fast
20
300
tr_INPUT_hs
10
40
tf_INPUT_std
20
300
tf_INPUT_fast
20
300
tf_INPUT_hs
10
40
tr_OUT_std
20
300
tr_OUT_fast
20 + 0.1 Cb
300
tr_OUT_hs
10
80
tf_OUT_std
20
300
tf_OUT_fast
20 + 0.1 Cb
300
tf_OUT_hs
10
80
tSU;STO_std
4.0
−
tSU;STO_fast
0.6
−
tSU;STO_hs
0.160
−
tBUF_std
4.7
−
tBUF_fast
1.3
−
tBUF_hs
0.160
−
High period of SCL clock
SDA Data set−up time
mA
fSCL_fast
Low period of SCL clock
SDA Data hold time
5
Bus free time between STOP and START condition
www.onsemi.com
4
kHz
mS
mS
mS
mS
nS
nS
nS
nS
nS
mS
mS
NOA3315W
Table 4. ELECTRICAL CHARACTERISTICS (Unless otherwise specified, these specifications apply over 2.3 V < VDD < 3.6 V,
1.7 V < VDD_I2C < 1.9 V, −40°C < TA < 80°C, 10 pF < Cb < 100 pF) (See Note 4)
Parameter
Symbol
Min
Capacitive load for each bus line (including all parasitic
capacitance) (Note 6)
Cb
Noise margin at the low level (for each connected device −
including hysteresis)
Noise margin at the high level (for each connected device −
including hysteresis)
Typ
Max
Unit
10
100
pF
VnL
0.1 VDD
−
V
VnH
0.2 VDD
−
V
4. Refer to Figure 2 and Figure 3 for more information on AC characteristics.
5. The rise time and fall time are dependent on both the bus capacitance (Cb) and the bus pull−up resistor Rp. Max and min pull−up resistor
values are determined as follows: Rp(max) = tr (max)/(0.8473 x Cb) and Rp(min) = (Vdd_I2C – Vol(max))/Iol.
6. Cb = capacitance of one bus line, maximum value of which including all parasitic capacitances should be less than 100 pF. Bus capacitance
up to 400 pF is supported, but at relaxed timing.
Table 5. OPTICAL CHARACTERISTICS (Unless otherwise specified, these specifications are for VDD = 3.0 V, TA = 25°C)
Parameter
Symbol
Min
Typ
Max
Unit
AMBIENT LIGHT SENSOR 1
lp
560
nm
Spectral response, low −3 dB
lc_low
510
nm
Spectral response, high −3 dB
lc_high
610
nm
Spectral response, peak (Note 7)
Dynamic range
DRALS
Maximum Illumination (ALS operational but saturated)
Ev_MAX
Resolution, Counts per lux, Tint = 400 ms, Range = 0 (100 counts/lux)
CR400
800
counts
Resolution, Counts per lux, Tint = 100 ms, Range = 0 (100 counts/lux)
CR100
200
counts
Resolution, Counts per lux, Tint = 50 ms, Range = 0 (100 counts/lux)
CR50
100
counts
Illuminance responsivity, green 560 nm LED, Ev = 10 lux,
Tint = 50 ms, Range = 0 (100 counts/lux)
Rv_g10
1000
counts
Illuminance responsivity, green 560 nm LED, Ev = 100 lux,
Tint = 50 ms, Range = 0 (100 counts/lux)
Rv_g100
10000
counts
Dark current, Ev = 0 lux, Tint = 100 ms
Rvd
0.02
0
0
52k
lux
120k
lux
3
counts
PROXIMITY SENSOR (Note 8)
Detection range, Tint = 4800 ms, ILED = 160 mA, 860 nm IR LED (OSRAM SFH4650), White Reflector (RGB = 220, 224, 223), LED Modulation Frequency = 308 kHz, Sample Delay = 250 ns, SNR = 7:1
DPS_4800_WHITE_
MOD
200
mm
Detection range, Tint = 4800 ms, ILED = 160 mA, 860 nm IR LED (OSRAM SFH4650), White Reflector (RGB = 220, 224, 223), SNR = 8:1
DPS_4800_WHITE_
160
148
mm
Detection range, Tint = 4800 ms, ILED = 25 mA, 860 nm IR LED (OSRAM SFH4650), White Reflector (RGB = 220, 224, 223), SNR = 8:1
DPS_4800_WHITE_
25
66
mm
Detection range, Tint = 2400 ms, ILED = 50 mA, 860 nm IR LED (OSRAM SFH4650), White Reflector (RGB = 220, 224, 223), SNR = 8:1
DPS_2400_WHITE_
25
80
mm
Detection range, Tint = 1800 ms, ILED = 75 mA, 860 nm IR LED (OSRAM SFH4650), White Reflector (RGB = 220, 224, 223), SNR = 8:1
DPS_1800_WHITE_
75
88
mm
Detection range, Tint = 1200 ms, ILED = 100 mA, 860 nm IR LED (OSRAM SFH4650), White Reflector (RGB = 220, 224, 223), SNR = 8:1
DPS_1200_WHITE_
100
90
mm
Detection range, Tint = 600 ms, ILED = 125 mA, 860 nm IR LED (OSRAM SFH4650), White Reflector (RGB = 220, 224, 223), SNR = 8:1
DPS_600_WHITE_
125
88
mm
Detection range, Tint = 600 ms, ILED = 100 mA, 860 nm IR LED (OSRAM SFH4650), White Reflector (RGB = 220, 224, 223), SNR = 8:1
DPS_600_WHITE_
100
76
mm
7. Refer to Figure 4 for more information on spectral response.
8. Measurements performed with default modulation frequency and sample delay unless noted.
www.onsemi.com
5
NOA3315W
Table 5. OPTICAL CHARACTERISTICS (Unless otherwise specified, these specifications are for VDD = 3.0 V, TA = 25°C)
Parameter
Symbol
Min
Typ
Max
Unit
PROXIMITY SENSOR (Note 8)
Detection range, Tint = 300 ms, ILED = 150 mA, 860 nm IR LED (OSRAM SFH4650), White Reflector (RGB = 220, 224, 223), SNR = 8:1
DPS_300_WHITE_
150
74
mm
Detection range, Tint = 300 ms, ILED = 100 mA, 860 nm IR LED (OSRAM SFH4650), White Reflector (RGB = 220, 224, 223), SNR = 8:1
DPS_300_WHITE_
100
62
mm
Detection range, Tint = 150 ms, ILED = 100 mA, 860 nm IR LED (OSRAM SFH4650), White Reflector (RGB = 220, 224, 223), SNR = 8:1
DPS_150_WHITE_
100
48
mm
Detection range, Tint = 1200 ms, ILED = 100 mA, 860 nm IR LED (OSRAM SFH4650), Grey Reflector (RGB = 162, 162, 160), SNR = 6:1
DPS_1200_GREY_
100
64
mm
Detection range, Tint = 2400 ms, ILED = 150 mA, 860 nm IR LED (OSRAM SFH4650), Black Reflector (RGB = 16, 16, 15), SNR = 6:1
DPS_2400_BLACK_
150
36
mm
Saturation power level
PDMAX
0.8
mW/cm2
Measurement resolution, Tint = 150 ms
MR150
11
bits
Measurement resolution, Tint = 300 ms
MR300
12
bits
Measurement resolution, Tint = 600 ms
MR600
13
bits
Measurement resolution, Tint = 1200 ms
MR1200
14
bits
Measurement resolution, Tint = 1800 ms
MR1800
15
bits
Measurement resolution, Tint = 2400 ms
MR2400
15
bits
Measurement resolution, Tint = 3600 ms
MR3600
16
bits
Measurement resolution, Tint = 4800 ms
MR4800
16
bits
7. Refer to Figure 4 for more information on spectral response.
8. Measurements performed with default modulation frequency and sample delay unless noted.
www.onsemi.com
6
NOA3315W
Figure 2. AC Characteristics, Standard and Fast Modes
Figure 3. AC Characteristics, High Speed Mode
1.0
Human Eye
Standard
ALS1 Counts
OUTPUT CURRENT (normalized)
0.9
0.8
White LED
(5600K)
ALS2 Counts
0.7
Incandescent
(2850K)
0.6
0.5
0.4
CFL (3000K)
0.3
0.2
Halogen
(3350K)
0.1
0.0
200
300
400
500
600
700
800
900
1000
0.00
1100
0.20
0.40
0.60
0.80
1.00
Ratio
WAVELENGTH (nm)
Figure 4. ALS Spectral Response (Normalized)
Figure 5. ALS1 Light Source Dependency
(Normalized to White LED Light)
www.onsemi.com
7
1.20
NOA3315W
TYPICAL CHARACTERISTICS
1800
12K
ALS1 Meas
ALS1 Meas
1600
10K
8K
ALS COUNTS
ALS COUNTS
1400
6K
ALS2 Meas
4K
1200
1000
800
ALS2 Meas
600
400
2K
200
0
0
0
100
200
300
400
500
600
700
0
40
60
80
100
EV (lux)
EV (lux)
Figure 6. ALS1 Linearity 0−700 lux
Figure 7. ALS1 Linearity 0−100 lux
25
160
ALS1 Meas
ALS1 Meas
140
20
ALS COUNTS
120
ALS COUNTS
20
100
80
60
ALS2 Meas
40
15
10
ALS2 Meas
5
20
0
0
0
2
4
6
8
0
10
0.5
1.0
1.5
2.0
EV (lux)
EV (lux)
Figure 8. ALS1 Linearity 0−10 lux
Figure 9. ALS1 Linearity 0−2 lux
-30
-20
-10 1.000
0
10
20
0.900
-40
30
-30
40
0.800
0.700
-50
0.400
-70
0.300
0.200
-80
-80
90
-90
100
-100
0.100
-90
-100
-110
110
-120
-130
180
0.400
70
0.300
0.200
80
170
160
90
0.000
100
110
120
-130
140
ALS1
60
0.500
-120
130
-140
-170
50
0.600
-110
120
-160
40
0.100
0.000
-150
30
0.700
-70
80
20
0.800
-60
70
10
0.900
-50
60
0.500
0
-10 1.000
-40
50
0.600
-60
-20
130
-140
150
140
-150
ALS2
-160
-170
180
ALS1
170
160
150
ALS2
Figure 11. ALS1 & ALS2 Vertical Response to
White LED Light vs Angle (Source swept from
LED pin (+905) to INT pin (−905))
Figure 10. ALS1 & ALS2 Horizontal Response
to White LED Light vs Angle (Source swept
from LED pin (+905) to VDD pin (−905))
www.onsemi.com
8
NOA3315W
TYPICAL CHARACTERISTICS
-30
-20
-10 1.000
0
10
20
0.900
-40
30
0.700
-50
0.400
-70
0.300
0.200
-80
-80
90
-90
100
-100
0.100
-90
-100
-110
110
-120
-140
170
160
70
0.300
80
90
100
110
120
130
-140
150
140
-150
-160
-170
180
170
160
150
Figure 13. PS Vertical Response to IR LED
Light vs Angle (Source swept from LED pin
(+905) to INT pin (−905))
9K
160 mA
8K
160 mA
7K
12K
80 mA
PS COUNT
PS COUNT
0.400
-130
16K
10K
8K
6K
60
0.500
-120
Figure 12. PS Horizontal Response to IR LED
Light vs Angle (Source swept from LED pin
(+905) to VDD pin (−905))
14K
0.600
0.000
140
180
50
0.200
130
-170
PS
40
-110
120
-130
-160
30
0.100
0.000
-150
20
0.700
-70
80
10
0.800
-60
70
0
0.900
-50
60
0.500
-10 1.000
-40
50
0.600
-60
-30
PS
40
0.800
-20
40 mA
6K
5K 80 mA
4K
3K
4K 20 mA
2K
2K
1K
0 10 mA
0
50
100
150
200
40 mA
20 mA
0 10 mA
0
250
50
100
150
200
DISTANCE (mm)
DISTANCE (mm)
Figure 14. PS Response vs. Distance and LED
Current (1200 ms Integration Time, White
Reflector (RGB = 220, 224, 223))
Figure 15. PS Response vs. Distance and LED
Current (1200 ms Integration Time, Grey
Reflector (RGB = 162, 162, 160))
1200
45K
160 mA
4800 ms
40K
1000
800
600
PS COUNT
PS COUNT
35K
80 mA
400
30K
25K
2400 ms
20K
15K
40 mA
150 ms
1200 ms
10K
200 20 mA
600 ms
5K
0 10 mA
0
300 ms
0
50
100
150
0
200
50
100
150
200
250
DISTANCE (mm)
DISTANCE (mm)
Figure 16. PS Response vs. Distance and LED
Current (1200 ms Integration Time, Black
Reflector (RGB = 16, 16, 15))
Figure 17. PS Response vs. Distance and
Integration Time (80 mA LED Current, White
Reflector (RGB = 220, 224, 223))
www.onsemi.com
9
NOA3315W
TYPICAL CHARACTERISTICS
3500
2500
2.3 V
3.0 V
3.6 V
3000
Ambient
CFL 3000K (2kLux)
Halogen (40kLux)
Incandescent (6kLux)
White LED (7kLux)
2000
PS COUNT
PS COUNT
2500
2000
1500
1500
1000
1000
500
500
0
0
0
50
150
200
0
250
50
100
150
200
250
DISTANCE (mm)
DISTANCE (mm)
Figure 18. PS Response vs. Distance and Supply
Voltage (1200 ms Integration Time, 40 mA LED
Current, White Reflector (RGB = 220, 224, 223))
Figure 19. PS Ambient Rejection (1200 ms
Integration Time, 100 mA LED Current, White
Reflector (RGB = 220, 224, 223))
40
200
35
180
160
30
ALS + PS
IDD (mA)
20
PS
PS
120
100
15
10
ALS + PS
140
25
80
60
ALS
40
5
20
0
0
2.0
2.5
3.0
3.5
ALS
2.0 2.2
4.0
2.4
2.6
2.8
3.0
3.2
3.4
3.6
3.8
VDD (V)
VDD (V)
Figure 20. Supply Current vs. Supply Voltage
ALS1 or ALS2 TINT = 100 ms, TR = 500 ms PS
TINT = 300 ms, TR = 100 ms
Figure 21. Supply Current vs. Supply Voltage
ALS1 and ALS2 TINT = 100 ms, TR = 500 ms
PS TINT = 1200 ms, TR = 50 ms
1.4
1 lux
ALS RESPONSE (Normalized)
IDD (mA)
100
1.2
10 lux
1.0
100 lux
0.8
0.6
0.4
0.2
0
0
10
20
30
40
50
60
70
80
TEMPERATURE (°C)
Figure 22. ALS1 Response vs. Temperature
www.onsemi.com
10
90
NOA3315W
Description of Operation
Proximity Sensor Architecture
determine the pulse rate. The default is 0x10 (16) which
results in an LED pulse frequency of 250 KHz (4 ms period).
Values below 200 KHz and above 1 MHz are not
recommended.
Switching high LED currents can result in noise injected into
the proximity sensor receiver causing inaccurate readings. The
PS receiver has a user programmable delay from the LED edge
to when the receiver samples the data (PS_SAMPLE_DELAY
– register 0x0E). Longer delays may reduce the effect of
switching noise but also reduce the sensitivity.
Since the value of the delay is dependent on the pulse
frequency, its value must be carefully computed. The value
obviously cannot exceed the LED pulse width or there
would be no sampling of the data when the LED is
illuminated. There is also a minimum step size of 125 ns.
The delay values are programmed as follows:
0 or 1: No delay
2−31: Selects (N−1)*125 ns
N must be less than or equal to the
PS_LED_FREQUENCY Value
The default delay is 0x05 (500 ns)
Table 6 shows some common LED pulse frequencies and
sample delays and the resulting register values.
NOA3315W combines an advanced digital proximity
sensor, LED driver, dual ambient light sensors and a
tri−mode I2C interface as shown in Figure 1. The LED driver
draws a modulated current through the external IR LED to
illuminate the target. The LED current is programmable
over a wide range. The infrared light reflected from the
target is detected by the proximity sensor photo diode. The
proximity sensor employs a sensitive photo diode fabricated
in ON Semiconductor’s standard CMOS process
technology. The modulated light received by the on−chip
photodiode is converted to a digital signal using a variable
slope integrating ADC with a default resolution (at 300 ms)
of 12−bits, unsigned. The signal is processed to remove all
unwanted signals resulting in a highly selective response to
the generated light signal. The final value is stored in the
PS_DATA register where it can be read by the I2C interface.
Proximity Sensor LED Frequency and Delay Settings
The LED current modulation frequency is user selectable
from approximately 128 KHz to 2 MHz using the
PS_LED_FREQUENCY register. An internal precision
4 MHz oscillator provides the frequency reference. The
4 MHz clock is divided by the value in register 0x0D to
Table 6. COMMON LED PULSE FREQUENCY SETTINGS
LED Pulse
Frequency (KHz)
Sample Delay (ns)
PS_LED_ FREQUENCY Register
(0x0D) Value
PS_SAMPLE_ DELAY Register
(0x0E) Value
200
250
0x14
0x03
200
500
0x14
0x05
200
750
0x14
0x07
250
250
0x10
0x03
250
500
0x10
0x05
500
250
0x08
0x03
500
500
0x08
0x05
1000
250
0x04
0x03
Ambient Light Sensor Architecture
The NOA3315W contains two ambient light sensors. The
first ambient light sensor employs a photo diode with its own
proprietary photopic filter limiting extraneous photons, and
thus performing as a band pass filter on the incident wave
front. The filter only transmits photons in the visible spectrum
which are primarily detected by the human eye. The photo
response of this sensor is as shown in Figure 4. The second
ambient light sensor employs a similar photo diode but
without a light filter. Either or both ALS can be enabled.
When disabled, an ALS is put in power down mode.
The ambient light signal detected by each photo diode is
converted to a digital signal using a variable slope integrating
ADC with a resolution of 16−bits, unsigned. The ADC values
are stored in the ALS1_DATA and ALS2_DATA registers
where they can be read by the I2C interface.
Equation 1 shows the relationship of output counts Cnt as
a function of integration constant Ik, integration time Tint (in
seconds) and the intensity of the ambient light, IL(in lux), at
room temperature (25°C) for ALS1.
IL +
C nt
ǒIk @ TintǓ
(eq. 1)
Where:
Ik = 1920 counts/lux*s (for fluorescent light)
Ik = 2080 counts/lux*s (for incandescent light)
Hence the intensity of the ambient fluorescent light (in lux):
IL +
www.onsemi.com
11
C nt
ǒ1920 @ TintǓ
(eq. 2)
NOA3315W
ǒ
and the intensity of the ambient incandescent light (in lux):
IL +
C nt
(eq. 3)
ǒ2080 @ TintǓ
2000
(eq. 4)
ǒ1920 @ 50 msǓ
I L + 20.83 lux
ALS Spectral Response Correction
The ALS1 photopic filter has some IR leakage which
results in higher ALS readings for light sources with higher
IR content, such as incandescent lighting. For purely
photopic light, ALS1 is very accurate and correction is not
needed. For other light sources, or if the spectral response of
the light is shifted by cover glass, etc., the ALS reading can
be corrected by reading both ALS1 and ALS2 and applying
an equation such as
Device
Address
A[6:0] WRITE
011 0111
0
ACK
0
Ǔ
Ǔ
The equation shown does not work well for very low ALS1
and/or ALS2 values (a single count introduces a large
correction factor), thus it is recommended that the correction
not be applied if the ALS1 value is below 5 counts and/or the
ALS2 value is 0. Likewise if ALS1 reaches 65535 counts,
the equation will begin to be incorrect and thus should not
be applied. To provide the best possible correction, the
equation will change based on the spectral characteristics of
the glass used between the sensor and the light source. The
equation shown was chosen to provide the best fit of a
number of different light sources with no filter glass used.
For example let:
Cnt = 2000 counts
Tint = 50 ms
Intensity of ambient fluorescent light, IL(in lux):
IL +
ǒ
ALS + ALS1 @ 0.1 @ ALS1 ) 0.5
ALS2
I2C Interface
The NOA3315W acts as an I2C slave device and supports
single register and block register read and write operations.
All data transactions on the bus are 8 bits long. Each data
byte transmitted is followed by an acknowledge bit. Data is
transmitted with the MSB first.
Register
Address
D[7:0] ACK
0000 0110 0
Register
Data
D[7:0] ACK
0000 0000 0
0x6E
7
Start
Condition
8
8
Figure 23. I2C Write Command
Figure 23 shows an I2C write operation. Write
transactions begin with the master sending an I2C start
sequence followed by the seven bit slave address
(NOA3315W = 0x37) and the write(0) command bit. The
NOA3315W will acknowledge this byte transfer with an
appropriate ACK. Next the master will send the 8 bit register
address to be written to. Again the NOA3315W will
acknowledge reception with an ACK. Finally, the master
will begin sending 8 bit data segment(s) to be written to the
Device
Address
A[6:0] WRITE
011 0111 0
0x6E
ACK
0
7
NOA3315W register bank. The NOA3315W will send an
ACK after each byte and increment the address pointer by
one in preparation for the next transfer. Write transactions
are terminated with either an I2C STOP or with another I2C
START (repeated START).
Figure 24 shows an I2C read command sent by the master
to the slave device. Read transactions begin in much the
same manner as the write transactions in that the slave
address must be sent with a write(0) command bit.
Register
Address
D[7:0] ACK
0000 0110 0
Register
Data
D[7:0] ACK
0000 0000 0
8
8
Start
Condition
Stop
Condition
Device
Address
Register
Data [A]
A[6:0] READ
011 0111 1
0x6F
7
Start
Condition
Stop
Condition
ACK
0
D[7:0] ACK
bbbb bbbb 0
Register
Data [A+1]
D[7:0] NACK
bbbb bbbb 1
8
8
Figure 24. I2C Read Command
www.onsemi.com
12
Stop
Condition
NOA3315W
performance characteristics of its I/O cells in preparation for
I2C transactions at the I2C high speed data protocol rates.
From then on, standard I2C commands may be issued by the
master, including repeated START commands. When the
I2C master terminates any I2C transaction with a STOP
sequence, the master and all slave devices immediately
revert back to standard/fast mode I/O performance.
By using a combination of high−speed mode and a block
write operation, it is possible to quickly initialize the
NOA3315W I2C register bank.
After the NOA3315W sends an ACK, the master sends the
register address as if it were going to be written to. The
NOA3315W will acknowledge this as well. Next, instead of
sending data as in a write, the master will re−issue an I2C
START (repeated start) and again send the slave address and
this time the read(1) command bit. The NOA3315W will
then begin shifting out data from the register just addressed.
If the master wishes to receive more data (next register
address), it will ACK the slave at the end of the 8 bit data
transmission, and the slave will respond by sending the next
byte, and so on. To signal the end of the read transaction, the
master will send a NACK bit at the end of a transmission
followed by an I2C STOP.
The NOA3315W also supports I2C high−speed mode.
The transition from standard or fast mode to high−speed
mode is initiated by the I2C master. A special reserve device
address is called for and any device that recognizes this and
supports high speed mode immediately changes the
NOA3315W Data Registers
NOA3315W operation is observed and controlled by
internal data registers read from and written to via the
external I2C interface. Registers are listed in Table 7.
Default values are set on initial power up or via a software
reset command (register 0x01).
The I2C Slave Address of the NOA3315W is 0x37.
Table 7. NOA3315W Data Registers
Address
Type
Name
0x00
R
PART_ID
0x01
RW
RESET
Description
NOA3315W part number and revision IDs
Software reset control
0x02
RW
INT_CONFIG
0x0D
RW
PS_LED_FREQUENCY
Interrupt pin functional control settings
0x0E
RW
PS_SAMPLE_DELAY
PS Sample Delay
0x0F
RW
PS_LED_CURRENT
PS LED pulse current
0x10
RW
PS_TH_UP_MSB
PS Interrupt upper threshold, most significant bits
PS LED Pulse Frequency
0x11
RW
PS_TH_UP_LSB
PS Interrupt upper threshold, least significant bits
0x12
RW
PS_TH_LO_MSB
PS Interrupt lower threshold, most significant bits
0x13
RW
PS_TH_LO_LSB
PS Interrupt lower threshold, least significant bits
0x14
RW
PS_FILTER_CONFIG
0x15
RW
PS_CONFIG
0x16
RW
PS_INTERVAL
PS Interval time configuration
0x17
RW
PS_CONTROL
PS Operation mode control
0x20
RW
ALS_TH_UP_MSB
ALS Interrupt upper threshold, most significant bits
0x21
RW
ALS_TH_UP_LSB
ALS Interrupt upper threshold, least significant bits
0x22
RW
ALS_TH_LO_MSB
ALS Interrupt lower threshold, most significant bits
0x23
RW
ALS_TH_LO_LSB
ALS Interrupt lower threshold, least significant bits
0x24
RW
ALS_FILTER_CONFIG
ALS Interrupt Filter Configuration
0x25
RW
ALS_CONFIG
ALS Integration time configuration
0x26
RW
ALS_INTERVAL
ALS Interval time configuration
0x27
RW
ALS_CONTROL
ALS Operation mode control
0x40
R
INTERRUPT
0x41
R
PS_DATA_MSB
PS measurement data, most significant bits
0x42
R
PS_DATA_LSB
PS measurement data, least significant bits
0x43
R
ALS1_DATA_MSB
ALS1 measurement data, most significant bits
0x44
R
ALS1_DATA_LSB
ALS1 measurement data, least significant bits
0x45
R
ALS2_DATA_MSB
ALS2 measurement data, most significant bits
0x46
R
ALS2_DATA_LSB
ALS2 measurement data, least significant bits
PS Interrupt Filter configuration
PS Integration time configuration
Interrupt status
www.onsemi.com
13
NOA3315W
PART_ID Register (0x00)
The PART_ID register provides part and revision identification. These values are hard−wired at the factory and cannot be modified.
Table 8. PART_ID Register (0x00)
Bit
7
6
Field
5
4
3
2
Part number ID
Field
Bit
Default
Part number ID
7:4
1011
Revision ID
3:0
NA
1
0
Revision ID
Description
Part number identification
Silicon revision number
RESET Register (0x01)
Software reset is controlled by this register. Setting this
register followed by an I2C_STOP sequence will
immediately reset the NOA3315W to the default startup
standby state. Triggering the software reset has virtually the
same effect as cycling the power supply tripping the internal
Power on Reset (POR) circuitry.
Table 9. RESET Register (0x01)
Bit
7
6
5
4
Field
3
2
1
NA
Field
NA
SW_reset
Bit
Default
7:1
XXXXXXX
0
0
0
SW_reset
Description
Don’t care
Software reset to startup state
INT_CONFIG Register (0x02)
INT_CONFIG register controls the external interrupt pin function.
Table 10. INT_CONFIG Register (0x02)
Bit
7
6
5
Field
Field
NA
Edge_triggered
auto_clear
polarity
4
3
NA
Bit
Default
7:3
XXXXX
2
0
1
0
1
0
2
1
0
edge_triggered
auto_clear
polarity
Description
Don’t care
0
Interrupt pin stays asserted while the INTERRUPT register bit is set (level)
1
Interrupt pin pulses at the end of each measurement while the INTERRUPT
register bit is set
0
When an interrupt is triggered, the interrupt pin remains asserted until cleared
by an I2C read of INTERRUPT register
1
Interrupt pin state is updated after each measurement
0
Interrupt pin active low when asserted
1
Interrupt pin active high when asserted
PS_LED_FREQUENCY Register (0x0D)
The LED FREQUENCY register controls the frequency
of the LED pulses. The LED modulation frequency is
determined by dividing 4 MHz by the register value. Valid
divisors are 2−31. The default value is 16 which results in an
LED pulse frequency of 250 KHz (one pulse every 4 ms).
www.onsemi.com
14
NOA3315W
Table 11. PS_LED_FREQUENCY Register (0x0D)
Bit
7
6
Field
5
4
3
NA
Field
Bit
Default
NA
7:5
XXX
LED_Frequency
4:0
10000
2
1
0
LED_Modulation Frequency
Description
Don’t care
Defines the divider of the 4MHz clock to generate the LED pulses. Valid values are 2−31.
PS_SAMPLE_DELAY Register (0x0E)
The PS_SAMPLE_DELAY register controls the time
delay after an LED pulse edge before the resulting signal is
sampled by the proximity sensor. This can be used to reduce
the effect of noise caused by the LED current switching.
There is no delay for programmed values of 0x00 or 0x001.
For other values the delay is (N−1)*125ns, where N is the
decimal value of the register. Default value is 0x05 (500ns).
N must be less than or equal to the value in register 0x0D
(PS_LED_FREQUENCY). See the Description of
Operation section for more information on programming
this register.
Table 12. PS_SAMPLE_DELAY Register (0x0E)
Bit
7
6
Field
5
4
3
NA
Field
2
1
0
PS_Sample_Delay
Bit
Default
NA
7:5
XXX
Sample Delay
4:0
00101
Description
Don’t care
Defines the delay from the LED pulse edge before the pulse is sampled.
PS_LED_CURRENT Register (0x0F)
The LED_CURRENT register controls how much current
the internal LED driver sinks through the IR LED during
modulated illumination. The current sink range is 5 mA plus
a binary weighted value of the LED_Current register times
5 mA, for an effective range of 10 mA to 160 mA in steps of
5 mA. The default setting is 50 mA. A register setting of 00
turns off the LED Driver.
Table 13. PS_LED_CURRENT Register (0x0F)
Bit
7
6
Field
Field
5
4
3
NA
Bit
Default
NA
7:5
XXX
LED_Current
4:0
01001
2
1
0
LED_Current
Description
Don’t care
Defines current sink during LED modulation. Binary weighted value times 5 mA plus 5 mA.
PS_TH Registers (0x10 – 0x13)
threshold hysteresis value where the interrupt would be
cleared. Setting the PS_hyst_trig low reverses the function
such that the PS_TH_LO register sets the lower threshold at
which an interrupt will be set and the PS_TH_UP represents
the hysteresis value at which the interrupt would be
subsequently cleared. Hysteresis functions only apply in
“auto_clear” INT_CONFIG mode.
The controller software must ensure the settings for LED
current, sensitivity range, and integration time (LED pulses)
are appropriate for selected thresholds. Setting thresholds to
extremes (default) effectively disables interrupts.
With hysteresis not enabled (see PS_CONFIG register),
the PS_TH registers set the upper and lower interrupt
thresholds of the proximity detection window. Interrupt
functions compare these threshold values to data from the
PS_DATA registers. Measured PS_DATA values outside
this window will set an interrupt according to the
INT_CONFIG register settings.
With hysteresis enabled, threshold settings take on a
different meaning. If PS_hyst_trig is set, the PS_TH_UP
register sets the upper threshold at which an interrupt will be
set, while the PS_TH_LO register then sets the lower
www.onsemi.com
15
NOA3315W
Table 14. PS_TH_UP Registers (0x10 – 0x11)
Bit
7
6
5
Field
4
3
2
1
0
1
0
PS_TH_UP_MSB(0x10), PS_TH_UP_LSB(0x11)
Field
Bit
Default
Description
PS_TH_UP_MSB
7:0
0xFF
Upper threshold for proximity detection, MSB
PS_TH_UP_LSB
7:0
0xFF
Upper threshold for proximity detection, LSB
Table 15. PS_TH_LO Registers (0x12 – 0x13)
Bit
7
6
5
Field
4
3
2
PS_TH_LO_MSB(0x12), PS_TH_LO_LSB(0x13)
Bit
Default
PS_TH_LO_MSB
Field
7:0
0x00
Lower threshold for proximity detection, MSB
Description
PS_TH_LO_LSB
7:0
0x00
Lower threshold for proximity detection, LSB
PS_FILTER_CONFIG Register (0x14)
to set an interrupt. The default setting of 1 out of 1 effectively
turns the filter off and any single measurement exceeding
thresholds can trigger an interrupt. N must be greater than or
equal to M. A setting of 0 for either M or N is not allowed
and disables the PS Interrupt.
PS_FILTER_CONFIG register provides a hardware
mechanism to filter out single event occurrences or similar
anomalies from causing unwanted interrupts. Two 4 bit
registers (M and N) can be set with values such that M out
of N measurements must exceed threshold settings in order
Table 16. PS_FILTER_CONFIG Register (0x14)
Bit
7
6
Field
5
4
3
2
filter_N
Field
1
0
filter_M
Bit
Default
Description
filter_N
7:4
0001
Filter N
filter_M
3:0
0001
Filter M
PS_CONFIG Register (0x15)
Proximity measurement sensitivity is controlled by
specifying the integration time. The integration time sets the
number of LED pulses during the modulated illumination.
The LED modulation frequency remains constant with a
period of 1.5 ms. Changing the integration time affects the
sensitivity of the detector and directly affects the power
consumed by the LED. The default is 1200 ms integration
period.
Hyst_enable and hyst_trigger work with the PS_TH
(threshold) settings to provide jitter control of the INT
function.
ALS_blanking disables the ALS during the time the IR
LED is on during a PS measurement. This will eliminate the
effect of the PS IR signal bouncing off cover glass and
affecting the ALS value.
www.onsemi.com
16
NOA3315W
Table 17. PS_CONFIG Register (0x15)
Bit
7
Field
6
NA
Field
5
4
3
hyst_enable
hyst_trigger
als_blanking
Bit
Default
7:6
XX
hyst_enable
5
0
hyst_trigger
4
0
NA
als_blanking
3
integration_time
1
0
integration_time
Description
Don’t Care
1
2:0
2
011
0
Disables hysteresis
1
Enables hysteresis
0
Lower threshold with hysteresis
1
Upper threshold with hysteresis
0
Disables ALS blanking
1
Enables ALS blanking
000
150 ms integration time
001
300 ms integration time
010
600 ms integration time
011
1200 ms integration time
100
1800 ms integration time
101
2400 ms integration time
110
3600 ms integration time
111
4800 ms integration time
PS_INTERVAL Register (0x16)
The PS_INTERVAL register sets the wait time between
consecutive proximity measurements in PS_Repeat mode.
The register is binary weighted times 10 in milliseconds plus
10ms. The range is therefore 10 ms to 1.28 s. The default
startup value is 0x04 (50 ms).
Table 18. PS_INTERVAL Register (0x16)
Bit
7
Field
NA
Field
NA
Interval
6
5
4
3
2
1
0
interval
Bit
Default
7
0
6:0
0x04
Description
0x00 to 0x7F
Interval time between measurement cycles. Binary weighted value
times 10 ms plus a 10 ms offset.
PS_CONTROL Register (0x17)
The PS_CONTROL register is used to control the
functional mode and commencement of proximity sensor
measurements. The proximity sensor can be operated in
either a single shot mode or consecutive measurements
taken at programmable intervals.
Both single shot and repeat modes consume a minimum
of power by immediately turning off LED driver and sensor
circuitry after each measurement. In both cases the quiescent
current is less than the IDDSTBY parameter. These automatic
power management features eliminate the need for power
down pins or special power down instructions.
www.onsemi.com
17
NOA3315W
Table 19. PS_CONTROL Register (0x17)
Bit
7
6
5
4
Field
3
2
NA
Field
1
0
PS_Repeat
PS_OneShot
Bit
Default
7:2
XXXXXX
PS_Repeat
1
0
Initiates new measurements at PS_Interval rates
PS_OneShot
0
0
Triggers proximity sensing measurement. In single shot mode this bit clears
itself after cycle completion.
NA
Description
Don’t care
ALS_TH Registers (0x20 – 0x23)
ALS_TH_UP register sets the upper threshold at which an
interrupt will be set, while the ALS_TH_LO register then
sets the lower threshold hysteresis value where the interrupt
would be cleared. Setting the ALS_hyst_trig low reverses
the function such that the ALS_TH_LO register sets the
lower threshold at which an interrupt will be set and the
ALS_TH_UP represents the hysteresis value at which the
interrupt would be subsequently cleared. Hysteresis
functions only apply in “auto_clear” INT_CONFIG mode.
With hysteresis not enabled (see ALS_CONFIG register),
the ALS_TH registers set the upper and lower interrupt
thresholds of the ambient light detection window. Interrupt
functions compare these threshold values to data from the
ALS_DATA1 registers. Measured ALS_DATA1 values
outside this window will set an interrupt according to the
INT_CONFIG register settings.
With hysteresis enabled, threshold settings take on a
different meaning. If the ALS_hyst_trig is set, the
Table 20. ALS_TH_UP Registers (0x20 – 0x21)
Bit
7
6
5
Field
4
3
2
1
0
1
0
ALS_TH_UP_MSB(0x20), ALS_TH_UP_LSB(0x21)
Field
Bit
Default
Description
ALS_TH_UP_MSB
7:0
0xFF
Upper threshold for ALS detection, MSB
ALS_TH_UP_LSB
7:0
0xFF
Upper threshold for ALS detection, LSB
Table 21. ALS_TH_LO Registers (0x22 – 0x23)
Bit
7
6
5
Field
4
3
2
ALS_TH_LO_MSB(0x22), ALS_TH_LO_LSB(0x23)
Field
Bit
Default
Description
ALS_TH_LO_MSB
7:0
0x00
Lower threshold for ALS detection, MSB
ALS_TH_LO_LSB
7:0
0x00
Lower threshold for ALS detection, LSB
ALS_FILTER_CONFIG Register (0x24)
to set an interrupt. The default setting of 1 out of 1 effectively
turns the filter off and any single measurement exceeding
thresholds can trigger an interrupt. N must be greater than or
equal to M. A setting of 0 for either M or N is not allowed
and disables the ALS Interrupt.
ALS_FILTER_CONFIG register provides a hardware
mechanism to filter out single event occurrences or similar
anomalies from causing unwanted interrupts. Two 4 bit
registers (M and N) can be set with values such that M out
of N measurements must exceed threshold settings in order
Table 22. ALS_FILTER_CONFIG Register (0x24)
Bit
7
6
Field
5
4
3
2
filter_N
Field
1
filter_M
Bit
Default
Description
filter_N
7:4
0001
Filter N
filter_M
3:0
0001
Filter M
www.onsemi.com
18
0
NOA3315W
ALS_CONFIG Register (0x25)
Range settings control the ALS sensitivity. The default
setting (00) is the maximum sensitivity at 100 counts per lux.
Bit 3 simply performs a logical divide by 10 of the ALS
counts which allows for a 1 count per lux range. Note that 10
counts per lux can be obtained either by 01 – which is an
analog range change, or by 10 which is the 100 count per lux
range divided by 10. The “counts per lux” is based on the
default integration time of 50 ms.
The ALS_CONFIG register controls the operation of the
ambient light sensors. Als2_enable and als1_enable allow
the desired sensors to be used while powering off unused
sensors. Hyst_enable and hyst_trigger work with the
ALS_TH (threshold) settings to provide jitter control of the
INT function. The ambient light measurement sensitivity is
controlled by specifying the integration time.
For backwards compatibility, if both als1_enable and
als2_enable are zero, ALS1 is enabled. If no ALS
measurements are desired, do not issue an ALS start
command (register 0x27).
Table 23. ALS_CONFIG Register (0x25)
Bit
7
6
5
4
Field
als2_enable
als1_enable
hyst_enable
hyst_trigger
Field
als2_enable
Bit
Default
7
0
als1_enable
6
1
hyst_enable
5
0
hyst_trigger
4
range
integration_time
00
1:0
2
range
1
0
integration_time
Description
0
3:2
3
00
0
Disables ALS2 (unfiltered ALS)
1
Enables ALS2
0
Disables ALS1 (ALS with photopic filter)
1
Enables ALS1
0
Disables hysteresis
1
Enables hysteresis
0
Lower threshold with hysteresis
1
Upper threshold with hysteresis
00
100 counts per lux
01
10 counts per lux
10
10 counts per lux (method 2)
11
1 count per lux
00
50 ms integration time
01
100 ms integration time
10
200 ms integration time
11
400 ms integration time
ALS_INTERVAL Register (0x26)
The ALS_INTERVAL register sets the interval between
consecutive ALS measurements in ALS_Repeat mode. The
register is binary weighted times 50 in milliseconds. The
range is 0 ms to 3.15 s. The register value 0x00 and 0 ms
translates into a continuous loop measurement mode at any
integration time. The default startup value is 0x0A (500 ms).
The als_power bit is used to keep the ALS powered up at
a low current (~10 mA) for use in low light environments (for
instance with 1% transmission glass). It is not needed if the
ALS is run in repeat mode or single shot mode at least every
500 ms. The default is 0, which does not keep the ALS
powered up.
Table 24. ALS_INTERVAL Register (0x26)
Bit
7
6
Field
NA
als_power
Field
als_power
interval
5
4
3
2
interval
Bit
Default
6
0
5:0
0x0A
Description
Keeps ALS powered up
Interval time between ALS measurement cycles
www.onsemi.com
19
1
0
NOA3315W
ALS_CONTROL Register (0x27)
than the IDDSTBY parameter. These automatic power
management features eliminate the need for power down
pins or special power down instructions.
For accurate measurements at low light levels (below
approximately 3 lux) ALS readings must be taken at least
once per second and the first measurement after a reset
(software reset or power cycling) should be ignored.
The ALS_CONTROL register is used to control the
functional mode and commencement of ambient light
sensor measurements. The ambient light sensor can be
operated in either a single shot mode or consecutive
measurements taken at programmable intervals.
Both single shot and repeat modes consume a minimum
of power by immediately turning off sensor circuitry after
each measurement. In both cases the quiescent current is less
Table 25. ALS_CONTROL Register (0x27)
Bit
7
6
5
4
Field
3
2
NA
Field
1
0
ALS_Repeat
ALS_OneShot
Bit
Default
7:2
XXXXXX
ALS_Repeat
1
0
Initiates new measurements at ALS_Interval rates
ALS_OneShot
0
0
Triggers ALS sensing measurement. In single shot mode this bit clears itself
after cycle completion.
NA
Description
Don’t care
INTERRUPT Register (0x40)
The INTERRUPT register displays the status of the
interrupt pin and if an interrupt was caused by the proximity
or ambient light sensor. If “auto_clear” is disabled (see
INT_CONFIG register), reading this register also will clear
the interrupt.
Table 26. INTERRUPT Register (0x40)
Bit
7
6
Field
5
NA
Field
4
3
2
1
0
INT
ALS_intH
ALS_intL
PS_intH
PS_intL
Bit
Default
Description
NA
7:5
XXX
INT
4
0
Status of external interrupt pin (1 is asserted)
ALS_intH
3
0
Interrupt caused by ALS exceeding maximum
ALS_intL
2
0
Interrupt caused by ALS falling below the minimum
PS_intH
1
0
Interrupt caused by PS exceeding maximum
PS_intL
0
0
Interrupt caused by PS falling below the minimum
Don’t care
PS_DATA Registers (0x41 – 0x42)
The PS_DATA registers store results from completed
proximity measurements. When an I2C read operation
begins, the current PS_DATA registers are locked until the
operation is complete (I2C_STOP received) to prevent
possible data corruption from a concurrent measurement
cycle.
Table 27. PS_DATA Registers (0x41 – 0x42)
Bit
7
6
5
Field
4
3
2
PS_DATA_MSB(0x41), PS_DATA_LSB(0x42)
Field
Bit
Default
PS_DATA_MSB
7:0
0x00
Proximity measurement data, MSB
Description
PS_DATA_LSB
7:0
0x00
Proximity measurement data, LSB
www.onsemi.com
20
1
0
NOA3315W
ALS1_DATA Registers (0x43 – 0x44)
The ALS1_DATA registers store results from completed
ALS1 measurements. When an I2C read operation begins,
the current ALS1_DATA registers are locked until the
operation is complete (I2C_STOP received) to prevent
possible data corruption from a concurrent measurement
cycle.
Table 28. ALS1_DATA Registers (0x43 – 0x44)
Bit
7
6
5
Field
4
3
2
1
0
ALS1_DATA_MSB(0x43), ALS1_DATA_LSB(0x44)
Field
Bit
Default
Description
ALS1_DATA_MSB
7:0
0x00
ALS1 measurement data, MSB
ALS1_DATA_LSB
7:0
0x00
ALS1 measurement data, LSB
ALS2_DATA Registers (0x45 – 0x46)
The ALS2_DATA registers store results from completed
ALS2 measurements. When an I2C read operation begins,
the current ALS2_DATA registers are locked until the
operation is complete (I2C_STOP received) to prevent
possible data corruption from a concurrent measurement
cycle.
Table 29. ALS2_DATA REGISTERS (0x45 – 0x46)
Bit
7
6
5
Field
4
3
2
ALS2_DATA_MSB(0x45), ALS2_DATA_LSB(0x46)
Field
Bit
Default
Description
ALS2_DATA_MSB
7:0
0x00
ALS2 measurement data, MSB
ALS2_DATA_LSB
7:0
0x00
ALS2 measurement data, LSB
www.onsemi.com
21
1
0
NOA3315W
Proximity Sensor Operation
Sending an I2C_STOP sequence at the end of the write
signals the internal state machines to wake up and begin the
next measurement cycle. Figure 25 and Figure 26 illustrate
the activity of key signals during a proximity sensor
measurement cycle. The cycle begins by starting the
precision oscillator and powering up the proximity sensor
receiver. Next, the IR LED current is modulated according
to the LED current setting at the chosen LED frequency and
the values during both the on and off times of the LED are
stored (illuminated and ambient values). Finally, the
proximity reading is calculated by subtracting the ambient
value from the illuminated value and storing the result in the
16 bit PS_Data register. In One−shot mode, the PS receiver
is then powered down and the oscillator is stopped (unless
there is an active ALS measurement). If Repeat mode is set,
the PS receiver is powered down for the specified interval
and the process is repeated. With default configuration
values (receiver integration time = 1200 ms), the total
measurement cycle will be less than 2 ms.
NOA3315W operation is divided into three phases: power
up, configuration and operation. On power up the device
initiates a reset which initializes the configuration registers
to their default values and puts the device in the standby
state. At any time, the host system may initiate a software
reset by writing 0x01 to register 0x01. A software reset
performs the same function as a power−on−reset.
The configuration phase may be skipped if the default
register values are acceptable, but typically it is desirable to
change some or all of the configuration register values.
Configuration is accomplished by writing the desired
configuration values to registers 0x02 through 0x17.
Writing to configuration registers can be done with either
individual I2C byte−write commands or with one or more
I2C block write commands. Block write commands specify
the first register address and then write multiple bytes of data
in sequence. The NOA3315W automatically increments the
register address as it acknowledges each byte transfer.
Proximity sensor measurement is initiated by writing
appropriate values to the CONTROL register (0x17).
I2C Stop
50 − 200μs
PS Power
9μs
0 − 100μs
4MHz Osc On
~600μs
LED Burst
8 clks 12μs
Integration Time
Integration
100 − 150μs
Data Available
Figure 25. Proximity Sensor One−Shot Timing
(Repeat)
Interval
I2C Stop
PS Power
50 − 200μs
9μs
0 − 100μs
4MHz Osc On
LED Burst
~600μs
8 clks 12μs
Integration Time
Integration
100 − 150μs
Data Available
Figure 26. Proximity Sensor Repeat Timing
www.onsemi.com
22
NOA3315W
Ambient Light Sensor Operation
ALS measurement is initiated by writing appropriate
values to the CONTROL register (0x27). Sending an
I2C_STOP sequence at the end of the write signals the
internal state machines to wake up and begin the next
measurement cycle. Figure 27 and Figure 28 illustrate the
activity of key signals during an ambient light sensor
measurement cycle. The cycle begins by starting the
calibrated low frequency (LF) oscillator and powering up
the ambient light sensor. Next, the ambient light
measurement is made for the specified integration time and
the result is stored in the appropriate 16 bit ALS Data
registers. If in One−shot mode, the ALS is powered down
and awaits the next command. If in Repeat mode the ALS is
powered down, the interval is timed out and the operation
repeated. There are some special cases if the interval timer
is set to less than the integration time. For continuous mode,
the interval is set to either 0 or a value less than or equal to
the integration time and the ALS makes continuous
measurements with only a 5 ms delay between integration
times and the ALS remains powered up.
The NOA3315W supports dual ambient light sensors.
ALS1 has a photopic filter which closely mimics the spectral
response of the human eye. ALS2 has no filters. In many
respects ALS1 and ALS2 are similar, but each sensor can be
separately enabled or disabled and each ALS has its own
data registers. ALS1 and ALS2 share control, configuration
and operational details except that ALS2 is not compared to
the threshold registers and cannot create an interrupt. ALS1
and ALS2 support simultaneous concurrent measurements
allowing the two sensor values to be read out and used in
computations as desired.
ALS configuration is accomplished by writing the desired
configuration values to registers 0x02 and 0x20 through
0x27. Writing to configuration registers can be done with
either individual I2C byte−write commands or with one or
more I2C block write commands. Block write commands
specify the first register address and then write multiple
bytes of data in sequence. The NOA3315W automatically
increments the register address as it acknowledges each byte
transfer.
I2C Stop
150 − 200μs
ALS Power
5μs
50 − 100μs
LF OscOn
10ms
Integration
Integration Time
100 − 150μs
Data Available
Figure 27. ALS One−Shot Timing
Interval
(Repeat)
I2C Stop
ALS Power
0 − 25ms
5μs
50 − 100μs
LF Osc On
Integration
10ms
Integration Time
100 − 150μs
Data Available
NOTE:
If Interval is set to 0 (continuous) the time between integrations is 5 ms and power stays on.
If Interval is set to ≤ to the integration time (but not 0) the time between integrations is 10 ms and power stays on.
If Interval is set to > integration time the time between integrations is the interval and the ALS powers down.
Figure 28. ALS Repeat Timing
www.onsemi.com
23
NOA3315W
Example Programming Sequence
The following pseudo code configures the NOA3315W
proximity sensor in repeat mode with 50 ms wait time
between each measurement and then runs it in an interrupt
driven mode. When the controller receives an interrupt, the
interrupt determines if the interrupts was caused by the
proximity sensor and if so, reads the PS_Data from the
device, sets a flag and then waits for the main polling loop
to respond to the proximity change.
external subroutine I2C_Read_Byte (I2C_Address, Data_Address);
external subroutine I2C_Read_Block (I2C_Address, Data_Start_Address, Count, Memory_Map);
external subroutine I2C_Write_Byte (I2C_Address, Data_Address, Data);
external subroutine I2C_Write_Block (I2C_Address, Data_Start_Address, Count, Memory_Map);
subroutine Initialize_PS () {
MemBuf[0x02] = 0x02;
// INT_CONFIG assert interrupt until cleared
MemBuf[0x0F] = 0x09;
// PS_LED_CURRENT 50mA
MemBuf[0x10] = 0x8F;
// PS_TH_UP_MSB
MemBuf[0x11] = 0xFF;
// PS_TH_UP_LSB
MemBuf[0x12] = 0x70;
// PS_TH_LO_MSB
MemBuf[0x13] = 0x00;
// PS_TH_LO_LSB
MemBuf[0x14] = 0x11;
// PS_FILTER_CONFIG turn off filtering
MemBuf[0x15] = 0x09;
// PS_CONFIG ALS blanking enabled, 300us integration time
MemBuf[0x16] = 0x0A;
// PS_INTERVAL 50ms wait
MemBuf[0x17] = 0x02;
// PS_CONTROL enable continuous PS measurements
MemBuf[0x20] = 0xFF;
// ALS_TH_UP_MSB
MemBuf[0x21] = 0xFF;
// ALS_TH_UP_LSB
MemBuf[0x22] = 0x00;
// ALS_TH_LO_MSB
MemBuf[0x23] = 0x00;
// ALS_TH_LO_LSB
MemBuf[0x25] = 0x40;
// ALS_CONFIG ALS2 disabled, ALS1 enabled, max sensitivity, 50ms
integration time
MemBuf[0x26] = 0x00;
// ALS_INTERVAL continuous measurement mode
MemBuf[0x27] = 0x02;
// ALS_CONTROL enable continuous ALS measurements
I2C_Write_Block (I2CAddr, 0x02, 37, MemBuf);
}
subroutine I2C_Interupt_Handler () {
// Verify this is a PS interrupt
INT = I2C_Read_Byte (I2CAddr, 0x40);
if (INT == 0x11 || INT == 0x12) {
// Retrieve and store the PS data
PS_Data_MSB = I2C_Read_Byte (I2CAddr, 0x41);
PS_Data_LSB = I2C_Read_Byte (I2CAddr, 0x42);
NewPS = 0x01;
}
}
subroutine main_loop () {
I2CAddr = 0x37;
NewPS = 0x00;
Initialize_PS ();
loop {
// Do some other polling operations
if (NewPS == 0x01) {
NewPS = 0x00;
// Do some operations with PS_Data
}
}
}
www.onsemi.com
24
NOA3315W
Physical Location of Photodiode Sensors
The physical locations of the NOA3315W proximity sensor and ambient light sensor photodiodes are shown in Figure 29,
referenced to the lower left hand corner of the die.
60 um
LED
VDD
LED
GND
VSS
60 um
LED
VDD
VSS
Scribe Line
SCL
INT
SDA
SCL
INT
Scribe Line
1540 um
581.8 um
416.8 um
ALS2
PS
ALS1
840 um
517 um
416.9 um
LED
INT
VDD
441.9 um
LED
GND
VSS
SCL
LED
SDA
VDD
VSS
SCL
INT
Figure 29. Photodiode Locations
Table 30. BONDING PAD LOCATIONS
(Dimensions in mm measured from the lower left corner of the die to the middle of the bond pad) (Note 9)
Pad
Description
X
Y
Pad Size
139
58.4
75x75
VDD
Power supply
VSS
Ground
248.5
58.4
75x75
Ground for IR LED driver
895.5
54.5
75x75
LED
IR LED output
1483.5
65.6
75x75
INT
Interrupt output
1467.3
786
75x75
SDA
I2C data signal
554.9
786
75x75
SCL
I2C clock signal
114.25
786
75x75
LED_GND
9. Bond pad material is AL + 0.5% Cu
Table 31. MECHANICAL DIMENSIONS
Parameter
Symbol
Wafer thickness
Min
Typ
Max
Unit
700
725
750
mm
Wafer diameter
200
www.onsemi.com
25
mm
NOA3315W
ON Semiconductor and
are trademarks of Semiconductor Components Industries, LLC dba ON Semiconductor or its subsidiaries in the United States and/or other countries.
ON Semiconductor owns the rights to a number of patents, trademarks, copyrights, trade secrets, and other intellectual property. A listing of ON Semiconductor’s product/patent
coverage may be accessed at www.onsemi.com/site/pdf/Patent−Marking.pdf. ON Semiconductor reserves the right to make changes without further notice to any products herein.
ON Semiconductor makes no warranty, representation or guarantee regarding the suitability of its products for any particular purpose, nor does ON Semiconductor assume any liability
arising out of the application or use of any product or circuit, and specifically disclaims any and all liability, including without limitation special, consequential or incidental damages.
Buyer is responsible for its products and applications using ON Semiconductor products, including compliance with all laws, regulations and safety requirements or standards,
regardless of any support or applications information provided by ON Semiconductor. “Typical” parameters which may be provided in ON Semiconductor data sheets and/or
specifications can and do vary in different applications and actual performance may vary over time. All operating parameters, including “Typicals” must be validated for each customer
application by customer’s technical experts. ON Semiconductor does not convey any license under its patent rights nor the rights of others. ON Semiconductor products are not
designed, intended, or authorized for use as a critical component in life support systems or any FDA Class 3 medical devices or medical devices with a same or similar classification
in a foreign jurisdiction or any devices intended for implantation in the human body. Should Buyer purchase or use ON Semiconductor products for any such unintended or unauthorized
application, Buyer shall indemnify and hold ON Semiconductor and its officers, employees, subsidiaries, affiliates, and distributors harmless against all claims, costs, damages, and
expenses, and reasonable attorney fees arising out of, directly or indirectly, any claim of personal injury or death associated with such unintended or unauthorized use, even if such
claim alleges that ON Semiconductor was negligent regarding the design or manufacture of the part. ON Semiconductor is an Equal Opportunity/Affirmative Action Employer. This
literature is subject to all applicable copyright laws and is not for resale in any manner.
PUBLICATION ORDERING INFORMATION
LITERATURE FULFILLMENT:
Literature Distribution Center for ON Semiconductor
19521 E. 32nd Pkwy, Aurora, Colorado 80011 USA
Phone: 303−675−2175 or 800−344−3860 Toll Free USA/Canada
Fax: 303−675−2176 or 800−344−3867 Toll Free USA/Canada
Email: orderlit@onsemi.com
◊
N. American Technical Support: 800−282−9855 Toll Free
USA/Canada
Europe, Middle East and Africa Technical Support:
Phone: 421 33 790 2910
Japan Customer Focus Center
Phone: 81−3−5817−1050
www.onsemi.com
26
ON Semiconductor Website: www.onsemi.com
Order Literature: http://www.onsemi.com/orderlit
For additional information, please contact your local
Sales Representative
NOA3315W/D