ONSEMI NOA3301CUTAG

NOA3301
Digital Proximity Sensor
with Ambient Light Sensor
and Interrupt
Description
The NOA3301 combines an advanced digital proximity sensor and
LED driver with an ambient light sensor (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
NOA3301 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.
The NOA3301 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.
http://onsemi.com
8
1
CUDFN8
CU SUFFIX
CASE 505AF
PIN CONNECTIONS
VDD
1
8
SCL
VSS
2
7
SDA
LED_GND
3
6
NC
LED
4
5
INT
(Top View)
Features
 Proximity Sensor, LED driver and ALS in One Device
 Very Low Power Consumption
ORDERING INFORMATION
Stand- by Current 5 mA (monitoring I2C interface only,
VDD = 3 V)
 ALS Operational Current 50 mA
 Proximity Sensing Average Operational Current 100 mA
 Average LED Sink Current 75 mA

Device
Package
Shipping†
NOA3301CUTAG*
CUDFN8
(Pb- Free)
2500 /
Tape & Reel
†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
 Proximity Detection Distance Threshold I2C 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

Ambient Light Sensing
 ALS Senses Ambient Light and Provides a 16- bit

Output Count on the I2C Bus Directly Proportional to
the Ambient Light Intensity
 Semiconductor Components Industries, LLC, 2013
February, 2013 - Rev. 2
1
lux with 21- bit Effective Resolution (16- bit converter)
Continuously Programmable Integration Times
(6.25 ms, 12.5 ms, 25 ms to 800 ms)
Precision on- Chip Oscillator (counts equal 0.1 lux at
100 ms integration time)
Publication Order Number:
NOA3301/D
NOA3301
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
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

 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
Automatic power down after single measurement or
continuous measurements with programmable interval
time for both ALS and PS function
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


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
VDD_I2C
VDD
1 mF
NOA3301
MCU
ADC
INTB
DSP
INTB
SCL
SCL
SDA
hn
SDA
VDD
Reference
Diode
ALS
Photodiode
I2C Interface
&
Control
Osc
ADC
22 mF
IR LED
LED
Drive
DSP
hn
LED
Proximity
Photodiode
LED_GND
VSS
Figure 1. NOA3301 Application Block Diagram
Table 1. PIN FUNCTION DESCRIPTION
Pin
Pin Name
Description
1
VDD
Power pin.
2
VSS
Ground pin.
3
LED_GND
4
LED
IR LED output pin.
5
INT
Interrupt output pin, open- drain.
6
NC
Not connected.
7
SDA
Bi- directional data signal for communications with the I2C master.
8
SCL
External I2C clock supplied by the I2C master.
Ground pin for IR LED driver.
http://onsemi.com
2
1 mF
NOA3301
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
ESD Capability, Machine Model (Note 1)
ESDMM
200
V
Moisture Sensitivity Level
MSL
3
-
Lead Temperature Soldering (Note 2)
TSLD
260
C
Maximum Junction Temperature
Storage Temperature
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
VDD
2.3
Power supply voltage
Typ
Max
Unit
3.6
V
Power supply current, stand- by mode (VDD = 3.0 V)
IDDSTBY_3.0
5
mA
Power supply current, stand- by mode (VDD = 3.6 V)
IDDSTBY_3.6
10
mA
Power supply average current, ALS operating 100 ms
integration time and 500 ms intervals
IDDALS
50
Power supply average current, PS operating 300 ms
integration time and 100 ms intervals
IDDPS
100
ILED
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)
VDD_I2C
75
1.6
1.8
mA
mA
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
(INTB)
VOL
Input current of IO pin with an input voltage between 0.1 VDD
and 0.9 VDD
II
- 10
V
0.2 VDD_I2C
V
10
mA
Output low current (INTB)
IOL
3
-
mA
Operating free- air temperature range
TA
- 40
80
C
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.
http://onsemi.com
3
NOA3301
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 < TA < 80C, 10 pF < Cb < 100 pF) (See Note 4)
Parameter
LED pulse current
LED pulse current step size
Symbol
Min
ILED_pulse
5
ILED_pulse_step
Typ
Max
Unit
160
mA
5
mA
LED pulse current accuracy
ILED_acc
- 20
+20
%
Interval Timer Tolerance
Tolf_timer
- 35
+35
%
SCL clock frequency
fSCL_std
10
100
kHz
fSCL_fast
100
400
fSCL_hs
100
3400
THD;STA_std
4.0
-
tHD;STA_fast
0.6
-
tHD;STA_hs
0.160
-
Hold time for START condition. After this period,
the first clock pulse is generated.
Low period of SCL clock
High period of SCL clock
SDA Data hold time
SDA Data set- up time
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
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
-
Bus free time between STOP and START condition
mS
mS
mS
mS
nS
nS
nS
nS
nS
mS
mS
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.
http://onsemi.com
4
NOA3301
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 < TA < 80C, 10 pF < Cb < 100 pF) (See Note 4) (continued)
Symbol
Min
Max
Unit
Capacitive load for each bus line
(including all parasitic capacitance) (Note 6)
Parameter
Cb
10
Typ
100
pF
Noise margin at the low level
(for each connected device - including hysteresis)
VnL
0.1 VDD
-
V
Noise margin at the high level
(for each connected device - including hysteresis)
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.3 V, TA = 25C)
Parameter
Symbol
Min
Typ
Max
Unit
AMBIENT LIGHT SENSOR
Spectral response, peak (Note 7)
λp
560
nm
Spectral response, low - 3 dB
λc_low
510
nm
Spectral response, high - 3 dB
λc_high
610
nm
Dynamic range
DRALS
Maximum Illumination (ALS operational but saturated)
Ev_Max
Resolution, Counts per lux, Tint = 800 ms
CR800
80
counts
Resolution, Counts per lux, Tint = 100 ms
CR100
10
counts
Resolution, Counts per lux, Tint = 6.25 ms
CR6.25
6.25
counts
Illuminance responsivity, green 560 nm LED,
Ev = 100 lux, Tint = 100 ms
Rv_g100
1000
counts
Illuminance responsivity, green 560 nm LED,
Ev = 1000 lux, Tint = 100 ms
Rv_g1000
10000
counts
Dark current, Ev = 0 lux, Tint = 100 ms
Rvd
0.05
0
0
52k
lux
120k
lux
3
counts
PROXIMITY SENSOR
Detection range, Tint = 1200 ms, ILED = 100 mA, 860 nm IR
LED (OSRAM SFH4650), White Reflector
(RGB = 220, 224, 223), SNR = 6:1
DPS_1200_WHITE
100
mm
Detection range, Tint = 600 ms, ILED = 100 mA, 860 nm IR
LED (OSRAM SFH4650), White Reflector
(RGB = 220, 224, 223), SNR = 6:1
DPS_600_WHITE
85
mm
Detection range, Tint = 300 ms, ILED = 100 mA, 860 nm IR
LED (OSRAM SFH4650), White Reflector
(RGB = 220, 224, 223), SNR = 6:1
DPS_300_WHITE
60
mm
Detection range, Tint = 150 ms, ILED = 100 mA, 860 nm IR
LED (OSRAM SFH4650), White Reflector
(RGB = 220, 224, 223), SNR = 6:1
DPS_150_WHITE
35
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
70
mm
Detection range, Tint = 1200 ms, ILED = 100 mA, 860 nm IR
LED (OSRAM SFH4650), Black Reflector
(RGB = 16, 16, 15), SNR = 6:1
DPS_1200_BLACK
35
mm
Saturation power level
PDMAX
1.0
mW/cm2
Measurement resolution, Tint = 150 ms
MR150
12
bits
Measurement resolution, Tint = 300 ms
MR300
13
bits
Measurement resolution, Tint = 600 ms
MR600
14
bits
Measurement resolution, Tint = 1200 ms
MR1200
15
bits
7. Refer to Figure 4 for more information on spectral response.
http://onsemi.com
5
NOA3301
Figure 2. AC Characteristics, Standard and Fast Modes
Figure 3. AC Characteristics, High Speed Mode
http://onsemi.com
6
NOA3301
TYPICAL CHARACTERISTICS
Fluorescent
(5000K)
0.9
0.8
ALS
0.7
Human Eye
White LED
(5600K)
0.6
0.5
Fluorescent
(2700K)
0.4
0.3
0.2
Incandescent
(2850K)
700
800
900
0
1000
0.5
1.0
WAVELENGTH (nm)
- 50
- 60
- 70
- 80
- 90
10
20
30
- 30
40
- 40
50
- 50
60
- 60
70
- 70
80
- 80
90
- 100
- 90
100
120
140
30
40
50
60
70
80
90
100
Θ
6
7
8
110
- 120
SIDE VIEW
-90o
130
- 140
- 150
- 160
4
150
3
SIDE VIEW
120
- 130
90o
2
160
20
- 110
1
- 170 180 170
10
Θ
130
- 140
- 150
- 160
0
- 100
110
- 130
- 10
1.0
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
0.0
5
- 110
- 120
- 20
TOP VIEW
Figure 6. ALS Response to White Light vs. Angle
6
- 40
0
- 10
1.0
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
0.0
Figure 5. ALS Light Source Dependency
(Normalized to Fluorescent Light)
5
- 20
2.0
RATIO
Figure 4. ALS Spectral Response (Normalized)
- 30
1.5
-90 o
90o
140
- 170 180 170
160
150
4
600
7
500
3
400
8
200 300
2
0.1
0
1
OUTPUT CURRENT (Normalized)
1.0
TOP VIEW
Figure 7. ALS Response to IR vs. Angle
1200
8K
7K
1000
ALS COUNTS
ALS COUNTS
6K
5K
4K
3K
800
600
400
2K
200
1K
0
0
100
200
300
400
500
600
700
0
800
0
10
20
30
40
50
60
70
80
90 100 110
Ev (lux)
Ev (lux)
Figure 8. ALS Linearity 0- 700 lux
Figure 9. ALS Linearity 0- 100 lux
http://onsemi.com
7
NOA3301
TYPICAL CHARACTERISTICS
120
25
20
80
ALS COUNTS
ALS COUNTS
100
60
40
0
1
2
3
4
6
5
7
8
10
9
0
11
1.5
2.0
Figure 10. ALS Linearity 0- 10 lux
Figure 11. ALS Linearity 0- 2 lux
PROXIMITY SENSOR VALUE
20mA
60mA
35 K
100mA
30 K
160mA
25 K
20 K
15 K
10 K
5K
0
20
40
60
80
100
120
140
2.5
60mA
100mA
8K
160mA
6K
4K
2K
0
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))
5000
20mA
10 K
60mA
100mA
8K
160mA
6K
4K
2K
0
20mA
10 K
0
160
PROXIMITY SENSOR VALUE
PROXIMITY SENSOR VALUE
1.0
12 K
12 K
PROXIMITY SENSOR VALUE
0.5
Ev (lux)
40 K
0
0
Ev (lux)
45 K
0
10
5
20
0
15
20
40
60
80
100
120
140
160
4500
20mA
4000
60mA
100mA
3500
160mA
3000
2500
2000
1500
1000
500
0
0
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
NOA3301
TYPICAL CHARACTERISTICS
- 30
- 40
No Ambient
- 50
- 60
- 70
- 80
- 90
50
60
70
80
90
100
- 110
110
- 120
2K
120
- 130
0
50
100
150
200
- 140
- 150
- 160
250
REFLECTOR DISTANCE (mm)
160
150
-90
90 o
TOP VIEW
300
100
90
250
80
70
200
IDD (mA)
ALS+PS
60
50
40
PS
30
20
150
PS
50
ALS
2.0
ALS+PS
100
2.5
3.0
3.5
0
4.0
ALS
2.0
2.5
3.0
3.5
4.0
VDD (V)
VDD (V)
Figure 18. Supply Current vs. Supply Voltage
ALS TINT = 100 ms, TR = 500 ms
PS TINT = 300 ms, TR = 100 ms
Figure 19. Supply Current vs. Supply Voltage
ALS TINT = 100 ms, TR = 500 ms
PS TINT = 1200 ms, TR = 50 ms
1.2
ALS RESPONSE (Normalized)
IDD (mA)
- 170 180 170
140
o
Figure 17. PS Response to IR vs. Angle
Figure 16. PS Ambient Rejection
TINT = 300 ms, ILED = 100 mA, White Reflector
(RGB = 220, 224, 223)
10
0
SIDE VIEW
130
1
0
Θ
6
- 100
4K
5
6K
40
4
10K lux CFL (3000K)
30
7
10K lux Incandescent (2700K)
8K
20
3
50K lux Halogen (3300K)
10
8
10 K
- 10
0
- 20 1.0
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
0.0
2
PROXIMITY SENSOR VALUE
12 K
1.0
0.8
0.6
100 Lux
50 Lux
20 Lux
10 Lux
5 Lux
0.4
0.2
0
0
20
40
60
80
TEMPERATURE (C)
Figure 20. ALS Response vs. Temperature
http://onsemi.com
9
100
NOA3301
DESCRIPTION OF OPERATION
Proximity Sensor Architecture
I L = C nt∕I k ⋅ T int
NOA3301 combines an advanced digital proximity
sensor, LED driver, ambient light sensor 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 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
PS_DATA register where it can be read by the I2C interface.
Where:
Ik = 73 (for fluorescent light)
Ik = 106 (for incandescent light)
Hence the intensity of the ambient fluorescent light (in lux):
I L = C nt∕73 ⋅ T int
I L = C nt∕106 ⋅ T int
For example let:
Cnt = 7300
Tint = 100 mS
Intensity of ambient fluorescent light, IL(in lux):
I L = 7300∕73 ⋅ 100 mS
I2C Interface
(eq. 4)
The NOA3301 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.
Figure 21 shows an I2C write operation. Write
transactions begin with the master sending an I2C start
sequence followed by the seven bit slave address (NOA3301
= 0x37) and the write(0) command bit. The NOA3301 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 NOA3301 will acknowledge reception
with an ACK. Finally, the master will begin sending 8 bit
data segment(s) to be written to the NOA3301 register bank.
The NOA3301 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).
Register
Address
Device
Address
A[6:0] WRITE ACK
Start
Condition
(eq. 3)
IL = 1000 lux
The ambient light sensor contained in the NOA3301
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.
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
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).
7
(eq. 2)
and the intensity of the ambient incandescent light (in lux):
Ambient Light Sensor Architecture
011 0111 0
0x6E
(eq. 1)
0
D[7:0]
Register
Data
ACK
0000 0110 0
8
D[7:0]
8
Figure 21. I2C Write Command
http://onsemi.com
10
ACK
0000 0000 0
Stop
Condition
NOA3301
Figure 22 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.
Device
Address
Register
Address
A[6:0] WRITE
011 0111 0
0x6E
ACK
0
D[7:0]
Register
Data
ACK
0000 0110 0
7
8
D[7:0]
ACK
0000 0000 0
8
Stop
Condition
Start
Condition
Device
Address
Register
Data [A]
A[6:0] READ
011 0111 1
0x6F
ACK
0
D[7:0]
Register
Data [A+1]
ACK
bbbb bbbb 0
7
8
D[7:0] NACK
bbbb bbbb 1
8
Start
Condition
Stop
Condition
Figure 22. I2C Read Command
The NOA3301 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 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
NOA3301 I2C register bank.
After the NOA3301 sends an ACK, the master sends the
register address as if it were going to be written to. The
NOA3301 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 NOA3301 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.
http://onsemi.com
11
NOA3301
NOA3301 Data Registers
NOA3301 operation is observed and controlled by internal data registers read from and written to via the external I2C
interface. Registers are listed in Table 6. Default values are set on initial power up or via a software reset command (register
0x01).
The I2C slave address of the NOA3301 is 0x37.
Table 6. NOA3301 DATA REGISTERS
Address
Type
Name
Description
0x00
R
PART_ID
0x01
RW
RESET
0x02
RW
INT_CONFIG
0x0F
RW
PS_LED_CURRENT
0x10
RW
PS_TH_UP_MSB
PS Interrupt upper threshold, most significant bits
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
RESERVED
0x25
RW
ALS_CONFIG
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
ALS_DATA_MSB
ALS measurement data, most significant bits
0x44
R
ALS_DATA_LSB
ALS measurement data, least significant bits
NOA3301 part number and revision IDs
Software reset control
Interrupt pin functional control settings
PS LED pulse current (5, 10, , 160 mA)
PS Filter configuration
PS Integration time configuration
Reserved
ALS Integration time configuration
Interrupt status
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
7
6
5
4
Part number ID
Field
Field
Bit
Default
Part number ID
7:4
1001
Revision ID
3:0
NA
3
2
1
Revision ID
Description
Part number identification
Silicon revision number
http://onsemi.com
12
0
NOA3301
RESET Register (0x01)
Software reset is controlled by this register. Setting this
register followed by an I2C_STOP sequence will
immediately reset the NOA3301 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
7
6
5
4
3
2
1
NA
Field
Field
NA
SW_reset
0
SW_reset
Bit
Default
Description
7:1
XXXXXXX
Don’t care
0
0
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
7
6
5
4
3
2
NA
Field
Field
NA
auto_clear
polarity
Bit
Default
Description
7:2
XXXXXX
Don’t care
1
1
0
0
1
0
auto_clear
polarity
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_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
7
5
4
3
NA
Field
Field
6
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)
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
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.
http://onsemi.com
13
NOA3301
Table 11. PS_TH_UP REGISTERS (0x10 – 0x11)
Bit
7
6
5
4
3
2
1
0
1
0
PS_TH_UP_MSB(0x10), PS_TH_UP_LSB(0x11)
Field
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 12. PS_TH_LO REGISTERS (0x12 – 0x13)
Bit
7
6
5
4
3
2
PS_TH_LO_MSB(0x12), PS_TH_LO_LSB(0x13)
Field
Field
Bit
Default
Description
PS_TH_LO_MSB
7:0
0x00
Lower threshold for proximity detection, MSB
PS_TH_LO_LSB
7:0
0x00
Lower threshold for proximity detection, LSB
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
7
6
5
4
3
2
filter_N
Field
Field
1
0
filter_M
Bit
Default
filter_N
7:4
0001
Filter N
Description
filter_M
3:0
0001
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
NA
Field
Field
NA
5
4
3
2
hyst_enable
hyst_trigger
NA
NA
Bit
Default
7:6
XX
hyst_enable
5
0
hyst_trigger
4
0
NA
3:2
X
integration_time
1:0
01
Description
Don’t Care
0
Disables hysteresis
1
Enables hysteresis
0
Lower threshold with hysteresis
1
Upper threshold with hysteresis
Don’t Care
00
150 ms integration time
01
300 ms integration time
10
600 ms integration time
11
1200 ms integration time
http://onsemi.com
14
1
0
integration_time
NOA3301
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
7
6
5
4
3
2
1
0
interval
Field
Field
Interval
Bit
Default
7:0
0x0A
Description
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 IDDSTBY parameter. These automatic
power management features eliminate the need for power
down pins or special power down instructions.
Table 16. PS_CONTROL REGISTER (0x17)
Bit
7
6
5
4
3
2
NA
Field
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)
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.
With hysteresis enabled, threshold settings take on a
different meaning. If the ALS_hyst_trig is set, the
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.
Table 17. ALS_TH_UP REGISTERS (0x20 – 0x21)
Bit
7
6
5
4
3
2
ALS_TH_UP_MSB(0x20), ALS_TH_UP_LSB(0x21)
Field
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
http://onsemi.com
15
1
0
NOA3301
Table 18. ALS_TH_LO REGISTERS (0x22 – 0x23)
Bit
7
6
5
4
3
2
1
0
ALS_TH_LO_MSB(0x22), ALS_TH_LO_LSB(0x23)
Field
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_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
NA
Field
Field
5
4
3
hyst_enable
hyst_trigger
reserved
Bit
Default
7:6
XX
hyst_enable
5
0
hyst_trigger
4
0
reserved
3
0
2:0
100
NA
integration_time
2
1
0
integration_time
Description
Don’t Care
0
Disables hysteresis
1
Enables hysteresis
0
Lower threshold with hysteresis
1
Upper threshold with hysteresis
Must be set to 0
000
6.25 ms integration time
001
12.5 ms integration time
010
25 ms integration time
011
50 ms integration time
100
100 ms integration time
101
200 ms integration time
110
400 ms integration time
111
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
7
5
4
3
NA
Field
Field
interval
6
2
1
0
interval
Bit
Default
5:0
0x0A
Description
Interval time between ALS measurement cycles
ALS_CONTROL Register (0x27)
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
The ALS_CONTROL register is used to control the
functional mode and commencement of ambient light
sensor measurements. The ambient light sensor can be
http://onsemi.com
16
NOA3301
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.
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.
Table 21. ALS_CONTROL REGISTER (0x27)
Bit
7
6
5
4
3
2
NA
Field
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 22. INTERRUPT REGISTER (0x40)
Bit
7
6
5
NA
Field
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 23. PS_DATA REGISTERS (0x41 – 0x42)
Bit
7
6
5
4
3
2
PS_DATA_MSB(0x41), PS_DATA_LSB(0x42)
Field
Field
Bit
Default
Description
PS_DATA_MSB
7:0
0x00
Proximity measurement data, MSB
PS_DATA_LSB
7:0
0x00
Proximity measurement data, LSB
http://onsemi.com
17
1
0
NOA3301
ALS_DATA Registers (0x43 – 0x44)
The ALS_DATA registers store results from completed
ALS measurements. When an I2C read operation begins, the
current ALS_DATA registers are locked until the operation
is complete (I2C_STOP received) to prevent possible data
corruption from a concurrent measurement cycle.
Table 24. ALS_DATA REGISTERS (0x43 – 0x44)
Bit
7
6
5
4
3
2
ALS_DATA_MSB(0x43), ALS_DATA_LSB(0x44)
Field
Bit
Default
ALS_DATA_MSB
Field
7:0
0x00
ALS measurement data, MSB
Description
ALS_DATA_LSB
7:0
0x00
ALS measurement data, LSB
http://onsemi.com
18
1
0
NOA3301
Proximity Sensor Operation
NOA3313 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 NOA3313 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).
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.
I2C Stop
50- 200 ms
PS Power
9ms
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
I2C Stop
PS Power
50- 200 ms
9ms
4MHz Osc On
LED Burst
Integration
(Repeat)
0- 100 ms
~600 ms
8 clks 12 ms
Integration Time
100- 150 ms
Data Available
Figure 24. Proximity Sensor Repeat Timing
http://onsemi.com
19
NOA3301
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
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 NOA3301 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
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.
I2C Stop
ALS Power
150- 200ms
5ms
50- 100ms
4MHz Osc On
10ms
Integration
Integration Time
100- 150ms
Data Available
Figure 25. ALS One- Shot Timing
Interval
I2C Stop
ALS Power
0- 25ms
5ms
50- 100ms
4MHz Osc On
Integration
10ms
Integration Time
Data Available
Figure 26. ALS Repeat Timing
NOTE:
(Repeat)
100- 150ms
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
NOA3301
Example Programming Sequence
The following pseudo code configures the NOA3301 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] = 0x01;
// PS_CONFIG 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] = 0x04;
// ALS_CONFIG 100ms 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
}
}
}
http://onsemi.com
21
NOA3301
Physical Location of Photodiode Sensors
The physical locations of the NOA3301 proximity sensor and ambient light sensor photodiodes are shown in Figure 27.
PS
ALS
0.10 mm
x
0.10 mm
Pin 1
1.1 mm
0.15 mm
x
0.15 mm
0.88 mm
1.06 mm
Figure 27. Photodiode Locations
http://onsemi.com
22
NOA3301
PACKAGE DIMENSIONS
CUDFN8, 2x2, 0.5P
CASE 505AF- 01
ISSUE O
D
PIN ONE
REFERENCE
2X
0.10 C
2X
0.10 C
NOTES:
1. DIMENSIONING AND TOLERANCING PER ASME
Y14.5M, 1994.
2. CONTROLLING DIMENSION: MILLIMETERS.
3. DIMENSION b APPLIES TO PLATED TERMINAL AND
IS MEASURED BETWEEN 0.10 AND 0.20mm FROM
THE TERMINAL TIP.
4. COPLANARITY APPLIES TO THE EXPOSED PAD AS
WELL AS THE TERMINALS.
A B
E
D1
TOP VIEW
DIM
A
A1
A3
b
D
D1
D2
E
E2
e
K
L
M
END VIEW
M
DETAIL A
0.10 C
A3
A
A1
0.08 C
NOTE 4
DETAIL A C
SIDE VIEW
D2
1
8X
L
SEATING
PLANE
MILLIMETERS
MAX
MIN
0.55
0.65
0.00
0.05
0.20 REF
0.15
0.25
2.00 BSC
1.80 BSC
1.50
1.70
2.00 BSC
0.80
1.00
0.50 BSC
0.20
--0.25
0.35
--10 
RECOMMENDED
MOUNTING FOOTPRINT*
8X
1.70
4
0.52
E2
1.00
K
8
5
e
e/2
8X
2.30
b
0.10 C A
0.05 C
B
1
NOTE 3
BOTTOM VIEW
0.50
PITCH
8X
0.27
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:
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: [email protected]
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
http://onsemi.com
23
ON Semiconductor Website: www.onsemi.com
Order Literature: http://www.onsemi.com/orderlit
For additional information, please contact your local
Sales Representative
NOA3301/D