Electronic – USB-C as power source and negotiation with USB 2.0 and 3.0

pcbusbusb deviceusb-c

I have a PCB that currently features a Micro-USB used only for data transfer, and a separate 5V power supply input jack for powering up the device. The device's maximum drawn current is 600mA. To remove the need for the input jack and to use only one cable, I would like to follow the steps featured in this post in order to have my USB 2.0 device handle both data transfer and power (5V, 600mA) using a USB-C receptacle.

From what I understand, the steps include soldering the two data pins from the Micro-USB to the receptacle pins, soldering the 5.1k pull down resistors on the CC pins, and soldering the 5V/GND pins from the input jack to the VBUS/GND pins of the receptacle to power up my device. For now I do not care if the modification is bulky, I only care on safety.

I then want to hook up my newly modified device to a laptop. My questions are:

If I hook it up to a USB-C port, will the power negotiation work as expected? I understand that USB 2.0 hosts limit negotiation to 500mA, thus I want to know if negotiation will work as the host can handle more (900mA) but my device runs USB 2.0 only?

Now say I use a commercially available USB-C to USB-A adaptor to connect my modified device to a classical USB-A port on my laptop. I expect that the answer does not change if the port runs on USB 3.0? And if the port only features USB 2.0, will my device basically not turn on, as negotiation will stop at 500mA?

I am new to negotiation, any help is very appreciated!

Best Answer

When you plug in your device the pull up resistor Rp on the host side and pull down resistor Rd on the device side form a resistor divider.

page 9 in AN5225

The Rd resistor is 5.1K as you mentioned, but the Rp will vary based on the power capabilities of the host. You can monitor the voltage at the cc pins, and after making sure the host is capable of providing enough power, enable the power demanding circuitry.

AN5225 by ST talks more about the issue.

enter image description here