We know that most STM32 chip models are equipped with USB DEVICE or USB OTG modules. With the continuous promotion and popularization of the Type-C interface, the question of how to connect the USB module of the STM32 chip to the Type-C interface will naturally gradually appear in front of STM32 application engineers.
ST official application note [AN4775] introduces the solution suggestions on how to replace the traditional USB 2.0 connector with USB Type-C. At the same time, the note also briefly introduces some basic knowledge about USB Type-C and USB power transmission.
Here we might as well take a look at some terms and pin diagrams of the USB Type-C interface.
1. Several terms of USB Type-C interface
DFP [Downstream Facing Port]: Downstream port. It is related to USB data flow. Generally refers to the port of HOST or HUB, and the slave device is connected to such port.
UFP [Upstream Facing Port]: Upstream port. It is related to USB data flow. Generally refers to DEVICE port or HUB port connected to other HOST or DFP HUB.
SOURCE: Power supply port. The CC pin on this port is connected to a pull-up resistor and supplies power to the outside through VBUS. Generally refers to HOST or DFP HUB port, such as the traditional Type-A port.
SINK: Power receiving port: The CC pin on this port is connected to a pull-down resistor, and it draws power from VBUS. Generally refers to device port, such as the traditional Type-B port.
DRP [Dual Role Port] Dual role port. A port that can be used as both SOURCE and SINK, and the role can be fixed or negotiated.
2. USB Type-C interface pin diagram
The USB Type-C interface has a total of 24 pins, divided into symmetrical connection and asymmetrical connection.
Symmetrical connection:
-USB 2.0 differential signal pair (D+/D-);
-Power pin: VBUS/GND;
Asymmetric connection:
- Two sets of TX/RX signal pins supporting USB3.1 data transmission speed;
- Channel configuration pins [CC pins], used for configuration management such as plug-in and role monitoring, power supply, etc.;
- Two sideband signal pins [SBU], used for analog audio mode or DP alternative mode;
From the pin diagram above, we can see two CC configuration pins, CC1 and CC2. However, for a plug in one direction, only one CC pin is connected to it. For two CC pins, a DFP port must be connected to a pull-up resistor Rp; a UFP port must be connected to a pull-down resistor Rd. The insertion direction and device role are confirmed by detecting the level of the Rp/Rd resistor connected to the CC pin.
Finally, let's take a look at the example schematic diagram provided by ST for the STM32 chip with different roles to switch from the traditional USB 2.0 interface to the Type-C interface. It is clear at a glance and you can refer to it when needed.
Previous article:High-speed signal spectrum analyzer based on stm32f4
Next article:Several features that distinguish STM32F7 from other MCUs with the same core
- Popular Resources
- Popular amplifiers
- Learn ARM development(16)
- Learn ARM development(17)
- Learn ARM development(18)
- Embedded system debugging simulation tool
- A small question that has been bothering me recently has finally been solved~~
- Learn ARM development (1)
- Learn ARM development (2)
- Learn ARM development (4)
- Learn ARM development (6)
Professor at Beihang University, dedicated to promoting microcontrollers and embedded systems for over 20 years.
- LED chemical incompatibility test to see which chemicals LEDs can be used with
- Application of ARM9 hardware coprocessor on WinCE embedded motherboard
- What are the key points for selecting rotor flowmeter?
- LM317 high power charger circuit
- A brief analysis of Embest's application and development of embedded medical devices
- Single-phase RC protection circuit
- stm32 PVD programmable voltage monitor
- Introduction and measurement of edge trigger and level trigger of 51 single chip microcomputer
- Improved design of Linux system software shell protection technology
- What to do if the ABB robot protection device stops
- Detailed explanation of intelligent car body perception system
- How to solve the problem that the servo drive is not enabled
- Why does the servo drive not power on?
- What point should I connect to when the servo is turned on?
- How to turn on the internal enable of Panasonic servo drive?
- What is the rigidity setting of Panasonic servo drive?
- How to change the inertia ratio of Panasonic servo drive
- What is the inertia ratio of the servo motor?
- Is it better for the motor to have a large or small moment of inertia?
- What is the difference between low inertia and high inertia of servo motors?
- Free application: Domestic FPGA Gaoyunjia Little Bee Family GW1N Series Development Board
- Taking stock of the college entrance examination experience of Internet tycoons! How many points did you get in the exam?
- Without American EDA software, we can’t make chips?
- 【Share】Flash management tools: FAL (Flash Abstraction Layer) library
- [Awards awarded] Grab the post! Download the TWS headset white paper, write a wonderful review, and win a JD card!
- Constant voltage circuit and constant current circuit composed of operational amplifier and triode
- [RVB2601 Creative Application Development] Record the startup process of the hello world system
- How to initialize the key port of the power button in C language
- About the use and description of idconfig
- [CC1352P Review] The beginning of a little frustration