VCNL4020
www.vishay.com
Vishay Semiconductors
Rev. 1.2, 10-Oct-12
7
Document Number: 83476
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 #1 Product ID Revision Register
Register address = 81h. This register contains information about product ID and product revision.
Register data value of current revision = 21h.
Register #2 Rate of Proximity Measurement
Register address = 82h.
Note
If self_timed measurement is running, any new value written in this register will not be taken over until the mode is actualy cycled.
Register #3 LED Current Setting for Proximity Mode
Register address = 83h. This register is to set the LED current value for proximity measurement.
The value is adjustable in steps of 10 mA from 0 mA to 200 mA.
This register also contains information about the used device fuse program ID.
TABLE 2 - PRODUCT ID REVISION REGISTER #1
Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
Product ID Revision ID
Description
Product ID Read only bits. Value = 2
Revision ID Read only bits. Value = 1
TABLE 3 - PROXIMITY RATE REGISTER #2
Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
n/a
Rate of Proximity Measurement (no. of
measurements per second)
Description
Proximity rate
R/W bits.
000 - 1.95 measurements/s (DEFAULT)
001 - 3.90625 measurements/s
010 - 7.8125 measurements/s
011 - 16.625 measurements/s
100 - 31.25 measurements/s
101 - 62.5 measurements/s
110 - 125 measurements/s
111 - 250 measurements/s
TABLE 4 - IR LED CURRENT REGISTER #3
Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
Fuse prog ID IR LED current value
Description
Fuse prog ID
Read only bits.
Information about fuse program revision used for initial setup/calibration of the device.
IR LED current value
R/W bits. IR LED current = Value (dec.) x 10 mA.
Valid Range = 0 to 20d. e.g. 0 = 0 mA , 1 = 10 mA, …., 20 = 200 mA (2 = 20 mA = DEFAULT)
LED Current is limited to 200 mA for values higher as 20d.
VCNL4020
www.vishay.com
Vishay Semiconductors
Rev. 1.2, 10-Oct-12
8
Document Number: 83476
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 #4 Ambient Light Parameter Register
Register address = 84h.
Note
If self_timed measurement is running, any new value written in this register will not be taken over until the mode is actualy cycled.
Register #5 and #6 Ambient Light Result Register
Register address = 85h and 86h. These registers are the result registers for ambient light measurement readings.
The result is a 16 bit value. The high byte is stored in register #5 and the low byte in register #6.
TABLE 5 - AMBIENT LIGHT PARAMETER REGISTER #4
Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
Cont. conv.
mode
als_rate
Auto offset
compensation
Averaging function
(number of measurements per run)
Description
Cont. conversion mode
R/W bit. Continuous conversion mode.
Enable = 1; Disable = 0 = DEFAULT
This function can be used for performing faster ambient light measurements. This mode should only be
used with ambient light on-demand measurements. Do not use with self-timed mode. Please refer to the
application information chapter 3.3 for details about this function.
Ambient light measurement rate
R/W bits. Ambient light measurement rate
000 - 1 samples/s
001 - 2 samples/s = DEFAULT
010 - 3 samples/s
011 - 4 samples/s
100 - 5 samples/s
101 - 6 samples/s
110 - 8 samples/s
111 - 10 samples/s
Auto offset compensation
R/W bit. Automatic offset compensation.
Enable = 1 = DEFAULT; Disable = 0
In order to compensate a technology, package or temperature related drift of the ambient light values
there is a built in automatic offset compensation function.
With active auto offset compensation the offset value is measured before each ambient light
measurement and subtracted automatically from actual reading.
Averaging function
R/W bits. Averaging function.
Bit values sets the number of single conversions done during one measurement cycle. Result is the
average value of all conversions.
Number of conversions = 2
decimal_value
e.g. 0 = 1 conv., 1 = 2 conv, 2 = 4 conv., ….7 = 128 conv.
DEFAULT = 32 conv. (bit 2 to bit 0: 101)
TABLE 6 - AMBIENT LIGHT RESULT REGISTER #5
Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
Description
Read only bits. High byte (15:8) of ambient light measurement result
TABLE 7 - AMBIENT LIGHT RESULT REGISTER #6
Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
Description
Read only bits. Low byte (7:0) of ambient light measurement result
VCNL4020
www.vishay.com
Vishay Semiconductors
Rev. 1.2, 10-Oct-12
9
Document Number: 83476
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 8 - 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 9 - 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 10 - INTERRUPT CONTROL REGISTER #9
Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
Int count exceed n/a
INT_PROX_
ready_EN
INT_ALS_
ready_EN
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_ALS_ ready_EN R/W bit. Enables interrupt generation at ambient data ready
INT_THRES_EN R/W bit. Enables interrupt generation when high or low threshold is exceeded
INT_THRES_SEL
R/W bit. If 0: thresholds are applied to proximity measurements
If 1: thresholds are applied to als measurements

VCNL4020-GS18

Mfr. #:
Manufacturer:
Vishay Semiconductors
Description:
Proximity Sensors Short Dist Proximity & ALS Incl Int
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet