USB Type-C Working Principle In-depth Analysis--Entry Level

Publisher:科技奇才Latest update time:2023-09-05 Source: elecfansKeywords:USB Reading articles on mobile phones Scan QR code
Read articles on your mobile phone anytime, anywhere

Since Apple released the new MacBook, many people have been talking about USB Type-C. Let me analyze USB Type-C from a hardware perspective and clear up some confusion.


feature

Small size, reversible insertion, fast speed (10Gb). This small refers to the USB interface on computers in the past, but it is actually a bit larger than the microUSB on Android phones:

USB Type-C:8.3mmx2.5mm

microUSB:7.4mmx2.35mm

而lightning:7.5mmx2.5mm

Therefore, I don’t see the advantage of USB Type-C on handheld devices in terms of size. As for speed, it depends on whether video transmission is needed.


Pin Definition

As you can see, data transmission mainly consists of two sets of differential signals, TX/RX. CC1 and CC2 are two key pins with many functions:

• Detect connection, distinguish front and back, distinguish DFP and UFP, that is, master and slave

• Configure Vbus, with two modes: USB Type-C and USB Power Delivery

• Configure Vconn. When there is a chip in the cable, one cc transmits the signal and one cc becomes the power supply Vconn

• Configure other modes, such as when connecting audio accessories, dp, pcie

There are 4 power supplies and 4 grounds, which is why it can support up to 100W.


Don’t be fooled by the fact that USB Type-C seems to support up to 20V/5A. In fact, this requires USB PD, and supporting USB PD requires an additional PD chip, so don’t think that the USB Type-C interface can support up to 20V/5A.


Of course, integrated chips will appear in the future.


Auxiliary signals sub1 and sub2 (Side band use) are only used in some specific transmission modes.


D+ and D- are for compatibility with previous USB standards.

Here, USB3.0 has only one set of RX/TX, and the speed is 5Gb. USB Type-C uses two sets to ensure that it can be plugged in both directions, but in fact, only one set of RX/TX is used for data transmission, and the speed has reached 10Gb. If the protocol is upgraded later, both sets will be used, and the speed will be 20Gb, the same as DisplayPort.

Workflow

In the above figure, DFP (Downstream Facing Port) is the master, and UFP (Upstream Facing Port) is the slave. In addition to DFP and UFP, there is also a DRP (Dual Role port). DRP can be used as both DFP and UFP. When DPR is connected to UFP, DRP is converted to DFP. When DRP is connected to DFP, DRP is converted to UFP. When two DRPs are connected together, one of them is DFP and the other is UFP.


There is a pull-up resistor Rp on the CC pin of DFP and a pull-down resistor Rd on the UFP. When not connected, the VBUS of DFP has no output. After connection, the CC pins are connected, and the CC pin of DFP will detect the pull-down resistor Rd of UFP, indicating that it is connected. DFP will turn on the Vbus power switch and output power to UFP. Which CC pin (CC1, CC2) detects the pull-down resistor determines the direction of the interface insertion, and switches RX/TX by the way.


The resistor Rd=5.1k, and the resistor Rp is an uncertain value. According to the previous figure, USB Type-C has several power supply modes. How to distinguish them? It depends on the value of Rp. If the value of Rp is different, the voltage detected by CC pin will be different, and then the power supply mode executed by DFP end will be controlled.


It should be noted that two CCs are drawn in the above picture, but in fact there is only one CC wire in the cable without chip.


The cable containing the chip does not have two cc wires, but one cc and one Vconn, which are used to power the chip in the cable (3.3V or 5V). At this time, there is no pull-down resistor Rd at the cc end, but a pull-down resistor Ra, 800-1200 ohms.

When both CC pins are connected to pull-down resistors <= Ra, DFP enters audio accessory mode, and both left and right channels and mic are available, as shown above.


USB Type-C和DisplayPort,PCIE

USB PD is a BMC-encoded signal, while the previous USB is FSK, so there is incompatibility. I don’t know if there are any products on the market that can convert.


USB PD is transmitted on the CC pin. PD has a VDM (Vendor defined message) function that defines the device ID. When a device that supports DP or PCIe is read, DFP enters alternate mode.


If DFP recognizes the device as DP, it switches the MUX/Configuration Switch to change the Type-C USB3.1 signal pin to transmit DP signal. AUX auxiliary is transmitted by Type-C's SBU1 and SUB2. HPD is a detection pin, similar to CC, so it is shared.


DP has four differential signals in lanes 0-3, and Type-C has four differential signals in RX/TX1-2, so there is no problem with complete replacement. In addition, in the replacement mode of the DP protocol, USB signals and DP signals can be transmitted at the same time, RX/TX1 transmits USB data, and RX/TX2 is replaced by two groups of data transmission in lanes 0 and 1, which can support up to 4k.


If DFP recognizes the device as DP, it switches the MUX/Configuration Switch to change the Type-C USB3.1 signal pin to transmit PCIe signals. Similarly, PCIe uses RX/TX2 and SBU1, SUB2 to transmit data, and RX/TX1 transmits USB data.


The advantage of this is that one interface can use two devices at the same time. Of course, this can be done with a conversion cable without the need for any chips.


Summarize

USB Type-C puts an end to the long-standing defect of USB plugging and unplugging, saving people a lot of time. It takes at least 2 seconds to change the direction. Assuming that 1 billion people in the world plug and unplug the USB once a day, there is a 50% probability of plugging it wrong, which takes more than 277,000 hours in total, or about 31 years. It's terrifying.


One interface handles audio, video and data, and the size is relatively small. Now more and more mobile phone interfaces are gradually turning into

USB Type-C interface.


Keywords:USB Reference address:USB Type-C Working Principle In-depth Analysis--Entry Level

Previous article:Set-top box remote control receiver_The difference between digital TV and network set-top box applications
Next article:CS5216 DP to HDMI Pin to Pin Replacement for PS8402A | PS8402A Replacement | Replacement for PS8402A

Recommended ReadingLatest update time:2024-11-16 12:51

USB device driver transplantation development board as USB disk
The TQ2440 development board has two USB ports. You need to set the second USB port (the one for burning) as a USB device. 1. Modify the source code First, use the development board as a slave device, that is, the USB port uses the USB Device function, and modify the "arch/arm/mach-s3c2440/mach-smdk2440.c" file in t
[Microcontroller]
USB device driver transplantation development board as USB disk
Design of high-gain data acquisition system based on USB interface
  0 Preface   In modern industrial production and scientific and technological research, various data need to be collected. The commonly used data collection method through data acquisition boards has the following disadvantages: troublesome installation, easy to be disturbed by the environment inside the chassis, res
[Microcontroller]
Design of high-gain data acquisition system based on USB interface
They are all C-port Thunderbolt 3/Thunderbolt 4/USB 3.0/USB 4. What are the differences? One picture to understand
       There has been a lot of news recently about Apple switching to the USB-C interface for the iPhone next year. It seems that the convenience of traveling around the world with just one cable is just around the corner.   However, are you wondering, although they are all USB-C interfaces, they can actually correspo
[Mobile phone portable]
They are all C-port Thunderbolt 3/Thunderbolt 4/USB 3.0/USB 4. What are the differences? One picture to understand
Compact Zigbee 3.0 USB adapter for use with vendor software systems
The SMLIGHT SLZB-07 is a low-cost, compact Zigbee 3.0 USB adapter based on a Silicon Labs EFR32 microcontroller and a CP2102 USB-to-serial chip, designed to work with multi-vendor software systems such as Zigbee2MQTT and Home Assistant ZHA. The adapter allows you to easily integrate any Zigbee device into
[Embedded]
Compact Zigbee 3.0 USB adapter for use with vendor software systems
IM2605 type-c power management chip design schematic
The IM2605 integrates a synchronous 4-switch Buck-Boost converter to maintain output voltage regulation when the input voltage is less than or greater than the output voltage. When the input voltage is sufficiently greater than the output voltage, it operates as a Buck converter and gradually transitions to Buck-Boo
[Embedded]
IM2605 type-c power management chip design schematic
Actual picture exposed, Apple's 35W dual-port USB-C charger adopts a flat design
     Previously, 9to5Mac discovered a leaked support document that Apple may be planning to launch a dual-port 35W USB-C charger in the near future. ChargerLAB also shared a rendering of the alleged 35W dual-port USB-C charger.   Later, Twitter blogger @Majin Bu released a more powerful evidence, he posted a photo o
[Mobile phone portable]
Microchip releases new long-range USB 3.2 reclocker/signal repeater device for automotive and industrial applications
The EQCO510 and EQCO5X31 devices provide a reliable dual-channel solution for sending high-speed data signals in both directions. Supports two-way distance up to 15 meters A standard Universal Serial Bus or USB connection is the industry-leading way to transfer data between two devices. The proliferation of elect
[Automotive Electronics]
Microchip releases new long-range USB 3.2 reclocker/signal repeater device for automotive and industrial applications
Design solution based on MCU and USB device controller IP core
1 Introduction Serial ports (such as RS232) and parallel ports are often used to connect peripheral devices in traditional computer systems. However, both serial ports and parallel ports have insurmountable disadvantages such as slow communication speed and interface monopoly that is not conducive to expansion. The Un
[Power Management]
Design solution based on MCU and USB device controller IP core
Latest Embedded Articles
Change More Related Popular Components

EEWorld
subscription
account

EEWorld
service
account

Automotive
development
circle

About Us Customer Service Contact Information Datasheet Sitemap LatestNews


Room 1530, 15th Floor, Building B, No.18 Zhongguancun Street, Haidian District, Beijing, Postal Code: 100190 China Telephone: 008610 8235 0740

Copyright © 2005-2024 EEWORLD.com.cn, Inc. All rights reserved 京ICP证060456号 京ICP备10001474号-1 电信业务审批[2006]字第258号函 京公网安备 11010802033920号