{"id":26049,"date":"2018-11-26T12:01:01","date_gmt":"2018-11-26T20:01:01","guid":{"rendered":"https:\/\/blog.digilentinc.com\/?p=26049"},"modified":"2025-06-02T02:35:20","modified_gmt":"2025-06-02T09:35:20","slug":"what-is-a-logic-analyzer","status":"publish","type":"post","link":"https:\/\/digilent.com\/blog\/what-is-a-logic-analyzer\/","title":{"rendered":"What is a Logic Analyzer?"},"content":{"rendered":"<p>A logic analyzer can be thought of as the <a href=\"https:\/\/digilent.com\/blog\/what-is-an-oscilloscope\/#comment-49877\">oscilloscope<\/a> for digital signals. An oscilloscope for an analog signal is important because the waveform is technically changing at every infinitesimal point along its curve; think of a sine or cosine wave. Since digital signals are all about high\/low logic, duty cycle, and frequency which are all just ways to describe how a square wave is changing, the use of an oscilloscope would be overkill for &#8220;looking&#8221; at the signal. Instead, most digital signals are typically running along with other digital signals that interact with each other in specific and important ways. A logic analyzer specializes in observing and measuring these relationships between digital signals while focusing on the parts of the signal that are important, which is usually not so much the shape since the digital signal will typically be in some form of a square wave. Below is an illustrative comparison of analog signal and digital square wave signal to show how an oscilloscope view of a digital signal is not as exciting or meaningful. We have to use images that are publicly available for commercial use and this photo seemed to illustrate my point the best out of what was available. Bonus points if you comment with the translation. Photo from <a href=\"https:\/\/commons.wikimedia.org\/wiki\/File:%D0%9F%D1%80%D0%B5%D0%BE%D0%B1%D1%80%D0%B0%D0%B7%D0%BE%D0%B2%D0%B0%D0%BD%D0%B8%D0%B5_%D1%81%D0%B8%D0%B3%D0%BD%D0%B0%D0%BB%D0%B0_%D0%BF%D1%80%D0%B8_%D0%B4%D0%B5%D0%BB%D1%8C%D1%82%D0%B0-%D0%BC%D0%BE%D0%B4%D1%83%D0%BB%D1%8F%D1%86%D0%B8%D0%B8.gif\">here<\/a>.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-26106\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/11\/anaDigi.gif\" alt=\"\" width=\"347\" height=\"220\" \/><\/p>\n<p>A great example of when to use a logic analyzer is while debugging a digital bus signal where the bit value of that bus is of concern. Another example is debugging protocols like <a href=\"https:\/\/digilent.com\/blog\/what-is-i2c\/\">I2C<\/a>, <a href=\"https:\/\/digilent.com\/blog\/what-is-spi\/\">SPI<\/a>, <a href=\"https:\/\/digilent.com\/blog\/uart-explained\/\">UART<\/a>, or CAN.\u00a0 These operations involve multiple digital signals, sometimes many, and how they interact with each other is key to their performance. If you looked at this on an oscilloscope you would be able to see the shape of the square waves, which would tell you if the signal is active, but not if the data being transmitted is correct. Logic analyzers typically provide the ability to decode protocols, that is, take the square waves and display the actual transmitted data. Usually, there are multiple square waves and the combination of those square waves are what make up and give meaning to the transmitted data. Below is an example of a seven segment display debug in the <a href=\"https:\/\/digilent.com\/shop\/waveforms-previously-waveforms-2015\/\">WaveForms<\/a>\u00a0logic analyzer (using the <a href=\"https:\/\/digilent.com\/shop\/digital-discovery-portable-usb-logic-analyzer-and-digital-pattern-generator\/\">Digital Discovery<\/a>). Take a look at the bottom four signal lines and note that the logic analyzer groups them into a bus above those lines and displays what the decimal numeric value of that bus is with each change in logic signal. Right click the image to view a larger version.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-26104\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/11\/7seg.png\" alt=\"\" width=\"699\" height=\"699\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/11\/7seg.png 699w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/11\/7seg-150x150.png 150w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/11\/7seg-600x600.png 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/11\/7seg-300x300.png 300w\" sizes=\"auto, (max-width: 699px) 100vw, 699px\" \/><\/p>\n<p>As you might be seeing now, an oscilloscope would not help with this kind of analysis as digital busses can get complicated quickly, and the relationships between each square wave are essentially more important than seeing one or two individual square waves over time. Also, like an analog oscilloscope, a logic analyzer utilizes a trigger to optimize a stable display of dynamic signals and data acquisition. Check out my post on <a href=\"https:\/\/digilent.com\/blog\/oscilloscope-triggers-what-they-didnt-teach-me-in-school\/\">triggers<\/a> for more info on that.<\/p>\n<p>And remember, if your looking for some hardware to get started with a logic analyzer (or electronics in general) make sure to <a href=\"https:\/\/resources.blog.digilentinc.com\/deals\/\">sign up<\/a> for our Cyber Week deals- starting today! Simply <a href=\"https:\/\/resources.blog.digilentinc.com\/deals\/\">sign up<\/a> and you will receive an email a day until November 30th with a coupon code for deals on some of our most popular products,\u00a0\u00a0including the\u00a0<a href=\"https:\/\/digilent.com\/shop\/analog-discovery-2-100msps-usb-oscilloscope-logic-analyzer-and-variable-power-supply\/\">Analog Discovery 2<\/a>,\u00a0\u00a0Embedded Vision Kit,\u00a0\u00a0<a href=\"https:\/\/digilent.com\/shop\/pmod-modules-connectors\/\">Pmods<\/a>,\u00a0\u00a0<a href=\"https:\/\/digilent.com\/shop\/arty-a7-artix-7-fpga-development-board-for-makers-and-hobbyists\/\">Arty<\/a>,\u00a0\u00a0<a href=\"https:\/\/digilent.com\/shop\/cora-z7-zynq-7000-single-core-and-dual-core-options-for-arm-fpga-soc-development\/\">Cora<\/a>\u00a0and the\u00a0<a href=\"https:\/\/digilent.com\/shop\/openscope-mz-open-source-all-in-one-instrumentation\/\">OpenScope MZ.<\/a><\/p>\n<p>So do not miss out, and <a href=\"https:\/\/resources.blog.digilentinc.com\/deals\/\">sign up<\/a> today!<\/p>\n<div class='watch-action'><div class='watch-position align-left'><div class='action-like'><a class='lbg-style6 like-26049 jlk' data-task='like' data-post_id='26049' data-nonce='ee750c7abc' rel='nofollow'><img src='https:\/\/digilent.com\/blog\/wp-content\/plugins\/wti-like-post-pro\/images\/pixel.gif' title='Like' \/><span class='lc-26049 lc'>0<\/span><\/a><\/div><div class='action-unlike'><a class='unlbg-style6 unlike-26049 jlk' data-task='unlike' data-post_id='26049' data-nonce='ee750c7abc' rel='nofollow'><img src='https:\/\/digilent.com\/blog\/wp-content\/plugins\/wti-like-post-pro\/images\/pixel.gif' title='Unlike' \/><span class='unlc-26049 unlc'>0<\/span><\/a><\/div><\/div> <div class='status-26049 status align-left'>Be the 1st to vote.<\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p>Decipher your digital signals by using (or learning to use) a logic analyzer!<\/p>\n","protected":false},"author":49,"featured_media":25424,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4312,1563],"tags":[],"ppma_author":[4459],"class_list":["post-26049","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-usb-scopes-analyzers-generators","category-guide"],"jetpack_featured_media_url":"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/09\/IMG_1101-e1543262579998.jpg","authors":[{"term_id":4459,"user_id":49,"is_guest":0,"slug":"ian","display_name":"Ian Etheridge","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/8a19055c49586a33bb17b9a5823ac103?s=96&d=mm&r=g","author_category":"","user_url":"","last_name":"Etheridge","last_name_2":"","first_name":"Ian","first_name_2":"","job_title":"","description":""}],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/26049","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/users\/49"}],"replies":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/comments?post=26049"}],"version-history":[{"count":2,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/26049\/revisions"}],"predecessor-version":[{"id":31599,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/26049\/revisions\/31599"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media\/25424"}],"wp:attachment":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media?parent=26049"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/categories?post=26049"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/tags?post=26049"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=26049"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}