USB VBus Sensing during USB 2.0 Full Speed Communication
- March 11, 2026
- 1 reply
- 163 views
Hi
I have a USB-C Connector that will be used for Power Delivery Sink for charging and USB Full Speed Mode(12Mbps) for communicating with onboard STM32F767ZIT6. But only one thing will happen at a time.
As seen in the attached schematics, I have used STUSB4500 as PD Sink controller. I will communicate with it via I2C using STM32. I understand that this STUSB4500 will negotiate 20V(60W which i want for charging) with the source(which in this case is AC-DC Wall adapter) in Power Delivery Mode.
But my question is during USB Full Speed Mode Communication with STM32, when that USB-C Receptable is connected to a PC instead of Wall Adapter. As during charging mode, USB_VBus is 20V and in Full Speed mode, it is 5V and my STM32 is Self-Powered and VBus sensing is mandatory.
But due to USB VBus varying between 5V and 20V, I cant connect it to for example PA9 VBus sensing pin of STM32 using a voltage divider.
So, i was thinking maybe there is another option to sense VBus(5V) in Communication Mode. And that would be maybe connecting one of the Pins from STUSB4500 to STM32 to let it know VBUS is present? But i am unsure which Pin is best suited for this job ATTACH/GPIO Pin or anything else?
Thanks!
