2022-08-30 10:37 AM
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