NOA3302CUTAG [ONSEMI]
Ambient Light Sensor + Proximity Sensor;![NOA3302CUTAG](http://pdffile.icpdf.com/pdf2/p00361/img/icpdf/NOA3302CUTAG_2209727_icpdf.jpg)
型号: | NOA3302CUTAG |
厂家: | ![]() |
描述: | Ambient Light Sensor + Proximity Sensor |
文件: | 总24页 (文件大小:377K) |
中文: | 中文翻译 | 下载: | 下载PDF数据表文档文件 |
![](http://public.icpdf.com/style/img/ads.jpg)
ON Semiconductor
Is Now
To learn more about onsemi™, please visit our website at
www.onsemi.com
onsemi andꢀꢀꢀꢀꢀꢀꢀand other names, marks, and brands are registered and/or common law trademarks of Semiconductor Components Industries, LLC dba “onsemi” or its affiliates and/or
subsidiaries in the United States and/or other countries. onsemi owns the rights to a number of patents, trademarks, copyrights, trade secrets, and other intellectual property. A listing of onsemi
product/patent coverage may be accessed at www.onsemi.com/site/pdf/Patent-Marking.pdf. onsemi reserves the right to make changes at any time to any products or information herein, without
notice. The information herein is provided “as-is” and onsemi makes no warranty, representation or guarantee regarding the accuracy of the information, product features, availability, functionality,
or suitability of its products for any particular purpose, nor does onsemi 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 onsemi products, including compliance with all laws,
regulations and safety requirements or standards, regardless of any support or applications information provided by onsemi. “Typical” parameters which may be provided in onsemi 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. onsemi does not convey any license under any of its intellectual property rights nor the rights of others. onsemi 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 onsemi products for any such unintended or unauthorized application, Buyer shall indemnify and holdonsemi 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 onsemi was negligent regarding the design or manufacture of the part. onsemi is an Equal Opportunity/Affirmative
Action Employer. This literature is subject to all applicable copyright laws and is not for resale in any manner. Other names and brands may be claimed as the property of others.
NOA3302
Digital Proximity Sensor
with Ambient Light Sensor
and Interrupt
Description
http://onsemi.com
The NOA3302 combines an advanced digital proximity sensor and
LED driver with an ambient light sensor (ALS) and tri−mode I C
2
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
NOA3302 enables a proximity sensor system with a 32:1
programmable LED drive current range and a 30 dB overall proximity
detection threshold range. The photopic light response, dark current
compensation and high sensitivity of the ambient light sensor
eliminates inaccurate light level detection, insuring proper backlight
control even in the presence of dark cover glass.
1
CWDFN8
CU SUFFIX
CASE 505AJ
PIN CONNECTIONS
SCL
SDA
NC
1
2
3
4
8
7
6
5
VDD
VSS
The NOA3302 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.
LED_GND
LED
INT
(Top View)
Features
• Proximity Sensor, LED driver and ALS in One Device
• Very Low Power Consumption
ORDERING INFORMATION
†
Device
NOA3302CUTAG*
Package
Shipping
2500 /
Tape & Reel
2
♦ Stand−by Current 5 mA (monitoring I C interface only,
CWDFN8
V
DD
= 3 V)
(Pb−Free)
♦ ALS Operational Current 50 mA
♦ Proximity Sensing Average Operational Current 100 mA
♦ Average LED Sink Current 75 mA
†For information on tape and reel specifications,
including part orientation and tape sizes, please
refer to our Tape and Reel Packaging Specifications
Brochure, BRD8011/D.
*Temperature Range: −40°C to 80°C.
Proximity Sensing
2
• Proximity Detection Distance Threshold I C Programmable with
12−bit Resolution and Four integration Time Ranges
(15−bit effective resolution)
• Effective for Measuring Distances up to 100 mm and
Beyond
• Excellent IR and Ambient Light Rejection Including
Sunlight (up to 50k lux) and CFL Interference
• Programmable LED Drive Current from 5 mA to
160 mA in 5 mA steps, No External Resistor Required
• Photopic Spectral Response Nearly Matches Human Eye
• Dynamic Dark Current Compensation
• Linear Response Over the Full Operating Range
• Senses Intensity of Ambient Light from 0.05 lux to 52k
lux with 21−bit Effective Resolution (16−bit converter)
• Continuously Programmable Integration Times
(6.25 ms, 12.5 ms, 25 ms… to 800 ms)
Ambient Light Sensing
• Precision on−Chip Oscillator (counts equal 0.1 lux at
• ALS Senses Ambient Light and Provides a 16−bit
100 ms integration time)
2
Output Count on the I C Bus Directly Proportional to
the Ambient Light Intensity
©
Semiconductor Components Industries, LLC, 2013
1
Publication Order Number:
March, 2013 − Rev. 1
NOA3302/D
NOA3302
Additional Features
♦ Fast mode – 400 kHz
♦ High speed mode – 3.4 MHz
• No external components required except the IR LED
and power supply Decoupling Caps
• Programmable interrupt function including independent
upper and lower threshold detection or threshold based
hysteresis for proximity and or ALS
• Proximity persistence feature reduces interrupts by
providing hysteresis to filter fast transients such as
camera flash
• 8−lead CUDFN 2.0 x 2.0 x 0.6 mm clear package
• These Devices are Pb−Free, Halogen Free/BFR Free
and are RoHS Compliant
• Automatic power down after single measurement or
continuous measurements with programmable interval
time for both ALS and PS function
Applications
• Senses human presence in terms of distance and senses
ambient light conditions, saving display power in
applications such as:
• Wide operating voltage range (2.3 V to 3.6 V)
• Wide operating temperature range (−40°C to 80°C)
♦ Smart phones, mobile internet devices, MP3 players,
GPS
♦ Mobile device displays and backlit keypads
2
• I C serial communication port
♦ Standard mode – 100 kHz
VDD_I2C
VDD
1 mF
NOA3302
MCU
INTB
SCL
SDA
INTB
SCL
SDA
ADC
DSP
Osc
hn
VDD
2
I C Interface
&
22 mF
1 mF
Reference
Diode
Control
ALS
Photodiode
IR LED
LED
Drive
ADC
DSP
LED
hn
Proximity
Photodiode
LED_GND
VSS
Figure 1. NOA3302 Application Block Diagram
Table 1. PIN FUNCTION DESCRIPTION
Pin
1
Pin Name
VDD
Description
Power pin.
2
VSS
Ground pin.
3
LED_GND
LED
Ground pin for IR LED driver.
IR LED output pin.
Interrupt output pin, open−drain.
Not connected.
4
5
INT
6
NC
2
7
SDA
Bi−directional data signal for communications with the I C master.
2
2
8
SCL
External I C clock supplied by the I C master.
http://onsemi.com
2
NOA3302
Table 2. ABSOLUTE MAXIMUM RATINGS
Rating
Symbol
VDD
Value
Unit
V
Input power supply
4.0
Input voltage range
V
in
−0.3 to VDD + 0.2
V
Output voltage range
V
out
−0.3 to VDD + 0.2
V
Maximum Junction Temperature
Storage Temperature
T
100
−40 to 80
2
°C
°C
kV
V
J(max)
T
STG
ESD Capability, Human Body Model (Note 1)
ESD Capability, Charged Device Model (Note 1)
ESD Capability, Machine Model (Note 1)
Moisture Sensitivity Level
ESD
ESD
HBM
500
CDM
ESD
200
V
MM
MSL
3
−
Lead Temperature Soldering (Note 2)
T
260
°C
SLD
Stresses exceeding Maximum Ratings may damage the device. Maximum Ratings are stress ratings only. Functional operation above the
Recommended Operating Conditions is not implied. Extended exposure to stresses above the Recommended Operating Conditions may affect
device reliability.
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
ESD Machine Model tested per EIA/JESD22−A115
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
Symbol
Min
Typ
Max
3.6
5
Unit
V
Power supply voltage
VDD
2.3
Power supply current, stand−by mode (VDD = 3.0 V)
Power supply current, stand−by mode (VDD = 3.6 V)
IDD
mA
mA
STBY_3.0
STBY_3.6
IDD
10
50
Power supply average current, ALS operating 100 ms
integration time and 500 ms intervals
IDD
ALS
mA
mA
Power supply average current, PS operating 300 ms
integration time and 100 ms intervals
IDD
100
PS
LED average sink current, PS operating at 300 ms integration
time and 100 ms intervals and LED current set at 50 mA
I
75
mA
LED
2
I C signal voltage (Note 3)
VDD_I2C
1.6
1.8
2.0
V
V
V
V
V
Low level input voltage (VDD_I2C related input levels)
High level input voltage (VDD_I2C related input levels)
Hysteresis of Schmitt trigger inputs
V
IL
−0.3
0.3 VDD_I2C
VDD_I2C + 0.2
V
IH
0.7 VDD_I2C
0.1 VDD_I2C
V
hys
Low level output voltage (open drain) at 3 mA sink current
(INTB)
V
OL
0.2 VDD_I2C
10
Input current of IO pin with an input voltage between 0.1 VDD
and 0.9 VDD
I
I
−10
mA
Output low current (INTB)
I
OL
3
−
mA
Operating free−air temperature range
T
A
−40
80
°C
2
3. The I C 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.
http://onsemi.com
3
NOA3302
Table 4. ELECTRICAL CHARACTERISTICS (Unless otherwise specified, these specifications apply over 2.3 V < VDD < 3.3 V,
1.7 V < VDD_I2C < 1.9 V, −40°C < T < 80°C, 10 pF < Cb < 100 pF) (See Note 4)
A
Parameter
Symbol
Min
Typ
Max
Unit
mA
mA
%
LED pulse current
I
5
160
LED_pulse
LED pulse current step size
LED pulse current accuracy
Interval Timer Tolerance
SCL clock frequency
I
5
LED_pulse_step
I
−20
−35
10
+20
+35
100
400
3400
−
LED_acc
Tol
%
f_timer
kHz
f
SCL_std
f
100
100
4.0
SCL_fast
f
SCL_hs
Hold time for START condition. After this period,
the first clock pulse is generated.
mS
mS
mS
mS
nS
nS
nS
nS
nS
mS
mS
T
HD;STA_std
HD;STA_fast
t
0.6
−
t
0.160
4.7
−
HD;STA_hs
Low period of SCL clock
t
−
LOW_std
t
1.3
−
LOW_fast
t
0.160
4.0
−
LOW_hs
High period of SCL clock
t
−
HIGH_std
HIGH_fast
t
0.6
−
t
0.060
0
−
HIGH_hs
HD;DAT_d_std
SDA Data hold time
t
3.45
0.9
0.070
−
t
0
HD;DAT_d_fast
t
0
HD;DAT_d_hs
SDA Data set−up time
t
250
100
10
SU;DAT_std
t
−
SU;DAT_fast
t
SU;DAT_hs
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
t
20
1000
300
40
300
300
40
300
300
80
300
300
80
−
r_INPUT_std
r_INPUT_fast
t
20
t
10
r_INPUT_hs
t
20
f_INPUT_std
t
20
f_INPUT_fast
t
10
f_INPUT_hs
t
20
r_OUT_std
t
20 + 0.1 Cb
10
r_OUT_fast
t
r_OUT_hs
t
20
f_OUT_std
t
20 + 0.1 Cb
10
f_OUT_fast
t
f_OUT_hs
t
4.0
SU;STO_std
t
0.6
−
SU;STO_fast
t
0.160
4.7
−
SU;STO_hs
Bus free time between STOP and START condition
t
−
BUF_std
t
1.3
−
BUF_fast
t
0.160
−
BUF_hs
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 R Max and min pull−up resistor
p.
values are determined as follows: R
= t /(0.8473 x Cb) and R
r (max)
= (Vdd_I2C – V )/I .
ol(max) ol
p(max)
p(min)
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.
http://onsemi.com
4
NOA3302
Table 4. ELECTRICAL CHARACTERISTICS (Unless otherwise specified, these specifications apply over 2.3 V < VDD < 3.3 V,
1.7 V < VDD_I2C < 1.9 V, −40°C < T < 80°C, 10 pF < Cb < 100 pF) (See Note 4) (continued)
A
Parameter
Symbol
Min
Typ
Max
Unit
Capacitive load for each bus line
(including all parasitic capacitance) (Note 6)
C
b
10
100
pF
Noise margin at the low level
V
0.1 VDD
0.2 VDD
−
−
V
V
nL
(for each connected device − including hysteresis)
Noise margin at the high level
(for each connected device − including hysteresis)
V
nH
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 R Max and min pull−up resistor
p.
values are determined as follows: R
= t /(0.8473 x Cb) and R
r (max)
= (Vdd_I2C – V )/I .
ol(max) ol
p(max)
p(min)
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.3 V, T = 25°C)
A
Parameter
AMBIENT LIGHT SENSOR
Symbol
Min
Typ
Max
Unit
Spectral response, peak (Note 7)
Spectral response, low −3 dB
l
560
510
610
nm
nm
p
l
c_low
Spectral response, high −3 dB
l
nm
c_high
Dynamic range
DR
0.05
52k
lux
ALS
Maximum Illumination (ALS operational but saturated)
Resolution, Counts per lux, Tint = 800 ms
Resolution, Counts per lux, Tint = 100 ms
Resolution, Counts per lux, Tint = 6.25 ms
E
120k
lux
v_Max
CR
80
10
counts
counts
counts
counts
800
100
CR
CR
6.25
1000
6.25
Illuminance responsivity, green 560 nm LED,
Ev = 100 lux, Tint = 100 ms
R
v_g100
Illuminance responsivity, green 560 nm LED,
Ev = 1000 lux, Tint = 100 ms
R
10000
0
counts
counts
v_g1000
Dark current, Ev = 0 lux, Tint = 100 ms
R
vd
0
3
PROXIMITY SENSOR
Detection range, Tint = 1200 ms, I
LED (OSRAM SFH4650), White Reflector
(RGB = 220, 224, 223), SNR = 6:1
= 100 mA, 860 nm IR
D
100
85
60
35
70
35
mm
mm
mm
mm
mm
mm
LED
PS_1200_WHITE
Detection range, Tint = 600 ms, I
= 100 mA, 860 nm IR
D
LED
PS_600_WHITE
PS_300_WHITE
PS_150_WHITE
PS_1200_GREY
PS_1200_BLACK
LED (OSRAM SFH4650), White Reflector
(RGB = 220, 224, 223), SNR = 6:1
Detection range, Tint = 300 ms, I
= 100 mA, 860 nm IR
D
LED
LED (OSRAM SFH4650), White Reflector
(RGB = 220, 224, 223), SNR = 6:1
Detection range, Tint = 150 ms, I
= 100 mA, 860 nm IR
D
LED
LED (OSRAM SFH4650), White Reflector
(RGB = 220, 224, 223), SNR = 6:1
Detection range, Tint = 1200 ms, I
= 100 mA, 860 nm IR
D
LED
LED (OSRAM SFH4650), Grey Reflector
(RGB = 162, 162, 160), SNR = 6:1
Detection range, Tint = 1200 ms, I
= 100 mA, 860 nm IR
D
LED
LED (OSRAM SFH4650), Black Reflector
(RGB = 16, 16, 15), SNR = 6:1
2
Saturation power level
P
1.0
12
13
14
15
mW/cm
bits
DMAX
Measurement resolution, Tint = 150 ms
Measurement resolution, Tint = 300 ms
Measurement resolution, Tint = 600 ms
Measurement resolution, Tint = 1200 ms
7. Refer to Figure 4 for more information on spectral response.
MR
MR
MR
150
bits
300
bits
600
MR
bits
1200
http://onsemi.com
5
NOA3302
Figure 2. AC Characteristics, Standard and Fast Modes
Figure 3. AC Characteristics, High Speed Mode
http://onsemi.com
6
NOA3302
TYPICAL CHARACTERISTICS
1.0
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
Fluorescent
(5000K)
ALS
Human Eye
White LED
(5600K)
Fluorescent
(2700K)
Incandescent
(2850K)
0.1
0
200 300
400
500
600
700 800
900 1000
0
0.5
1.0
1.5
2.0
WAVELENGTH (nm)
RATIO
Figure 4. ALS Spectral Response (Normalized)
Figure 5. ALS Light Source Dependency
(Normalized to Fluorescent Light)
0
−10
1.0
10
20
−20
−10
0
10
30
−20
−30
20
1.0
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
0.0
−30
30
40
−40
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
0.0
40
−40
−50
−60
−70
−80
50
−50
−60
−70
−80
50
60
70
80
60
70
80
−90
−100
−110
90
−90
−100
−110
90
100
100
Q
Q
110
120
130
110
120
130
−120
−130
−140
SIDE VIEW
SIDE VIEW
−120
−130
−140
−150
−90o
90o
−90o
90o
140
−150
−160
−170
140
150
160
150
170
180
−160
160
TOP VIEW
TOP VIEW
−170
170
180
Figure 6. ALS Response to White Light vs. Angle
Figure 7. ALS Response to IR vs. Angle
8 K
7 K
6 K
5 K
4 K
3 K
2 K
1200
1000
800
600
400
200
0
1 K
0
0
100
200
300 400
Ev (lux)
500
600
700 800
0
10 20 30 40 50 60 70 80 90 100 110
Ev (lux)
Figure 8. ALS Linearity 0−700 lux
Figure 9. ALS Linearity 0−100 lux
http://onsemi.com
7
NOA3302
TYPICAL CHARACTERISTICS
120
100
80
25
20
15
10
60
40
5
0
20
0
0
0
0
1
2
3
4
5
6
7
8
9
10 11
0
0
0
0.5
1.0
1.5
2.0
2.5
Ev (lux)
Ev (lux)
Figure 10. ALS Linearity 0−10 lux
Figure 11. ALS Linearity 0−2 lux
45 K
40 K
35 K
30 K
25 K
20 K
15 K
10 K
12 K
10 K
8 K
20mA
60mA
20mA
60mA
100mA
160mA
100mA
160mA
6 K
4 K
2 K
0
5 K
0
20
40
60
80
100
120
140
160
50
100
150
200
250
DISTANCE (mm)
DISTANCE (mm)
Figure 12. PS Response vs. Distance and LED
Current (1200 ms Integration Time, Grey
Reflector (RGB = 162, 162, 160))
Figure 13. PS Response vs. Distance and LED
Current (300 ms Integration Time, White
Reflector (RGB = 220, 224, 223))
12 K
10 K
8 K
5000
4500
4000
3500
3000
2500
2000
1500
1000
20mA
20mA
60mA
60mA
100mA
160mA
100mA
160mA
6 K
4 K
2 K
0
500
0
20
40
60
80
100
120 140 160
20
40
60
80
100
DISTANCE (mm)
DISTANCE (mm)
Figure 14. PS Response vs. Distance and LED
Current (300 ms Integration Time, Grey
Reflector (RGB = 162, 162, 160))
Figure 15. PS Response vs. Distance and LED
Current (300 ms Integration Time, Black
Reflector (RGB = 16, 16, 15))
http://onsemi.com
8
NOA3302
TYPICAL CHARACTERISTICS
−10
0
10
−20 1.0
20
12 K
10 K
−30
−40
30
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
0.0
40
No Ambient
−50
50
50K lux Halogen (3300K)
10K lux Incandescent (2700K)
10K lux CFL (3000K)
−60
−70
−80
60
70
80
8 K
6 K
4 K
−90
90
100
−100
−110
Q
110
120
130
140
−120
−130
−140
−150
SIDE VIEW
2 K
0
−90o
90o
150
0
50
100
150
200
250
−160
160
−170
170
180
TOP VIEW
REFLECTOR DISTANCE (mm)
Figure 16. PS Ambient Rejection
TINT = 300 ms, ILED = 100 mA, White Reflector
(RGB = 220, 224, 223)
Figure 17. PS Response to IR vs. Angle
100
90
80
70
60
50
40
30
20
300
250
200
150
100
ALS+PS
PS
ALS+PS
PS
50
0
ALS
ALS
10
0
2.0
2.5
3.0
(V)
3.5
4.0
2.0
2.5
3.0
(V)
3.5
4.0
V
V
DD
DD
Figure 18. Supply Current vs. Supply Voltage
ALS TINT = 100 ms, TR = 500 ms
Figure 19. Supply Current vs. Supply Voltage
ALS TINT = 100 ms, TR = 500 ms
PS TINT = 300 ms, TR = 100 ms
PS TINT = 1200 ms, TR = 50 ms
1.2
1.0
0.8
0.6
100 Lux
50 Lux
0.4
20 Lux
10 Lux
5 Lux
0.2
0
0
20
40
60
80
100
TEMPERATURE (°C)
Figure 20. ALS Response vs. Temperature
http://onsemi.com
9
NOA3302
DESCRIPTION OF OPERATION
Proximity Sensor Architecture
NOA3302 combines an advanced digital proximity
sensor, LED driver, ambient light sensor and a tri−mode I C
ǒ
intǓ
IL + Cntń Ik @ T
(eq. 1)
2
Where:
I = 73 (for fluorescent light)
I = 106 (for incandescent light)
k
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 13−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
k
Hence the intensity of the ambient fluorescent light (in lux):
ǒ
intǓ
IL + Cntń 73 @ T
(eq. 2)
and the intensity of the ambient incandescent light (in lux):
ǒ
intǓ
IL + Cntń 106 @ T
(eq. 3)
For example let:
C
nt
= 7300
T
int
= 100 mS
Intensity of ambient fluorescent light, I (in lux):
L
2
ǒ
Ǔ
PS_DATA register where it can be read by the I C interface.
IL + 7300ń 73 @ 100 mS
(eq. 4)
I = 1000 lux
L
Ambient Light Sensor Architecture
The ambient light sensor contained in the NOA3302
employs a second 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.
I2C Interface
2
The NOA3302 acts as an I C 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.
2
Figure 21 shows an I C write operation. Write
transactions begin with the master sending an I C start
The ambient light signal detected by the photo diode is
converted to digital signal using a variable slope integrating
ADC with a resolution of 16−bits, unsigned. The ADC value
is stored in the ALS_DATA register where it can be read by
2
sequence followed by the seven bit slave address (NOA3302
= 0x37) and the write(0) command bit. The NOA3302 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 NOA3302 will acknowledge reception
with an ACK. Finally, the master will begin sending 8 bit
data segment(s) to be written to the NOA3302 register bank.
The NOA3302 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
2
the I C interface.
Equation 1 shows the relationship of output counts C as
nt
a function of integration constant I , integration time T (in
k
int
seconds) and the intensity of the ambient light, I (in lux),
L
at room temperature (25°C).
2
2
an I C STOP or with another I C START (repeated START).
Register
Address
Register
Data
Device
Address
A[6:0] WRITE ACK
D[7:0] ACK
D[7:0] ACK
011 0111
0
0
0000 0110
8
0
0000 0000
8
0
0x6E
7
Start
Condition
Stop
Condition
Figure 21. I2C Write Command
http://onsemi.com
10
NOA3302
2
Figure 22 shows an I C 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.
Device
Address
Register
Address
Register
Data
A[6:0] WRITE ACK
D[7:0] ACK
D[7:0] ACK
011 0111
0
0
0000 0110
8
0
0000 0000
8
0
0x6E
7
Stop
Condition
Start
Condition
Device
Address
Register
Data [A]
Register
Data [A+1]
A[6:0] READ ACK
011 0111
0x6F
D[7:0] ACK
D[7:0] NACK
1
0
bbbb bbbb
0
bbbb bbbb 1
7
8
8
Start
Condition
Stop
Condition
Figure 22. I2C Read Command
2
After the NOA3302 sends an ACK, the master sends the
register address as if it were going to be written to. The
NOA3302 will acknowledge this as well. Next, instead of
The NOA3302 also supports I C high−speed mode. The
transition from standard or fast mode to high−speed mode is
2
initiated by the I C master. A special reserve device address
is called for and any device that recognizes this and supports
high speed mode immediately changes the performance
characteristics of its I/O cells in preparation for I C
transactions at the I C high speed data protocol rates. From
2
sending data as in a write, the master will re−issue an I C
START (repeated start) and again send the slave address and
this time the read(1) command bit. The NOA3302 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
2
2
2
then on, standard I C commands may be issued by the
master, including repeated START commands. When the
2
2
I C master terminates any I C 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
2
I C STOP.
2
NOA3302 I C register bank.
http://onsemi.com
11
NOA3302
NOA3302 Data Registers
2
NOA3302 operation is observed and controlled by internal data registers read from and written to via the external I C
interface. Registers are listed in Table 6. Default values are set on initial power up or via a software reset command (register
0x01).
2
The I C slave address of the NOA3302 is 0x37.
Table 6. NOA3302 DATA REGISTERS
Address
0x00
0x01
0x02
0x0F
0x10
0x11
0x12
0x13
0x14
0x15
0x16
0x17
0x20
0x21
0x22
0x23
0x24
0x25
0x26
0x27
0x40
0x41
0x42
0x43
0x44
Type
R
Name
Description
NOA3302 part number and revision IDs
PART_ID
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
R
RESET
Software reset control
INT_CONFIG
Interrupt pin functional control settings
PS LED pulse current (5, 10, …, 160 mA)
PS Interrupt upper threshold, most significant bits
PS Interrupt upper threshold, least significant bits
PS Interrupt lower threshold, most significant bits
PS Interrupt lower threshold, least significant bits
PS Filter configuration
PS_LED_CURRENT
PS_TH_UP_MSB
PS_TH_UP_LSB
PS_TH_LO_MSB
PS_TH_LO_LSB
PS_FILTER_CONFIG
PS_CONFIG
PS Integration time configuration
PS_INTERVAL
PS_CONTROL
ALS_TH_UP_MSB
ALS_TH_UP_LSB
ALS_TH_LO_MSB
ALS_TH_LO_LSB
RESERVED
PS Interval time configuration
PS Operation mode control
ALS Interrupt upper threshold, most significant bits
ALS Interrupt upper threshold, least significant bits
ALS Interrupt lower threshold, most significant bits
ALS Interrupt lower threshold, least significant bits
Reserved
ALS_CONFIG
ALS Integration time configuration
ALS_INTERVAL
ALS_CONTROL
INTERRUPT
ALS Interval time configuration
ALS Operation mode control
Interrupt status
R
PS_DATA_MSB
PS_DATA_LSB
ALS_DATA_MSB
ALS_DATA_LSB
PS measurement data, most significant bits
PS measurement data, least significant bits
ALS measurement data, most significant bits
ALS measurement data, least significant bits
R
R
R
PART_ID Register (0x00)
The PART_ID register provides part and revision identification. These values are hard−wired at the factory and can not be
modified.
Table 7. PART_ID REGISTER (0x00)
Bit
Field
7
6
5
4
3
2
1
0
Part number ID
Revision ID
Field
Bit
7:4
3:0
Default
1001
NA
Description
Part number ID
Revision ID
Part number identification
Silicon revision number
http://onsemi.com
12
NOA3302
RESET Register (0x01)
Software reset is controlled by this register. Setting this
register followed by an I2C_STOP sequence will
immediately reset the NOA3302 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 8. RESET REGISTER (0x01)
Bit
Field
7
6
5
4
3
2
1
0
NA
SW_reset
Field
Bit
7:1
0
Default
XXXXXXX
0
Description
NA
Don’t care
SW_reset
Software reset to startup state
INT_CONFIG Register (0x02)
INT_CONFIG register controls the external interrupt pin function.
Table 9. INT_CONFIG REGISTER (0x02)
Bit
Field
7
6
5
4
3
2
1
0
NA
auto_clear
polarity
Field
Bit
7:2
1
Default
XXXXXX
1
Description
NA
Don’t care
auto_clear
0
When an interrupt is triggered, the interrupt pin remains asserted until cleared
by an I C read of INTERRUPT register
2
1
0
1
Interrupt pin state is updated after each measurement
Interrupt pin active low when asserted
polarity
0
0
Interrupt pin active high when asserted
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 a baseline
5 mA plus a binary weighted value of the LED_Current
register times 5 mA, for an effective range of 5 mA to 160
mA in steps of 5 mA. The default setting is 50 mA.
Table 10. PS_LED_CURRENT REGISTER (0x0F)
Bit
Field
7
6
5
4
3
2
1
0
NA
LED_Current
Field
Bit
7:5
4:0
Default
XXX
Description
NA
LED_Current
Don’t care
01001
Defines current sink during LED modulation. Binary weighted value times 5 mA plus 5 mA.
PS_TH Registers (0x10 – 0x13)
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.
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.
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
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.
http://onsemi.com
13
NOA3302
Table 11. PS_TH_UP REGISTERS (0x10 – 0x11)
Bit
Field
7
6
5
4
3
2
1
0
PS_TH_UP_MSB(0x10), PS_TH_UP_LSB(0x11)
Field
Bit
7:0
7:0
Default
0xFF
Description
Upper threshold for proximity detection, MSB
Upper threshold for proximity detection, LSB
PS_TH_UP_MSB
PS_TH_UP_LSB
0xFF
Table 12. PS_TH_LO REGISTERS (0x12 – 0x13)
Bit
Field
7
6
5
4
3
2
1
0
PS_TH_LO_MSB(0x12), PS_TH_LO_LSB(0x13)
Field
Bit
7:0
7:0
Default
0x00
Description
Lower threshold for proximity detection, MSB
Lower threshold for proximity detection, LSB
PS_TH_LO_MSB
PS_TH_LO_LSB
0x00
PS_FILTER_CONFIG Register (0x14)
of N measurements must exceed threshold settings in order
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. (Note a setting of 0 is
interpreted the same as a 1).
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
Table 13. PS_FILTER_CONFIG REGISTER (0x14)
Bit
Field
7
6
5
4
3
2
1
0
filter_N
Default
filter_M
Field
Bit
Description
filter_N
filter_M
7:4
3:0
0001
0001
Filter N
Filter M
PS_CONFIG Register (0x15)
sensitivity of the detector and directly affects the power
consumed by the LED. The default is 300 ms integration
period.
Hyst_enable and hyst_trigger work with the PS_TH
(threshold) settings to provide jitter control of the INT
function.
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
Table 14. PS_CONFIG REGISTER (0x15)
Bit
7
6
5
4
3
2
1
0
Field
NA
hyst_enable
hyst_trigger
NA
NA
integration_time
Field
Bit
7:6
5
Default
Description
NA
XX
0
Don’t Care
hyst_enable
hyst_trigger
0
1
0
1
Disables hysteresis
Enables hysteresis
4
0
Lower threshold with hysteresis
Upper threshold with hysteresis
NA
3:2
1:0
X
Don’t Care
integration_time
01
00
01
10
11
150 ms integration time
300 ms integration time
600 ms integration time
1200 ms integration time
http://onsemi.com
14
NOA3302
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 5 in milliseconds with
the special case that the register value 0x00 specifies 5 ms.
The range is therefore 5 ms to 1.28 s. The default startup
value is 0x0A (50 ms).
Table 15. PS_INTERVAL REGISTER (0x16)
Bit
Field
7
6
5
4
3
2
1
0
interval
Field
Interval
Bit
Default
0x0A
Description
7:0
0x01 to 0xFF
Interval time between measurement cycles. Binary weighted value
times 5 ms plus a 5 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 IDD
parameter. These automatic
STBY
power management features eliminate the need for power
down pins or special power down instructions.
Table 16. PS_CONTROL REGISTER (0x17)
Bit
Field
7
6
5
4
3
2
1
0
NA
PS_Repeat
PS_OneShot
Field
Bit
Default
Description
NA
7:2
1
XXXXXX
Don’t care
Initiates new measurements at PS_Interval rates
PS_Repeat
0
0
PS_OneShot
0
Triggers proximity sensing measurement. In single shot mode this bit clears
itself after cycle completion.
ALS_TH Registers (0x20 – 0x23)
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_DATA registers. Measured ALS_DATA values
outside this window will set an interrupt according to the
INT_CONFIG register settings.
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 enabled, threshold settings take on a
different meaning. If the ALS_hyst_trig is set, the
Table 17. ALS_TH_UP REGISTERS (0x20 – 0x21)
Bit
Field
7
6
5
4
3
2
1
0
ALS_TH_UP_MSB(0x20), ALS_TH_UP_LSB(0x21)
Field
Bit
7:0
7:0
Default
0xFF
Description
Upper threshold for ALS detection, MSB
Upper threshold for ALS detection, LSB
ALS_TH_UP_MSB
ALS_TH_UP_LSB
0xFF
http://onsemi.com
15
NOA3302
Table 18. ALS_TH_LO REGISTERS (0x22 – 0x23)
Bit
Field
7
6
5
4
3
2
1
0
ALS_TH_LO_MSB(0x22), ALS_TH_LO_LSB(0x23)
Field
Bit
7:0
7:0
Default
0x00
Description
Lower threshold for ALS detection, MSB
Lower threshold for ALS detection, LSB
ALS_TH_LO_MSB
ALS_TH_LO_LSB
0x00
ALS_CONFIG Register (0x25)
The ALS_CONFIG register controls the ambient light
measurement sensitivity by specifying the integration time.
Hyst_enable and hyst_trigger work with the ALS_TH
(threshold) settings to provide jitter control of the INT
function.
Integration times below 50 ms are not recommended for
normal operation as 50/60 Hz rejection will be impacted.
They may be used in testing or if 50/60 Hz rejection is not
a concern.
Table 19. ALS_CONFIG REGISTER (0x25)
Bit
7
6
5
4
3
2
1
0
Field
NA
hyst_enable
hyst_trigger
reserved
integration_time
Field
Bit
7:6
5
Default
Description
NA
XX
0
Don’t Care
hyst_enable
hyst_trigger
0
1
0
1
Disables hysteresis
Enables hysteresis
4
0
Lower threshold with hysteresis
Upper threshold with hysteresis
reserved
3
0
Must be set to 0
integration_time
2:0
100
000
001
010
011
100
101
110
111
6.25 ms integration time
12.5 ms integration time
25 ms integration time
50 ms integration time
100 ms integration time
200 ms integration time
400 ms integration time
800 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).
Table 20. ALS_INTERVAL REGISTER (0x26)
Bit
Field
7
6
5
4
3
2
1
0
NA
interval
Field
Bit
Default
Description
interval
5:0
0x0A
Interval time between ALS measurement cycles
http://onsemi.com
16
NOA3302
ALS_CONTROL Register (0x27)
each measurement. In both cases the quiescent current is less
than the IDD 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.
STBY
Both single shot and repeat modes consume a minimum
of power by immediately turning off sensor circuitry after
Table 21. ALS_CONTROL REGISTER (0x27)
Bit
Field
7
6
5
4
3
2
1
0
NA
ALS_Repeat
ALS_OneShot
Field
Bit
7:2
1
Default
Description
NA
XXXXXX
Don’t care
Initiates new measurements at ALS_Interval rates
ALS_Repeat
0
0
ALS_OneShot
0
Triggers ALS sensing measurement. In single shot mode this bit clears itself after cycle
completion.
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 22. INTERRUPT REGISTER (0x40)
Bit
7
6
5
4
3
2
1
0
Field
NA
INT
ALS_intH
ALS_intL
PS_intH
PS_intL
Field
Bit
7:5
4
Default
Description
NA
XXX
Don’t care
INT
0
0
0
0
0
Status of external interrupt pin (1 is asserted)
Interrupt caused by ALS exceeding maximum
Interrupt caused by ALS falling below the minimum
Interrupt caused by PS exceeding maximum
Interrupt caused by PS falling below the minimum
ALS_intH
ALS_intL
PS_intH
PS_intL
3
2
1
0
PS_DATA Registers (0x41 – 0x42)
The PS_DATA registers store results from completed
proximity measurements. When an I C 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.
2
Table 23. PS_DATA REGISTERS (0x41 – 0x42)
Bit
Field
7
6
5
4
3
2
1
0
PS_DATA_MSB(0x41), PS_DATA_LSB(0x42)
Field
Bit
7:0
7:0
Default
0x00
Description
Proximity measurement data, MSB
PS_DATA_MSB
PS_DATA_LSB
0x00
Proximity measurement data, LSB
http://onsemi.com
17
NOA3302
ALS_DATA Registers (0x43 – 0x44)
The ALS_DATA registers store results from completed
ALS measurements. When an I C read operation begins, the
is complete (I2C_STOP received) to prevent possible data
corruption from a concurrent measurement cycle.
2
current ALS_DATA registers are locked until the operation
Table 24. ALS_DATA REGISTERS (0x43 – 0x44)
Bit
Field
7
6
5
4
3
2
1
0
ALS_DATA_MSB(0x43), ALS_DATA_LSB(0x44)
Field
Bit
7:0
7:0
Default
0x00
Description
ALS measurement data, MSB
ALS_DATA_MSB
ALS_DATA_LSB
0x00
ALS measurement data, LSB
http://onsemi.com
18
NOA3302
Proximity Sensor Operation
NOA3302 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.
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. Figures 23 and 24 illustrate the
activity of key signals during a proximity sensor
measurement cycle. The cycle begins by starting the
precision oscillator and powering up and calibrating 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 = 300 ms), the total measurement cycle will
be less than 2 ms.
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
2
individual I C byte-write commands or with one or more
2
I C block write commands. Block write commands specify
the first register address and then write multiple bytes of data
in sequence. The NOA3302 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 ms
9ms
PS Power
0−100 ms
4MHz Osc On
~600 ms
LED Burst
8 clks 12 ms
Integration Time
Integration
100−150 ms
Data Available
Figure 23. Proximity Sensor One−Shot Timing
Interval
(Repeat)
I2C Stop
50−200 ms
PS Power
9ms
4MHz Osc On
0−100 ms
~600 ms
LED Burst
8 clks 12 ms
Integration
Integration Time
100−150 ms
Data Available
Figure 24. Proximity Sensor Repeat Timing
http://onsemi.com
19
NOA3302
Ambient Light Sensor Operation
The ALS configuration is accomplished by writing the
desired configuration values to registers 0x02 and 0x20
through 0x27. Writing to configuration registers can be done
cycle. The cycle begins by starting the precision 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 16 bit ALS Data register. 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 0 and the ALS makes continuous measurements with only
a 5 ms delay between integration times and the ALS remains
powered up. If the interval is set equal to or less than the
integration time (but not to 0), there is a 10 ms time between
integrations and the ALS remains powered up.
2
with either individual I C byte−write commands or with one
2
or more I C block write commands. Block write commands
specify the first register address and then write multiple
bytes of data in sequence. The NOA3302 automatically
increments the register address as it acknowledges each byte
transfer.
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. Figures 25 and 26 illustrate the activity
of key signals during an ambient light sensor measurement
I2C Stop
150−200ms
5ms
ALS Power
50−100ms
4MHz Osc On
10ms
Integration Time
Integration
100−150ms
Data Available
Figure 25. ALS One−Shot Timing
Interval
(Repeat)
I2C Stop
0−25ms
5ms
ALS Power
50−100ms
4MHz Osc On
Integration
10ms
Integration Time
Data Available
100−150ms
Figure 26. ALS Repeat Timing
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.
http://onsemi.com
20
NOA3302
Example Programming Sequence
The following pseudo code configures the NOA3302 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;
MemBuf[0x0F] = 0x09;
MemBuf[0x10] = 0x8F;
MemBuf[0x11] = 0xFF;
MemBuf[0x12] = 0x70;
MemBuf[0x13] = 0x00;
MemBuf[0x14] = 0x11;
MemBuf[0x15] = 0x01;
MemBuf[0x16] = 0x0A;
MemBuf[0x17] = 0x02;
MemBuf[0x20] = 0xFF;
MemBuf[0x21] = 0xFF;
MemBuf[0x22] = 0x00;
MemBuf[0x23] = 0x00;
MemBuf[0x25] = 0x04;
MemBuf[0x26] = 0x00;
MemBuf[0x27] = 0x02;
// INT_CONFIG assert interrupt until cleared
// PS_LED_CURRENT 50mA
// PS_TH_UP_MSB
// PS_TH_UP_LSB
// PS_TH_LO_MSB
// PS_TH_LO_LSB
// PS_FILTER_CONFIG turn off filtering
// PS_CONFIG 300us integration time
// PS_INTERVAL 50ms wait
// PS_CONTROL enable continuous PS measurements
// ALS_TH_UP_MSB
// ALS_TH_UP_LSB
// ALS_TH_LO_MSB
// ALS_TH_LO_LSB
// ALS_CONFIG 100ms integration time
// ALS_INTERVAL continuous measurement mode
// 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
}
}
}
http://onsemi.com
21
NOA3302
Physical Location of Photodiode Sensors
The physical locations of the NOA3302 proximity sensor and ambient light sensor photodiodes are shown in Figure 27.
PS
ALS
0.15 mm
x
0.15 mm
0.10 mm
x
0.10 mm
0.88 mm
1.06 mm
Figure 27. Photodiode Locations
http://onsemi.com
22
NOA3302
PACKAGE DIMENSIONS
CWDFN8, 2x2, 0.5P
CASE 505AJ
ISSUE O
NOTES:
2X
0.10 C
1. DIMENSIONING AND TOLERANCING PER
ASME Y14.5M, 1994.
A B
D
2. CONTROLLING DIMENSION: MILLIMETERS.
3. DIMENSION b APPLIES TO PLATED
TERMINAL AND IS MEASURED BETWEEN
0.10 AND 0.20 MM FROM THE TERMINAL TIP.
4. COPLANARITY APPLIES TO THE EXPOSED
PAD AS WELL AS THE TERMINALS.
E
MILLIMETERS
DIM MIN
MAX
0.70
0.05
PIN ONE
REFERENCE
A
A1
A3
b
0.60
0.00
0.20 REF
2X
0.10 C
TOP VIEW
0.15
0.25
A
D
D2
E
2.00 BSC
0.05
C
1.45
1.70
A3
2.00 BSC
E2
e
K
0.75
0.50 BSC
0.15
0.20
1.00
0.08 C
−−−
0.40
L
A1
NOTE 4
SEATING
PLANE
C
SIDE VIEW
D2
8X L
RECOMMENDED
MOUNTING FOOTPRINT*
8X
1
8
4
1.70
0.52
E2
5
K
8X
b
e
e/2
0.10
C
C
A B
1.00
2.30
0.05
NOTE 3
BOTTOM VIEW
1
8X
0.27
0.50
PITCH
DIMENSIONS: MILLIMETERS
*For additional information on our Pb−Free strategy and soldering
details, please download the ON Semiconductor Soldering and
Mounting Techniques Reference Manual, SOLDERRM/D.
ON Semiconductor and
are registered trademarks of Semiconductor Components Industries, LLC (SCILLC). SCILLC owns the rights to a number of patents, trademarks,
copyrights, trade secrets, and other intellectual property. A listing of SCILLC’s product/patent coverage may be accessed at www.onsemi.com/site/pdf/Patent−Marking.pdf. SCILLC
reserves the right to make changes without further notice to any products herein. SCILLC makes no warranty, representation or guarantee regarding the suitability of its products for any
particular purpose, nor does SCILLC 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. “Typical” parameters which may be provided in SCILLC 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. SCILLC
does not convey any license under its patent rights nor the rights of others. SCILLC products are not designed, intended, or authorized for use as components in systems intended for
surgical implant into the body, or other applications intended to support or sustain life, or for any other application in which the failure of the SCILLC product could create a situation where
personal injury or death may occur. Should Buyer purchase or use SCILLC products for any such unintended or unauthorized application, Buyer shall indemnify and hold SCILLC 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 SCILLC was negligent regarding the design or manufacture
of the part. SCILLC 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:
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
ON Semiconductor Website: www.onsemi.com
Order Literature: http://www.onsemi.com/orderlit
Literature Distribution Center for ON Semiconductor
P.O. Box 5163, Denver, Colorado 80217 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
For additional information, please contact your local
Sales Representative
NOA3302/D
相关型号:
©2020 ICPDF网 联系我们和版权申明