User Manual

VEML6030
www.vishay.com
Vishay Semiconductors
Rev. 1.3, 12-May-17
7
Document Number: 84366
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
Register Addresses
VEML6030 has actual six user accessible 16 bit command
codes.
The addresses are 00h to 06h (03h not defined / reserved).
Auto-Memorization
VEML6030 can memorize the last ambient data before
shutdown and keep this data before waking up.
When VEML6030 is in shutdown mode, the host can freely
read this data via read command directly.
When VEML6030 wakes up, the data will be refreshed by
new detection.
Note
• Command code 0 default value is 01 = devices is shut down
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 (ALS OUTPUT DATA [dec.] / ALS Gain x responsivity). Please study also the application note
COMMAND REGISTER FORMAT
COMMAND CODE REGISTER NAME BIT FUNCTION / DESCRIPTION R / W
00 ALS_CONF 0 15 : 0 ALS gain, integration time, interrupt, and 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 Power saving 15 : 0 Set (15 : 3) 0000 0000 0000 0b
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_INT 15 : 0 ALS INT trigger event R
TABLE 1 - CONFIGURATION REGISTER #0
REGISTER NAME BIT FUNCTION / DESCRIPTION R / W
Reserved 15 : 13 Set 000b W
ALS_GAIN 12 : 11
Gain selection
00 = ALS gain x 1
01 = ALS gain x 2
10 = ALS gain x (1/8)
11 = ALS gain 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