{"id":11476,"date":"2015-12-01T20:00:40","date_gmt":"2015-12-02T04:00:40","guid":{"rendered":"https:\/\/blog.digilentinc.com\/?p=11476"},"modified":"2021-06-16T15:45:13","modified_gmt":"2021-06-16T22:45:13","slug":"how-to-easily-test-a-microcontroller-with-a-logic-analyzer","status":"publish","type":"post","link":"https:\/\/digilent.com\/blog\/how-to-easily-test-a-microcontroller-with-a-logic-analyzer\/","title":{"rendered":"How to Easily Test a Microcontroller with a Logic Analyzer"},"content":{"rendered":"<p>Have you ever struggled with a project and not known why? You&#8217;ve tested the code and it still isn&#8217;t working. You&#8217;re considering throwing your board against the wall (but please don&#8217;t). You&#8217;re glaring at your resistors. What to do?! Sometimes it&#8217;s a bad digital pin. Save time, energy, and anger by by testing your microcontroller before you get to work on your project. Instructables user\u00a0<a href=\"http:\/\/www.instructables.com\/member\/Proto+G\/\" rel=\"author\">Proto G<\/a>\u00a0<a href=\"http:\/\/www.instructables.com\/id\/How-To-Easily-Test-a-Microcontroller-with-a-Logic-\/?ALLSTEPS\">uses the Analog Discovery&#8217;s logic analyzer<\/a> to do this.<\/p>\n<figure id=\"attachment_6358\" aria-describedby=\"caption-attachment-6358\" style=\"width: 640px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-6358\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/04\/analog-discovery.jpg\" alt=\"A great oscilloscope\/logic analyzer to use for this project...\" width=\"640\" height=\"604\" data-wp-pid=\"6358\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/04\/analog-discovery.jpg 640w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/04\/analog-discovery-600x566.jpg 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/04\/analog-discovery-225x212.jpg 225w\" sizes=\"auto, (max-width: 640px) 100vw, 640px\" \/><figcaption id=\"caption-attachment-6358\" class=\"wp-caption-text\">A great oscilloscope\/logic analyzer to use for this project&#8230;<\/figcaption><\/figure>\n<p>After you&#8217;ve picked your logic analyzer (we recommend upgrading to the Analog Discovery 2), then pick your microcontroller board! Upload your code and connect your logic analyzer to your board. Connect each pin you&#8217;re testing to a different channel, which should provide a reasonable test of each.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-11437\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/11\/analog-discovery-2-600x517.jpg\" alt=\"analog-discovery-2\" width=\"600\" height=\"517\" data-wp-pid=\"11437\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/11\/analog-discovery-2-600x517.jpg 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/11\/analog-discovery-2-1024x882.jpg 1024w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/11\/analog-discovery-2-110x96.jpg 110w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/11\/analog-discovery-2-800x689.jpg 800w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/11\/analog-discovery-2.jpg 1600w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>Obvious, logic analyzers have plenty more uses, and the problem might actually be in the code, but this is a great Instructable!<\/p>\n<p>&nbsp;<\/p>\n<div class='watch-action'><div class='watch-position align-left'><div class='action-like'><a class='lbg-style6 like-11476 jlk' data-task='like' data-post_id='11476' 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-11476 lc'>0<\/span><\/a><\/div><div class='action-unlike'><a class='unlbg-style6 unlike-11476 jlk' data-task='unlike' data-post_id='11476' 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-11476 unlc'>0<\/span><\/a><\/div><\/div> <div class='status-11476 status align-left'>Be the 1st to vote.<\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p>Testing digital pins can be easy!<\/p>\n","protected":false},"author":7,"featured_media":11481,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4312,1563],"tags":[111,1736],"ppma_author":[4464],"class_list":["post-11476","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-usb-scopes-analyzers-generators","category-guide","tag-analog-discovery","tag-analog-discovery-2"],"jetpack_featured_media_url":"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2015\/12\/logic-analyzer-test-microcontroller.jpg","authors":[{"term_id":4464,"user_id":7,"is_guest":0,"slug":"amber_mear","display_name":"Amber Mear","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/766b0adee766c4cbe4e5ae38ab97be11?s=96&d=mm&r=g","author_category":"","user_url":"","last_name":"Mear","last_name_2":"","first_name":"Amber","first_name_2":"","job_title":"","description":"I was the Digilent blog editor, and now I'm a contributor. I love learning about wearables and writing about social issues in STEM. Outside of work, I can be found watching Netflix with my cat, working on an art project, or trying to find new, delicious local foods."}],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/11476","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\/7"}],"replies":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/comments?post=11476"}],"version-history":[{"count":0,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/11476\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media\/11481"}],"wp:attachment":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media?parent=11476"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/categories?post=11476"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/tags?post=11476"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=11476"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}