VEML7700
www.vishay.com
Vishay Semiconductors
Rev. 1.0, 19-Nov-15
4
Document Number: 84286
For technical questions, contact: sensorstechsupport@vishay.com
THIS DOCUMENT IS SUBJECT TO CHANGE WITHOUT NOTICE. THE PRODUCTS DESCRIBED HEREIN AND THIS DOCUMENT
ARE SUBJECT TO SPECIFIC DISCLAIMERS, SET FORTH AT www.vishay.com/doc?91000
APPLICATION INFORMATION
VEML7700 is a cost effective solution of ambient light sensor with I
2
C bus interface. The standard serial digital interface is easy
to access “Ambient Light Signal” without complex calculation and programming by external controller.
1. Application Circuit
Fig. 6 - Application Diagram
Notes
Proposed values for the pull-up resistor R1 and R2 should be > 1 kΩ, e.g. 2.2 kΩ to 4.7 kΩ.
For detailed description about set-up and use as well as more application related information see AN: “Designing VEML7700 into an
Application”.
2. I
2
C Interface
The VEML7700 contains actual six 16 bit command codes for operation control, parameter setup, and result buffering. All
registers are accessible via I
2
C communication. Figure 7 shows the basic I
2
C communication with VEML7700.
The built in I
2
C interface is compatible with I
2
C modes “standard” and “fast”: 10 kHz to 400 kHz.
I
2
C H-level range = 1.3 V to 3.6 V.
Please refer to the I
2
C specification from NXP for details.
Fig. 7 - Send Byte / Receive Byte Protocol
Register Addresses
VEML7700 has actual six user accessible 16 bit command
codes.
The addresses are 00h to 06h (03h not defined / reserved).
Device Address
The VEML7700 has a fix slave address for the host
programming and accessing selection.
The slave address (7 bit) is set to 0010000 = 0x10.
The least significant bit (LSB) defines read or write mode.
According 8 bit the bus address is then 0010 0000 = 20h for
write and 0010 0001 = 21h for read.
Auto-Memorization
VEML7700 can memorize the last ambient data before
shutdown and keep this data before waking up.
When VEML7700 is in shutdown mode, the host can freely
read this data via read command directly.
When VEML7700 wakes up, the data will be refreshed by
new detection.
Host
Micro Controller
I
2
C bus sata SDA
I
2
C bus clock SCL
VEML7700
SDA (4)
SCL (1)
GND (3)
V
DD
(2)
C2
C1
R3
100 nF10 μF
10R
2.5 V to 3.6 V
1.7 V to 3.6 V
R2
R1
C1 and R3
are optional
for very
disturbed
supply
Receive byte Read data from VEML7700
Send byte Write command to VEML7700
Host action
VEML7700 response
SSlave address A Command code AWr Data byte (LSB) A PData byte (MSB) A
SSlave address A Command code
A Data byte (LSB) A PData byte (MSB) N
Wr
SSlave address
Rd
A
S = start condition
P = stop condition
A = acknowledge
N = no acknowledge
VEML7700
www.vishay.com
Vishay Semiconductors
Rev. 1.0, 19-Nov-15
5
Document Number: 84286
For technical questions, contact: sensorstechsupport@vishay.com
THIS DOCUMENT IS SUBJECT TO CHANGE WITHOUT NOTICE. THE PRODUCTS DESCRIBED HEREIN AND THIS DOCUMENT
ARE SUBJECT TO SPECIFIC DISCLAIMERS, SET FORTH AT www.vishay.com/doc?91000
Interrupt pin not available for VEML7700
Note
Command code 0 default value is 01 = devices is shut down
COMMAND REGISTER FORMAT
COMMAND CODE REGISTER NAME BIT FUNCTION / DESCRIPTION R / W
00 reserved 15 : 13 Set 000b W
ALS_SM 12 : 11
Sensitivity mode selection
00 = ALS sensitivity x 1
01 = ALS sensitivity x 2
10 = ALS sensitivity x (1/8)
11 = ALS sensitivity x (1/4)
W
reserved 10 Set 0b W
ALS_IT 9 : 6
ALS integration time setting
1100 = 25 ms
1000 = 50 ms
0000 = 100 ms
0001 = 200 ms
0010 = 400 ms
0011 = 800 ms
W
ALS_PERS 5 : 4
ALS persistence protect number setting
00 = 1
01 = 2
10 = 4
11 = 8
W
reserved 3 : 2 Set 00b W
ALS_INT_EN 1
ALS interrupt enable setting
0 = ALS INT disable
1 = ALS INT enable
W
ALS_SD 0
ALS shut down setting
0 = ALS power on
1 = ALS shut down
W
01 ALS_WH
15 : 8 ALS high threshold window setting (MSB) W
7 : 0 ALS high threshold window setting (LSB) W
02 ALS_WL
15 : 8 ALS low threshold window setting (MSB) W
7 : 0 ALS low threshold window setting (LSB) W
03 reserved 15 : 3 set 0000 0000 0000 0b
PSM 2 : 1
Power saving mode; see table “Refresh time”
00 = mode 1
01 = mode 2
10 = mode 3
11 = mode 4
W
PSM_EN 0
Power saving mode enable setting
0 = disable
1 = enable
W
04 ALS
15 : 8 MSB 8 bits data of whole ALS 16 bits R
7 : 0 LSB 8 bits data of whole ALS 16 bits R
05 WHITE
15 : 8 MSB 8 bits data of whole WHITE 16 bits R
7 : 0 LSB 8 bits data of whole WHITE 16 bits R
06
ALS_IF_L 15 ALS crossing low threshold INT trigger event R
ALS_IF_H 14 ALS crossing high threshold INT trigger event R
reserved 13 : 0
VEML7700
www.vishay.com
Vishay Semiconductors
Rev. 1.0, 19-Nov-15
6
Document Number: 84286
For technical questions, contact: sensorstechsupport@vishay.com
THIS DOCUMENT IS SUBJECT TO CHANGE WITHOUT NOTICE. THE PRODUCTS DESCRIBED HEREIN AND THIS DOCUMENT
ARE SUBJECT TO SPECIFIC DISCLAIMERS, SET FORTH AT www.vishay.com/doc?91000
Command Code #0: Configuration Register
Register address = 00h
The command code #0 is for configuration of the ambient light measurements.
Note
Light level [lx] is (OUTPUT DATA [dec.] / ALS sensitivity) x (10 / IT [ms]). Please study also the application note.
Command Code #1: High Threshold Windows Setting
Command code address = 01h. Once enable INT function and use high / low windows threshold, bit 15:0 provides 16 bit register
for high bound threshold windows setting.
TABLE 1 - CONFIGURATION REGISTER #0
COMMAND CODE REGISTER NAME BIT FUNCTION / DESCRIPTION R / W
00 reserved 15 : 13 Set 000b W
ALS_SM 12 : 11
Sensitivity mode selection
00 = ALS sensitivity x 1
01 = ALS sensitivity x 2
10 = ALS sensitivity x (1/8)
11 = ALS sensitivity x (1/4)
W
reserved 10 Set 0b W
ALS_IT 9 : 6
ALS integration time setting
1100 = 25 ms
1000 = 50 ms
0000 = 100 ms
0001 = 200 ms
0010 = 400 ms
0011 = 800 ms
W
ALS_PERS 5 : 4
ALS persistence protect number setting
00 = 1
01 = 2
10 = 4
11 = 8
W
reserved 3 : 2 Set 00b W
ALS_INT_EN 1
ALS interrupt enable setting
0 = ALS INT disable
1 = ALS INT enable
W
ALS_SD 0
ALS shut down setting
0 = ALS power on
1 = ALS shut down
W
01 ALS_WH
15 : 8 ALS high threshold window setting (MSB) W
7 : 0 ALS high threshold window setting (LSB) W
02 ALS_WL
15 : 8 ALS low threshold window setting (MSB) W
7 : 0 ALS low threshold window setting (LSB) W
04 ALS
15 : 8 MSB 8 bits data of whole ALS 16 bits R
7 : 0 LSB 8 bits data of whole ALS 16 bits R
05 reserved 3 : 2 Set 00b R
06
ALS_IF_L 15 ALS crossing low threshold INT trigger level R
ALS_IF_H 14 ALS crossing high threshold INT trigger level R
reserved 13 : 0
TABLE 2 - HIGH THRESHOLD WINDOWS SETTING #1
Bit 15 Bit 14 Bit 13 Bit 12 Bit 11 Bit 10 Bit 9 Bit 8 Bit 7 Bit 6 Bit 5 Bit 4 Bit 3 Bit 2 Bit 1 Bit 0
Description
ALS high threshold window setting (15:8 MSB 8 bits of whole 16 bits)
ALS high threshold window setting (7:0 LSB 8 bits of whole 16 bits)

VEML7700-TR

Mfr. #:
Manufacturer:
Description:
Light to Digital Ambient Light Sensor 4-Pin Tape and Reel
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet