Datasheet VCNL3040 (Vishay) - 7

FabricanteVishay
DescripciónProximity Sensor With Interrupt, IRED, and I²C Interface
Páginas / Página17 / 7 — VCNL3040. APPLICATION INFORMATION Pin Connection with the Host. Digital …
Formato / tamaño de archivoPDF / 258 Kb
Idioma del documentoInglés

VCNL3040. APPLICATION INFORMATION Pin Connection with the Host. Digital Interface

VCNL3040 APPLICATION INFORMATION Pin Connection with the Host Digital Interface

Línea de modelo para esta hoja de datos

Versión de texto del documento

VCNL3040
www.vishay.com Vishay Semiconductors
APPLICATION INFORMATION Pin Connection with the Host
VCNL3040 integrates proximity sensor, and IRED all together with I2C interface. It is very easy for the baseband (CPU) to access PS output data via I2C interface without extra software algorithms. The hardware schematic is shown in the following diagram. Two additional capacitors in the circuit can be used for the following purposes: (1) the 0.1 μF capacitor near the VDD pin is used for power supply noise rejection, (2) the 1 μF capacitor, close to the anode pin, is used to prevent the IRED voltage from instantly dropping when the IRED is turned on, and (3) 1.5 kΩ to 2.2 kΩ is suitable for the pull up resistor of I2C except for the 10 kΩ applied on the INT pin. Vpull_up V V DD DD_LED 0.1 μF 1 μF 2.2 kΩ 2.2 kΩ 1 6 SCLK SCLK 5 8 Anode SDAT SDAT 10 kΩ VCNL3040 Baseband 7 INT 4 INT Cathode NC GND 3 Fig. 8 - Hardware Pin Connection Diagram
Digital Interface
VCNL3040 applies single slave address 0x60 (HEX) of 7-bit addressing following I2C 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 VCNL3040. As Fig. 9 shows, VCNL3040’s I2C command format is simple for read and write operations between VCNL3040 and the host. The white sections indicate host activity and the gray sections indicate VCNL3040’s acknowledgement of the host access activity. Write word and read word protocol is suitable for accessing registers particularly for 12-bit / 16-bit PS data. Interrupt can be cleared by reading data out from register: INT_Flag. All command codes should follow read word and write word protocols. Send byte → write command to VCNL3040 1 7 1 1 8 1 8 1 8 1 1 S Slave address Wr A Command code A Data byte low A Data byte high A P Receive byte → read data from VCNL3040 1 7 1 1 8 1 1 7 1 1 8 1 8 1 1 S Slave address Wr A Command code A S Slave address Rd A Data byte low A Data byte high N P S = start condition Host action P = stop condition A = acknowledge VCNL3040 acknowledge N = not acknowledge Fig. 9 - Write Word and Read Word Protocol Rev. 1.2, 08-Jul-2019
7
Document Number: 84917 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