Datasheet VCNL3030X01 (Vishay) - 8

HerstellerVishay
BeschreibungFully Integrated Proximity Sensor With Infrared Emitter, I2C Interface, and Interrupt Function
Seiten / Seite16 / 8 — VCNL3030X01. Digital Interface. Function Description
Dateiformat / GrößePDF / 271 Kb
DokumentenspracheEnglisch

VCNL3030X01. Digital Interface. Function Description

VCNL3030X01 Digital Interface Function Description

Modelllinie für dieses Datenblatt

Textversion des Dokuments

VCNL3030X01
www.vishay.com Vishay Semiconductors
Digital Interface
VCNL3030X01 applies single slave address 0x41 (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 VCNL3030X01. As Fig. 17 shows, VCNL3030X01’s I2C command format is simple for read and write operations between VCNL3030X01 and the host. The white sections indicate host activity and the gray sections indicate VCNL3030X01’s acknowledgement of the host access activity. Write word and read word protocol is suitable for accessing registers 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 VCNL3030X01 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 VCNL3030X01 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 P = stop condition A = acknowledge N = no acknowledge Shaded area = VCNL3030X01 acknowledge Fig. 12 - Write Word and Read Word Protocol
Function Description
For proximity sensor function, VCNL3030X01 supports different kinds of mechanical designs to achieve the best proximity detection performance for any color of object with more flexibility. 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 VCNL3030X01 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. The intelligent cancellation level can be set on register: PS_CANC to reduce the cross talk phenomenon. VCNL3030X01 also supports an easy use of proximity detection logic output mode that outputs just high / low levels saving loading from the host. Normal operation mode or proximity detection logic output mode can be selected on the register: PS_MS. A smart persistence is provided to get faster PS response time and prevent false trigger for PS. Descriptions of each slave address operation are shown in table 1. Rev. 1.0, 12-Aug-2020
8
Document Number: 84960 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