VCNL4000
www.vishay.com
Vishay Semiconductors
Rev. 1.8, 10-May-12
7
Document Number: 83798
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 = 11h.
Register #2 without Function in Current Version
Register address = 82h.
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.
Register #4 Ambient Light Parameter Register
Register address = 84h.
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 = 1
Revision ID
TABLE 3 - 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.
TABLE 4 - AMBIENT LIGHT PARAMETER REGISTER #4
Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
Cont. conv.
mode
N/A
Auto offset
compensation
Averaging function
(number of measurements per run)
Description
Bit 7
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. Please refer to the
application information chapter 3.3 for details about this function.
Bit 3
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.
Bit 0 to bit 2
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.
VCNL4000
www.vishay.com
Vishay Semiconductors
Rev. 1.8, 10-May-12
8
Document Number: 83798
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 #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.
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 Proximity Measurement Signal Frequency
Register address = 89h.
TABLE 5 - 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 6 - 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
TABLE 7 - 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 8 - 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 9 - PROXIMITY MEASUREMENT SIGNAL FREQUENCY #9
Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
N/A Proximity frequency
Description
Bit 0 and 1
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 = 3.125 MHz
01 = 1.5625 MHz
02 = 781.25 kHz (DEFAULT)
03 = 390.625 kHz
VCNL4000
www.vishay.com
Vishay Semiconductors
Rev. 1.8, 10-May-12
9
Document Number: 83798
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 Proximity Modulator Timing Adjustment
Register address = 8Ah.
Note
The settings for best performance will be provided by Vishay. With first samples this is evaluated to: delay time = 4 and dead time = 1, with
that register #10 should be programmed with: 129 (dez.)
Register #11 Ambient IR Light Level Register
Register address = 8Bh.
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.
Example: read register “Ambient Light Result Register” #5 and #6:
Addressing:command: 26h, 85h (VCNL4000_I
2
C_Bus_Write_Adr., Ambient Light Result Register #5 [85])
Read register #5:command: 27h, data (VCNL4000_I
2
C_Bus_Read_Adr., {High Byte Data of Ambient Light Result Register #5 [85])}
Read register #6:command: 27h, data (VCNL4000_I
2
C_Bus_Read_Adr., {Low Byte Data of Ambient Light Result Register #6 [86])}
TABLE 10 - PROXIMITY MODULATOR TIMING ADJUSTMENT #10
Bit 7Bit 6Bit 5Bit 4Bit 3Bit 2Bit 1Bit 0
Modulation delay time N/A 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.
Modulation dead Time
R/W bits. Setting a dead time in evaluation of IR signal at the slopes of the IR signal.
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 VCNL4000
ARegister address
AWr P
S
Slave address
PA
A
Data byte
S = start condition
P = stop condition
A = acknowledge
Host action
VCNL4000 response
22314

VCNL4000DEMOKIT

Mfr. #:
Manufacturer:
Vishay Semiconductors
Description:
Optical Sensor Development Tools RECOMMENDED ALT 78-SENSORXPLORER
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet