You need to test, we're here to help.

You need to test, we're here to help.
Showing posts with label USB Type-C. Show all posts
Showing posts with label USB Type-C. Show all posts

08 August 2022

Using TF-USB-C-HS for USB 3.2 PHY-Logic Layer Debug

Figure 1. USB 3.2 electrical decoding with ProtoSync view of protocol packets, captured using TF-USB-C-HS. Click on any image to enlarge it.
Figure 1. USB 3.2 electrical decoding with ProtoSync
view of protocol packets, captured using TF-USB-C-HS.
Click on any image to enlarge it.
In a USB-C connector, link training for USB 3.1/3.2 is negotiated using an LTSSM (Link Training and Status State Machine) through electrical signaling on the TX1/RX1 and TX2/RX2 connector pins. Link training must be completed on the link before high-speed data transactions can occur.  One problem you might encounter during link training is a failure to train to USB 3.2 Gen 2 specifications. Teledyne LeCroy customers report that most system-interoperability problems are caused by either link-training or sideband-negotiation failures, which in turn can result from an electrical problem, a digital problem or a combination of both. 

TF-USB-C-HS enables you to probe all points on the USB-C connector to measure and analyze live links. The insertion-loss profile of the included cable and coupon is tuned to be the equivalent of a golden 0.8-m USB Type-C cable, so you can replace a 0.8-m cable with the coupon and not experience any difference in link performance. The coupon also has a loop to allow a current probe to make load-current measurements, and the HS version is compatible with Teledyne LeCroy DH Series probes for making high-speed differential measurements.

We'll show how to trigger, acquire and decode to find problematic link training packets synchronous with the physical-layer electrical waveforms, so you can tell if the source of your interoperability  problem is electrical, logical or both.

06 June 2022

What Happens When You Connect a USB-C Cable

The USB Type-C® connector is designed to be very simple for the user to use: you insert it in either orientation, and a multitude of services just “work”. Though simple to use, it is a complicated connector to program and test, with a very complex system of protocols behind it. There is USB power delivery (USB-PD) and multiple rates of USB data delivery from USB 2.0 through USB4®, specified by the USB Implementers Forum (USB-IF®). There are protocols other than USB, such as DisplayPort™, High-Definition Multimedia Interface (HDMI™), Peripheral Component Interconnect Express (PCIe®), Base-T Ethernet and Thunderbolt™. 

So, what actually happens when you connect a USB-C cable? To understand that, first let’s take a look at the signals and pin assignments in the USB-C connector receptacle (Figure 1).

Figure 1: The USB-C receptacle pin assignments showing the key signals used for device-to-device communications. Related pins have matching color overlays.

Figure 1: The USB-C receptacle pin assignments showing the key signals used for device-to-device communications. Related pins have matching color overlays.

13 December 2021

USB4 Alt-Mode Testing: DPAUX and USB-PD

Figure 1: The interfaces that make up the USB-C connector and their relationships.
Figure 1: The interfaces that make up the USB-C connector and their relationships.

The USB Type-C® (USB-C) connector supports not only USB data transfers at speeds of up to 20 Gb/s but also can be reconfigured to support a wide variety of other interfaces through the USB4 provision for alternative (Alt) modes. The Alt-Mode protocols supported include Thunderbolt™, Mobile High-Definition Link (MHL), Peripheral Component Interconnect Express (PCIe®), High-Definition Multimedia interface (HDMI®) and DisplayPort™ (DP).

The diagram of the USB-C receptacle in Figure 1 shows where it potentially switches from normal operation into Alt-Mode.

06 December 2021

Testing DisplayPort 2.0 vs. USB4 Over USB Type-C Connectors

Figure 1: The pin out of the USB Type-C connector.
Figure 1: The pin out of the USB Type-C connector.

DisplayPort™ 2.0 (DP 2.0) is a high-resolution video interface and USB4® is a high-speed data interface; what they have in common is the USB Type-C® (USB-C) connector. While DP 2.0 can also be deployed on the standard DisplayPort as well as mini-DisplayPort connectors, it is the USB-C connector that really excites electronics manufacturers because now they can use a single connector for high-speed data, high-resolution video and even power distribution. 

Figure 1 shows the pin assignments for a USB-C connector, which is a mechanically reversible connector that includes four, high-speed differential data lines: TX1, TX2, RX1 and RX2.

In USB4 operations, the four data lines TX1, TX2, RX1 and RX2 form a dual-lane, duplex signal path, supporting 10 and 20 Gb/s transfers on each line. When operating in USB4 Alt mode, up-to-four of these buses can be reassigned to become four DP 2.0 video lanes, which operate at 10, 13.5 or 20 Gb/s.

Testing for both interfaces over the USB-C connector is similar, but there are some notable differences.

29 November 2021

DisplayPort 2.0 Physical Layer Testing

Figure 1. Functional diagram of DisplayPort 2.0 over USB-C Source (Tx) PHY testing.
Figure 1. Functional diagram of DisplayPort 2.0
over USB-C Source (Tx) PHY testing.

The Video Electronics Standards Association (VESA) DisplayPort 2.0 video interface introduces a new performance standard with an increase in data bandwidth of three times compared to the older DisplayPort 1.4a specification, achieved by using four lanes of  up-to-20 Gb/s data per lane. This permits display resolutions to better than 8K, higher refresh rates and better dynamic range. These advantages are available using native DisplayPort connectors as well as the USB Type-C connector, which allows devices to handle video data, USB data and power all in the same connector.


With the USB-C cable now carrying DisplayPort and lower-speed sideband data, testing for USB devices has expanded to cover many dependencies between these protocols. This series will give an overview DisplayPort 2.0 physical-layer testing and how it relates to USB testing.

22 March 2021

TDME Primer: Automated Timing Measurements of USB-C Protocols

Figure 1: Interleaved decoding of USB-PD and DP-AUX signals.
Figure 1: Interleaved decoding of USB-PD and DP-AUX signals.
Increasingly, serial data analysis is analysis of the interoperability of the many protocols that must perform together within interconnects and embedded systems. Nowhere is this more true than for USB-C® devices, which we’ll focus on in this post, although these examples of cross-protocol timing measurements could apply to any two protocols supported by our TDME and DME options.

The USB-C connector packs many protocols onto one, small pin set, and maintaining signal and power integrity is a compliance challenge. Besides high-speed data delivery, USB-PD (power delivery) provides flexible power distribution, while auxiliary sideband signals, like DisplayPort™, transport video. Troubleshooting these capabilities requires the ability to measure timing between serial data packets, as well as between data packets and analog signals. 

For example, DisplayPort over USB-C (DPoC) in alternate mode (alt-mode) can manifest as an interoperability failure if there is a timing issue between alt-mode initiation and the start of DP-AUX.

01 June 2020

USB4 Electrical Testing: Where Are We?

Preliminary drafts of the USB4 Compliance Test Specifications (CTS) were released to USB-IF work group members in early 2020 covering the electrical through protocol layer testing of USB4 router assemblies captive cable devices. These CTS documents define the required testing for USB4 hosts, hubs, and peripherals that make up the USB4 ecosystem.  Thunderbolt 3 (TBT3) is also supported in USB4 end products and is tested using the existing TBT3 Host/Device CTS.

While the electrical test methodologies are similar to previous USB 3.2 compliance tests, USB4 is largely based off the TBT3 physical layer, and these test methods have been adopted. Here, we summarize the USB4/TBT3 test approach called out in the aforementioned documents.

USB4 Transmitter Testing

Figure 1. Test points TP2 and TP3 for USB4 Electrical Compliance Testing (Source: USB-IF)
Figure 1. Test points TP2 and TP3 for USB4
Electrical Compliance Testing (Source: USB-IF)
Presently, there is no SIG-TEST software for performing transmitter (Tx) testing, although it is anticipated that one will be released by the USB-IF in the future. All Tx tests performed by QPHY-USB4-TX-RX utilize Teledyne LeCroy methods, with measurements made directly by the oscilloscope.

Figure 1 shows the Test points defined in the CTS for physical layer testing. Testing of the Tx-side is  similar to those performed for USB 3.2 in that the signal is captured at the connector (TP2), where many measurements are defined. Then, a passive cable model is embedded and equalization is applied to result in TP3 measurements.

08 July 2016

The Power Delivery 2.0 Protocol in Action

A high-level view of a PD 2.0 power  contract negotiation
Figure 1: A high-level view of a PD 2.0 power
contract negotiation
The Power Delivery 2.0 protocol brings a boatload of intelligence to the process of establishing power relationships between partners in a USB Type-C link. In previous posts, we've examined the basics of the two standards, the workings of USB Type-C cable detection, how dual-role port devices are handled, and PD 2.0 messaging. Next, let's look at PD 2.0 in action by deconstructing the initialization of a Google Chromebook laptop, which was one of the first Power Delivery devices on the market.

02 June 2016

USB Type-C and Dual-Role Port Devices

This protocol analyzer capture shows how a DRP alternates between voltage source and sink until it sees one  or the other at the far end of a link
Figure 1: This protocol analyzer capture
shows how a DRP alternates between
voltage source and sink until it sees one
or the other at the far end of a link
At this juncture in our ongoing series of posts about USB Type-C and power delivery, it's time to acknowledge that some Type-C devices are not strictly a power source or sink. Some are called out in the Power Delivery 2.0 specification as dual-role port (DRP) devices that may act as either a source or sink for power. Note that unlike in the original OTG spec, this applies only to a port's power role, not to being a USB host or connected device.

19 May 2016

USB Type-C and Power Delivery Messaging

Power Delivery messaging comprises two types: Control and Data
Figure 1: Power Delivery messaging comprises two types:
Control and Data
Continuing our review of USB Type-C and the associated Power Delivery 2.0 (PD) specification, let's now turn to PD message types. Whereas USB was originally conceived as primarily a serial-data interface with limited power-delivery capabilities, the proliferation of power-hungry mobile devices has forced a rethinking of that conception. With PD 2.0 came a much more flexible, and capable, power-delivery functionality for USB. PD messaging is a critical component in this regard.

01 February 2016

USB Type-C Cable Detection

The four possible states of connection for a USB Type-C cable
Figure 1: The four possible states of
connection for a USB Type-C cable
Having examined some of the basics regarding the USB Type-C connector and the Power Delivery 2.0 specification that complements the Type-C spec itself, we'll turn our attention to the topic of cable detection. The Type-C connector is reversible, which is to say there are four ways a cable can be connected between upstream- and downstream-facing ports (Figure 1). Not only that, but there are different types of Type-C cables. So how do the devices discern what's between them?

05 January 2016

A Look at USB Type-C and Power Delivery

The USB Type-C connector alongside its Micro-B counterpart
Figure 1: The USB Type-C
connector alongside its
Micro-B counterpart
With USB 3.1, the latest iteration of the serial-data protocol, comes a new smaller and universal connector: USB Type-C, the USB-IF's answer to Apple's Lightning connector (Figure 1). Even Apple itself has adopted USB Type-C for its latest MacBooks, a rare show of support from Cupertino for an open standard. Like Lightning, USB Type-C is reversible, but it offers other interesting features, such as the ability to handle other protocols using "alternate modes." It also incorporates the new USB Power Delivery specification for improved power-supply capabilities over USB.