Page 2
Resale or unauthorized duplication of Teledyne LeCroy publications is strictly prohibited. Teledyne LeCroy is a trademark of Teledyne LeCroy, Inc., Inc. Other product or brand names are trademarks or requested trademarks of their respective holders. Information in this publication supersedes all earlier versions. Specifications are subject to change without notice.
Contents Introducing USB-PD TD and TDMP Serial Decode Decoding Workflow Decoder Set Up Setting Level and Hysteresis Failure to Decode Serial Decode Dialog Reading Waveform Annotations Serial Decode Result Table Searching Decoded Waveforms Decoding in Sequence Mode Improving Decoder Performance Serial Trigger Requirements Restrictions...
Page 4
USB-PD TDMP Instruction Manual About This Manual This manual explains the basic procedures for using serial data trigger and decode software options for Teledyne LeCroy oscilloscopes. It is assumed that you have a basic understanding of the serial data physical layer specifications, and how to use the oscilloscope on which the option is installed.
Introducing USB-PD TD and TDMP Introducing USB-PD TD and TDMP The Teledyne LeCroy USB-PD options apply software algorithms to extract USB power delivery information from physical layer waveforms measured on your oscilloscope. The extracted information is displayed over the actual physical layer waveforms, color-coded to provide fast, intuitive understanding of the relationship between message frames and other, time synchronous events.
USB-PD TDMP Instruction Manual Serial Decode The methods described here at a high level are used by all Teledyne LeCroy serial decoders, differing only slightly for signals with an embedded clock and separate clock and data signals. Bit-level Decoding The first software algorithm examines the embedded clock based on a default or user- specified vertical threshold level.
Serial Decode Decoding Workflow We recommend the following workflow for effective decoding: 1. Set up the decoder using the lowest level decoding mode available, but do not yet enable it. 2. Acquire at least one complete transmission reasonably well centered on screen in both directions, with generous idle segments on both sides.
Page 8
USB-PD TDMP Instruction Manual USB-PD Decoder Settings These subdialogs appear when you select Protocol USB-PD. USB-PD Subdialog Choose to view decoded data in Hexadecimal or Symbolic format. Selecting Symbolic will change the single Data column of the result table to two columns for Object and Bit Description, showing the symbolic decoding of the hexadecimal data.
Page 9
Serial Decode Measuring VBUS @ PS_RDY According to the USB-PD specification, the PS_RDY Message shall be sent by the Source (or by both the new Sink and new Source during the Power Role Swap sequence or Fast Role Swap sequence) to indicate its power supply has reached the desired operating condition.
Page 10
USB-PD TDMP Instruction Manual Following acquisition, the oscilloscope will display a decoding similar to that below: For each instance of PS_RDY decoded on the CC1/CC2 channel, the measured voltage on the VBUS channel is recorded in the PS_RDY_LEVEL column of the decoder result table: The VBUS @ PS_RDY voltage also appears on the waveform in the MsgType = PS_RDY field annotation when the trace is expanded.
Serial Decode Setting Level and Hysteresis The Level setting represents the logical level for bit transition, corresponding to the physical Low and High distinction. Level is normally set as 50% of waveform amplitude, but can sometimes be set as an absolute voltage (with reference to the waveform 0 level).
USB-PD TDMP Instruction Manual Failure to Decode Several conditions may cause a decoder to fail, in which case a message will appear in the first row of the summary result table, instead of in the message bar as usual. In these cases, the decoding is turned off to protect you from incorrect data.
Serial Decode Reading Waveform Annotations When a decoder has operated successfully on a valid acquisition, an annotated waveform appears on the oscilloscope display, allowing you to quickly see the relationship between the protocol decoding and the physical layer. A colored overlay marks significant bit-sequences in the source signal: Header/ID, Address, Labels, Data Length Codes, Data, CRC, Parity Bits, Start Bits, Stop Bits, Delimiters, Idle segments, etc.
USB-PD TDMP Instruction Manual Serial Decode Result Table When you have selected to turn a decoder On or to View Decode, and a valid acquisition has been decoded using that protocol, a table summarizing the decoder results appears below the grids. This result table provides a view of data as decoded during the most recent acquisition, even when there are too many bursts for the waveform annotation to be legible.
Page 15
Serial Decode When you select the Index number from the summary result table, the detailed results for that index drop-in below it. Example summary result table showing drop-in detailed result table. Note: Decoding DP-AUX alongside USB-PD requires both the DP-AUX D/DME and USB-PD D/DME option keys.
Page 16
USB-PD TDMP Instruction Manual Column Extracted or Computed Data Extended Number of data blocks from Extended Message Header, used to support Extended Mes- sages containing Data Blocks of Data Size either sent in a single Message or as a series of Chunks.
Page 17
Serial Decode Using the Result Table Besides displaying the decoded serial data, the result table helps you to inspect the acquisition. Zoom & Search Touching any cell of the table opens a zoom centered around the part of the waveform corresponding to the index. The Zn dialog opens to allow you to rescale the zoom, or to Search the acquisition.
Page 18
USB-PD TDMP Instruction Manual Operators Data Types Returns =, ≠ Numeric or Text Exact matches only >, ≥, <, ≤ Numeric All data that satisfies the operator In Range, Out Range Numeric All data within/without range limits Equals Any (on List), Text All data that is/is not an exact match to any full value on the list.
Page 19
Serial Decode Customizing the Result Table You may customize the size of the result table by changing the Table # Rows setting on the Decode Setup dialog. Keep in mind that the deeper the table, the more compressed the waveform display on the grid, especially if there are also measurements turned on.
USB-PD TDMP Instruction Manual Searching Decoded Waveforms Touching the Action toolbar Search button button on the Decode Setup dialog creates a 10:1 zoom of the center of the decoder source trace and opens the Search subdialog. Touching the any cell of the result table similarly creates a zoom and opens Search, but of only that part of the waveform corresponding to the index (plus any padding).
Serial Decode Decoding in Sequence Mode Decoders can be applied to Sequence Mode acquisitions. In this case, the index numbers on the result table are followed by the segment in which the index was found and the number of the sample within that segment: index (segment-sample).
USB-PD TDMP Instruction Manual Improving Decoder Performance Digital oscilloscopes repeatedly capture "windows in time". Between captures, the oscilloscope is processing the previous acquisition. The following suggestions can improve decoder performance and enable you to better exploit the long memories of Teledyne LeCroy oscilloscopes.
"trigger on CAN frames with ID = 0x456 followed by LIN packet with Adress 0xEBC." USB-PD Trigger Setup The Trigger Types available in USB-PD TDME are equivalent to those found in the Teledyne LeCroy Voyager Power Delivery Compliance Tester, which enables debugging of USB compliance failures.
Page 24
USB-PD TDMP Instruction Manual Trigger Type You need only make the desired Trigger Type and sub-type selection, and the oscilloscope will trigger on finding the next matching occurrence in the data stream. For Control Message triggers, click inside the field to display the full set of available message types.
Using the Decoder with the Trigger A key feature of Teledyne LeCroy trigger and decode options is the integration of the decoder functionality with the trigger. While you may not be interested in the decoded data per se, using the decoded waveform can help with understanding and tuning the trigger.
USB-PD TDMP Instruction Manual Saving Trigger Data The message decoding and the result table are dynamic and will continue to change as long as there are new trigger events. As there may be many trigger events in long acquisitions or repetitive waveforms, it can be difficult (if not impossible) to actually read the results on screen unless you stop the acquisition.
Measure/Graph Measure/Graph The installation of the Measure/Graph package (included with "ME" and "MP" options) adds a set of measurements and plots designed for serial data analysis to the oscilloscope's standard measurement capabilities. Measurements can be quickly applied without having to leave the waveform or tabular views of the decoding. Note: This capability will only function properly if an "ME"...
USB-PD TDMP Instruction Manual Graphing Measurements The Measure/Graph package include simplified methods for plotting measurement values as: Histogram - a bar chart of the number of data points that fall into statistically significant intervals or bins. Bar height relates to the frequency at which data points fall into each interval/bin. Histogram is helpful to understand the modality of a parameter and to debug excessive variation.
Measure/Graph Filtering Measurements Certain serial decode measurements can be filtered to include only the results from specified IDs or specific data patterns. As with all measurements, you can set a gate to restrict measurements to a horizontal range of the grid corresponding to a specific time segment of the acquisition.
Page 30
USB-PD TDMP Instruction Manual Note: For MsgtoMsg measurements, the data condition is entered twice: first for the Start Message and then for the End Message. The measurement computes the time to find a match to each set of conditions. Analog Settings The measurements AnalogToMsg and MsgToAnalog allow you to use crossing level and slope to define the event in the Analog waveform that is to be used as the reference for the measurement.
USB-PD Physical Layer Testing USB-PD Physical Layer Testing The USB-PD TDMP option enables you to run Transmitter-side (Tx) physical layer tests defined by the USB-PD standard concurrent with the waveform decoding. This allows you to gain insight into signal performance that is useful for debugging prior to compliance testing.
USB-PD TDMP Instruction Manual Tip: If you exit the PHY test dialogs to make decoder settings, touch the far left cell of the USB-PD measurement table to return to the physical layer tests. USB-PD Eye Diagrams An eye diagram can be generated using the Zero, One or Both BMC.
Page 33
USB-PD Physical Layer Testing Eye Mask Testing To turn on eye mask testing: 1. Check Enable below Mask. 2. Choose to use the Standard mask definition or upload a Custom mask. 3. If using a custom mask, click Browse and select the Mask File. 4.
USB-PD TDMP Instruction Manual Appendix A: Automating the Decoder As with all other oscilloscope settings, decoder features such as result table configuration and export can be configured remotely using COM Automation. Note: The examples shown here were taken from a CAN FD decoding, but all decoder result tables share the same Automation structure.
Page 35
Appendix A: Automating the Decoder With the decoder table populated, run the script from the oscilloscope (or a PC if you have a remote connection to the oscilloscope). The script will generate the comma-delimited file, ExampleTableSerialDecode.txt, which may be imported into Excel or other spreadsheet software to show the table structure. Example spreadsheet after importing ExampleTableSerialDecode.txt.
USB-PD TDMP Instruction Manual The following table shows example VBS queries you might add to a remote control program to read data from the decoder result table. Returned Value What Is Read by Remote Queries Query vbs? 'return=app.SerialDecode.Decode1.out.Result.rows' Number of table rows (incl.
Resources Teledyne LeCroy publishes a free Technical Library on its website. Manuals, tutorials, application notes, white papers, and videos are available to help you get the most out of your Teledyne LeCroy products. Visit: teledynelecroy.com/support/techlib The Datasheet published on the product page contains the detailed product specifications.
Need help?
Do you have a question about the USB-PD TDMP and is the answer not in the manual?
Questions and answers