element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • 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
WorkBench Wednesdays
  • Challenges & Projects
  • element14 presents
  • WorkBench Wednesdays
  • More
  • Cancel
WorkBench Wednesdays
Documents Triggering And Decoding Serial Protocols On An Oscilloscope - Workbench Wednesdays 34
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join WorkBench Wednesdays to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Engagement
  • Author Author: Matt
  • Date Created: 4 Feb 2021 12:25 AM Date Created
  • Last Updated Last Updated: 10 Feb 2021 8:24 AM
  • Views 3625 views
  • Likes 6 likes
  • Comments 7 comments
Related
Recommended

Triggering And Decoding Serial Protocols On An Oscilloscope - Workbench Wednesdays 34

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

 

Everything with a microcontroller has serial busses in it. Busses like UART, I2C, and SPI are very popular choices. When you have a problem with a sensor that uses one or the bus itself, you can use an oscilloscope or logic analyzer to “decode” the traffic. These decoders convert the 1s and 0s into readable HEX or ASCII characters.

 

Supplemental Content:

  • OLED I2C Silkscreens are wrong, or are they? by baldengineer
  • Workbench Wednesday 18: Digilent Analog Discovery Review
  • PICOSCOPE 2204A -  USB Oscilloscope - Review by  baldengineer
  • i2c Debugging with a RIGOL DS1054Z Oscilloscope: Trigger and Decode by Jan Cumps
  • An Introduction to the UART, SPI, and I2C Communications Protocols

 

Bill of Material:

Product Name Manufacturer Quantity Buy Now
[Bundle] Development Kit, Analog Discovery 2 Pro Bundle, 30MHz Oscilloscope, 12MHz Waveform Generator Digilent 1 Buy Now
RTM3000 - 4 Channel Oscilloscope (RTM3K-COM4) Rohde & Schwarz 1 Buy Now
PicoScope 2204A - USB 2 Channel Oscilloscope PicoScope 1 Buy Now
Arduino Uno Arduino 1 Buy Now

 

Workbench Wednesday
element14 presents  |  About James |  Workbench Wednesdays

  • i2c
  • trigger
  • spi
  • oscilloscope
  • uart
  • serial
  • decode
  • Share
  • History
  • More
  • Cancel
  • Sign in to reply

Top Comments

  • baldengineer
    baldengineer over 4 years ago +4
    From YouTube: But why use an expensive oscilloscope rather than use a cheap 10$ logic analyzer to analyze serial protocols? Any benefits? As I mentioned in the video, one benefit to using an oscilloscope…
  • DAB
    DAB over 4 years ago +2
    Good introduction to serial buses. DAB
  • koudelad
    koudelad over 4 years ago +2
    Good episode, James. I have one correction: Analog Discovery 2 has great trigger options and they helped me to debug my I2C sensor network numerous times. Here is a screenshot from your video with the…
  • baldengineer
    baldengineer over 4 years ago in reply to neilk

    One the things I really like about the PicoScope software is how full-featured it is. When they first introduced their PicoScope 2000A series, they were the first oscilloscope manufacturer to give away serial decode. (Well, officially, anyway.)

     

    I just wish it was a little more robust in terms of searching through an acquisition's decode to find specific activity.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • baldengineer
    baldengineer over 4 years ago in reply to koudelad

    Are. You. Kidding. Me!

     

    I had NO idea that was there. My eyes completely missed it. All the times I used the AD2, I thought "why doesn't it do protocol?!" Wow.

     

    Thank you David. I'll have to think about to address that as a follow-up.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • koudelad
    koudelad over 4 years ago

    Other very popular analyzers are the one's made by Saleae . They are not cheap, but the key is the control software, which does all the graphics and display and decoding.

    By the way, their control software is so good and popular that chinese clones of their hardware can use their software.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • neilk
    neilk over 4 years ago

    James, thank you so much for that.

     

    I've owned a picoscope 2204A for some time and didn't realise it could decode buses image

     

    I've just tried it on a UART I'm working with, and successfully decoded Hello World!

     

    Thanks again

     

    Neil

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • koudelad
    koudelad over 4 years ago

    Good episode, James.

     

    I have one correction: Analog Discovery 2 has great trigger options and they helped me to debug my I2C sensor network numerous times.

    Here is a screenshot from your video with the highlighted control area:

     

    image

     

    In addition to that, AD2 has the ability to power the sensor (if it is not so power hungry), do the I2C scan and perform various scripts. This is a huge time saver to do some first tests before debugging a micro-controller code.

     

    David

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • DAB
    DAB over 4 years ago

    Good introduction to serial buses.

     

    DAB

    • Cancel
    • Vote Up +2 Vote Down
    • Sign in to reply
    • More
    • Cancel
  • baldengineer
    baldengineer over 4 years ago

    From YouTube:

    But why use an expensive oscilloscope rather than use a cheap 10$ logic analyzer to analyze serial protocols? Any benefits?

    As I mentioned in the video, one benefit to using an oscilloscope is that you can correlate the activity on the digital bus with an analog channel. If your digital signals are getting interference from somewhere else, a logic analyzer alone may not be enough.

     

    Another reason is that most of us already have an oscilloscope on our workbenches. No need to pull out a logic analyzer and a laptop to see what is going on.

     

    Last, remember some logic analyzers, especially low cost do not do trigger on serial busses. They can only decode.

    • Cancel
    • Vote Up +4 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