How Type-C works
1. Type-C Port Behavior and System Model
1.1 Type-C Port Behavior
Power Supply
Data Transmission
-
Source: In the role of power supply, it can provide power to the Sink end, such as one end of the charger;
-
Sink: The power consumption role, which will consume Vbus Power when included in the Source, such as a power bank;
-
Dual-Role-Power: As a power source or sink, it can be switched dynamically. A typical DRP device is a laptop. The role of the device when it is first connected is determined by the port's Power Role; it can also be changed later through the switch process.
DRP
-
DFP-mode only: Downstream Facing Port, which is equivalent to the Host role in USB, and is equivalent to the USB of the vehicle host;
-
UFP-mode only: Upstream Facing Port, equivalent to the Device role in USB, equivalent to a USB flash drive;
-
Dual-Role Data: DRD dual role, which means it can play two roles. It can be configured to switch in the software, which is equivalent to the USB of a mobile phone.
Data Role
Power Role
Host
Device
1.2 USB Type-C System Implementation Model
The USB Type-C system implementation model is mainly divided into three parts: the communication interface on the left, Type-C management in the middle, and power supply on the right; this part has corresponding software coding, communication, control, and charging management. Mainly in the middle part:
USB Type-C Port Controller
• USB Power Delivery PHY
• CC Logic Function
• USB Power Delivery Protocol
• Interface to system software via UCSI
2. Type-C CC pin function
Positive insertion: A1 to A1
Reverse insertion: A1 to B1
2.1 Detecting USB port roles
The table mainly judges based on the pin status of CC1 CC2. There are 6 states for current connection. The last one
, Type-C headset is a typical application;
Audio Apdapter Mode attached
For example: you can see that CC1 and CC2 are both in the pull-down state.
2.2 Identify cable direction and establish signal routing
2.3 Two DRP connection negotiation
DRP
2.4 Configuring VCONN
2.5 Discover and configure VBUS
Discover and configure VBUS. This part should belong to Type-C power supply, which is mostly used for fast charging related functions. For USB Type-C to provide the maximum current, the CC pin is required for detection. The Type-C port can provide 5V/3A, but if the USB PD protocol is used in conjunction, the power supply capacity will be greatly improved. The USB PD protocol transmits protocol data through the CC pin and is responsible for power negotiation and management. The CC pin is used to discover the device connection status and perform more complex power negotiation through USB PD.
First, the DFP needs to detect the currently connected USB role. Please refer to 2.1 Detecting the USB port role.
-
CC pin detection : When a device is connected to a Type-C port, the resistance value of the CC pin can determine the capabilities of the power source and the current requirements of the device.
CC: DFP informs UFP of its power supply capability through the voltage on the CC pin. The pull-down resistor Rd=5.1K on the UFP end, and DFP can generate voltage on the CC pin through its pull-up resistor or current source.
The current source specifications for the resistance value are shown in the figure:
-
USB PD negotiation : Through the CC pin, the device can communicate with the power source using the USB PD protocol. The USB PD protocol allows the device and the power source to dynamically negotiate current, voltage, and power to ensure that the required power can meet the demand.
2.6 Type-C Other functions
2.6.1 Alternate Mode (Alt Mode)
2.6.2 Accessory Mode
-
External accessories : Peripherals such as keyboards, mice, and headphones can be connected to the host device in peripheral mode to provide input and output functions.
-
Peripheral devices : For example, a USB Type-C to Ethernet adapter that can make network connections in peripheral mode.
2.6.3 Extended Application
3. Conclusion
Type-C
Type-C
Type A
Type-C
In addition, when it comes to
cable selection, it is recommended to choose this full-featured cable, which can realize all functions and has good quality.
Type-C
Reference official website:
https://www.usb.org/sites/default/files/D1T1-2%20-%20USB%20Type-C%20System%20Overview.pdf
end
A bite of Linux
Follow and reply【 1024 】 to get a large amount of Linux information
Collection of wonderful articles
Recommended articles