VCNL3030X01www.vishay.com Vishay Semiconductors
TABLE 1 - COMMAND CODE AND REGISTER DESCRIPTION DATE BYTE DEFAUL COMMAND REGISTER R / LOW / T FUNCTION DESCRIPTION CODE NAME W HIGH VALUEL Reserved R / W 0x01 Reserved 0x00 H Reserved R / W 0x01 Reserved L Reserved R / W 0x00 Reserved 0x01 H Reserved R / W 0x00 Reserved L Reserved R / W 0x00 Reserved 0x02 H Reserved R / W 0x00 Reserved L PS_CONF1 R / W 0x01 PS duty ratio, integration time, persistence, and PS enable / disable 0x03 H PS_CONF2 R / W 0x00 PS gain, PS output resolution, PS interrupt trigger L PS_CONF3 R / W 0x00 PS smart persistence, active force mode 0x04 H PS_MS R / W 0x00 LED current selection L PS_CANC_L R / W 0x00 PS cancellation level setting 0x05 H PS_CANC_M R / W 0x00 PS cancellation level setting L PS_THDL_L R / W 0x00 PS low interrupt threshold setting LSB byte 0x06 H PS_THDL_M R / W 0x00 PS low interrupt threshold setting MSB byte L PS_THDH_L R / W 0x00 PS high interrupt threshold setting LSB byte 0x07 H PS_THDH_M R / W 0x00 PS high interrupt threshold setting MSB byte L PS_Data_L R 0x00 PS LSB output data 0x08 H PS_Data_M R 0x00 PS MSB output data L Reserved R 0x00 Reserved 0x09 H Reserved R 0x00 Reserved L Reserved R 0x00 Reserved 0x0A H Reserved R 0x00 Reserved L Reserved R 0x00 Reserved 0x0B H Reserved R 0x00 Reserved L Reserved R 0x00 Reserved 0x0C H Reserved R 0x00 Reserved L Reserved R 0x00 Reserved 0x0D H INT_Flag R 0x00 PS interrupt flags, PS sunlight protection mode flag L ID_L R 0x80 Device ID LSB 0x0E For version with 0x41 as device address; 0x10 for version with 0x51, H ID_M R 0x00 0x20 for version with 0x40 and 0x30 for version with 0x60 as device address
Note• All of reserved register are used for internal test. Please keep as default setting
Command Register FormatVCNL3030X01 provides an 8-bit command register for PS controlling. The description of each command format is shown in following tables.
TABLE 2 - REGISTER: PS_CONF1 DESCRIPTION REGISTER: PS_CONF1 COMMAND CODE: 0x03_L (0x03 DATA BYTE LOW)Command Bit Description (0 : 0) = 1/40, (0 : 1) = 1/80, (1 : 0) = 1/160, (1 : 1) = 1/320 PS_Duty 7 : 6 PS IRED on / off duty ratio setting (0 : 0) = 1, (0 : 1) = 2, (1 : 0) = 3, (1 : 1) = 4 PS_PERS 5 : 4 PS interrupt persistence setting (0 : 0 : 0) = 1T, (0 : 0 : 1) = 1.5T, (0 : 1 : 0) = 2T, (0 : 1 : 1) = 2.5T, (1 : 0 : 0) = 3T, (1 : 0 : 1) = 3.5T, PS_ IT 3 : 1 (1 : 1 : 0) = 4T, (1 : 1 : 1) = 8T, PS integration time setting PS_SD 0 0 = PS power on, 1 = PS shut down, default = 1 Rev. 1.0, 12-Aug-2020
9Document Number: 84960 For technical questions, contact:
[email protected] 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