STK3311-X
Ambient Light Sensor and Proximity Sensor with
Built-in IR LED
Preliminary Datasheet
Version - 0.9.2
2016/01/25
STK3311-X REV 0.9.2
1.
OVERVIEW
Description
The STK3311-X is an integrated ambient and infrared
2
light to digital converter with a built-in IR LED and I C
interface. This device provides not only ambient light
sensing to allow robust backlight/display brightness
control but also infrared sensing to allow proximity
estimation featured with interrupt function.
For ambient light sensing, the STK3311-X incorporates
a photodiode, timing controller and ADC in a single chip.
The excellent spectral response is designed to be closeto human eye. The STK3311-X is suitable for detecting a
wide range of light intensity environment.
For proximity sensing, the STK3311-X also incorporates
a photodiode, timing controller and ADC in the same
chip. The spectral response of STK3311-X is optimized
for wavelength 940nm infrared light. The STK3311-X
provides programmable duty setting to drive IR LED and
employs a noise cancellation scheme to highly reject
unwanted ambient IR noise.
The proximity sensor is optimized so that the black card
at 0-cm can be detected. Please contact with sensortek
for further application solution.
The
STK3311-X
has
excellent
temperature
compensation, robust on-chip refresh rate setting
without external components. Software shutdown mode
control is provided for power saving application. The
STK3311-X operating voltage range is 1.7V to 3.6V.
940nm LED for STK3311-X.
Ambient Light Sensor
Convert ambient light intensity to 16-bit digital data
format
3rd generation ambient light sensor which closes to
human-eye response and suppress IR portion
–
Read the Illuminance directly; unlike
conventional solution calculated from two
diodes’ data
Flexible digital settings
–
Integration time : 0.2ms~6400ms
Flexible interrupt setting
–
Interrupt while out-of- window
–
Persistence : 1 / 4 times
IR sensing mode
General
2
Fully digital control with I C interface
2
–
1.7 ~ 3.6V I C interface
Low power design
–
Standby mode
–
Wait mode
Time-multiplexing for sensing
VDD wide operation voltage : 1.7~3.6V
Excellent temperature compensation: -40 to 85°C
Available package options: OLGA
– STK3311-X : 3.94x2.36x1.35(mm)
Lead-free package (RoHS compliant)
Applications
Mobile Phone, Smart-phone, PDA
Feature
Integrated ambient light sensor, proximity sensor
and infrared LED in one package.
Proximity Sensor
16 bits resolution for proximity detection
Built-in LED driver with flexible setting
–
LED turn-on time : 16 steps IT x 64 duty cycle
options
–
LED current : 12.5 / 25 / 50 / 100 mA
Flexible interrupt setting
–
Several interrupt modes meet application
requirements.
–
Flag modes are included.
–
Interrupt persistence : 1 / 4 times
Low noise design
Ambient IR noise cancellation
–
Immunity to 50Hz/60Hz fluorescent light
flicker
www.sensortek.com.tw
1
@copyright 2016 Sensortek Technology Corp.
STK3311-X REV 0.9.2
www.sensortek.com.tw
2
I2C Interface
FUNCTION BLOCK
T-CON
2.
@copyright 2016 Sensortek Technology Corp.
STK3311-X REV 0.9.2
3.
PINOUT DIAGRAM
VDD
8
1
SDA
Detector
SCL
7
2
INT
GND
6
3
LDR
LEDA
5
4
NC
IR Emitter
STK3311-X
Top View
4.
Pin No.
Pin Name
PIN DESCRIPTION
Dir.
Pin Function
2
1
SDA
B
I C serial data line. (Open Drain)
2
/INT
O
Interrupt pin, LO for interrupt alarming. (Open Drain)
3
LDR
I
IR LED driver pin connecting to the cathode of the external IR LED.
2
The sink current of the IR LED driver can be programmed through I C or the external
resistor.
4
NC
5
LEDA
I
6
GND
GND
7
SCL
I
8
VDD
PWR
No Connect.
Anode of the embedded IR LED, connect to power.
Ground. The thermal pad is also connected to the GND pin.
2
I C serial clock line.
Power supply: 1.7V to 3.6V.
Direction denotation:
O
I
PWR
www.sensortek.com.tw
Output
Input
Power
GND
B
NC
3
Ground
Bi-direction
Not Connect
@copyright 2016 Sensortek Technology Corp.
STK3311-X REV 0.9.2
5.
ELECTRICAL SPECIFICATIONS
Absolute Maximum Ratings
Symbol
Parameter
Min.
Typ.
Max.
Unit
VDD
Supply voltage
-0.3
—
3.8
V
VLEDA
Voltage of LED’s anode
-0.3
—
4.7
V
VLDR
Voltage of LDR
3.8
V
Ta
Operation temperature
-40
—
85
°C
Ts
Storage temperature
-40
—
85
°C
Min.
Typ.
Max.
Unit
1.7
—
3.6
V
2.4
—
4.6
V
NOTE: All voltages are measured with respect to GND
Recommended Operating Conditions
Symbol
VDD
VLEDA
Parameter
Supply voltage
Voltage of LED’s anode
2
fI2C
Clock frequency of I C
—
—
400
KHz
Ta
Operation temperature
-40
—
85
°C
NOTE: All voltages are measured with respect to GND
Symbol
Parameter
Max.
Unit
ESD
Electrostatic discharge protection
2 (HBM)
200 (MM)
100 (Latch Up)
kV
V
mA
NOTE: All voltages are measured with respect to GND
5.1
Electrical and Optical Characteristics
VDD = VLED = 2.8V, under room temperature 25°C (unl ess otherwise noted)
Symbol
Parameter
Operation Characteristics
IALS
ALS only supply current
IPS
PS only supply current
IWAIT
Supply current at wait state
ISD
Shutdown current
VIH
Logic high, I2C
2
VIL
Logic low, I C
ALS Characteristics
Peak sensitivity wavelength for ALS
λp1
ALSFSCNT
Full scale ALS counts
ALSDARK
ALS dark offset
ALSSENSE
ALS sensing tolerance
www.sensortek.com.tw
Condition
Note1,2
Note1,2
Note1,2
Note1,2
Note6
Note7
Min.
Typ.
90
100
29
0.2
1.3
—
Max.
Unit
1
VDD
0.4
µA
µA
µA
µA
V
V
65535
3
±10
nm
counts
counts
%
550
Note2,3,4
Note2,3
4
0
@copyright 2016 Sensortek Technology Corp.
STK3311-X REV 0.9.2
Proximity Characteristics
High sensitivity wavelength range
λp2
for PS
PSFSCNT
Full scale PS counts
800
1000
nm
65535
counts
IRDR_LED[1:0]
Note5
ILEDSINK
00
01
10
11
LED sink current
12.5
25
50
100
mA
mA
mA
mA
steps
LEDDUTY
LED duty adjust steps
64
Note 1 : No LED operation.
Note 2 : GAIN_ALS[1:0] = 2’b11, .IT_ALS[3:0] = 4’b1001, GAIN_PS[1:0] = 2’b11, .IT_PS[3:0] = 4’b0001.
Note 3 : White LED parallel light source.
Note 4 : Eambient = 0 Lux.
Note 5 : The voltage of LDR pin is fixed at 1V.
2
Note 6 : I C logical high voltage level is specified as worst-case condition when all of the recommended operation supply
voltages (VDD) are taken into consideration. The logical high level is different when different supply voltage is
applied.
2
Note 7 : I C logical low voltage level is specified as worst-case condition when all of the recommended operation supply
voltages (VDD) are taken into consideration. The logical low level is different when different supply voltage is
applied.
5.2
Timing Chart
Characteristics of the SDA and SCL I/O
Symbol
Parameter
fSCLK
SCL clock frequency
Hold time after (repeated) start condition. After
tHDSTA
this period, the first clock is generated
tLOW
LOW period of the SCL clock
tHIGH
HIGH period of the SCL clock
tSUSTA
Set-up time for a repeated START condition
tHDDAT
Data hold time
tSUDAT
Data set-up time
tr
Rise time of both SDA and SCL signals
tf
Fall time of both SDA and SCL signals
tSUSTO
Set-up time for STOP condition
Bus free time between a STOP and START
tBUF
condition
-1
Note 1: fSCLK is the (tSCLK) .
www.sensortek.com.tw
5
Standard Mode
Min.
Max.
10
100
Fast Mode
Min.
Max.
10
400
Unit
KHz
4.0
—
0.6
—
µs
4.7
4.0
4.7
0
250
—
—
4.0
—
—
—
—
—
1000
300
—
1.3
0.6
0.6
0
100
—
—
0.6
—
—
—
—
—
300
300
—
µs
µs
µs
ns
ns
ns
ns
µs
4.7
—
1.3
—
µs
@copyright 2016 Sensortek Technology Corp.
STK3311-X REV 0.9.2
Timing Chart of the SDA and SCL
Write Command
Read Data
Sequential Read Data
www.sensortek.com.tw
6
@copyright 2016 Sensortek Technology Corp.
STK3311-X REV 0.9.2
6.
PRINPICLE OF OPERATION
Digital Interface
2
STK3311-X contains eight-bit registers accessed via the I C bus. All operations can be controlled by the command
register. The simple command structure makes user easy to program the operation setting and latch the output data
2
from STK3311-X. Section 5.2 Timing chart displays the STK3311-X I C command format for reading and writing
operation between host and STK3311-X.
6.1
General Operations
Slave Address
2
STK3311-X provides fixed I C slave address of 0x48 using 7 bit addressing protocol.
Slave Address
0x48
(followed by the R/W bit)
R/W Command Bit
0
1
OPERATION
Write Command to STK3311-X
Read Data form STK3311-X
Function Description
There are 19 registers available in the STK3311-X. Their functions are summarized in the following table.
BIT
ADDR
REG NAME
7
6
5
4
3
EN_ASO
EN_IRO
2
1
0
EN_ALS
EN_PS
Default
00h
STATE
01h
PSCTRL
PRS_PS[1:0]
GAIN_PS[1:0]
IT_PS[3:0]
31h
02h
ALSCTRL
PRS_ALS[1:0]
GAIN_ALS[1:0]
IT_ALS[3:0]
39h
03h
LEDCTRL
04h
INT
05h
WAIT
WAIT[7:0]
00h
06h
THDH1_PS
THDH_PS[15:8]
FFh
07h
THDH2_PS
THDH_PS[7:0]
FFh
08h
THDL1_PS
THDL_PS[15:8]
00h
09h
THDL2_PS
THDL_PS[7:0]
00h
0Ah
THDH1_ALS
THDH_ALS[15:8]
FFh
0Bh
THDH2_ALS
THDH_ALS[7:0]
FFh
0Ch
THDL1_ALS
THDL_ ALS[15:8]
00h
THDL_ ALS[7:0]
FLG_PSI
NT
DATA_PS[15:8]
00h
0Dh
EN_IRS
IRDR_LED[1:0]
FLAG
11h
DATA1_PS
FLG_AL
SDR
FLG_PS
DR
FLG_ALS
INT
INT_ALS
00h
INT_PS[2:0]
FLG_OUI
00h
FFh
DT_LED[5:0]
INT_OUI
INT_CTRL
THDL2_ALS
10h
EN_WAIT
FLG_IR
_RDY
FLG_NF
01h
00h
12h
DATA2_PS
DATA_PS[7:0]
00h
13h
DATA1_ALS
DATA_ALS[15:8]
00h
14h
DATA2_ALS
DATA_ALS[7:0]
00h
15h
DATA1_OFFSET
DATA_OFFSET[15:8]
00h
16h
DATA2_OFFSET
DATA_OFFSET[7:0]
00h
17h
DATA1_IR
DATA_IR[15:8]
00h
18h
DATA2_IR
3Eh
PDT_ID
3Fh
Reserved
www.sensortek.com.tw
00h
DATA_ IR[7:0]
0
0
0
1
0
0
1
0
12h
Reserved
7
@copyright 2016 Sensortek Technology Corp.
STK3311-X REV 0.9.2
80h
SOFT_RESET
Write to soft reset
STATE Register (00h)
1. EN_PS ( Bit[0] ), EN_ALS ( Bit[1] ), EN_WAIT ( Bit[2] ) :
These bits are used to define what state for the device to be. The operation state flow will be stated later.
BIT [2:0]
Description
000
Standby
001
No Wait Time, Disable ALS, Enable PS
010
No Wait Time, Enable ALS, Disable PS
011
No Wait Time, Enable ALS, Enable PS
100
Not Applied
101
Set Wait Time, Disable ALS, Enable PS
110
Set Wait Time, Enable ALS, Disable PS
111
Set Wait Time, Enable ALS, Enable PS
2. EN_IRO ( Bit[4] ) :
To enable (1) / disable (0) Interrupt Run Once function while Interrupt Run Once will be stated in the later section.
3. EN_ASO ( Bit[5] ) :
To enable (1) / disable (0) PS DATA stored in register 11h/12h is the result that ADC output subtract offset data
stored in register 15h/16h. This is used to cancel the system cross talk (offset).
ex: DATA_PS[15:0] = DATA_PS_ADC – DATA_OFFSET[15:0] where DATA_PS_ADC is the ADC output while PS
conversion is completed.
4. EN_IRS ( Bit[7] ) :
To enable (1) / disable (0) IR sensing function. It will update DATA_IR[15:0] (register 17h/18h) once and set
FLG_IR_RDY to 1. The IR sensing function is a one-time measurement. If another measure is needed, EN_IRS
shall be disabled first and enable. IR sensing and FLG_IR_RDY will be stated in the later section.
PSCTRL Register (01h)
1. IT_PS[3:0] ( Bit[3:0] ) :
The refresh time of PS can be tuned by IT_PS[3:0]. Through setting IT_PS[3:0], user could achieve very wide range
flexibly in choosing refresh time for different application demand. It is suggested to choose IT_PS time less than
1.56ms to minimize the influence coming from flicker noise. STK3311-X takes 2 times of IT_PS to perform proximity
sensing. The default value of IT_PS is 0.37ms.
BIT [3:0]
REFRESH TIME
Multiple of Base Refresh Time
0000
0.185 ms (Base Refresh Time)
x1
0001
0.37 ms
x2
0010
0.741 ms
x4
…..
…….
…..
1111
6070 ms
x 32768
2. GAIN_PS[1:0] ( Bit[5:4] ) :
The Gain setting for PS sensitivity range is summarized in following table. It is suggested to choose x64 gain setting
to get the optimum performance. The default value of GAIN_PS is x64.
BIT [5:4]
Gain
00
x1
01
x4
10
x16
11
x64
www.sensortek.com.tw
8
@copyright 2016 Sensortek Technology Corp.
STK3311-X REV 0.9.2
3. PRS_PS[1:0] ( Bit[7:6] ) :
The PS has an interrupt persistence filter. The persistence filter allows user to specify the number of consecutive
out-of-threshold PS occurrences before an interrupt is triggered.
BIT [7:6]
Consecutive Out-of-threshold PS Occurrences
00
1 time
01
4 times
ALSCTRL Register (02h)
1. IT_ALS[3:0] ( Bit[3:0] ) :
The refresh time of ALS can be tuned by IT_ALS. Through setting IT_ALS, user could achieve very wide range
flexibly in choosing refresh time for different application demand. The default value of IT_ALS is 94.85ms.
(IT_ALS[3:0]=4’b1001)
BIT [3:0]
0000
0001
0010
…..
1000
1001
1010
…..
1111
REFRESH TIME
0.185 ms
0.37 ms
0.741 ms
…….
47.36 ms
94.85 ms
189.44 ms
…….
6062 ms
Multiple of Base Refresh Time
x1
x2
x4
…..
x 256
x 512
x 1024
…..
x 32768
LUX/LSB under GAIN_ALS = 2’b11
…..
…..
(IT_ALS[3:0]-9)
0.027 / 2
…..
0.054
0.027
0.0135
…..
…..
2. GAIN_ALS[1:0] ( Bit[5:4] ) :
The Gain setting for ALS sensitivity range is summarized in following table. It is suggested to choose x64 gain
setting to get the optimum performance. The default value of GAIN_ALS is x64.
BIT [5:4]
Gain
LUX/LSB under IT_ALS = 4’b1001
00
x1
1.728
01
x4
0.432
10
x16
0.108
11
x64
0.027
3. PRS_ALS[1:0] ( Bit[7:6] ) :
The ALS has an interrupt persistence filter. The persistence filter allows user to specify the number of consecutive
out-of-threshold ALS occurrences before an interrupt is triggered.
BIT [7:6]
Consecutive Out-of-threshold ALS Occurrences
00
1 time
01
4 times
LEDCTRL Register (03h)
1. DT_LED[5:0] ( Bit[5:0] ) :
IRLED driving ON-duty (with respect to refresh time) could be adjusted through DT_LED. Through setting DT_LED,
IRLED ON-duty period can vary from 1/64 to 64/64 of the set IT_PS time.
For the following example table, when the IT_PS[3:0] = 4’b0000 (PS refresh time is 0.185ms), user may set the
IRLED ON-duty period 1/64 of 0.185ms (= 2.89us) by defining DT_LED[5:0] = 6’b000000. By following this, user
can choose the desired LED ON-duty period for STK3311-X.
BIT [5:0]
IRLED ON-Duty Period
IRLED ON-Duty Period under IT_PS = 0000
000000
IT_PS X 1/64
2.89 us
000001
IT_PS X 2/64
5.78 us
……..
….
……….
www.sensortek.com.tw
9
@copyright 2016 Sensortek Technology Corp.
STK3311-X REV 0.9.2
111111
IT_PS X 64/64
0.185 ms
2. IRDR[1:0] ( Bit[7:6] ) :
The STK3311-X provides different driving ability for IRLED through setting IRDR.
BIT [7:6]
IRLED Driving Current
00
12.5mA current sink
01
25mA current sink
10
50mA current sink
11
100mA current sink
www.sensortek.com.tw
10
@copyright 2016 Sensortek Technology Corp.
STK3311-X REV 0.9.2
System Operation State
Normal Mode
The STK3311-X provides control of ALS, proximity detection, and power management functionality through an internal
state machine. After a power-on-reset, the device is in the standby mode. As soon as EN_WAIT or EN_ALS or EN_PS
is set to 1, the device will move to the start state. It will then continue go through the PS, Wait, and ALS states cyclic. If
these states are enabled, the device will execute each function. If EN_WAIT, EN_ALS or EN_PS is changed during
active mode it will jump to start state immediately and remains the data of registers DATA_PS and DATA_ALS without
updating. It will go into a low power standby mode again only when EN_WAIT, EN_ALS and EN_PS are all set to 0.
www.sensortek.com.tw
11
@copyright 2016 Sensortek Technology Corp.
STK3311-X REV 0.9.2
Interrupt Run Once mode
STK3311-X is provided IRO mode to save power and simplify system control. While EN_IRO is enabled, the state
machine will go to standby mode after PS/ALS interrupt event triggered and IC will stop sensing for saving power. The
state machine will leave standby mode once the FLG_PSINT or FLG_ALSINT is cleared. Please see the following
state diagram.
Standby
FLG_PSINT
or
FLG_ALSINT
is cleared
(EN_IRO &&
FLG_PSINT) == 1
(EN_ALS && EN_PS) == 0
Start
PS
(EN_IRO &&
FLG_ALSINT == 1)
ALS
Wait
www.sensortek.com.tw
12
@copyright 2016 Sensortek Technology Corp.
STK3311-X REV 0.9.2
IR Sensing mode
While EN_IRS is set, STK3311-X will immediately switch to IR sensing state. The IR sensing function will use the
circuit setting of ALS defined in ALSCTRL register to operate the IR sensor to sense incoming light energy in IR range.
Once the IR sensing is completed, the DATA_IR[15:0] is updated, EN_IRS bit will be cleared automatically and
FLG_IR_RDY bit will be set to 1. The DATA_IR[15:] is not valid until FLG_IR_RDY is set to 1.
www.sensortek.com.tw
13
@copyright 2016 Sensortek Technology Corp.
STK3311-X REV 0.9.2
Power management
Example: Around 100 ms Cycle Time
INT Register (04h)
1. INT_PS[2:0] ( Bit[2:0] ) :
INT_PS programs interrupt occurrence criteria for PS.
BIT [2:0]
OPERATION
000
PS INT Disable
PS INT Enable, interrupt is issued while FLG_NF is toggled.
001
FLG_NF is defined at bit0 of FLAG Register (10h) to indicate the PS state is near or far.
/INT is treated as a flag and not an interrupt.
010
/INT = 1 if DATA_PS[15:0] > THDH_PS[15:0] and /INT = 0 if DATA_PS[15:0] < THDL_PS[15:0].
/INT is treated as a flag and not an interrupt.
011
/INT = 0 if DATA_PS[15:0] > THDH_PS[15:0] and /INT = 1 if DATA_PS[15:0] < THDL_PS[15:0].
PS INT Enable, interrupt according to system pre-defined sequence. Refer to the following
100
description.
101
PS INT Enable, interrupt only if the PS Data value is higher than THDH_PS[15:0].
110
PS INT Enable, interrupt only if the PS Data value is lower than THDL_PS[15:0].
PS INT Enable, interrupt if the PS Data value is higher than THDH_PS[15:0] or the PS Data value
111
is lower than THDL_PS[15:0]. Threshold hystersis is not applied.
www.sensortek.com.tw
14
@copyright 2016 Sensortek Technology Corp.
STK3311-X REV 0.9.2
FLAG mode
While INT_PS[2:0] is set to 3’b010 or 3’b011. The /INT pin is intended to be used as flag to indicate if any object is
proximity to the sensor or not. The MCU or application processor just reads the value of the /INT pin to recognize the
2
state without access the I C interface. /INT can not be cleared by host’s access.
If the /INT pin is used as flag, the other interrupt event should be disabled. Usually, the polling mode is used for
ambient light sensor while /INT is used as flag of proximity sensing.
Interrupt mode
/INT is treated as interrupt signal when INT_PS[2:0] other than flag mode are selected. In these modes, the other
interrupt source can share the same /INT pin to issue the interrupt event to host.
Out-of-Threshold interrupt mode
While INT_PS[2:0] is set to 3’b101/3’b110/3’b111, it is so-called “out-of-threshold interrupt”. This interrupt scheme will
issue continuous interrupt while the PS_DATA is higher or lower the threshold defined by THDH_PS[15:0] /
THDL_PS[15:0].
Recommended interrupt mode
The INT_PS[2:0] = 3’b001 is a new scheme which reduces the software’s effort. The /INT is asserted only when
proximity state (FLG_NF) is transient. Host just needs to handle the proximity sensor while /INT is asserted and no
extra handling for interrupt.
DATA_PS
THDH_PS
THDL_PS
FLG_NF
Interrupt is asserted for change of FLG_NF
FLG_PSINT
I2C clear
www.sensortek.com.tw
15
@copyright 2016 Sensortek Technology Corp.
STK3311-X REV 0.9.2
Compatible interrupt mode
While INT_PS[2:0] = 3’b100, the interrupt mode is compatible with STK3171, STK3101 and STK3128.
System pre-defined sequence is used to assert interrupt signal. Refer to the following state diagram.
Start
/INT = HIGH
/INT = HIGH
Clear FLG_PSINT **
Clear FLG_PSINT **
/INT = HIGH
Change detect
direction
&
FLG_NF = 1
False
True
False
Check
DATA_PS[15:0]
THDH_PS[15:0]
True
Detect “Near”
direction
Issue interrupt
signal
/INT = Low
Read
DATA_PS[15:0] *
Read
DATA_PS[15:0] *
/INT = Low
Detect “Far”
direction
True
Check Threshold_H
DATA_PS[15:0] >
THDH_PS[15:0]
False
Check Threshold_L
DATA_PS[15:0] <
THDL_PS[15:0]
Change detect
direction
&
FLG_NF = 0
True
Clear FLG_PSINT **
Clear FLG_PSINT **
/INT = HIGH
/INT = HIGH
False
Note : * read DATA_PS is driver’s behavior and it will trigger IC’s next action.
** clear FLG_PSINT is driver’s behavior and it will let /INT pin = HIGH
www.sensortek.com.tw
16
@copyright 2016 Sensortek Technology Corp.
STK3311-X REV 0.9.2
2. INT_ALS ( Bit[3] ) :
INT_ALS = 0, disable ALS interrupt. INT_ALS = 1, enable ALS interrupt. STK3311-X will issue an ALS interrupt if
the actual count DATA_ALS are outside the user’s programmed window defined in THDH_ALS and THDL_ALS.
The user must write 0 to clear FLG_ALSINT
BIT 3
OPERATION
0
ALS interrupt Disable
1
ALS interrupt Enable
3. INT_CTRL ( Bit[7] ) :
This bit is used to control the interrupt mode.
BIT 7
OPERATION
Set /INT pin low if FLG_ALSINT or FLG_PSINT high
(logical OR)
Set /INT pin low if FLG_ALSINT and FLG_PSINT high
(logical AND)
0
1
WAIT Register (05h)
1. WAIT[7:0] ( Bit[7:0] ) :
2
The wait time among every PS and ALS operation can be adjusted via I C. The following table lists the possible
values of wait time.
BIT [7:0]
WAIT TIME
00h
5.93 ms; wait time among every PS and ALS operation is 5.93 ms
01h
11.9 ms; wait time among every PS and ALS operation is 11.9 ms
02h
17.8 ms; wait time among every PS and ALS operation is 17.8 ms
……….
…….
FFh
1518 ms; wait time among every PS and ALS operation is 1518 ms
PS Threshold Register (06h, 07h, 08h ,09h)
A proximity interrupt event (FLG_PSINT) is governed by the high and low thresholds in register 06h, 07h, 08h and 09h
respectively. The user write a high and low threshold value to these registers and the STK3311-X will issue an PS
interrupt depends on setting of INT_PS[2:0].
ALS Threshold Register (0Ah, 0Bh, 0Ch ,0Dh)
An ALS interrupt event (FLG_ALSINT) is governed by the high and low thresholds in register 0Ah, 0Bh, 0Ch and 0Dh
respectively. The user write a high and low threshold value to these registers and the STK3311-X will issue an ALS
interrupt if the actual count DATA_ALS stored in registers 13h and 14h are outside the user’s programmed window.
FLAG Register (10h)
1. FLG_NF ( Bit[0] ) :
The definition of FLG_NF depends on the setting of INT_PS[2:0].
INT_PS[2:0]
000
001
010
011
100
101
www.sensortek.com.tw
FLG_NF
Unused. FLG_NF is fixed to 1.
FLG_NF is 0 if object in near to sensor and FLG_NF is 1 if object is far to sensor.
Refer to INT_PS[2:0] = 3’b001 in previous description.
FLG_NF is 0 if object in near to sensor and FLG_NF is 1 if object is far to sensor.
FLG_NF is 0 if object in near to sensor and FLG_NF is 1 if object is far to sensor.
FLG_NF is 0 if STK3311-X detection direction is object move from near side to far side.
FLG_NF is 1 if STK3311-X detection direction is object move from far side to near side.
Unused. FLG_NF is fixed to 1.
17
@copyright 2016 Sensortek Technology Corp.
STK3311-X REV 0.9.2
110
111
Unused. FLG_NF is fixed to 1.
Unused. FLG_NF is fixed to 1.
2. FLG_IR_RDY ( Bit[1] ) :
FLG_IR_RDY default is 0 and will change to be 1 after IR sensing data updated. FLG_IR_RDY need to be cleared
to 0 manually.
3. FLG_PSINT ( Bit[4] ) :
PS Interrupt flag. This is the status bit of the interrupt for PS. The bit is set to logic high when the interrupt
thresholds have been triggered, and logic low when not yet triggered. Once triggered, /INT pin stays low and the
status bit stays high. Both interrupt pin and the status bit are cleared by writing “0”.
BIT 4
OPERATION
0
Interrupt is cleared or not triggered yet
1
Interrupt is triggered
4. FLG_ALSINT ( Bit[5] ) :
ALS Interrupt flag. This is the status bit of the interrupt for ALS. The bit is set to logic high when the interrupt
thresholds have been triggered, and logic low when not yet triggered. Once triggered, /INT pin stays low and the
status bit stays high. Both interrupt pin and the status bit are cleared by writing “0”.
BIT 5
OPERATION
0
Interrupt is cleared or not triggered yet.
1
Interrupt is triggered.
5. FLG_PSDR ( Bit[6] ) :
PS Data Ready Flag. This flag is used to confirm whether the PS data in the PS data registers are read or not. The
bit will be 1 when the refreshed data is not read. The bit is automatically cleared to zero by STK3311-X after the PS
data registers are read.
6. FLG_ALSDR ( Bit[7] ) :
ALS Data Ready Flag. This flag is used to confirm whether the ALS data in the ALS data registers are read or not.
The bit will be 1 when the refreshed data is not read. The bit is cleared to zero after the ALS data registers are read.
PS Data Register (11 and 12 hex)
The STK3311-X has two 8-bit read-only registers to hold the data from ADC of PS. The most significant bit (MSB) is
accessed at register 11h, and the least significant bit (LSB) is accessed at register 12h. For 16-bit resolution, the data
is from DATA_PS[15:0]. The registers are updated for every PS refresh time (conversion cycle).
ALS Data Register (13h and 14h)
The STK3311-X has two 8-bit read-only registers to hold the data from ADC of ALS. The most significant bit (MSB) is
accessed at register 13h, and the least significant bit (LSB) is accessed at register 14h. For 16-bit resolution, the data
is from DATA_ALS[15:0]. The registers are updated for every ALS refresh time (conversion cycle).
Data Offset Register (15h and 16h)
Please refer to the description in state register (00h).
Data IR Register (17h and 18h)
Please refer to the description in state register (00h).
Product ID (3Eh)
Read Only; PDT_ID = Product ID to indicate the product information.
Reserved (3Fh)
Read Only; RSRVD = Reserved for engineering mode.
www.sensortek.com.tw
18
@copyright 2016 Sensortek Technology Corp.
STK3311-X REV 0.9.2
Soft reset (80h)
Write any data to this register will reset the chip.
www.sensortek.com.tw
19
@copyright 2016 Sensortek Technology Corp.
STK3311-X REV 0.9.2
7.
ALS RESPONSE CHARTS
ALS Operation Current Variation versus Termperature
Standby Current versus Termperature
0.5
5.00%
0.45
0.4
3.00%
S tan dby C urrent (uA )
V ariation P e rcen tag e N o rm alize to 2 0 ℃
4.00%
2.00%
1.00%
0.00%
-1.00%
-2.00%
0.35
0.3
0.25
0.2
0.15
-3.00%
0.1
-4.00%
0.05
-5.00%
0
-60
-40
-20
0
20
40
60
80
100
-60
Temperature (℃)
-20
0
20
40
60
80
100
Temperature (℃)
ALS IACT Variation versus Temperature
@ VDD = 2.8V, Halogen, ALS-IT = 94.85ms
www.sensortek.com.tw
-40
ISD versus Temperature @ VDD = 2.8V, Halogen
20
@copyright 2016 Sensortek Technology Corp.
STK3311-X REV 0.9.2
8.
PROXIMITY CHARACTERISTIC
PS Operation Current Variation versus Termperature
Variation Percentage Normalize to 20℃
5.00%
4.00%
3.00%
2.00%
1.00%
0.00%
-1.00%
-2.00%
-3.00%
-4.00%
-5.00%
-60
-40
-20
0
20
40
60
80
100
Temperature (℃)
PS IACT Variation versus Temperature @ VDD =
2.8V, LED Driver Current = 104mA, PS-IT = 370us
www.sensortek.com.tw
21
@copyright 2016 Sensortek Technology Corp.
STK3311-X REV 0.9.2
9.
APPLICATION NOTE
STK3311-X Typical Application Circuit with Independent VDD and VLED Supply Voltage
STK3311-X Typical Application Circuit with Only One Supply Voltage
www.sensortek.com.tw
22
@copyright 2016 Sensortek Technology Corp.
STK3311-X REV 0.9.2
9.1
Power Noise Consideration
In order to reduce the switching noise come from the VLED, it is suggested that IC power and VLED comes from
individual source to get the best performance of STK3311-X. The R1 series in the VDD path is strongly recommended
that used to filter out the poor system power noise and the recommended value is 22 Ohm.
www.sensortek.com.tw
23
@copyright 2016 Sensortek Technology Corp.
STK3311-X REV 0.9.2
www.sensortek.com.tw
1.40
0.60
1.35 ± 0.20
2.36 ± 0.20
(1.18)
10. PACKAGE OUTLINE
24
@copyright 2016 Sensortek Technology Corp.
STK3311-X REV 0.9.2
PCB Pad Layout
Suggested PCB pad layout guidelines for the Dual Flat No-Lead surface mount package are shown below.
0.6
Pin 1
0.80
Notes: all linear dimensions are in mm.
www.sensortek.com.tw
25
@copyright 2016 Sensortek Technology Corp.
STK3311-X REV 0.9.2
11. SOLDERING INFORMATION
11.1 Soldering Condition
1. Pb-free solder temperature profile
2. Reflow soldering should not be done more than three times.
3. When soldering, do not put stress on the ICs during heating.
4. After soldering, do not warp the circuit board.
11.2 Soldering Iron
Each terminal is to go to the tip of soldering iron temperature less than 350°C for 3 seconds within o nce in less than
the soldering iron capacity 25W. Leave two seconds and more intervals, and do soldering of each terminal. Be careful
because the damage of the product is often started at the time of the hand solder.
11.3 Repairing
Repair should not be done after the ICs have been soldered. When repairing is unavoidable, a double-head soldering
iron should be used (as below figure). It should be confirmed beforehand whether the characteristics of the ICs will or
will not be damaged by repairing.
www.sensortek.com.tw
26
@copyright 2016 Sensortek Technology Corp.
STK3311-X REV 0.9.2
12. STORAGE INFORMATION
12.1 Storage Condition
1. Devices are packed in moisture barrier bags (MBB) to prevent the products from moisture absorption during
transportation and storage. Each bag contains a desiccant.
2. The delivery product should be stored with the conditions shown below:
Storage Temperature
Relatively Humidity
10 to 30℃
below 60%RH
12.2 Treatment After Unsealed
1. Floor life (time between soldering and removing from MBB) must not exceed the time shown below:
Floor Life
Storage Temperature
Relatively Humidity
168 Hours
10 to 30℃
below 60%RH
2. When the floor life limits have been exceeded or the devices are not stored in dry conditions, they must be rebaked before reflow to prevent damage to the devices. The recommended conditions are shown below
Temperature
Re-Baking Time
www.sensortek.com.tw
60℃
12 Hours
27
@copyright 2016 Sensortek Technology Corp.
STK3311-X REV 0.9.2
Revision History
Date
2015/12/17
2016/01/05
2016/01/25
Version
0.9
0.9.1
0.9.2
Modified Items
Initial release.
Fix typo
Fix PID
Important Notice
This document contains information that is proprietary to Sensortek Technology Corp. (“sensortek”), and is
subject to change without notice. Any part of this document may not be used, reproduced, duplicated or disclosed in
any form or any means without the prior written permission of sensortek.
Sensortek does not warrant or represent that any license, either express or implied, is granted under any sensortek‘s
patent right, copyright, mask work right, or other intellectual property right relating to any combination, machine, or
process in which sensortek‘s products or services are used. In addition, Sensortek does not assume any liability for
the occurrence of infringing on any patent or other intellectual property rights of a third party.
Sensortek reserves the right to make corrections, modifications, enhancements, improvements, and other changes
to its products and services at any time and to discontinue any product or service without notice. Customers should
obtain the latest relevant information before placing orders and should verify that such information is current and
complete.
www.sensortek.com.tw
28
@copyright 2016 Sensortek Technology Corp.