Author Topic: USB type C power delivery  (Read 1479 times)

0 Members and 1 Guest are viewing this topic.

Offline gaminnTopic starter

  • Frequent Contributor
  • **
  • Posts: 343
  • Country: 00
USB type C power delivery
« on: August 20, 2019, 12:42:31 pm »
Hi,
I'm designing an USB 2.0 full speed device (downstream port) with USB type C. The device will be connected to an upstream port of a tablet/phone.

There will be 2 power modes of the device:

1) No external power supply connected to the device. Then, the tablet/phone must provide 5 V on USB bus.
2) There is an external power supply connected to the device. Then the device will provide 5 V on the bus (and the tablet/phone can charge itself).

The device should be able to request switch between 1) and 2) or 2) and 1) at any time. The device doesn't have any battery. It is a device with USB type C connector to connect to tablet/phone and jack/second USB type C connector where external power supply will be connected.

I just started to read about USB type C. I know that CC pins on USB type C connectors take care of Power Delivery protocol which is probably what I want to use.

How is this going to be implemented? What chip should I buy to implement this feature on USB type C?
 

Offline jismal

  • Contributor
  • Posts: 26
  • Country: in
Re: USB type C power delivery
« Reply #1 on: August 22, 2019, 07:14:43 am »
I am also at a similar situation. The best method is to go with a USB type c PD controller like one from TPS65982. But for me cost was an issue. So I decided to violate the spec. Now my device can only be charged by a dumb usb cable. But it is able to power other usb downstream devices.
Anyway here is my implementation. (Yes it surely violate USB type C spec).
 

Offline gaminnTopic starter

  • Frequent Contributor
  • **
  • Posts: 343
  • Country: 00
Re: USB type C power delivery
« Reply #2 on: August 22, 2019, 11:21:21 am »
I can see those 50 - 100 pin devices mainly from TI that can do power delivery and I'm afraid of learning curve needed to understand them. So I was hoping there is a not so complicated way to achieve power role switch.

You have two equivalent USB type C ports in your design and based on CC pin state you either supply power to them or charge from them. That probably works (if you charge with dumb usb cable as you say as you always advertise that you are a source), but I also need to change power role during runtime.

My device is sink in default but when it detects it has external power adapter connected it should be able to request power role switch so the tablet becomes sink and the device becomes source. I wish it would be that simple as switching from pull down to pull up on CC pin and the switch magically happened :)
« Last Edit: August 22, 2019, 11:23:17 am by gaminn »
 

Offline krho

  • Regular Contributor
  • *
  • Posts: 223
  • Country: si
Re: USB type C power delivery
« Reply #3 on: August 22, 2019, 05:01:37 pm »
STM32G0 series provides CC pins and libraries for PD. However you'll need to protect the CC pins against the high voltage yourself. CC pins are close to VBUS so accidentally you can get up to 20V+ on them
 

Offline gaminnTopic starter

  • Frequent Contributor
  • **
  • Posts: 343
  • Country: 00
Re: USB type C power delivery
« Reply #4 on: August 22, 2019, 05:17:39 pm »
Thank, great! Part for approx 1 USD that can probably do what I need.

I think also STUSB1602 controller would do the job.
« Last Edit: August 22, 2019, 05:52:47 pm by gaminn »
 

Offline ddavidebor

  • Super Contributor
  • ***
  • Posts: 1190
  • Country: gb
    • Smartbox AT
Re: USB type C power delivery
« Reply #5 on: August 22, 2019, 05:58:59 pm »
Just dropping in for a recommendation: if you need good and cheap usb-c connectors check the one from company Korean HROparts
David - Professional Engineer - Medical Devices and Tablet Computers at Smartbox AT
Side businesses: Altium Industry Expert writer, http://fermium.ltd.uk (Scientific Equiment), http://chinesecleavers.co.uk (Cutlery),
 

Offline SiliconWizard

  • Super Contributor
  • ***
  • Posts: 15797
  • Country: fr
Re: USB type C power delivery
« Reply #6 on: August 22, 2019, 06:05:59 pm »
Another one if you're looking for an easy to hand-solder USB-C connector: Hirose CX70M-24P1
It's a mid-mount connector. Easy to hand-solder with just a soldering iron. Downside: may not be the easiest to route on PCB.

 

Offline krho

  • Regular Contributor
  • *
  • Posts: 223
  • Country: si
Re: USB type C power delivery
« Reply #7 on: August 24, 2019, 06:57:09 am »
STUSB1602 won't work as its sink only controller.
 

Offline gaminnTopic starter

  • Frequent Contributor
  • **
  • Posts: 343
  • Country: 00
Re: USB type C power delivery
« Reply #8 on: August 24, 2019, 07:19:13 pm »
In datasheet I can see that it can do sink, source and dual role. https://www.st.com/resource/en/datasheet/stusb1602.pdf

 

Offline krho

  • Regular Contributor
  • *
  • Posts: 223
  • Country: si
Re: USB type C power delivery
« Reply #9 on: August 25, 2019, 06:31:37 pm »
Ah sorry. I mixed it with STUSB4500
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf