Datasheet Download

Optical Proximity Sensor and
Ambient Light Sensor with IrLED
R PR-0 521R S
Datasheet
● General Description
RPR-0521RS is a module which integrates optical proximity, digital ambient light sensor IC, and infrared LED
(IrLED). Proximity sensor (PS) part detects the human or object approaching by the reflection of IrLED light.
Ambient light sensor (ALS) part detects the wide range of illumination; from the dark environment to the direct
sun light. The illuminant intensity of LCD display and keypad can be adjusted by using RPR-0521RS. It enables
lowering current consumption and/or improving the visibility under the bright environment.
●Features
2
1) Compatible to I C bus interface ( f/s mode support )
2) Compatible to 1.8V logic interface
3) Low Current consumption by power down function/mode
4) There are two ALS outputs; peaks of spectrum responses are in visible light (Data0) and in infrared light
(Data1) for calculating illuminance.
5) Correspond to very wide range of light intensity
6) Rejecting 50Hz/60Hz light noise (ALS function)
2
7) Detection range of proximity sensor is around 1 - 100mm (adjustable by I C)
8) Built-in current configurable IrLED driver
● Application
Smart phone, Mobile phone, Digital Still Camera, Portable game, Camcoder, PDA, LCD display etc.
● Absolute maximum ratings
( Ta = 25℃ )
Parameter
VDD Supply Voltage
SDA, SCL Terminal Voltage
LEDA,LDR, INT Terminal Voltage
Operating Temperature
Storage Temperature
INT, SDA Sink Current
Symbol
Vddmax
Vsdamax, Vsclmax
Vledamax, Vldrmax, Vintmax
Topr
Tstg
Imax
Limits
4.5
4.5
7
-25~85
-30~85
7
Units
V
V
V
℃
℃
mA
●Operating conditions
Parameter
VDD Supply Voltage
VLEDA Voltage
INT Terminal Voltage
www.rohm.com
c 2016 ROHM Co., Ltd. All rights reserved.
○
Symbol
Vdd
Vleda
Vint
Min.
2.5
2.8
-
1/24
Typ.
3.0
3.0
-
Max.
3.6
5.5
5.5
Units
V
V
V
2016.01.28 - Rev.001
Datasheet
RPR-0521RS
●Electrical characteristics
( VDD= 3.0V, Ta = 25℃, and all registers are default unless otherwise noted. )
Parameter
Symbol
Min.
Typ.
Max.
Units
Conditions
Supply current for ALS
Icc1
10
90
300
uA
EV = 10 lx*1
MODE_CONTROL(41h) =89h
Supply current for PS
Icc2
10
90
200
uA
MODE_CONTROL(41h) =49h
Standby mode current
Icc3
0.1
1.0
2.0
uA
MODE_CONTROL(41h)=00h,
No input light
Calculated Lx
Lx
6
10
14
lx
EV = 10 lx*1
MODE_CONTROL(41h)=89h
ALS_PS_CONTROL(42h)=02h
Dark ( 0 lx ) Sensor out in
TYPE0
S0_0
-
-
5
count
No input light
MODE_CONTROL(41h)=89h
ALS_PS_CONTROL(42h)=02h
Dark ( 0 lx ) Sensor out in
TYPE1
S0_1
-
-
5
count
No input light
MODE_CONTROL(41h)= 89h
ALS_PS_CONTROL(42h)=02h
PS sensor out ( d=50mm*2)
PS50
48
112
count
MODE_CONTROL(41h)=49h
LED current =100mA
PS sensor out
(No proximity object)
80
Ambient irradiance = 0uW/cm2
MODE_CONTROL(41h)=49h
LED current =100mA
MODE_CONTROL(41h)=49h
PS0
-
-
10
count
ILED pulse duration 1
ILED pulse duration 2
LDR terminal sink current at
LDR terminal voltage = 1.3V
twILED 1
twILED 2
80
110
200
330
300
500
us
us
ILED
22
25
28
mA
MODE_CONTROL(41h)=69h
ALS_PS_CONTROL
(42h) <1:0> = “00”
Iint = 3mA
INT output 'L' Voltage
VINTL
0
0.4
V
SCL SDA input 'H' Voltage
SCL SDA input 'L' Voltage
VIH
VIL
1.26
-
-
-
-
0.54
V
V
SCL SDA input 'H'/'L'Current
IIHL
-10
-
10
uA
I2C SDA Output 'L' Voltage
VOL
0
-
0.4
V
Iol = 3mA
*1 White LED is used as optical source. “Lx” is calculated from ADC count valus.
Object
(90% reflective white sheet)
*2 Measuring Condition
d=50mm
Product
Object: 90% reflective white sheet (50×50mm Kodak Gray Card Plus)
Distance between the object and the product is 50mm. No glass or apertures is above the product.
www.rohm.com
c 2016 ROHM Co., Ltd. All rights reserved.
○
2/24
2016.01.28 - Rev.001
Datasheet
RPR-0521RS
●Transmitter Electrical characteristics ( Ta = 25℃, unless otherwise noted. )
Parameter
Symbol
Min.
Typ.
Max.
Units
Conditions
LED Forward Voltage
VF
-
1.6
1.95
V
LED current =100mA
LED Peak Emission Wavelength
λp
-
940
-
nm
● I2C bus timing characteristics ( VDD= 3.0V, Ta = 25℃, unless otherwise noted. )
Parameter
Symbol
Min.
Typ.
Max.
Units
I C SCL Clock Frequency
fSCL
0
-
400
kHz
I C START Condition Hold Time
tHD;STA
0.6
-
-
us
I C 'L' Period of the SCL Clock
I2C 'H' Period of the SCL Clock
tLOW
tHIGH
1.3
0.6
-
-
-
-
us
us
I2C S START Condition Set up time
tSU;STA
0.6
-
-
us
I C Data Hold Time
I2C Data Setup Time
I2C STOP Condition Set up Time
tHD;DAT
tSU;DAT
tSU;STO
0
100
0.6
-
-
-
-
-
-
us
ns
us
I2C Bus Free Time
tBUF
1.3
-
-
us
I2C Data Vaild Time
I C Data Vaild Acknowledge Time
tVD;DAT
tVD;ACK
-
-
-
-
0.9
0.9
us
us
2
2
2
2
2
Conditions
I2C bus F/S-mode timing diagram
www.rohm.com
c 2016 ROHM Co., Ltd. All rights reserved.
○
3/24
2016.01.28 - Rev.001
Datasheet
RPR-0521RS
● Package outlines
( φ 1 .1)
( 1. 22 )
D et ect or
2.3 6
(1 .67 )
( 1.1 3)
Emi tt er
( 0.8 7)
1. 35
3 .94
1 .81 5
1 .09 5
0 .12 5
0 .12 5
0 .84 5
1 .09 5
1 .81 5
0 .84 5
Stamp (For the control of our company)
Stamp (Month, Day)
1P IN
PI N
1
2
3
4
1- VD D
1 .0 25
2- SC L
3- GN D
0 .4 25
5 U 8 1 0 4
0 .4 25
4- LE DA
5- LE DK
6- LD R
7- IN T
1 .0 25
8- SD A
8
7
6
5
1) Unit: mm
2) Tolerance shall be ±0.2mm unless otherwise noted.
PIN
Symbol
Description
Number
1
VDD
Supply Voltage
2
SCL
I2C Clock, Input
3
GND
Ground
4
LEDA
LED Supply Voltage
5
LEDK
LED Cathode
6
LDR
LED Driver
7
INT
PS or ALS Interrupt Pin, Open Drain
8
SDA
I2C Serial Data, Input/Output
www.rohm.com
c 2016 ROHM Co., Ltd. All rights reserved.
○
4/24
2016.01.28 - Rev.001
Datasheet
RPR-0521RS
● Block diagram and block explanation
 I2C Interface
I2C bus interface. f/s mode. 1.8V interface.
 POR
Power on reset function.
 OSC
Internal oscillator.
 Timing Controller
Internal management block for proximity sensor and ambient light sensor.
 PS Control Logic
This block controls proximity sensor ADC.
 LED Pulse Gen
LED current generator. LED current can be adjusted by ALS_PS_CONTROL (42h) register.
 IrLED Driver.
IrLED driver block.
 PD_Visible + Infrared, PD_Infrared
Photo diodes for ambient light sensor.
 16bit ADC
AD converter for ALS.
 ALS Control Logic
This block controls ambient light sensor ADC.
 PD_PS
Photo diode for proximity sensor.
 DC Light Rejection Amp
DC light is rejected in this block.
 Linear ADC
AD converter for proximity sensor.
www.rohm.com
c 2016 ROHM Co., Ltd. All rights reserved.
○
5/24
2016.01.28 - Rev.001
Datasheet
RPR-0521RS
● Terminal description
PIN
No.
1
Terminal Name
VDD
Power supply terminal
2
SCL
I2C bus Interface SCL terminal
3
GND
GND terminal
4
LEDA
LED supply voltage
5
LEDK
6
LDR
LED Cathode, Please connect to LDR
PIN when using internal LED driver
circuit.
Nch open drain LED terminal. LED
current and emitting pulse width can be
defined by internal register.
7
INT
Nch open drain output.
Interrupt setting is defined by internal
register.
8
SDA
C bus Interface SDA terminal
www.rohm.com
c 2016 ROHM Co., Ltd. All rights reserved.
○
Equivalent Circuit
6/24
Function
2016.01.28 - Rev.001
Datasheet
RPR-0521RS
●Structure figure
①
③
①
②
④
⑤
⑤
⑥
⑦
⑧
NO.
①
②
③
④
⑤
⑥
⑦
Name
LSI
Ir LED
Au wire
Insulating bonding paste
Conductive bonding paste
Transparent mold resin
Light-resistant mold resin
⑧
PCB
www.rohm.com
c 2016 ROHM Co., Ltd. All rights reserved.
○
7/24
Material
Si
GaAlAs
Au
Epoxy resin
Ag + Epoxy resin
Epoxy resin
Epoxy resin
Epoxy resin
Cu,Ni,Au(Electrode)
2016.01.28 - Rev.001
Datasheet
RPR-0521RS
Unit:mm
12
5.5
1.55
0 ~0.5
φ1.5 ±0.1
±0.05
2 ±0 . 0 5
4.35 ±0.05
1pin
+0.1
0
1.75
φ1.5
4 ±0 . 1
±0.
Note)1.Unspecified tolerance shall be ±0.2.
2.Dimensions and marking of reels are in accordance with
JEITA’s standard ET-7103A.
9.1
● Taping standard
2.75 ±0.05
±0 . 1
Pull direction
φ 1 8 0- 3
+1
0
φ 60
φ13
0
1 5 . 4 ±1
Pull direction
Packaging quantity: 2,500 pcs/reel
www.rohm.com
c 2016 ROHM Co., Ltd. All rights reserved.
○
8/24
2016.01.28 - Rev.001
Datasheet
RPR-0521RS
● Packaging requirements
1. Packaging
(1)Quantity per reel is 2,500pcs
(2)Each reel are packed in aluminum bag.
The size of aluminum bag is 240(a)×240(b)mm.
(3)Aluminum bag is pressure sealed on all four directions.
b
a
2. Label indication
The following information shall be described on a aluminum bag label; ROHM type number, packaging
quantity, and lot number
【Example】
TYPE NO.
QR code
Bar code
Packaging
quantity
F
2,500pcs
FOR ROHM ONLY
1416 00820S
Bar code
MADE IN CHINA
Country of origin
Inspection stamp
【Example of lot number marking】
14
16
00820
S
Factory mark
Serial number of lot
Manufacture week
Manufacture year
3. Factory (Country of origin)
・ROHM ELECTRONICS DALIAN CO., LTD. (CHINA)
www.rohm.com
c 2016 ROHM Co., Ltd. All rights reserved.
○
9/24
2016.01.28 - Rev.001
Datasheet
RPR-0521RS
Attention points in handling
This product is developed as an optical proximity sensor and ambient light sensor with IrLED; suitable for
reflow soldering. Please take care of following points when using this device.
1. Storage
There will be the possibility that the moisture influences the reliability of this product during the reflow
soldering process. Hence, the product is packed in the anti-moisture bag. When using the product,
please keep following conditions.
①
Storage condition
・ ・Storage Temperature : 5 ~ 30℃
Storage Humidity : less than 70%RH
②
Process after opening the bag
③
Baking (dry) process
・ ・
・
・ Please storage the product at the temperature between 5 ~30℃
and the moisture less than 70% RH within 168 hours.
・ ・If the above conditions aren’t kept, please apply the
baking process. The baking process should be executed
under the reel condition at 60℃±5℃ for 12~24 hours. During
the baking process, the reel and emboss tape should be
handled with care.
2. Designing of PCB
The figure below is the recommended solder pattern. This pattern may need to be adjusted to mounting
conditions and solder paste.
7
6
5
1
2
3
4
0. 85
8
0.72
2. 25
P0. 97 ×3=2.9 1
0.2 5
3. 63
3. Reflow soldering
Number of reflow process shall be less than 2 times. When the second reflow process is performed, the
interval between the first and the second reflow process shall be as short as possible to prevent absorption of
moisture into the resin of the product. Cooling process to the room temperature shall be required between the
first and the second reflow process.
The following temperature condition is recommended for the reflow soldering. We would like you to evaluate
your reflow condition because the condition is affected by the PCB size, the product heat-resistivity or the
mount density
www.rohm.com
c 2016 ROHM Co., Ltd. All rights reserved.
○
10/24
2016.01.28 - Rev.001
Datasheet
RPR-0521RS
4.
Reflow temperature profile
Package surface temperature (℃)
www.rohm.com
c 2016 ROHM Co., Ltd. All rights reserved.
○
11/24
2016.01.28 - Rev.001
Datasheet
RPR-0521RS
● Command set
Address
TYPE
default
Register name
40h
41h
42h
43h
44h
45h
46h
47h
48h
49h
4Ah
4Bh
4Ch
4Dh
4Eh
4Fh
50h
51h
52h
53h
54h
92h
RW
RW
RW
RW
R
R
R
R
R
R
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
RW
R
0Ah
00h
02h
01h
00h
00h
00h
00h
00h
00h
00h
FFh
0Fh
00h
00h
FFh
FFh
00h
00h
00h
00h
E0h
SYSTEM_CONTROL
MODE_CONTROL
ALS_PS_CONTROL
PS_CONTROL
PS_DATA_LSBs
PS_DATA_MSBs
ALS_DATA0_LSBs
ALS_DATA0_MSBs
ALS_DATA1_LSBs
ALS_DATA1_MSBs
INTERRUPT
PS_TH_LSBs
PS_TH_MSBs
PS_TL_LSBs
PS_TL_MSBs
ALS_DATA0_TH_LSBs
ALS_DATA0_TH_MSBs
ALS_DATA0_TL_LSBs
ALS_DATA0_TL_MSBs
PS_OFFSET_LSBs
PS_OFFSET_MSBs
MANUFACT_ID
Register function
System control
ALS, PS function setting
ALS Gain, PS LED Driver
PS Gain, PS interrupt persistence
PS data low byte
PS data high byte
ALS DATA0 low byte
ALS DATA0 high byte
ALS DATA1 low byte
ALS DATA1 high byte
Interrupt control
PS upper threshold low byte
PS upper threshold high byte
PS lower threshold low byte
PS lower threshold high byte
ALS DATA0 upper threshold low byte
ALS DATA0 upper threshold high byte
ALS DATA0 lower threshold low byte
ALS DATA0 lower threshold high byte
PS offset low byte
PS offset high byte
MANUFACT ID
● SYSTEM_CONTROL ( 40h )
Field
Bit
TYPE
SW reset
7
RW
INT reset
6
RW
5:0
R
Part ID
Description
0 : initial reset is not started
1 : initial reset is started
0 : INT pin status is not initialized
1 : INT pin become inactive ( high impedance )
001010
default value 0Ah
www.rohm.com
c 2016 ROHM Co., Ltd. All rights reserved.
○
12/24
2016.01.28 - Rev.001
Datasheet
RPR-0521RS
● MODE_CONTROL ( 41h )
Field
Bit
TYPE
ALS_EN
7
RW
PS_EN
6
RW
PS_PULSE
5
RW
PS Operating
mode
4
RW
3:0
RW
Measurement time
Description
0 : ALS Standby
1 : ALS Enable
0 : PS Standby
1 : PS Enable
0 : PS LED pulse width is typ 200us
1 : PS LED pulse width is typ 330us (PS sensor out is doubled)
0 : normal mode
1 : twice measurement mode
Shown in table below
default value 00h
Value
0000
0001
0010
0011
0100
0101
0110
0111
ALS
standby
standby
standby
standby
standby
100ms
100ms
100ms
PS
standby
10ms
40ms
100ms
400ms
50ms
100ms
400ms
Value
1000
1001
1010
1011
1100
1101
1110
1111
ALS
PS
400ms *1
50ms
400ms *1
100ms
400ms *2 standby
400ms *2
400ms
50ms *3
50ms
Forbidden
Forbidden
Forbidden
Measurement time is 100ms, sleep time is 300ms.
High sensitivity mode, measurement time is 400ms.
*3 Additional software process is necessary. Please refer to P.18
*1
*2
● ALS_PS_CONTROL ( 42h )
Field
Reserved
Bit
7:6
TYPE
RW
ALS DATA0 GAIN
5:4
RW
ALS DATA1 GAIN
3:2
RW
LED CURRENT
1:0
RW
Description
Write 00
Gain control of ALS DATA 0
00 : x1 Gain mode
01 : x2 Gain mode
10 : x64 Gain mode
11 : x128 Gain mode
Gain control of ALS DATA 1
00 : x1 Gain mode
01 : x2 Gain mode
10 : x64 Gain mode
11 : x128 Gain mode
00 : 25mA
01 : 50mA
10 : 100mA
11 : 200mA
default value 02h
www.rohm.com
c 2016 ROHM Co., Ltd. All rights reserved.
○
13/24
2016.01.28 - Rev.001
Datasheet
RPR-0521RS
● PS_CONTROL ( 43h )
Field
Bit
TYPE
Ambient_Ir_Flag
7:6
R
PS_GAIN
5:4
RW
PERSISTENCE
3:0
RW
Description
00: Ambient infrared level is low
01: Ambient infrared level is high
11: Ambient infrared level is too high
00: PS GAIN ×1
01: PS GAIN ×2
10: PS GAIN ×4
11: Forbidden
PS interrupt persistence setting
0000:Interrupt becomes active at each measurement end
0001:Interrupt status is updated at each measurement end
0010:Interrupt status is updated if two consecutive threshold
judgments are the same
0011 or more: Interrupt status is updated if threshold judgments
are the same over consecutive set times
default value 01h
● PS_DATA_LSBs ( 44h )
Register
PS_DATA_LSBs
TYPE
R
7
2
7
6
5
4
3
2
1
6
5
4
3
2
1
2
2
2
2
2
0
2
20
default value 00h
● PS_DATA_MSBs ( 45h )
Register
TYPE
PS_DATA_MSBs
7
6
5
4
3
11
2
1
10
0
2
28
default value 00h
R
0
0
0
0
2
2
TYPE
R
7
27
6
26
5
25
4
24
3
23
2
22
9
●ALS_DATA 0_LSBs( 46h )
Register
ALS_DATA0_LSBs
1
0
1
2
20
default value 00h
●ALS_DATA 0_MSBs( 47h )
Register
TYPE
7
6
5
4
3
2
ALS_DATA0_MSBs
R
215
214
213
212
211
210
1
TYPE
7
6
5
4
3
2
1
7
6
5
4
3
2
1
0
29
28
default value 00h
●ALS_DATA 1_LSBs( 48h )
Register
ALS_DATA1_ LSBs
R
2
2
2
2
2
2
0
2
20
default value 00h
●ALS_DATA 1_MSBs( 49h )
Register
TYPE
7
6
5
4
3
2
ALS_DATA1_MSBs
R
215
214
213
212
211
210
www.rohm.com
c 2016 ROHM Co., Ltd. All rights reserved.
○
14/24
1
0
29
28
default value 00h
2016.01.28 - Rev.001
Datasheet
RPR-0521RS
● INTERRUPT ( 4Ah )
Field
Bit
TYPE
PS INT STAUTS
7
R
ALS INT STATUS
6
R
INT MODE
5:4
RW
INT ASSERT
3
RW
INT LATCH
2
RW
INT TRIG
1:0
RW
Description
0 : PS interrupt signal inactive
1 : PS interrupt signal active
0 : ALS interrupt signal inactive
1 : ALS interrupt signal active
00 : Only PS_TH_H is effective
01 : PS_TH_H and PS_TH_L are effective as hysteresis
10 : PS_TH_H and PS_TH_L are effective as outside detection
11 : Forbidden
0 : Interrupt output ‘L’ is stable if newer measurement result is
also interrupt active
1 : Interrupt output ‘L’ is de-assert and re-assert if newer
measurement result is also interrupt active
0 : INT pin is latched until INTERRUPT register is read or
initialized
1 : INT pin is updated after each measurement
00 : INT pin is inactive
01 : Triggered by only PS measurement
10 : Triggered by only ALS measurement
11 : Triggered by PS and ALS measurement
default value 00h
1. In case of PS/ALS outside detection mode, interrupt signal inactive means that measurement result is
within registered threshold level; interrupt signal active means measurement result is out of registered
threshold level.
2. In case of PS hysteresis mode, once interrupt signal becomes active, INT status is kept until mea
surement result
becomes less than PS_TH_L register value.
3. Persistence is for PS only.
4. INT Pin become inactive (high impedance) if INTERRUPT register is read, initialized, or SW reset
is started.
●PS_TH_LSBs ( 4Bh )
Register
PS_TH_LSBs
TYPE
RW
7
27
6
26
5
25
4
24
3
23
2
22
1
21
0
20
default value FFh
● PS_TH_MSBs ( 4Ch )
Register
PS_TH_MSBs
TYPE
RW
7
0
6
0
5
0
4
0
3
211
2
210
1
29
0
28
default value 0Fh
● PS_TL_LSBs ( 4Dh )
Register
PS_TL_LSBs
TYPE
RW
7
27
6
26
5
25
4
24
3
23
2
22
1
21
0
20
default value 00h
● PS_TL_MSBs ( 4Eh )
Register
PS_TL_MSBs
TYPE
RW
7
0
6
0
5
0
4
0
3
211
2
210
1
29
0
28
default value 00h
www.rohm.com
c 2016 ROHM Co., Ltd. All rights reserved.
○
15/24
2016.01.28 - Rev.001
Datasheet
RPR-0521RS
●ALS_DATA0_TH_LSBs ( 4Fh )
Register
ALS_DATA0_TL_ LSBs
TYPE
RW
7
27
6
26
5
25
4
24
3
23
2
1
0
22
21
20
default value FFh
TYPE
RW
7
215
6
214
5
213
4
212
3
211
2
1
0
210
29
28
default value FFh
TYPE
RW
7
27
6
26
5
25
4
24
3
23
2
1
0
2
1
2
2
20
default value 00h
TYPE
RW
7
215
6
214
5
213
4
212
3
211
2
1
0
10
9
2
2
28
default value 00h
TYPE
RW
7
27
6
26
5
25
4
24
3
23
2
22
●ALS_DATA0_TH_MSBs ( 50h )
Register
ALS_DATA0_TH_MSBs
● ALS_DATA0_TL_LSBs ( 51h )
Register
ALS_DATA0_TH_LSBs
● ALS_DATA0_TL_MSBs ( 52h )
Register
ALS_DATA0_TL_ MSBs
● PS _OFFSET_LSBs ( 53h )
Register
PS_OFFSET_LSBs
1
21
0
20
default value 00h
● PS _OFFSET_MSBs ( 54h )
Field
Resereved
Bit
7:2
TYPE
R
Description
Ignored
PS_OFFSET_MSBs
1:0
RW
Shown below
default value 00h
Register
PS_OFFSET_MSBs
TYPE
RW
7
-
6
-
5
-
4
-
3
-
2
-
1
0
9
2
28
default value 00h
When changed these registers, PS_DATA (44h,45h) becomes
([PS measured value])- ([PS offset value]) offset value])
● MANUFACT_ID ( 92h )
Field
MANUFACT_ID
Bit
7:0
TYPE
R
Description
11100000
default value E0h
www.rohm.com
c 2016 ROHM Co., Ltd. All rights reserved.
○
16/24
2016.01.28 - Rev.001
Datasheet
RPR-0521RS
2
● I C bus communication
1) Slave address “0111000” (38h)
2) Main write format
1. Case of “Indicating register address”
ST
Slave Address
0111000
W
0
Indicate register address
010XXXXX
ACK
ACK
SP
2. Case of "writing data register after indicating register address"
ST
Slave Address
0111000
W
0
Data specified at register address
field
Indicate register address
010XXXXX
ACK
Data
ACK
ACK
ACK
specified at register
address
field + N
ACK
SP
RPR-0521RS continues to write data with address increments until master issues stop condition.
Write cycle is 40h - 41h - 42h - 43h - 44h - 45h - 46h ……… 53h – 54h - 40h ………
Ex) If register address field is 42h, then RPR-0521RS writes data like below.
42h - 43h - 44h - 45h - 46h ……… 53h - 54h - 40h…….
Register writing continues until master issues stop condition.
3) Main read format
1. Case of “Reading data after indicating register address” (Master issues restart condition)
ST
Slave Address
0111000
W
0
ST
Slave Address
0111000
R
1
Data specified at register
address field + 1
ACK
Indicate register address
010XXXXX
ACK
ACK
ACK
Data specified at register address
field
ACK
Data specified at register
address field + N
ACK
NACK
SP
2. Case of “Reading data from specified register address”
ST
Slave Address
0111000
Data specified at register
address field + 1
R
1
ACK
ACK
Data specified at register address
field
ACK
Data specified at register
address field + N
ACK
NACK
SP
RPR-0521RS continues to read data from specified address field until master issues stop condition.
Read cycle is 40h - 41h - 42h - 43h - 44h - 45h - 46h ……… 53h - 54h - 40h ………
Ex) If register address field is 53h, then RPR-0521RS reads data like below.
53h - 54h - 40h ………
Register reading continues until master issues stop condition.
from master to slave
from slave to master
RPR-0521RS operates as I2C bus slave device.
※ Please refer formality I2C bus specification of NXP semiconductors.
※
www.rohm.com
c 2016 ROHM Co., Ltd. All rights reserved.
○
17/24
2016.01.28 - Rev.001
Datasheet
RPR-0521RS
●Notice in case of using ALS 50ms measurement mode
At 50msec mode (MODE_CONTROL (41h) <3:0>:"1100"), full scale count of ALS_DATA0 (46h, 47h) and
ALS_DATA1 (48h, 49h) become half of other modes.
ALS_DATA0<15> or ALS_DATA1<15> is a flag indicating the data overflow.
Consequently, additional function as follows is necessary in software at 50msec mode.
<Necessary software function>
if (DATA0<15>==1){DATA0<15:0>=7FFFh}
if (DATA1<15>==1){DATA1<15:0>=7FFFh}
*This function is necessary at 50msec mode only.
*This function must be executed before Lux calculation given
● PS twice measurement mode
RPR-0521RS has two PS operating modes that can be selected by MODE_CONTROL(41h).
At normal mode, PS measurement is done only once in each measurement period.
At twice measurement mode, PS measurement is done twice in each measurement period.
By using twice measurement mode, quicker response of interrupt is available than normal mode
when persistence function is active.
Mea
surement
Mea
surementinterval
interval
ノーマルモード
No
rmal
No rmal
mo mo
de de
Twice
2 Twice
回測定モード
surement
meamea
surement
mo mo
de de
www.rohm.com
c 2016 ROHM Co., Ltd. All rights reserved.
○
18/24
2016.01.28 - Rev.001
Datasheet
RPR-0521RS
● Notice in case of changing register value
When master changes a value of ALS_PS_CONTROL(42h) (For example, ALS gain), it is necessary to stop the
ALS/PS measurement in progress and re-start the measurement from the beginning (“Interrupt & Re-start”
sequence). The way to “Interrupt & Re-start” is to write some data to MODE CONTROL(41h). By writing both
MODE_CONTROL(41h) and ALS_PS_CONTROL(42h) with address increments access, it is possible to change
the register setting and “Interrupt & Re-start” the measurement at the same time.
● Power on reset function
RPR-0521RS series have power on reset function. By operating this function, all of registers are reset when the
power is supplied.
Please note followings and design the application.
① Power on time : t1
t1 > 2ms
RPR-0521RS series become operational after 2ms since VDD voltage crosses 2.0V from being less
than 0.4V.
② Power off time :t2
t2 > 1ms
Before the power is supplied, VDD voltage should be less than 0.4V at least for 1ms.
VCC
* “active
“active” means that RPR-0521RS series are correctly operational.
INT terminal is high impedance when VDD is supplied.
When VDD voltage become less than 2.0V, the power should be supplied again in accordance with the
above sequence.
www.rohm.com
c 2016 ROHM Co., Ltd. All rights reserved.
○
19/24
2016.01.28 - Rev.001
Datasheet
RPR-0521RS
● Interrupt function
Interrupt function compares ALS and PS measurement result to preset interrupt threshold level. Interrupt status
can be monitored by INT pin. Interrupt function is able to be controlled by INTTERRUPT register ( 4Ah ).
Interrupt persistence is defined at PERSIST register ( 43h ). Persistence function is for PS only. There are two
output modes about interrupt function ( latched mode and unlatched mode ).
INT pin is Nch open drain terminal, so this terminal should be pull-up to some kind of voltage source by an
external resistance. INT terminal is high impedance when VCC is supplied.
INT terminal keeps previous state when power down command is sent. So it is recommended to set INT terminal
to high impedance before sending power down command. VDD current (approximately 25uA at VDD=2.5V) is
consumed during INT terminal is active. INT terminal can be changed to high impedance by writing INT reset
command, reading INTERRUPT register ( 4Ah ), or resetting software.
ex1 ) In case of using PS ‘H’ threshold (INTERRUPT register 4Ah<5:4> : ”00”)
In case of unlatched mode, if the measurement value exceeds the PS interrupt threshold ‘H’ value, the interrupt
becomes active. And if the measurement value is below the threshold ‘H’ value, the interrupt becomes inactive.
In case of latched mode, once the interrupt becomes active, it keeps the status until INT reset command is sent
or interrupt register is read.
In case of persistence function is set to active, if the INT is inactive, it keeps inactive status until the measurement
value exceeds the threshold ‘H’ value continuously. If the interrupt is active, it keeps active status until INT reset
command is sent, interrupt register is read, or the measurement value is below threshold ‘H’ value continuously
( case of unlatched mode ).
INT pin reset command is sent or master reads INTERRUPT
Latched mode
Unlatched mode
Unlatched mode
Persistence = 2
Active
Inactive
PS interrupt threshold level
Sequential measurement result
time
www.rohm.com
c 2016 ROHM Co., Ltd. All rights reserved.
○
20/24
2016.01.28 - Rev.001
Datasheet
RPR-0521RS
ex2 ) In case of using PS hysteresis mode (INTERRUPT register 4Ah<5:4> : ” 01”)
In case of unlatched mode, if the measurement value exceeds the PS interrupt threshold ‘H’ value, the interrupt
becomes active. And if the measurement value is below the threshold ‘L’ value, the interrupt becomes inactive.
In case of latched mode, once the interrupt becomes active, it keeps the status until INT reset command is sent
or interrupt register is read.
In case of persistence function is set to active, if the INT is inactive, it keeps inactive status until the measurement
value exceeds the threshold ‘H’ value continuously. If the interrupt is active, it keeps active status until INT reset
command is sent, interrupt register is read, or the measurement value is below threshold ‘L’ value continuously.
INT pin reset command is sent or master reads INTERRUPT
Latched mode
Unlatched mode
Unlatched mode
Persistence = 2
Active
Inactive
PS interrupt threshold ‘H’ level
PS interrupt threshold ‘L’ level
Sequential measurement result
time
www.rohm.com
c 2016 ROHM Co., Ltd. All rights reserved.
○
21/24
2016.01.28 - Rev.001
Datasheet
RPR-0521RS
ex3 ) In case of using PS outside threshold mode (INTERRUPT register 4Ah<5:4> : ” 10”)
In case of unlatched mode, if the measurement value is within the range set by PS interrupt threshold ‘H’ and ‘L’
value, the interrupt becomes inactive. And if the measurement value is out of the range set by threshold ‘H’ and
‘L’ value, the interrupt becomes active.
In case of latched mode, once the interrupt becomes active, it keeps active status until INT reset command is
sent, or interrupt register is read.
INT pin reset command is sent or master reads INTERRUPT
Latched mode
Unlatched mode
Active
Inactive
PS interrupt threshold ‘H’ level
PS interrupt threshold ‘L’ level
Sequential measurement result
time
www.rohm.com
c 2016 ROHM Co., Ltd. All rights reserved.
○
22/24
2016.01.28 - Rev.001
Datasheet
RPR-0521RS
ex4 ) Ambient light sensor interrupt function
In case of unlatched mode, if the measurement value (ALS_DATA0) is within the range set by ALS interrupt
threshold ‘H’ and ‘L’ value, the interrupt becomes inactive. And if the measurement value (ALS_DATA0) is out of
the range set by threshold ‘H’ and ‘L’ value, the interrupt becomes active.
In case of latched mode, once the interrupt becomes active, it keeps active status until INT reset command is
sent, or interrupt register is read.
INT pin reset command is sent or master reads INTERRUPT
Latched mode
Unlatched mode
Active
Inactive
ALS interrupt threshold ‘H’ level
ALS interrupt threshold ‘L’ level
Sequential measurement result
time
www.rohm.com
c 2016 ROHM Co., Ltd. All rights reserved.
○
23/24
2016.01.28 - Rev.001
Datasheet
RPR-0521RS
● Cautions for using this product
1) Absolute Maximum Ratings
An excess in the absolute maximum ratings, such as supply voltage, temperature range of
operating conditions ( Topr ), etc., can break down devices, and make impossible to identify
breaking mode such as short circuit or open circuit. If any special mode exceeding the absolute
maximum ratings is assumed, consideration should be given to take physical safety measures
including the use of fuses.
2) GND voltage
It is necessary to keep the potential of the GND terminal at the minimum potential of all terminals
at any time.
3) Short circuit between terminals and erroneous mounting
In order to mount products on the set PCB, pay thorough attention to the direction and offset of the
products. Erroneous mounting can break down the products. Furthermore, if a short circuit occurs
due to foreign matters entering between terminals or between the terminal and the power supply or
the GND terminal, the products can break down.
4) Operation in strong electromagnetic field
Be noted that using products in the strong electromagnetic field can malfunction.
5) Inspection with set PCB
In order to mount or dismount the set PCB to/from the jig for the inspection process, be sure to turn
OFF the power supply. In addition, pay attention to protection against static electricity.
6) Dust or scratch
Dusts or scratch on the photo detector may affect the optical characteristics. Please handle it with
care.
7) Rush current
When power is supplied to the product, it is possible that the internal logic may be unstable and
rush current may flow instantaneously. Therefore, give special consideration to power coupling capacitance,
power supply, and circuit design.
www.rohm.com
c 2016 ROHM Co., Ltd. All rights reserved.
○
24/24
2016.01.28 - Rev.001
Notice
Notes
1) The information contained herein is subject to change without notice.
2) Before you use our Products, please contact our sales representative and verify the latest specifications :
3) Although ROHM is continuously working to improve product reliability and quality, semiconductors can break down and malfunction due to various factors.
Therefore, in order to prevent personal injury or fire arising from failure, please take safety
measures such as complying with the derating characteristics, implementing redundant and
fire prevention designs, and utilizing backups and fail-safe procedures. ROHM shall have no
responsibility for any damages arising out of the use of our Poducts beyond the rating specified by
ROHM.
4) Examples of application circuits, circuit constants and any other information contained herein are
provided only to illustrate the standard usage and operations of the Products. The peripheral
conditions must be taken into account when designing circuits for mass production.
5) The technical information specified herein is intended only to show the typical functions of and
examples of application circuits for the Products. ROHM does not grant you, explicitly or implicitly,
any license to use or exercise intellectual property or other rights held by ROHM or any other
parties. ROHM shall have no responsibility whatsoever for any dispute arising out of the use of
such technical information.
6) The Products are intended for use in general electronic equipment (i.e. AV/OA devices, communication, consumer systems, gaming/entertainment sets) as well as the applications indicated in
this document.
7) The Products specified in this document are not designed to be radiation tolerant.
8) For use of our Products in applications requiring a high degree of reliability (as exemplified
below), please contact and consult with a ROHM representative : transportation equipment (i.e.
cars, ships, trains), primary communication equipment, traffic lights, fire/crime prevention, safety
equipment, medical systems, servers, solar cells, and power transmission systems.
9) Do not use our Products in applications requiring extremely high reliability, such as aerospace
equipment, nuclear power control systems, and submarine repeaters.
10) ROHM shall have no responsibility for any damages or injury arising from non-compliance with
the recommended usage conditions and specifications contained herein.
11) ROHM has used reasonable care to ensur the accuracy of the information contained in this
document. However, ROHM does not warrants that such information is error-free, and ROHM
shall have no responsibility for any damages arising from any inaccuracy or misprint of such
information.
12) Please use the Products in accordance with any applicable environmental laws and regulations,
such as the RoHS Directive. For more details, including RoHS compatibility, please contact a
ROHM sales office. ROHM shall have no responsibility for any damages or losses resulting
non-compliance with any applicable laws or regulations.
13) When providing our Products and technologies contained in this document to other countries,
you must abide by the procedures and provisions stipulated in all applicable export laws and
regulations, including without limitation the US Export Administration Regulations and the Foreign
Exchange and Foreign Trade Act.
14) This document, in part or in whole, may not be reprinted or reproduced without prior consent of
ROHM.
Thank you for your accessing to ROHM product informations.
More detail product informations and catalogs are available, please contact us.
ROHM Customer Support System
http://www.rohm.com/contact/
www.rohm.com
© 2015 ROHM Co., Ltd. All rights reserved.
R1102A
Similar pages