cancel
Showing results for 
Search instead for 
Did you mean: 

USB 2.0 and I2C on USB cable depending on the needs

UUser.1
Associate

Hi,

I would like to ask about possibilities to implement USB and I2C communication via USB cable, interchangeably, depending on the needs.

I have STM32F401RCT6 in my project and currently I use USB OTG interface to connect data traveler but now I need to use this USB connector to connect other PCB with IC controlled via I2C.

Is it possible to connect Data+ to SDA line and Data- to SCL line in the MCU and initialize only one interface e.g USB (I2C lines will stay not initialized and in Hi-Z state) in one time? And initialize I2C (USB lines will stay not initialized and in Hi-Z state) in another time?

Is there anyone who has done something similar?

Best Regards,

Michael

0 REPLIES 0