Optical Sensor
Product Data Sheet
LTR-381RGB-WA
Spec No. :DS86-2017-0037
Effective Date: 03/03/2018
Revision: -
LITE-ON DCC
RELEASE
BNS-OD-FC001/A4
LITE-ON Technology Corp. / Optoelectronics
No.90,Chien 1 Road, Chung Ho, New Taipei City 23585, Taiwan, R.O.C.
Tel: 886-2-2222-6181 Fax: 886-2-2221-1948 / 886-2-2221-0660
http://www.liteon.com/opto
OPTICAL SENSOR
LTR-381RGB-WA
Features
Description
The LTR-381RGB-WA is an integrated low voltage I2C
ambient light sensor (ALS) and a color sensor (CS) in a
single 2x2mm miniature ChipLED lead-free surface mount
•
I2C interface (Standard mode @100kHz or Fast mode
@400kHz)
•
Ambient Light / Advanced RGB in ultra-small chipled
package
package.
•
With the advanced RGB color sensor, this sensor converts
light (Red, Green, Blue, and IR) intensity to a digital output
signal capable of direct I2C interface. The ALS provides a
linear response over a wide dynamic range, which is well
suited to applications under very low or bright ambient
Very low power consumption with sleep mode
capability
•
Operating voltage ranges: 1.7V to 3.6V
•
Operating temperature ranges: -40 to +85 ºC
•
Built-in temperature compensation circuit
•
Programmable interrupt function for ALS with upper
•
RoHS and Halogen free compliant
•
RGB/ALS Features
and lower thresholds
brightness.
The sensor has a programmable interrupt with hysteresis
to response to events and that removes the need to poll the
sensor for a reading which improves system efficiency.
16 to 20 bits effective resolution
This CMOS design and factory-set one time trimming
Wide dynamic range with linear response
capability ensure minimal sensor-to-sensor variations for
Close to human eye spectral response
ease of manufacturability to the end customers.
Automatic rejection for 50Hz/60Hz lighting
flicker
Application
Control brightness and color of display panel in mobile,
computing, and consumer devices.
Ordering Information
Part Number
Packaging Type
Package
Quantity
LTR-381RGB-WA
Tape and Reel
6-pin chipled package
2500
Part No. : LTR-381RGB-WA
BNS-OD-FC002/A4
Confidential
1/34
OPTICAL SENSOR
LTR-381RGB-WA
1.
Outline Dimensions
Confidential
2/34
Part No. : LTR-381RGB-WA
BNS-OD-FC002/A4
OPTICAL SENSOR
LTR-381RGB-WA
2. Functional Block Diagram
LTR-381RGB-WA contains different photodiodes for ALS/CS (red, green, blue, and IR channel) measurement.
The photodiode currents are converted to digital values by ADCs. The sensor also includes some peripheral
circuits such as an internal oscillator, a current source, voltage reference, and internal fuses to store trimming
information.
Confidential
3/34
Part No. : LTR-381RGB-WA
BNS-OD-FC002/A4
OPTICAL SENSOR
LTR-381RGB-WA
3. Application Circuit
I/O Pins Configuration Table
Pin
1
I/O Type
Symbol
Description
Supply
VDD
Power Supply Voltage
NC
Reserved for internal test. Do not connect at application circuit level.
2
3
Ground
GND
Ground
4
I
SCL*
I2C serial clock. This pin is an open drain input.
5
O
INT*
Level Interrupt Pin. This pin is an open drain output.
6
I/O
SDA*
I2C serial data. This pin is an open drain input / output.
* Note: For noisy environment, add 10pF capacitor from signal to GND for additional noise filtering.
Recommended Application Circuit Components
Component
Recommended Value
Rp1, Rp2, Rp3 [1]
1 kΩ to 10 kΩ
C1
0.1uF
C2
1uF
Notes:
[1] Selection of pull-up resistors value is dependent on bus capacitance values. For more details, please refer to
I2C Specifications: http://www.nxp.com/documents/user_manual/UM10204.pdf
Confidential
4/34
Part No. : LTR-381RGB-WA
BNS-OD-FC002/A4
OPTICAL SENSOR
LTR-381RGB-WA
4. Rating and Specification
4.1. Absolute Maximum Rating at Ta=25°C
Parameter
Symbol
Min.
Supply Voltage
VDD
Digital Voltage Range
SCL, SDA, INT
Storage Temperature
Tstg
Electrostatic Discharge Protection Note 1
(Human Body Model JESD22-A114)
VHBM
Max.
Unit
3.63
V
-0.5
3.63
V
-40
95
°C
2000
V
Note:
1.
ESD VHMB for pin 2 (NC) is 1000V. This pin is reserved for internal test, do not connect at application
circuit level.
2.
Exceeding these ratings could cause damage to the sensor. All voltages are with respect to
ground. Currents are positive into, negative out of the specified terminal.
4.2. Recommended Operating Conditions
Description
Symbol
Min.
VDD
Interface signal input high
Interface signal input low
Supply Voltage
Operating Temperature
Typ.
Max.
Unit
1.7
3.6
V
VI2Chigh
1.5
VDD
V
VI2Clow
0
0.4
V
Tope
-40
85
°C
4.3. Electrical Specifications (VDD = 3.0V, Ta=25°C , unless otherwise noted)
Parameter
Min.
Typ.
Max.
Unit
Condition
ALS Active Supply Current
120
uA
Default duty cycle, VDD=3.0V, Gain
3x
CS Active Supply Current
120
uA
Default duty cycle, VDD=3.0V
Standby Current
1.2
uA
Standby Mode
Wakeup Time from Standby
0.5
ms
From Standby to Active mode where
measurement can start
Confidential
10
5/34
Part No. : LTR-381RGB-WA
BNS-OD-FC002/A4
OPTICAL SENSOR
LTR-381RGB-WA
4.4. Characteristics Ambient Light/Color Sensor (VDD = 3.0V, Ta=25°C, unless otherwise
noted)
Parameter
Min.
ALS/CS Resolution
Typ.
16
Dark Level Count
0
Lux Accuracy
-10
Max.
Unit
Condition
20
Bit
5
Count
+10
%
Direct illumination
Based on XYZ coordinate, no
window.
Programmable for 16, 17, 18, 19, 20
Bit
0 Lux, 18-bit resolution
Color temperature Accuracy
-5
+5
%
50/60 Hz flicker noise error
-5
+5
%
Temperature Dependency
-0.25
+0.25
%/°C
Voltage Dependency
-5
+5
%
At 100 Lux,
At operating voltage ranges
Integration time
25
400
ms
With 50/60Hz Rejection
At 100 Lux
4.5. Typical Device Parameter
(VDD = 3.0V, Ta=25°C, Default power-up settings, unless otherwise noted)
RGB Spectral Response
Spectral Response of RGB
Confidential
Angular of Incidence
ALS Sensitivity vs. Angular of Incidence
6/34
Part No. : LTR-381RGB-WA
BNS-OD-FC002/A4
OPTICAL SENSOR
LTR-381RGB-WA
4.8. AC Electrical Characteristics
All specifications are at VBus = 1.7V, Tope = 25°C, unless otherwise noted.
Symbol
Parameter
f SCL
SCL clock frequency
Min.
1
Max.
Unit
400
kHz
Bus free time between a STOP and START condition
t BUF
1.3
us
Hold time (repeated) START condition. After this period, the first
clock pulse is generated
t HD ; STA
0.6
us
LOW period of the SCL clock
t LOW
1.3
us
HIGH period of the SCL clock
t HIGH
0.6
us
Set-up time for a repeated START condition
t SU ;STA
0.6
us
Set-up time for STOP condition
t SU ; STO
0.6
us
Rise time of both SDA and SCL signals
tr
30
300
ns
Fall time of both SDA and SCL signals
tf
30
300
ns
Data hold time
t HD ; DAT
0.3
0.9
us
Data setup time
t SU ; DAT
100
Pulse width of spikes which must be suppressed by the input filter
t SP
0
ns
50
ns
Definition of timing for I2C bus
Confidential
7/34
Part No. : LTR-381RGB-WA
BNS-OD-FC002/A4
OPTICAL SENSOR
LTR-381RGB-WA
5. Principle of Operation
I2C Protocols
.I2C Write Protocol (type 1):
.I2C Write Protocol (type 2):
.I2C Read Protocol:
Confidential
8/34
Part No. : LTR-381RGB-WA
BNS-OD-FC002/A4
OPTICAL SENSOR
LTR-381RGB-WA
.I2C Read (Combined format) Protocol:
A
S
P
W
Acknowledge (0 for an ACK)
Start condition
Stop condition
Write (0 for writing)
Slave-to-master
N
Sr
Non-Acknowledge(1 for an NACK)
Repeated Start condition
R
Read (1 for read)
Master-to-Slave
I2C Slave Address
The device has a 7-bit slave address of 0x53. A read/write bit should be appended to the slave address by the
master device to properly communicate with the device.
I2C Slave Address (Default)
(0x53)
W/R
Command
Type
Bit 7
Bit 6
Bit 5
Bit 4
Bit 3
Bit 2
Bit 1
Bit 0
Write
1
0
1
0
0
1
1
0
0xA6H
Read
1
0
1
0
0
1
1
1
0xA7H
Confidential
value
9/34
Part No. : LTR-381RGB-WA
BNS-OD-FC002/A4
OPTICAL SENSOR
LTR-381RGB-WA
6. Register Set
Addr
R/W
0x00
RW
0x01~0x03
R
0x04
R/W
0x05
R/W
0x06
R
Register Name
Reset
Value
Description
MAIN_CTRL
Operation mode control, SW reset
Reserved
--
0x00
ALS_CS_MEAS_RATE
ALS/CS measurement rate and resolution in Active Mode
-0x22
ALS_CS_GAIN
ALS/CS analog Gain
0x01
PART_ID
Part number ID and revision ID
0xC2
0x20
0x07
R
MAIN_STATUS
Power-On status, Interrupt status, Data status
0x08~0x09
R
Reserved
--
0x0A
R
CS_DATA_IR_0
CS IR ADC measurement data,LSB
0x00
0x00
--
0x0B
R
CS_DATA_IR_1
CS IR ADC measurement data
0x0C
R
CS_DATA_IR_2
CS IR ADC measurement data, MSB
0x00
0x0D
R
CS_DATA_GREEN_0
CS green / ALS ADC measurement data, LSB
0x00
0x0E
R
CS_DATA_GREEN_1
CS green / ALS ADC measurement data
0x00
0x0F
R
CS_DATA_GREEN_2
CS green / ALS ADC measurement data, MSB
0x00
0x10
R
CS_DATA_BLUE_0
CS blue ADC measurement data, LSB
0x00
0x11
R
CS_DATA_BLUE_1
CS blue ADC measurement data
0x00
0x12
R
CS_DATA_BLUE_2
CS blue ADC measurement data, MSB
0x00
0x13
R
CS_DATA_RED_0
CS red ADC measurement data, LSB
0x00
0x14
R
CS_DATA_RED_1
CS red ADC measurement data
0x00
0x00
0x15
R
CS_DATA_RED_2
CS red ADC measurement data, MSB
0x16~0x18
R
Reserved
--
0x19
R/W
INT_CFG
Interrupt configuration
0x10
0x00
--
0x1A
R/W
INT_PST
Interrupt persist setting
0x1B~0x20
R
Reserved
--
0x21
R/W
ALS_THRES_UP_0
ALS interrupt upper threshold, LSB
0xFF
0x22
R/W
ALS_THRES_UP_1
ALS interrupt upper threshold, intervening bits
0xFF
0x23
R/W
ALS_THRES_UP_2
ALS interrupt upper threshold, MSB
0x0F
0x24
R/W
ALS_THRES_LOW_0
ALS interrupt lower threshold, LSB
0x00
0x25
R/W
ALS_THRES_LOW_1
ALS interrupt lower threshold, intervening bits
0x00
0x26
R/W
ALS_THRES_LOW_2
ALS interrupt lower threshold, MSB
0x00
Confidential
--
10/34
Part No. : LTR-381RGB-WA
BNS-OD-FC002/A4
OPTICAL SENSOR
LTR-381RGB-WA
MAIN_CTRL Register (0x00) (Read/Write)
This register controls the operation modes of CS/ALS, which can be set to either standby or active mode. When
writing to this register, it will cause a stop to any ongoing measurements (CS/ALS) and start new measurement.
0x00
MAIN_CTRL (default = 0x00)
B7
B6
B5
Reserved
Field
Bits
Default
Reserved
7:5
000
SW Reset
4
0
Reserved
3
0
CS Mode
2
0
ALS/CS Enable
1
0
Reserved
0
0
Confidential
B4
B3
B2
B1
B0
SW Reset
Reserved
CS
Mode
ALS CS
Enable
Reserved
Description
--
Must write 000
0
Software reset is NOT triggered (default)
1
Software reset is triggered
-0
Must write 0
ALS mode: ALS, IR and Temperature Compensation Channels activated
(default)
1
CS mode: All Light Sensor channels activated (RGB+IR+COMP)
0
ALS standby (default)
1
ALS active
--
Must write 0
11/34
Part No. : LTR-381RGB-WA
BNS-OD-FC002/A4
OPTICAL SENSOR
LTR-381RGB-WA
ALS_CS_MEAS_RATE Register (0x04) (Read/Write)
This register controls ALS/CS measurement resolution, Gain setting and measurement rate. When the
measurement rate is programmed to be faster than possible for the programmed ADC measurement, the rate
will be lowered than programmed (maximum speed).
0x04
ALS_CS_MEAS_RATE (default = 0x22)
B7
B6
Reserved
B5
B4
ALS/CS Resolution/Bit Width
Field
Bits
Default
Description
Reserved
7
0
Must write 0
ALS/CS
Resolution
6:4
010
ALS/CS
Measurement
Rate
Confidential
3
2:0
0
010
B2
Reserved
B1
B0
ALS/CS Measurement Rate
000
20 Bit, Conversion time = 400ms
001
010
011
100
19 Bit, Conversion time = 200ms
18 Bit, Conversion time = 100ms(default)
17 Bit, Conversion time = 50ms
16 Bit, Conversion time = 25ms
101/110/111
Reserved
B3
Reserved
Must write 0
000
001
010
011
100
101
110/111
25ms
50ms
100ms (default)
200ms
500ms
1000ms
2000ms
12/34
Part No. : LTR-381RGB-WA
BNS-OD-FC002/A4
OPTICAL SENSOR
LTR-381RGB-WA
ALS_CS_GAIN Register (0x05) (Read/Write)
This register controls ALS/CS measurement Gain Range.
0x05
ALS_CS_GAIN (default = 0x01)
B7
B6
B5
B4
B3
B2
Reserved
Field
Bits
Default
Reserved
7:3
00000
ALS/CS
Gain
Range
2:0
B1
B0
ALS/CS Gain Range
Description
Must write 00000
001
000
Gain Range: 1
001
Gain Range: 3 (default)
010
Gain Range: 6
011
Gain Range: 9
100
Gain Range: 18
PART_ID Register (0x06) (Read Only)
This register defines the part number and revision identification of the sensor.
0x06
PART_ID (default = 0xC2)
B7
B6
B5
B4
Part Number ID
Field
Bits
Default
Part Number
ID
7:4
1100
Part Number ID
Reserved
3:0
0010
--
Confidential
B3
B2
B1
B0
Reserved
Description
13/34
Part No. : LTR-381RGB-WA
BNS-OD-FC002/A4
OPTICAL SENSOR
LTR-381RGB-WA
MAIN_STATUS Register (0x07) (Read Only)
This register stores the information about the ALS/CS interrupts and data status. The interrupt status in Bit 4
determines if the ALS/CS interrupt criteria are met in Normal Interrupt Mode: It triggers when the CS/ALS is
above the upper or below the lower threshold for a specified number of consecutive measurements in
respective interrupt persist settings. For details interrupt behavior, refer to Section 10.
0x07
MAIN_STATUS (default = 0x00)
B7
B6
Reserved
B5
B4
B3
Power
ON
Status
ALS/CS
Interrupt
Status
ALS/CS
Data
Status
Field
Bits
Default
Reserved
7:6
00
5
1
1
ALS/CS Interrupt
Status
CS/ALS Data Status
Reserved
Confidential
4
3
2:0
0
B1
B0
Reserved
Description
0
Power On Status
B2
Normal
Part went through a power-up event, either because the
part was turned on or because there was a power supply
voltage disturbance.
0
A value of 1 is the default for the first register read after
power-on-reset. The flag is cleared after the flag is read.
Interrupt is NOT triggered (default)
1
Interrupt is triggered and will be cleared after read
0
CS/ALS data is old data (Data has been read)
1
CS/ALS data is new data (Data has not been read and will
be cleared after read)
0
000
14/34
Part No. : LTR-381RGB-WA
BNS-OD-FC002/A4
OPTICAL SENSOR
LTR-381RGB-WA
CS_DATA_IR Register (0x0A / 0x0B / 0x0C) (Read Only)
The Color Sensor IR Channel digital output data are expressed as a 16 to 20 bit unsigned integer data. When
I2C read operation is active and points to any of the register address between 0x07 and 0x18, all 3 registers will
be locked until the I2C read operation has been completed or the specified address range is left. This is to ensure
that the data in the registers is from the same measurement even if an additional measurement cycle ends during
the read operation. New measurement data is stored into temporary registers and the CS_DATA_IR registers
will be updated as soon as there is no on-going I2C read operation to the address range 0x07 to 0x18.
0x0A
CS_DATA_IR_0 (default = 0x00)
B7
B6
B5
B4
B3
B2
B1
B0
B2
B1
B0
B2
B1
B0
CS DATA IR, Low
0x0B
CS_DATA_IR_1 (default = 0x00)
B7
B6
B5
B4
B3
CS DATA IR, Middle
0x0C
CS_DATA_IR_2 (default = 0x00)
B7
B6
B5
B4
B3
Reserved
CS DATA IR, High
Field
Address
Bits
Default
CS Data IR, Low
0x0A
7:0
0000 0000
CS Data (IR) lower byte data
CS Data IR, Middle
0x0B
7:0
0000 0000
CS Data (IR) Middle byte data
7:4
0000
Reserved
CS Data IR, High
0x0C
3:0
0000
CS Data (IR) Higher byte data
Confidential
Description
15/34
Part No. : LTR-381RGB-WA
BNS-OD-FC002/A4
OPTICAL SENSOR
LTR-381RGB-WA
CS_DATA_GREEN Register (0x0D / 0x0E / 0x0F) (Read Only)
The Color Sensor Green Channel digital output data are expressed as a 16 to 20 bit unsigned integer data.
When I2C read operation is active and points to any of the register address between 0x07 and 0x18, all 3
registers will be locked until the I2C read operation has been completed or the specified address range is left.
This is to ensure that the data in the registers is from the same measurement even if an additional measurement
cycle ends during the read operation. New measurement data is stored into temporary registers and the
CS_DATA_GREEN registers will be updated as soon as there is no on-going I2C read operation to the address
range 0x07 to 0x18.
0x0D
CS_DATA_GREEN_0 (default = 0x00)
B7
B6
B5
B4
B3
B2
B1
B0
B1
B0
B1
B0
CS DATA GREEN, Low
0x0E
CS_DATA_GREEN_1 (default = 0x00)
B7
B6
B5
B4
B3
B2
CS DATA GREEN, Middle
0x0F
CS_DATA_GREEN_2 (default = 0x00)
B7
B6
B5
B4
Reserved
B3
B2
CS DATA GREEN, High
Field
Address
Bits
Default
CS Data Green, Low
0x0D
7:0
0000 0000
CS Data (Green) lower byte data
CS Data Green, Middle
0x0E
7:0
0000 0000
CS Data (Green) Middle byte data
7:4
0000
Reserved
CS Data Green, High
0x0F
3:0
0000
CS Data (Green) Higher byte data
Confidential
Description
16/34
Part No. : LTR-381RGB-WA
BNS-OD-FC002/A4
OPTICAL SENSOR
LTR-381RGB-WA
CS_DATA_BLUE Register (0x10 / 0x11 / 0x12) (Read Only)
The Color Sensor Blue Channel digital output data are expressed as a 16 to 20 bit unsigned integer data. When
I2C read operation is active and points to any of the register address between 0x07 and 0x18, all 3 registers will
be locked until the I2C read operation has been completed or the specified address range is left. This is to ensure
that the data in the registers is from the same measurement even if an additional measurement cycle ends during
the read operation. New measurement data is stored into temporary registers and the CS_DATA_BLUE registers
will be updated as soon as there is no on-going I2C read operation to the address range 0x07 to 0x18.
0x10
CS_DATA_BLUE_0 (default = 0x00)
B7
B6
B5
B4
B3
B2
B1
B0
B1
B0
B1
B0
CS DATA BLUE, Low
0x11
CS_DATA_BLUE_1 (default = 0x00)
B7
B6
B5
B4
B3
B2
CS DATA BLUE, Middle
0x12
CS_DATA_BLUE_2 (default = 0x00)
B7
B6
B5
B4
B3
Reserved
B2
CS DATA BLUE, High
Field
Address
Bits
Default
CS Data Blue, Low
0x10
7:0
0000 0000
CS Data (Blue) lower byte data
CS Data Blue, Middle
0x11
7:0
0000 0000
CS Data (Blue) Middle byte data
7:4
0000
Reserved
CS Data Blue, High
0x12
3:0
0000
CS Data (Blue) Higher byte data
Confidential
Description
17/34
Part No. : LTR-381RGB-WA
BNS-OD-FC002/A4
OPTICAL SENSOR
LTR-381RGB-WA
CS_DATA_RED Register (0x13 / 0x14 / 0x15) (Read Only)
The Color Sensor Red Channel digital output data are expressed as a 16 to 20 bit unsigned integer data. When
I2C read operation is active and points to any of the register address between 0x07 and 0x18, all 3 registers will
be locked until the I2C read operation has been completed or the specified address range is left. This is to ensure
that the data in the registers is from the same measurement even if an additional measurement cycle ends during
the read operation. New measurement data is stored into temporary registers and the CS_DATA_RED registers
will be updated as soon as there is no on-going I2C read operation to the address range 0x07 to 0x18.
0x13
CS_DATA_RED_0 (default = 0x00)
B7
B6
B5
B4
B3
B2
B1
B0
B1
B0
B1
B0
CS DATA RED, Low
0x14
CS_DATA_RED_1 (default = 0x00)
B7
B6
B5
B4
B3
B2
CS DATA RED, Middle
0x15
CS_DATA_RED_2 (default = 0x00)
B7
B6
B5
B4
Reserved
B3
B2
CS DATA RED, High
Field
Address
Bits
Default
CS Data Red, Low
0x13
7:0
0000 0000
CS Data (Red) lower byte data
CS Data Red, Middle
0x14
7:0
0000 0000
CS Data (Red) Middle byte data
7:4
0000
Reserved
CS Data Red, High
0x15
3:0
0000
CS Data (Red) Higher byte data
Confidential
Description
18/34
Part No. : LTR-381RGB-WA
BNS-OD-FC002/A4
OPTICAL SENSOR
LTR-381RGB-WA
INT_CFG Register (0x19) (Read/Write)
This register controls the operation of the interrupt pin and functions. CS/ALS has independent interrupt signal
and CS/ALS interrupt is active low. CS/ALS interrupt is enabled by Bit 2.
0x19
INT_CFG (default = 0x10)
B7
B6
B5
Reserved
B4
ALS INT SELECT
B3
B2
Reserve
d
ALS INT
PIN
ENABLE
Field
Bits
Default
Description
Reserved
7:6
00
Must write 00
ALS Interrupt Select
4:5
01
Reserved
3
0
ALS Interrupt Pin Enable
2
0
Reserved
1:0
Confidential
00
00
01
10
11
B1
B0
Reserved
IR Channel
ALS/Green Channel(default)
Red Channel
Blue Channel
Must write 0
0
ALS interrupt disabled (default)
1
ALS interrupt enabled
Must write 00
19/34
Part No. : LTR-381RGB-WA
BNS-OD-FC002/A4
OPTICAL SENSOR
LTR-381RGB-WA
INT_PST Register (0x1A) (Read/Write)
This register controls the N number of times the measurement data is outside the range defined by the upper
and lower threshold limits before asserting the interrupt.
0x1A
INT_PST (default = 0x00)
B7
B6
B5
B4
ALS/CS Persist
Field
ALS/CS
Persist
Reserved
Confidential
Bits
7:4
3:0
0000
B2
B1
B0
Reserved
Default
0000
B3
Description
0000
Every ALS value out of threshold range asserts an interrupt (default)
0001
2 consecutive ALS values out of threshold range assert an interrupt
…
…
1111
16 consecutive ALS values out of threshold range assert an interrupt
0000
Must write 0000
20/34
Part No. : LTR-381RGB-WA
BNS-OD-FC002/A4
OPTICAL SENSOR
LTR-381RGB-WA
ALS_THRES Register (0x21 / 0x22 / 0x23 / 0x24 / 0x25 / 0x26) (Read/Write)
The ALS_THRES_UP (up to 20-bits) and ALS_THRES_LOW (up to 20-bits) registers determines the upper and
lower limit of the interrupt threshold value respectively. Interrupt will be triggered if measurement data in
CS_DATA_GREEN registers is exceeding the upper and lower limits.
0x21
ALS_THRES_UP_0 (default = 0xFF)
B7
B6
B5
B4
B3
B2
B1
B0
B1
B0
B1
B0
ALS Upper Threshold, Low
0x22
ALS_THRES_UP_1 (default = 0xFF)
B7
B6
B5
B4
B3
B2
ALS Upper Threshold, Mid
0x23
ALS_THRES_UP_2 (default = 0x0F)
B7
B6
B5
B4
B3
Reserved
0x24
B2
ALS Upper Threshold, High
ALS_THRES_LOW_0 (default = 0x00)
B7
B6
B5
B4
B3
B2
B1
B0
B1
B0
B1
B0
ALS Lower Threshold, Low
0x25
ALS_THRES_LOW_1 (default = 0x00)
B7
B6
B5
B4
B3
B2
ALS Lower Threshold, Mid
0x26
ALS_THRES_LOW_2 (default = 0x00)
B7
B6
B5
B4
B3
Reserved
B2
ALS Lower Threshold, High
Field
Address
Bits
Default
ALS Upper Threshold, Low
0x21
7:0
1111 1111
ALS upper interrupt threshold, Low byte
ALS Upper Threshold, Mid
0x22
7:0
1111 1111
ALS upper interrupt threshold, Mid byte
Confidential
Description
21/34
Part No. : LTR-381RGB-WA
BNS-OD-FC002/A4
OPTICAL SENSOR
LTR-381RGB-WA
7:4
0000
Reserved
3:0
1111
ALS upper interrupt threshold, High byte
0x24
7:0
0000 0000
ALS lower interrupt threshold, Low byte
ALS Lower Threshold, Mid
0x25
7:0
0000 0000
ALS lower interrupt threshold, Mid byte
7:4
0000
Reserved
ALS Lower Threshold, High
0x26
3:0
0000
ALS lower interrupt threshold, High byte
ALS Upper Threshold, High
0x23
ALS Lower Threshold, Low
Confidential
22/34
Part No. : LTR-381RGB-WA
BNS-OD-FC002/A4
OPTICAL SENSOR
LTR-381RGB-WA
7
Application Information
7.1. Lux Formula
Lux_Calc is the calculated lux reading based on the output ADC from ALS DATA regardless of light
sources.
ݔݑܮ =
0.74 × ீܵܥ_்
ܵܥூோ_்
× ቈ1 − ܥଵ ቆ
ቇ × ܹி
()ܶܰܫ × ܰܫܣܩ
ீܵܥ_்
Where :
1. CS_Green_DATA = Data stored in the registers (Address: 0x0D-0x0F)
2. CS_IR_DATA = Data stored in the registers (Address: 0x0A-0x0C)
3. C1 = 0.033 constant coefficient.
4. For device under tinted window with coated-ink of flat transmission rate at 400-600nm
wavelength, window factor is to compensate light loss due to the lower transmission rate from
the coated-ink.
a. WFAC = 1 for NO window / clear window glass.
b. WFAC >1 device under tinted window glass. Calibrate under white LED.
5. The Gain factors & Integration time factors:
Confidential
ALS Gain
GAIN
Resolution (bit) / Integration Time (ms)
INT
X1
1
16-bit, 25ms
0.25
X3
3
17-bit, 50ms
0.5
X6
6
18-bit, 100ms
1
X9
9
19-bit, 200ms
2
X18
18
20-bit, 400ms
4
23/34
Part No. : LTR-381RGB-WA
BNS-OD-FC002/A4
OPTICAL SENSOR
LTR-381RGB-WA
7.2 Device Operation (State Machine and Interrupt Features)
State Machine
Below diagram is the main state machine of LTR-381RGB-WA.
During the CS/ALS Operation, CS/ALS measurements can be activated by setting the CS_ALS_Enable bit to
1. As soon as the CS/ALS sensors become activated through an I2C command, the internal support blocks
are powered on. Once the voltages and currents are settled (typically after 5ms), the state machine checks
for trigger events from a measurement scheduler to start CS/ALS conversions according to the selected
measurement repeat rates. Once CS_ALS_Enable is changed back to 0, a running conversion on the
respective channel will be completed and the relevant ADCs and support blocks will move to power-down
state.
Confidential
24/34
Part No. : LTR-381RGB-WA
BNS-OD-FC002/A4
OPTICAL SENSOR
LTR-381RGB-WA
Interrupt Features
This device generates independent ALS/CS interrupt signal that can be multiplexed and output to the INT
output pin. The interrupt conditions are always evaluated after completion of a new conversion of the ALS
channels. ALS/CS interrupts is active low at the INT pin.
ALS/CS Interrupt
The ALS/CS interrupt is enabled by Bit 2 (ALS INT Pin Enabled) of INT_CFG register (0x19). The
ALS/CS interrupt source can be any of the four CS channels (R, G, B and IR). The source is selected
by Bit 4 and 5 (ALS INT Select) of INT_CFG register.
The INT is set when the data of the selected interrupt source is above the upper or below the lower
threshold for a specified number of consecutive measurements set in ALS/CS Persist in INT_PST
register (0x1A).
The Interrupt signal is also stored in MAIN_STATUS register (0x07) as flag bit in Bit 4 (ALS/CS INT
Status). This status flag bit is cleared by reading the MAIN_STATUS register. A cleared flag will also
clear the interrupt signal on the INT pin.
Confidential
25/34
Part No. : LTR-381RGB-WA
BNS-OD-FC002/A4
OPTICAL SENSOR
LTR-381RGB-WA
8
Pseudo Codes Examples
MAIN_CTRL Register
// This defines the operating modes of the CS/ALS
// Default settings is 0x00 (CS Mode = ALS, ALS/CS standby)
Register_Addr = 0x00
// MAIN_CTRL register
Command = 0x06
// ALS in Active Mode, CS mode = CS
WriteByte(Slave_Addr, Register_Addr, Command);
ALS_CS_MEAS_RATE Register
// This controls the ALS/CS measurement resolution and measurement rate.
// Default setting of the register is 0x22 (Resolution = 18 Bit, Measurement rate of 100ms)
Register_Addr = 0x04
Command = 0x41
// ALS_CS_MEAS_RATE register
// Resolution = 16 bit, Meas Rate =50ms
// Command =0x25,Resolution = 18 bit, Meas Rate =1000ms
// Command =0x02, Resolution = 20 bit, Meas Rate =100ms
WriteByte(Slave_Addr, Register_Addr, Command)
ALS_CS_GAIN Register
// This controls the ALS/CS Gain Range.
// Default setting of the register is 0x01 (Gain Range = 3)
Register_Addr = 0x05
Command = 0x00
// ALS_CS_GAIN register
// Gain = 1
// Command =0x04, Gain = 18
WriteByte(Slave_Addr, Register_Addr, Command)
MAIN_STATUS Register (Read Only)
// This Register contains the information on Interrupt, ALS/CS data status.
Register_Addr = 0x07
Data = ReadByte(Slave_Addr, Register_Addr)
// MAIN_STATUS register address
Power_ON_Status = Data & 0x20
// If 0x20 Part went through power-up event
// If 0x00 Normal
// If 0x10 Interrupt triggered
// If 0x00 Interrupt condition not fulfilled
// If 0x08 ALS/CS data is new
// If 0x00 Old (previously read) Data
ALS/CS_Interrupt_Status = Data & 0x10
ALS/CS_Data_Status = Data & 0x08
CS_DATA_IR Registers (Read Only)
//The register 0x0A contains CS_IR ADC lower byte data.
//The register 0x0B contains CS_IR ADC 1 middle byte data.
//The register 0x0C contains CS_IR ADC 2 upper byte data.
//These registers should be read as a group, with the lower address being read first.
Register_Addr = 0x0A
Data0=ReadByte(Slave_Addr, Register_Addr)
Register_Addr = 0x0B
Data1=ReadByte(Slave_Addr, Register_Addr)
Register_Addr = 0x0C
Data2=ReadByte(Slave_Addr, Register_Addr)
Confidential
// CS_DATA_IR_0 low byte address
// CS_DATA_IR_1 middle byte address
// CS_DATA_IR_2 upper byte address
26/34
Part No. : LTR-381RGB-WA
BNS-OD-FC002/A4
OPTICAL SENSOR
LTR-381RGB-WA
CS_IR_Data =(Data2