An Engineer's Guide to USB Typе-С (2024)
An Engineer's Guide to USB Type-C (2024)
USB Type-C (USB-C) is frequently misunderstood as merely a "reversible connector." To an engineer, however, it represents a complex intersection of physical layer symmetry, dynamic power negotiation, and multiplexed high-speed data signaling. This guide breaks down the technical architecture required to implement USB-C in modern hardware.
1. The Physical Layer & Pinout
The USB-C connector consists of 24 pins arranged in a mirrored configuration to allow reversibility. Unlike previous iterations, the "host" and "device" are not determined by the physical shape of the plug, but by the electrical state of the Configuration Channel (CC) pins.
Pin Mapping Table
| Pin Name | Symbol | Count | Function | Description |
|---|---|---|---|---|
| VBUS | 4 | Power | Main power rail (up to 48V in EPR) | |
| GND | 4 | Ground | Common return path | |
| TX/RX | 8 | High-Speed Data | Differential pairs for USB 3.2/USB4 | |
| D+/D- | 2 | Legacy Data | USB 2.0 backward compatibility | |
| CC | CC1 / CC2 | 2 | Configuration | Orientation, Role, and PD negotiation |
| SBU | SBU1 / SBU2 | 2 | Sideband Use | Auxiliary signals (e.g., DisplayPort AUX) |
Engineer's Note: The symmetry is achieved because the
CC1andCC2pins are not mirrored; they are unique. The cable only contains one CC wire, and the orientation is detected based on which pin (CC1orCC2) sees the termination resistor.
2. The Logic of the Configuration Channel (CC)
The CC pins are the "brains" of the connection. They handle three primary tasks: Orientation Detection, Role Detection, and Power Negotiation.
Role Definitions
- DFP (Downstream Facing Port): The source of power (e.g., a wall charger).
- UFP (Upstream Facing Port): The sink of power (e.g., a smartphone).
- DRP (Dual Role Port): A port that can be either a source or a sink (e.g., a laptop).
Orientation Logic
When a cable is plugged in, the DFP pulls up CC1 and CC2 to 3.3V or 5V via resistors (). The UFP pulls these pins down to ground via .
The port that detects the voltage drop on a specific CC pin determines the orientation of the high-speed lanes.
3. USB Power Delivery (USB-PD)
While basic USB-C provides 5V, USB-PD allows for much higher power levels through a sophisticated digital handshake over the CC line using Biphase Mark Coding (BMC).
Power Profiles
- Standard Power Range (SPR): Up to 100W (20V @ 5A).
- Extended Power Range (EPR): Up to 240W (48V @ 5A).
The Negotiation Flow
The following diagram illustrates the simplified handshake between a Source and a Sink:
4. Data Protocols & Alternate Modes
USB-C is a "tunnel" that can carry multiple protocols. Through Alternate Mode (Alt Mode), the high-speed TX/RX lanes are repurposed.
- USB 2.0: Always available via the dedicated pins.
USB 3.1USB 3.2 Gen 2x2: Uses all four high-speed lanes for data (up to 20Gbps).- DisplayPort Alt Mode: Reassigns lanes to carry video signals.
- Thunderbolt 4 / USB4: Uses a complex packet-based tunneling system to mix PCIe, DisplayPort, and USB data.
Implementation Example: Lane Mapping
If a device enters DP_Alt_Mode_C (2 lanes for DP, 2 for USB 3.2), the mapping looks like this:
Lane 0 DP Lane 0
Lane 1 DP Lane 1
Lane 2 USB TX1
Lane 3 USB RX1
5. Hardware Design Checklist
When designing a PCB for USB-C, follow these critical constraints:
- Impedance Matching: Ensure differential pairs are matched to .
- ESD Protection: Place TVS diodes as close to the connector as possible.
- VBUS Decoupling: Use high-voltage rated capacitors for EPR (48V) support.
- CC Termination: Correct and values based on the desired role.
- EMI Shielding: Ensure the connector shell is tied to chassis ground.
Sample Configuration Code (Pseudo-C)
// Initialize USB-C Port as DRP
void init_usb_port() {
USB_C_REG_CONFIG |= (1 << ROLE_DRP);
USB_C_REG_PD_ENABLE = 1;
if (detect_orientation() == CC1_ACTIVE) {
set_mux_state(Symmetry_A);
} else {
set_mux_state(Symmetry_B);
}
}
Summary Table: Evolution of the Standard
| Feature | USB 2.0 (Type-A) | USB 3.2 (Type-C) | USB4 / TB4 |
|---|---|---|---|
| Max Speed | 480 Mbps | 20 Gbps | 40-80 Gbps |
| Max Power | 2.5W - 4.5W | 100W | 240W |
| Reversible | No | Yes | Yes |
| Alt Modes | No | Yes | Yes (Tunneling) |