VCNL4100
www.vishay.com
Vishay Semiconductors
Rev. 1.2, 30-Aug-16
7
Document Number: 84319
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
APPLICATION INFORMATION
Pin Connection with the Host
VCNL4100 is a cost effective solution of a long distance proximity sensor with I
2
C interface. The standard serial digital interface
easily accesses “light intensity” by using simple calculations.
Application circuitry below shows the added MOSFET which is driven by the ASIC’s pin 2. A 22 k pull-up resistor needs to be
added here. The R
LED
defines the current through the IRED. A small 0.1 μF is sufficient at V
DD
for power supply noise rejection,
but a 2.2 μF should be placed at V
IRED
to provide the energy for the IRED.
For the I
2
C bus design, the pull-up voltage refers to the I/O specification of the baseband due to its “open drain” design. The
pull-high resistors for the I
2
C bus lines are recommended to be 2.2 k.
Fig. 10 - Application Diagram
Notes
•V
DD
range: 2.5 V to 3.6 V and V
IRED
is recommended 5.0 V
Power path of V
DD
and V
IRED
should be routed separately up to stable power source.
•The R
LED
resister value should be evaluated within ready-made application and the current through VCNL4100-internal IRED should not
exceed 800 mA.
Digital Interface
VCNL4100 applies single 8-bit slave address 0xC0 (HEX) following I
2
C protocol. All operations can be controlled by the
command register. The simple command structure helps users easily program the operation setting and latch the light data from
VCNL4100. As fig. 11 shows, VCNL4100’s I
2
C command format is simple for read and write operations between VCNL4100
and the host. The white sections indicate host activity and the gray sections indicate VCNL4100’s acknowledgement of the host
access activity. Write word and read word protocols are suitable for accessing registers particularly for 16-bit ALS data and
8-bit PS data. Interrupt can be cleared by reading data out from register: INT_Flag.
Fig. 11 - Command Protocol Format
V
DD
INT
INT
SCLK
VCNL4100
LED
CATHODE
10
9
3
2
1
0.1 μF
GND
SCK
SDA
8
V
IRED
2.2 μF
2.2 kΩ
V
pull up
V
DD
PMOS
S
G
D
2.7 Ω
R
LED
LED+
LED-
6
5
2.2 kΩ 20 kΩ
MCU
SCLK
SDAT
8.2 kΩ
INT
S Slave Address
Wr
A Command Code A Data Byte Low A Data Byte High A
17 811 1
818
P
11
Send Byte ɦ Write Command to VCNL4100
1
Slave Address
7
Wr
A Command Code A S Slave Address
Rd
A Data Byte Low A
Data Byte High A P
11 8 1
1
711
8
18
11
S
Receive Byte ɦ Read Data from VCNL4100
S = start condition
P = stop condition
A = acknowledge
Shaded area = VCNL4100 acknowledge
VCNL4100
www.vishay.com
Vishay Semiconductors
Rev. 1.2, 30-Aug-16
8
Document Number: 84319
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
Function Description
VCNL4100 applies a 16-bit high resolution ALS that provides the best ambient light sensing capability up to 0.011375 lx/step
which works well under a low transmittance lens design (dark lens). A flexible interrupt function of ALS (register: ALS_CONF) is
also supported. The INT signal will not be asserted by VCNL4100 if the ALS value is not over high INT threshold window level,
or lower than low INT threshold window level of ALS. As long as the ALS INT is asserted, the host can read the data from
VCNL4100.
For proximity sensor function, VCNL4100 supports different kinds of mechanical design to achieve the best proximity detection
performance for any color object. The basic PS function settings, such as duty ratio, integration time, interrupt, and PS
enable / disable and persistence, are handled by the register: PS_CONF1. Duty ratio controls the PS response time. Integration
time represents the duration of the energy being received. The interrupt is asserted when the PS detection levels over the high
threshold level setting (register: PS_THDH) or lower than low threshold (register: PS_THDL). If the interrupt function is enabled,
the host reads the PS output data from VCNL4100 that saves host loading from periodically reading PS data. More than that,
INT flag (register: INT_Flag) indicates the behavior of INT triggered under different conditions. PS persistence (PS_PERS) sets
up the PS INT asserted conditions as long as the PS output value continually exceeds the threshold level.
Descriptions of each slave address operation are shown in table 1.
TABLE 1 - COMMAND CODE AND REGISTER DESCRIPTION
COMMAND
CODE
REGISTER
NAME
R / W
DEFAULT
VALUE
FUNCTION DESCRIPTION
00H_L ALS_CONF R / W 00H ALS integration time, persistence, interrupt, and function enable / disable
00H_H Reserved R / W 00H Reserved
01H_L ALS_THDH_L R / W 00H ALS high interrupt threshold LSB byte
01H_H ALS_THDH_M R / W 00H ALS high interrupt threshold MSB byte
02H_L ALS_THDL_L R / W 00H ALS low interrupt threshold LSB byte
02H_H ALS_THDL_M R / W 00H ALS low interrupt threshold MSB byte
03H_L PS_CONF1 R / W 00H PS duty ratio, integration time, persistence, and PS enable / disable
03H_H PS_CONF2 R / W 00H PS gain, ITB, interrupt setting
04H_L PS_CONF3 R / W 00H PS active forced, averaging, background light cancellation setting
04H_H PS_SPO R / W 00H Set initial value to “0xA0” or “0x20”
05H_L Reserved R / W 00H Reserved
05H_H Reserved R / W 00H Reserved
06H_L PS_THDL R / W 00H PS low interrupt threshold setting
06H_H PS_THDH R / W 00H PS high interrupt threshold setting
07H_L Reserved R / W 00H Reserved
07H_H Reserved R / W 00H Reserved
08H_L PS_Data R 00H PS output data
08H_H Reserved R 00H Reserved
09H_L ALS_Data_L R 00H ALS LSB output data
09H_H ALS_Data_M R 00H ALS MSB output data
0AH_L Reserved R 00H Reserved
0AH_H Reserved R 00H Reserved
0BH_L Reserved R 00H Reserved
0BH_H INT_Flag R 00H ALS, PS interrupt flags
VCNL4100
www.vishay.com
Vishay Semiconductors
Rev. 1.2, 30-Aug-16
9
Document Number: 84319
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
Command Register Format
VCNL4100 provides an 8-bit command register for ALS and PS controlling independently. The description of each command
format is shown in following tables.
TABLE 2 - REGISTER: ALS_CONF DESCRIPTION
REGISTER NAME COMMAND CODE: 0xH_L (0xH DATA BYTE LOW) OR 0xH_H (0xH DATA BYTE HIGH)
Command Bit76543210
ALS_CONF COMMAND CODE: 00H_L (00H DATA BYTE LOW)
Command Bit Description
ALS_IT 7 : 6
(0 : 0) = 80 ms; (0 : 1) = 160 ms; (1 : 0) = 320 ms; (1 : 1) = 640 ms
ALS integration time setting, longer integration time has higher sensitivity
Reserved 5 : 4 Default = (0 : 0), reserved
ALS_PERS 3 : 2
(0 : 0) = 1, (0 : 1) = 2, (1 : 0) = 4, (1 : 1) = 8
ALS interrupt persistence setting
ALS_INT_EN 1 0 = ALS interrupt disable, 1 = ALS interrupt enable
ALS_SD 0 0 = ALS power on, 1 = ALS shut down
TABLE 3 - REGISTER: RESERVE COMMAND DESCRIPTION
Reserved COMMAND CODE: 00H_H (00H DATA BYTE HIGH)
Command Bit Description
Reserved 7 : 0 Default = 00H
TABLE 4 - REGISTER ALS_THDH_L AND ALS_THDH_M DESCRIPTION
ALS_THDH_L
ALS_THDH_M
COMMAND CODE: 01H_L (01H DATA BYTE LOW)
COMMAND CODE: 01H_H (01H DATA BYTE HIGH)
Register Bit Description
ALS_THDH_L 7 : 0 00H to FFH, ALS high interrupt threshold LSB byte
ALS_THDH_M 7 : 0 00H to FFH, ALS high interrupt threshold MSB byte
TABLE 5 - REGISTER: ALS_THDL_L AND ALS_THDL_M DESCRIPTION
ALS_THDL_L
ALS_THDL_M
COMMAND CODE: 02H_L (02H DATA BYTE LOW)
COMMAND CODE: 02H_H (02H DATA BYTE HIGH)
Register Bit Description
ALS_THDL_L 7 : 0 00H to FFH, ALS low interrupt threshold LSB byte
ALS_THDL_M 7 : 0 00H to FFH, ALS low interrupt threshold MSB byte
TABLE 6 - REGISTER: PS_CONF1 DESCRIPTION
PS_CONF1 COMMAND CODE: 03H_L (03H DATA BYTE LOW)
Command Bit Description
PS_Duty 7 : 6
(0 : 0) = 1/5120, (0 : 1) = 1/640, (1 : 0) = 1/80, (1 : 1) = 1/20
PS IRED on / off duty ratio setting
PS_ IT 5 : 4
(0 : 0) = 1T, (0 : 1) = 1.3T, (1 : 0) = 1.6T, (1 : 1) = 2T
PS integration time setting
PS_PERS 3 : 2
(0 : 0) = 1, (0 : 1) = 2, (1 : 0) = 3, (1 : 1) = 4
PS interrupt persistence setting
Reserved 1 Default = 0, reserved
PS_SD 0 0 = PS power on, 1 = PS shut down

VCNL4100

Mfr. #:
Manufacturer:
Vishay Semiconductors
Description:
Proximity Sensors RECOMMENDED ALT 78-VCNL4200
Lifecycle:
New from this manufacturer.
Delivery:
DHL FedEx Ups TNT EMS
Payment:
T/T Paypal Visa MoneyGram Western Union

Products related to this Datasheet