Datasheet VCNL36821S (Vishay) - 7

ManufacturerVishay
DescriptionProximity Sensor With Interrupt, IRED, and I²C Interface
Pages / Page16 / 7 — VCNL36821S. APPLICATION INFORMATION Pin Connection with the Host. Digital …
File Format / SizePDF / 194 Kb
Document LanguageEnglish

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

VCNL36821S APPLICATION INFORMATION Pin Connection with the Host Digital Interface

Model Line for this Datasheet

Text Version of Document

VCNL36821S
www.vishay.com Vishay Semiconductors
APPLICATION INFORMATION Pin Connection with the Host
VCNL36821S 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) one 1 μF capacitor near the VDD pin is used for power supply noise rejection, a second one, close to the anode pin, is used to prevent the IRED voltage from instantly dropping when the IRED is turned on and (2) 2.2 kΩ is suitable for the pull high resistor of I2C except 10 kΩ applied on INT pin. Vpull_up VDD 1 μF VLED 2.2 kΩ 2.2 kΩ 6 3 1 μF 8 V NC DD SCL SCL 7 SDA SDA 5 Anode 10 kΩ VCNL36821S Baseband 2 4 GPIO INT Cathode GND 1 Fig. 8 - Hardware Pin Connection Diagram
Digital Interface
VCNL36821S 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 VCNL36821S. As Fig. 9 shows, VCNL36821S’s I2C command format is simple for read and write operations between VCNL36821S and the host. The white sections indicate host activity and the gray sections indicate VCNL36821S’s acknowledgement of the host access activity. Write word and read word protocol is suitable for accessing registers particularly for 12-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 VCNL36821S 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 VCNL36821S 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 VCNL36821S response N = not acknowledge Fig. 9 - Write Word and Read Word Protocol Rev. 1.1, 29-Jan-2020
7
Document Number: 80150 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