VCNL4020X01
www.vishay.com
Vishay Semiconductors
Rev. 1.2, 13-Aug-14
10
Document Number: 84177
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 #10 and #11 Low Threshold
Register address = 8Ah and 8Bh. These registers contain the low threshold value. The value is a 16 bit word. The high byte is
stored in register #10 and the low byte in register #11.
Register #12 and #13 High Threshold
Register address = 8Ch and 8Dh. These registers contain the high threshold value. The value is a 16 bit word. The high byte is
stored in register #12 and the low byte in register #13.
Register #14 Interrupt Status Register
Register address = 8Eh. This register contains information about the interrupt status for either proximity or ALS function and
indicates if high or low going threshold exceeded.
Note
Once an interrupt is generated the corresponding status bit goes to 1 and stays there unless it is cleared by writing a 1 in the corresponding
bit. The int pad will be pulled down while at least one of the status bit is 1.
TABLE 11 - LOW THRESHOLD REGISTER #10
Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
Description
R/W bits. High byte (15:8) of low threshold value
TABLE 12 - LOW THRESHOLD REGISTER #11
Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
Description
R/W bits. Low byte (7:0) of low threshold value
TABLE 13 - HIGH THRESHOLD REGISTER #12
Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
Description
R/W bits. High byte (15:8) of high threshold value
TABLE 14 - HIGH THRESHOLD REGISTER #13
Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
Description
R/W bits. Low byte (7:0) of high threshold value
TABLE 15 - INTERRUPT STATUS REGISTER #14
Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
n/a int_prox_ready int_als_ready int_th_low int_th_hi
Description
int_prox_ready R/W bit. Indicates a generated interrupt for proximity
int_als_ready R/W bit. Indicates a generated interrupt for als
int_th_low R/W bit. Indicates a low threshold exceed
int_th_hi R/W bit. Indicates a high threshold exceed
VCNL4020X01
www.vishay.com
Vishay Semiconductors
Rev. 1.2, 13-Aug-14
11
Document Number: 84177
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 #15 Proximity Modulator Timing Adjustment
Register address = 8Fh.
Note
The settings for best performance will be provided by Vishay. With first samples this is evaluated to:
Delay Time = 0 ; Dead Time = 1 and Prox Frequency = 0 . With that register#15 should be programmed with 1 (= default value).
Register #16 Ambient IR Light Level Register
Register address = 90h.
This register is not intended to be used by customer.
3. IMPORTANT APPLICATION HINTS AND EXAMPLES
3.1 Receiver standby mode
In standby mode the receiver has the lowest current consumption of about 1.5 μA. In this mode only the I
2
C interface is active.
This is always valid, when there are no measurement demands for proximity and ambient light executed. Also the current sink
for the IR-LED is inactive, so there is no need for changing register #3 (IR LED current).
3.2 Data Read
In order to get a certain register value, the register has to be addressed without data like shown in the following scheme. After
this register addressing, the data from the addressed register is written after a subsequent read command.
Fig. 14 - Send Byte/Receive Byte Protocol
The stop condition between these write and read sequences is not mandatory. It works also with a repeated start condition.
Note
For reading out 2 (or more) subsequent registers like the result registers, it is not necessary to address each of the registers separately. After
one read command the internal register counter is increased automatically and any subsequent read command is accessing the next
register.
TABLE 16 - PROXIMITY MODULATOR TIMING ADJUSTMENT #15
Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
Modulation delay time Proximity frequency Modulation dead time
Description
Modulation delay time
R/W bits. Setting a delay time between IR LED signal and IR input signal evaluation.
This function is for compensation of delays from IR LED and IR photo diode. Also in respect to the
possibility for setting different proximity signal frequency. Correct adjustment is optimizing measurement
signal level. ( DEFAULT = 0)
Proximity frequency
R/W bits. Setting the proximity IR test signal frequency
The proximity measurement is using a square IR signal as measurement signal. Four different values are
possible:
00 = 390.625 kHz (DEFAULT)
01 = 781.25 kHz
10 = 1.5625 MHz
11 = 3.125 MHz
Modulation dead time
R/W bits. Setting a dead time in evaluation of IR signal at the slopes of the IR signal. ( DEFAULT = 1)
This function is for reducing of possible disturbance effects.
This function is reducing signal level and should be used carefully.
S
Slave address
Rd
Receive byte Read data from VCNL4020X01
ARegister address
AWr P
S
Slave address
PA
A
Data byte
S = start condition
P = stop condition
A = acknowledge
Host action
VCNL4020X01 response
VCNL4020X01
www.vishay.com
Vishay Semiconductors
Rev. 1.2, 13-Aug-14
12
Document Number: 84177
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
Example: read register “Ambient Light Result Register” #5 and #6:
Addressing: command: 26h, 85h (VCNL4020X01_I
2
C_Bus_Write_Adr., Ambient Light Result Register #5 [85])
Read register #5: command: 27h, data (VCNL4020X01_I
2
C_Bus_Read_Adr., {High Byte Data of Ambient Light Result register
#5 [85])}
Read register #6: command: 27h, data (VCNL4020X01_I
2
C_Bus_Read_Adr., {Low Byte Data of Ambient Light Result register
#6 [86])}
3.3 Continuous Conversion Mode in Ambient Light Measurement
In the following is a detail description of the function “continuous conversion” (bit 7 of register #4)
Standard mode (bit 7 of reg #4 = 0):
In standard mode the ambient light measurement is done during a fixed time frame of 100 ms. The single measurement itself
takes actually only appr. 300 μs.
The following figures show examples of this measurement timing in standard mode using averaging function 2 and 8 as
examples for illustration (possible values up to 128).
Fig. 15 - Ambient Light Measurement with Averaging = 2;
Final Measurement Result = Average of these 2 Measurements
Fig. 16 - Ambient Light Measurement with Averaging = 8;
Final Measurement Result = Average of these 8 Measurements
Note
Independent of setting of averaging the result is available only after 100 ms.
Continuous conversion mode (bit 7 of register #4 = 1):
In continuous conversion mode the single measurements are done directly subsequent after each other.
See following examples in figure 17 and 18
Fig. 17 - Ambient Light Measurement with Averaging = 2;
using Continuous Conversion Mode
Fig. 18 - Ambient Light Measurement with Averaging = 8;
using Continuous Conversion Mode
50 ms
100 ms
Start
22315
12.5 ms
Start
100 ms
22316
460 μs
Start
1.5 ms
22317
460 μs
Start
4.2 ms
22318

VCNL4020X01-GS08

Mfr. #:
Manufacturer:
Vishay Semiconductors
Description:
Proximity Sensors Proximity/IR Emitter AEC-Q101 Qualified
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet