2020-11-26 04:49 AM
Hi,
We are designing a USB 2.0 interface between STM32H750IB and PC.
PC will be acting as Host and STM32H750IB will be acting as Device.
But for some reasons like future upgradability, we are using USB Type-C Connector.
Note that we are going to use USB 2.0 pins for Data transfer alone.
Our concern here is, what all pins/signals we need to use in Type-C connector, may be for configuration process for determining port’s role or for any other reasons also.
Also we are not using power delivery option (neither source nor sink). Can I leave VBUS pin of MCU floating? If not, can we feed from 5V Regulator, instead of Bus power ? Because if we have to feed Bus power in Type-C, then, you might be knowing, that one has to use different chipsets like PD (power delivery) Manager etc.
Appreciate your quick response.
Best Regards,
Preetham
2020-11-26 05:15 AM
2020-11-27 04:55 AM
Hi,
Thanks a lot for the link.
I understood about what all signals will be needed.
On VBUS, can we directly connect VBUS coming from the Type C bus/connector to VBUS pin of the MCU ?
Thanks.
2020-11-27 06:33 AM
I wouldn't think you can directly connect VBUS to STM32,
VBUS could be 3V3, 5V, or something else depending on what is on other side (old USB2 port with USB-ISBC cable).
There are ICs for this, depending on whether your MCU is USB Host, USB Slave, or Both, and also whether you input or output VBUS.
Also careful of ESD protection, Noise, Power Spikes, and the like if the USB will be used by Customers (or only Staff Diagnostics). If a USB cable is left plugged in with nothing on the other side the cable can be an antenna.
We use the USB purely for UART style diagnostics, our product is select powered, so we ignore all the power signals on USB-C and connect only DP,DN,GND - Works great and can allow faster serial diagnostics that typical UART (depending on system clocks).
Paul
2021-04-15 01:23 PM
Hello there,
I have something similar question, can i use the typeC connector with STM32H745Z? which phy is recommended? do you have any reference design?
thanks,
dave
2021-04-16 05:26 AM
We use USBC connectors for VCP for diagnostics (not for connection by customer).
No Power (No VBus), just USB2 D+/D-. The USBC is nice as cables common and can be plugged in mirrored.
Note: See other posts about handling baudrate settings and the like in ST code, otherwise some PC com programs won't connect properly.
TeraTerm, and Recently CoolTerm do work.
Note the VCP isn't available immediately at bootup, so may need to delay any critical messages till VCP is up and running.
You can get right angle USBC connectors that only have USB2 pins, easier layout with less pins.
If you want USB power look for appropriate ICs, some ST Demos have such circuits.
If planning to include as a production connection best to include ESD protection as direct MCU pins on connector exposes MCU to ESD.
Paul
2021-04-16 05:57 AM
Hello Paul,
thanks for quick reply.
Like you mention that for VCP +FS can work as TypeC, but how to solve the high bandwidth data > 100Mbit?
is there any example of HS+ typeC ? can i directly connect the HS to TypeC?
for this high end chip, i would expect similar request from other customers.
in my application STM32 will work as a device with Vbus as optional, while data rate should be high.
i found this ppt which is helpful to understand the basic -"en.STM32-USB-C-PD-solutions-presentation"
i would appericiate your recommedation, or schematic for above problem.
thanks,
dave
2021-04-16 06:30 AM
You can use the HS port for this.
I suggest you get a Nucleo or other demo, and attach a USBC socket with wire leads and try it.
This USBC connector has only USB2 pins so easier to hand solder: USB4105-GF-A (digikey)
I suspect the datarate achieved will depend on the other device, and how optimized your code is. May need DMA.
Paul
2021-04-20 12:12 AM
hello Paul,
thanks for sharing the part number.
is there any example available? how generate a dedicated clock for ulip (52Mhz)/ which pin should be used for ulip domain?
thanks in advance,
dave
2021-04-20 12:12 AM
hello Paul,
thanks for sharing the part number.
is there any example available? how generate a dedicated clock for ulip (52Mhz)/ which pin should be used for ulip domain?
thanks in advance,
dave