VCNL3020
www.vishay.com
Vishay Semiconductors
Rev. 1.0, 25-Jun-12
7
Document Number: 84150
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 #7 and #8 Proximity Measurement Result Register
Register address = 87h and 88h. These registers are the result registers for proximity measurement readings.
The result is a 16 bit value. The high byte is stored in register #7 and the low byte in register #8.
Register #9 Interrupt Control Register
Register address = 89h.
TABLE 5 - PROXIMITY RESULT REGISTER #7
Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
Description
Read only bits. High byte (15:8) of proximity measurement result
TABLE 6 - PROXIMITY RESULT REGISTER #8
Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
Description
Read only bits. Low byte (7:0) of proximity measurement result
TABLE 7 - INTERRUPT CONTROL REGISTER #9
Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
Int count exceed n/a
INT_PROX_
ready_EN
n/a INT_THRES_EN
INT_THRES_
SEL
Description
Int count exceed
R/W bits. These bits contain the number of consecutive measurements needed above/below the
threshold
000 - 1 count = DEFAULT
001 - 2 count
010 - 4 count
011 - 8 count
100 -16 count
101 - 32 count
110 - 64 count
111 - 128 count
INT_PROX_ready_EN R/W bit. Enables interrupt generation at proximity data ready
INT_THRES_EN R/W bit. Enables interrupt generation when high or low threshold is exceeded
INT_THRES_SEL R/W bit. 0: thresholds are applied to proximity measurements
VCNL3020
www.vishay.com
Vishay Semiconductors
Rev. 1.0, 25-Jun-12
8
Document Number: 84150
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 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 8 - 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 9 - 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 10 - 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 11 - 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 12 - INTERRUPT STATUS REGISTER #14
Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
n/a int_prox_ready n/a int_th_low int_th_hi
Description
int_prox_ready R/W bit. Indicates a generated interrupt for proximity
int_th_low R/W bit. Indicates a low threshold exceed
int_th_hi R/W bit. Indicates a high threshold exceed
VCNL3020
www.vishay.com
Vishay Semiconductors
Rev. 1.0, 25-Jun-12
9
Document Number: 84150
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 proximity measurement demands 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. 11 - 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 13 - 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 VCNL4020
ARegister address
AWr P
S
Slave address
PA
A
Data byte
S = start condition
P = stop condition
A = acknowledge
Host action
VCNL4020 response

VCNL3020-GS08

Mfr. #:
Manufacturer:
Vishay Semiconductors
Description:
Proximity Sensors Proximity/IR Emitter I2C W/ INT FUNCTION
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet