Datasheet VEML4031X00 (Vishay) - 7

ManufacturerVishay
DescriptionHigh Accuracy Ambient Light Sensor With I 2C Interface
Pages / Page15 / 7 — VEML4031X00. REGISTER INFORMATION. Device Address. TABLE 1 - SLAVE …
File Format / SizePDF / 254 Kb
Document LanguageEnglish

VEML4031X00. REGISTER INFORMATION. Device Address. TABLE 1 - SLAVE ADDRESS TABLE ORDERING CODE. 7 BIT SLAVE ADDRESS

VEML4031X00 REGISTER INFORMATION Device Address TABLE 1 - SLAVE ADDRESS TABLE ORDERING CODE 7 BIT SLAVE ADDRESS

Model Line for this Datasheet

Text Version of Document

VEML4031X00
www.vishay.com Vishay Semiconductors
REGISTER INFORMATION Device Address
The VEML4031X00 is available in two different pre-configured slave addresses. For one version the predefined 7 bit I2C bus address is set to 0101001 = 0x29. The least significant bit (LSB) defines read or write mode. Accordingly the bus address is set to 0101 0010 = 0x52 for write and 0101 0011 = 0x53 for read. The second version comes with predefined 7 bit I2C bus address of 0010000 = 0x10, so, here the write address is 0010 0000 = 0x20 for write and 0010 0001 = 0x21 for read.
TABLE 1 - SLAVE ADDRESS TABLE ORDERING CODE 7 BIT SLAVE ADDRESS 8 BIT SLAVE ADDRESS
VEML4031X00 0x29 0x52 (Write) 0x53 (Read) VEML40311X00 0x10 0x20 (Write) 0x21 (Read)
Register Addresses
The VEML4031X00 has eighteen registers, accessible through there respective 8-bit command codes. Note that due to the location of the two shutdown bits (ALS_ON_0 and ALS_ON_1), one in register 0x00 and the other in 0x01, it is necessary to always write to both registers at once when configuring the device.
Auto-Memorization
The VEML4031X00 stores the last measured ambient data before the device is shutdown, keeping the data accessible. When VEML4031X00 is in shutdown mode, the host can freely read this data via read command directly. When VEML4031X00 wakes up, the data will be refreshed once a new measurement is made.
TABLE 2 - COMMAND CODE AND REGISTER DESCRIPTION COMMAND DATA BYTE DEFAULT REGISTER NAME FUNCTION ACCESS CODE LOW / HIGH VALUE
Set the integration time Measurement mode of the sensor 0x00 - ALS_CONF_0 0x01 Enable interupt function of the ALS channel Switch the sensor on / off Switch the sensor on / off Write and 0x01 - ALS_CONF_1 0x80 GAIN and photodiode size setting read Interrupt persistance counter 0x04 Low ALS_THDH_L 0x00 ALS channel high threshold window setting (low byte) 0x05 High ALS_THDH_H 0x00 ALS channel high threshold window setting (high byte) 0x06 Low ALS_THDL_L 0x00 ALS channel low threshold window setting (low byte) 0x07 High ALS_THDL_H 0x00 ALS channel low threshold window setting (high byte) 0x10 Low ALS_DATA_L 0x00 Low byte of 16-bit ALS channel result data 0x11 High ALS_DATA_H 0x00 High byte of 16-bit ALS channel result data 0x12 Low IR_DATA_L 0x00 Low byte of 16-bit IR channel result data 0x13 High IR_DATA_H 0x00 High byte of 16-bit IR channel result data Read only 0x14 Low VEML4031X00_ID_L 0x01 ID code 0x15 High VEML4031X00_ID_H 0x00 ID code 0x16 Low INT_FLAG 0x00 Reserved 0x17 High INT_FLAG 0x00 Interrupt and active force mode event flag
Notes
• Command code 0x00 default value is 0x01 = device is shutdown • Command 0x00 and command 0x01 must be executed together, they cannot be executed independently Rev. 1.1, 12-Mar-2025
7
Document Number: 80348 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