element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
RoadTests & Reviews
  • Products
  • More
RoadTests & Reviews
Blog Tektronix 3 Series MDO - Part 6: Serial Port Decoding
  • Blog
  • RoadTest Forum
  • Documents
  • RoadTests
  • Reviews
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join RoadTests & Reviews to participate - click to join for free!
  • Share
  • More
  • Cancel
  • Author Author: three-phase
  • Date Created: 2 Feb 2020 3:48 PM Date Created
  • Views 2590 views
  • Likes 8 likes
  • Comments 6 comments
Related
Recommended
  • flexray
  • lin
  • tektronix
  • spi
  • usb
  • rs232
  • serial decoding
  • 3 series mdo
  • mil-std-1553
  • can

Tektronix 3 Series MDO - Part 6: Serial Port Decoding

three-phase
three-phase
2 Feb 2020

    • Introduction
    • RS232 Bus Decoding
    • CAN Bus Decoding
    • LIN Bus decoding
    • MIL-STD-1553 Bus Decoding
    • SPI Bus Decoding
    • USB Bus decoding
    • Conclusions

Introduction

 

This is a set of tests carried out on the Tektronix MDO Demo Board 1 with the 3 Series MDO concentrating on the serial decoding functions within the oscilloscope. The demonstration board has 5 serial signal examples.

 

  • UART / RS232
  • CAN Bus (CAN_H and CAN_L)
  • FlexRay
  • I2C (I2C_CLK and I2C_Data)
  • LIN Bus
  • MIL-STD-1553
  • MIPI D-PHY (MIPI_Data and MIPI_CLK)
  • SPI Bus (SPI_CLK, SPI_SS-1 and SPI_MOSI-1)
  • USB (USB_LS, USB_FS and USB_HS)

 

The 3 Series MDO does not have demonstration setups for all of these functions, so some of them you will have to put up with my attempts to capture the signals. All of the demonstration setups use the analogue channels to capture the signals.

 

RS232 Bus Decoding

 

This signal has a 9600 baud rate and the data format is one start bit, eight data bits and no parity. A setup exists for this signal within the demonstration functions.

 

image

 

The setup works well and captures the data based upon a data trigger looking for the 'T' character.

 

{gallery} RS232 Signal Capture Setup

image

Vertical Settings for Channel 1

image

Bus Settings for RS232 decoding

image

Timebase settings

image

Data acquisition settings

image

Trigger settings


Tektronix have embedded the message "Tektronix Enabling Innovation" within the data of the RS232 signal. This message cab be found utilising the search function of the oscilloscope. The search function contains a button to copy over the settings from the trigger menu.
image

 

This allows the message to be found and manipulating the timebase position or searching on different characters allows the message to be read. Activating the results table displays the message, or it can be read within the decoding on the screen capture.

 

{gallery} RS232 Message

image

'Tektronix' word captured

image

'Enabling' word captured

image

'Innovation' word captured

image

'Tektronix' word captured on screen decoding


With the results table displayed, the contents can be saved to a CSV file for further data manipulation and analysis. As with screensave functions, the menu offers a default filename and automatically finds the USB drive.

 

imageimage

 

image

The CSV file exported basically follows the structure of the data table from the oscilloscope. The video below goes through manually setting up the 3 Series MDO to capture and decode the RS232 signal and then use the search function to find each word.

 

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

Alternative to using the search function on this occasion is to enable packet view on the bus settings window.

 

image

 

The data packets are then displayed on the oscilloscope revealing the full message.

 

image

 

 

CAN Bus Decoding

 

This is another serial signal that has a setup built into the demonstration function.

 

image

 

Whilst the demo board has CAN_H and CAN_L signals only the CAN_H has a demonstration setup.

 

{gallery} CAN_H Signal Capture Setup

image

Vertical channel settings

image

Bus settings for CAN_H decoding

image

Timebase settings for CAN

image

Trigger settings for CAN

image

Initial failure to decode CAN signal


As can be seen from the last screenshot in the gallery above, the demo settings for the bus failed to decode the CAN signal. It took me a little while to figure out what was wrong with this. I tried several of the trigger options available and did manage to trigger on the 'Bit Stuffing Error' to some extent.

imageimage

 

I am not quite sure why I thought of it, but I decided to carry out some measurements on the CAN bus signal and that eventually led me to discovering the triggering issue.

 

image

 

The measurement that came of interest to me was the voltage high measurement that ranged between 2.86 V above and 2.94 V in the second capture below.

 

image

 

Looking at the CAN Bus settings, the threshold value for the signal was found to be set to 3.00 V, just slightly above the actual voltage being measured. Lowering this threshold voltage allowed the oscilloscope to trigger on the demo settings and decode the signal. I do not know enough about CAN to understand if it is the demonstration signal that is slightly out or the setup settings for the threshold are in the wrong.

 

{gallery} CAN Bus Threshold

image

Original threshold setting for CAN

image

Threshold setting reduced

image

CAN bus triggered and signals decoding

image

CAN bus signal event search

image

CAN bus result table from search function


FlexRay Bus Decoding

 

I have never heard of a FlexRay bus, it appears to be a more modern alternative to a CAN bus. Nonetheless, there is a decode option within the 3 Series MDO for this signal and the demo board has a signal available. There is no demonstration setup for this signal, so I decided to go my own way and utilise the digital signal inputs for this test.

 

image

 

FlexRay on Wikipedia

 

FlexRay on National Instruments

 

{gallery} FlexRay Bus Signal Capture Setup

image

Digital input settings

image

Bus decoding settings for FlexRay

image

Timebase settings

image

Trigger settings

image

FlexRay signal decoded

Zoomed in to capture one frame of the FlexRay signal;

 

image

 

LIN Bus decoding

 

This is another bus that is available on the demo board and can be decoded by the 3 Series MDO, but does not have a demonstration setup available for, so is again subject to my rumblings on the controls of the scope.

 

{gallery} LIN Bus Signal Capture Setup

image

Vertical channel settings for LIN bus

image

LIN Bus settings

image

Timebase settings for LIN Bus

image

Trigger settings for LIN Bus

image

Search Settings for LIN Bus


I had no idea what to search for on the LIN Bus capture, so the findings are a little weak.

image

 

MIL-STD-1553 Bus Decoding

 

This time we are back to a demonstration setup for this particular standard, so the results should be more reliable. Unlike a lot of the signals that are found on test loops situated around the edge of the demo board, this signal is on one of the internal headers and I need the micro-hooks on the probes to make the connections, to avoid shorting anything out.

 

image

 

image

 

{gallery} MIL-ST-1553 Bus Signal Capture Setup

image

Vertical Channel Settings

image

Bus Settings for MIL-ST-1553

image

Timebase settings

image

Trigger settings

image

Data acquisition settings

The demonstration setup meant that there were no problems capturing and decoding the signal.

 

image

 

As with the other signals a look at the results table provides more data for analysis and potential to export to a 'CSV' file.

 

image

 

SPI Bus Decoding

 

Back to a signal that has no demonstration setup in the oscilloscope. There are three signals for the SPI Bus requiring three analogue channels to be put into use.

 

image

 

{gallery} SPI Bus Signal Capture Setup

image

Vertical channel settings for SPI

image

Bus settings for SPI

image

Timebase settings for SPI

image

Trigger settings for SPI

image

Data acquisition settings for SPI

SPI is a bus that I have heard of before, but have no real experience with so all I could manage to capture was a bunch of 'FF's or '00's.

 

{gallery} SPI Signal capture

image

SPI Pulse Trace Capture

image

SPI '00' event capture 1

image

SPI '00' event capture 2

image

SPI 'FF' event capture 1

image

SPI 'FF' event capture 2

image

SPI 'FF' event capture 3

USB Bus decoding

 

There are three USB signals available on the demo board, low, full and high speed signals. Only the FS signal has a demonstration setup on the oscilloscope and although trying, it was the only one I was able to capture. Only the 1 GHz bandwidth version of the 3 Series MDO has the ability to capture the high speed USB signal.

 

image

 

{gallery} USB Bus Signal Capture Setup

image

Channel 1 vertical settings

image

Channel 2 vertical settings

image

Bus settings for Full Speed USB

image

Time base settings for Full Speed USB

image

Trigger settings for Full Speed USB

image

Data acquisition settings for Full Speed USB

image

Event Search Settings for Full Speed USB

The signal is triggered on an 'Out' token event, however, it doesn't look like I have actually captured and displayed the token on the screenshot, unless it is displayed as the 'O' block preceding the '4'.

image

 

Opening the results table and expanding the view shows the capture of the 'Out' token.

 

image

 

Conclusions

 

Hopefully this has shown enough information on the serial bus capturing capabilities of the 3 Series MDO. I have a serious lack of knowledge on the majority of these bus signals, so I apologise for any errors or omissions on my behalf. At the moment I haven't got round to capturing the MIPI D-PHY signal, so that is the only one missing from the board.

 

Yet again the demo board from Tektronix has shown how useful it is to demonstrate the functionality of the oscilloscope and learn about its controls.

 

Please feel free to ask, if you want to see anything more specific.

  • Sign in to reply

Top Comments

  • gpolder
    gpolder over 5 years ago +3
    Hi Donald, nice update, great you have access to the demo board, to be able to quickly test these signals. I agree the MDO34 is very strong in bus decoding.
  • three-phase
    three-phase over 5 years ago in reply to gpolder +3
    Thanks Gerrit, Yes the demo board is very good for displaying the capabilities of the oscilloscope, especially handy for people like me who do not have much around for generating serial port signals, RF…
  • genebren
    genebren over 5 years ago +2
    Nice update. I find the serial decoding features to be very useful. My older Tektronix scope lacks this feature, but my PicoScope has it, and it has made debugging serial interfaces so much easier. Thanks…
  • three-phase
    three-phase over 5 years ago in reply to gpolder

    Thanks Gerrit,

     

    Yes the demo board is very good for displaying the capabilities of the oscilloscope, especially handy for people like me who do not have much around for generating serial port signals, RF, mixed analogue / digital and a few others. I am pretty sure though that there are a number on here that could program up a micro-controller to produce these signals themselves.

     

    Kind regards

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • gpolder
    gpolder over 5 years ago

    Hi Donald,

     

    nice update, great you have access to the demo board, to be able to quickly test these signals. I agree the MDO34 is very strong in bus decoding.

    • Cancel
    • Vote Up +3 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • three-phase
    three-phase over 5 years ago in reply to 14rhb

    No worries Rod, glad you found it useful. I did quite enjoy finding the message buried in the RS232 packets, playing about with the search function allows the data to be found a bit at a time, but enabling the packet view and finding everything at once was impressive to me.

     

    Kind regards

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • 14rhb
    14rhb over 5 years ago

    Hi Donald,

     

    Thank you for this great follow on to your recent informative roadtest, the functionality is actually far more than I thought it was capable of especially on the CAN bus where the CRC is also displayed. Back to simple UART I often find when making a project there is that awkward time when you are wondering if the sender is working or the receiver on a serial protocol and never know exactly which end to start tweaking - this Tektronix scope would certainly allow a quick diagnosis.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • three-phase
    three-phase over 5 years ago in reply to genebren

    Many thanks Gene,

     

    Having serial decoding certainly adds to the flexibility of an oscilloscope. It is spread across a number of options for the 3 Series MDO, but if I remember correctly, the Picoscope software has serial decoding be default.

     

    Kind regards.

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube