cancel
Showing results for 
Search instead for 
Did you mean: 

How can I use the single CC pin of my STM32G071GBxx for USB-C?

Dustin Lehmann
Associate II

Hello,

I want to use a STM32G071GBxx in my design of a USB 2.0 Device using a USB-C receptacle. I want to be able to do 2 things:

  • Check what current at 5V the host can provide
  • Configure the Resistor at the CC lines in a way to draw 3A at 5V

Can I do this using the single CC pin on the STM32G071GBxx or do I need a microcontroller with CC1 and CC2 pins? Also, what functions in the CubeIDE Middleware for USB-C PD would allow me to do this?

Best

1 REPLY 1
Nicolas P.
ST Employee

Hello @Dustin Lehmann​ 

Sorry if I see your post only now, it didn't have the USB-PD tag I'm following.

For me it seems that STM32G071 doesn't have USB interface. You should select STM32G0C or STM32G0B products.

In all the G0 series, you have a power delivery controller to manage the CC pins.

And this allows you to configure the Rp pullups (or Rd pulldown) internally.

You need to manage the 2 CC pins, because you need to monitor both CC pins to detect the orientation, unless you have a captive cable.

Have you checked our wiki with links to our step by steps examples ?

Regards,

Nicolas