Author Topic: USB-C PD protocol  (Read 140 times)

0 Members and 1 Guest are viewing this topic.

Online BeBuLamarTopic starter

  • Super Contributor
  • ***
  • Posts: 1416
  • Country: us
USB-C PD protocol
« on: January 06, 2025, 04:56:32 pm »
As I understand it a USB-C PD port would communicate with the device plugged into it so it would know what kind of voltage and current limit it should output to the device. Anyone know how to do the communication to get it to deliver the right voltage that I want?
 

Online ejeffrey

  • Super Contributor
  • ***
  • Posts: 4014
  • Country: us
Re: USB-C PD protocol
« Reply #1 on: January 06, 2025, 05:29:05 pm »
The signalling is somewhat complicated.  You first have to check for passive resistor pin strapping for 5V current limiting, then check the cable for an electronic ID chip, then communicate with the remote end through a pulse-width signalling protocol, keeping in mind that the other end may want to be a PD source, sink, or either, and you have to consider that CC1 and CC2 can be inverted.  You also need to switch the power supply, as USB type C does not allow connecting the 5 V Vbus until the remote side is detected.

It's nothing you couldn't do yourself with a micro-controller, but its probably a lot easier to use a stand along PD controller such as the STUSB4700 series, or any number of TI products.
« Last Edit: January 06, 2025, 06:18:50 pm by ejeffrey »
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf