Datasheet VCNL36828P (Vishay) - 10

HerstellerVishay
BeschreibungA Small Package Proximity Sensor With a VCSEL, Low Idle Current, I 2C Interface, and Smart Dual Slave Address
Seiten / Seite20 / 10 — VCNL36828P. Application Circuit With a Smart Dual Slave Address. Host. …
Dateiformat / GrößePDF / 287 Kb
DokumentenspracheEnglisch

VCNL36828P. Application Circuit With a Smart Dual Slave Address. Host. microcontroller. I2C Write and Read Protocol

VCNL36828P Application Circuit With a Smart Dual Slave Address Host microcontroller I2C Write and Read Protocol

Modelllinie für dieses Datenblatt

Textversion des Dokuments

VCNL36828P
www.vishay.com Vishay Semiconductors
Application Circuit With a Smart Dual Slave Address
Fig. 14 shows an application circuit example with a smart dual slave address. By swapping the SCL and SDA pins of the second device, as shown in Table 1, the designer can change the 7 bit slave address of the VCNL36828P. This provides the flexibility for the designer to connect two devices from two different slave addresses on the same I2C bus. V V (2) DD DD C V 1
VCNL36828P
PULL UP Device 1 (slave address: 0x60) V VCSEL (4) VCSEL A C R R R 1 2 3 2 SCL (5) SDA (6)
Host
GND (3)
microcontroller
INT (1) V V (2) DD DD SCL C3
VCNL36828P
SDA Device 2 (slave address: 0x51) INT (GPIO) V VCSEL (4) VCSEL A C4 SCL (5) SDA (6) GND (3) INT (1) Fig. 14 - Application Circuit Example for Two VCNL36828Ps - Smart Dual Slave Address
I2C Write and Read Protocol
The communication with the VCNL36828P can be performed via I2C. The I2C write and read protocol when communicating with the proximity sensor is shown in Fig. 15. Send byte o write command to VCNL36828P 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 o read data from VCNL36828P 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 VCNL36828P response N = not acknowledge Fig. 15 - I2C Write and Read Protocol It is imperative that only the restart condition for the I2C read is implemented instead of the stop and restart condition. Rev. 1.2, 16-Nov-2023
10
Document Number: 80306 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