{"id":18456,"date":"2017-01-24T10:00:24","date_gmt":"2017-01-24T18:00:24","guid":{"rendered":"https:\/\/blog.digilentinc.com\/?p=18456"},"modified":"2021-06-11T10:55:43","modified_gmt":"2021-06-11T17:55:43","slug":"getting-the-most-out-of-your-analog-discovery-lab-7","status":"publish","type":"post","link":"https:\/\/digilent.com\/blog\/getting-the-most-out-of-your-analog-discovery-lab-7\/","title":{"rendered":"Getting The Most Out Of Your Analog Discovery: Lab 7"},"content":{"rendered":"<p>Recently I announced that <a href=\"http:\/\/ni.com\">National Instruments<\/a> has released a <a href=\"http:\/\/www.ni.com\/gate\/gb\/GB_EKITCOMPLABSELENG\/US\">set of example labs<\/a> designed to show you how you can get the full use of your <a href=\"https:\/\/digilent.com\/blog\/analogdiscovery2\">Analog Discovery 2<\/a>. If you have since forgotten and want to review the summaries and mission of the seven labs, you can check out the <a href=\"https:\/\/digilent.com\/blog\/getting-the-most-from-the-analog-discovery-2-a-series\/\">original post here<\/a>.<\/p>\n<figure id=\"attachment_18351\" aria-describedby=\"caption-attachment-18351\" style=\"width: 600px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.ni.com\/gate\/gb\/GB_EKITCOMPLABSELENG\/US\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-18351 size-medium\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/12\/1-600x311.png\" width=\"600\" height=\"311\" data-wp-pid=\"18351\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/12\/1-600x311.png 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/12\/1-768x398.png 768w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/12\/1-1024x531.png 1024w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/12\/1-800x415.png 800w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/12\/1.png 1172w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><figcaption id=\"caption-attachment-18351\" class=\"wp-caption-text\">The table of contents from the 7 free labs.<\/figcaption><\/figure>\n<p>Over the next few weeks I&#8217;ll be covering each lab, the tools it uses, and concepts that can help you teach your students. In my previous post I went over Lab 6: UART Serial Communication. In this post I&#8217;ll be going over Lab 7: SPI\u00a0Communication.<\/p>\n<figure id=\"attachment_18465\" aria-describedby=\"caption-attachment-18465\" style=\"width: 600px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.ni.com\/gate\/gb\/GB_EKITCOMPLABSELENG\/US\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-18465 size-medium\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/courses-covered-3-600x386.png\" width=\"600\" height=\"386\" data-wp-pid=\"18465\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/courses-covered-3-600x386.png 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/courses-covered-3-768x493.png 768w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/courses-covered-3-1024x658.png 1024w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/courses-covered-3-800x514.png 800w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/courses-covered-3.png 1175w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><figcaption id=\"caption-attachment-18465\" class=\"wp-caption-text\">Lab 7 is designed for a microcontroller or embedded systems course.<\/figcaption><\/figure>\n<p><strong style=\"font-size: 14px;\">Lab 7: SPI\u00a0<\/strong><strong style=\"font-size: 14px;\">Communication\u00a0<\/strong>is design to teach students about SPI communication. They will learn about the functionality of the different SPI lines, how to transmit SPI from a master device, and validate the data sent from the master to check for data integrity. By the end of the lab students will be able to send, receive, and decode data from a SPI bus.<\/p>\n<p>This lab utilizes 1 set of software,\u00a0<a href=\"http:\/\/www.ni.com\/labview\/\">LabVIEW<\/a>.<\/p>\n<p><a href=\"http:\/\/ni.com\/labview\">LabVIEW<\/a> is a development environment design specifically to accelerate the productivity of engineers and scientists. It features a graphical programming syntax that makes it simple to visualize, create, and code engineering systems.<\/p>\n<figure id=\"attachment_18466\" aria-describedby=\"caption-attachment-18466\" style=\"width: 600px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.ni.com\/gate\/gb\/GB_EKITCOMPLABSELENG\/US\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-18466 size-medium\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/Tools-used-600x494.png\" width=\"600\" height=\"494\" data-wp-pid=\"18466\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/Tools-used-600x494.png 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/Tools-used-768x632.png 768w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/Tools-used-168x137.png 168w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/Tools-used-800x658.png 800w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/Tools-used.png 944w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><figcaption id=\"caption-attachment-18466\" class=\"wp-caption-text\">Lab 7 uses the logic analyzing features of the Analog Discovery 2 to receive and decode SPI\u00a0signals.<\/figcaption><\/figure>\n<p><span style=\"font-size: 14px;\">For this lab students will need:<\/span><\/p>\n<ul>\n<li>An <a href=\"https:\/\/digilent.com\/shop\/analog-discovery-2-100msps-usb-oscilloscope-logic-analyzer-and-variable-power-supply\/\">Analog Discovery 2<\/a><\/li>\n<li><a href=\"https:\/\/digilent.com\/shop\/chipkit-uc32-basic-microcontroller-board-with-uno-r3-headers\/\">Digilent uC32 <\/a>or other LINX supported microcontroller<\/li>\n<li>Jumper wires<\/li>\n<li><a href=\"http:\/\/www.studica.com\/LabVIEW\">LabVIEW 2015<\/a> or Later (available from Studica)<\/li>\n<li><a href=\"http:\/\/www.instructables.com\/id\/Analog-Discovery-2-USB-Oscilloscope-LabVIEW\/\">Digilent WaveForms VI<\/a>s (A Free Download)<\/li>\n<li><a href=\"http:\/\/www.ni.com\/gate\/gb\/GB_EVALTLKTLINXLVH\/US\">Digilent LINX<\/a><\/li>\n<\/ul>\n<p>Similar to <a href=\"https:\/\/digilent.com\/blog\/getting-the-most-out-of-your-analog-discovery-lab-6\">Lab 6<\/a>, Lab 7 goes through theory, simulation, and practical analysis.<\/p>\n<p>The lab starts by going through the theory behind SPI communication: explaining slave select, clock, MOSI, and MISO.<\/p>\n<p><span style=\"font-size: 14px;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-18505\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/1-6-600x565.png\" alt=\"\" width=\"600\" height=\"565\" data-wp-pid=\"18505\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/1-6-600x565.png 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/1-6.png 693w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/span><\/p>\n<p>First, students are asked to analyze example signals given in the lab. Then they are asked to analyze the effect of changing certain parameters.<\/p>\n<p><span style=\"font-size: 14px;\"> <img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-18506\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/2-6-600x248.png\" alt=\"\" width=\"600\" height=\"248\" data-wp-pid=\"18506\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/2-6-600x248.png 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/2-6.png 710w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/span><\/p>\n<p>Once the lab moves on to examining SPI signals in practice, students set up a LabVIEW VI to send and receive SPI data from a microcontroller.<\/p>\n<p><span style=\"font-size: 14px;\"> <img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-18507\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/3-6-600x317.png\" alt=\"\" width=\"600\" height=\"317\" data-wp-pid=\"18507\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/3-6-600x317.png 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/3-6-351x185.png 351w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/3-6.png 674w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/span><\/p>\n<p>That data is then read by the Analog Discovery 2 and displayed in a LabVIEW window. From here students can learn the real implications of adjusting SPI parameters, and how the data is decoded.<\/p>\n<p><span style=\"font-size: 14px;\"> <img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-18510\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/6-6-600x393.png\" alt=\"\" width=\"600\" height=\"393\" data-wp-pid=\"18510\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/6-6-600x393.png 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/6-6-214x140.png 214w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/6-6.png 678w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/span><\/p>\n<p>For more advanced students that want to challenge themselves, they can design a LabVIEW VI to transmit, receive, and decode ASCII characters. They can also continue and explore encryption.<\/p>\n<p><span style=\"font-size: 14px;\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-medium wp-image-18511\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/7-6-600x343.png\" alt=\"\" width=\"600\" height=\"343\" data-wp-pid=\"18511\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/7-6-600x343.png 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/7-6.png 718w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/span><\/p>\n<p><span style=\"font-size: 14px;\">Now that you&#8217;ve seen a preview of each lab,\u00a0<\/span><a style=\"font-size: 14px;\" href=\"http:\/\/www.ni.com\/gate\/gb\/GB_EKITCOMPLABSELENG\/US\">download and checkout the labs yourself<\/a><span style=\"font-size: 14px;\">. If you are interested in the tools that the Analog Discovery 2\u00a0has to offer, more information can be found on its <\/span><a style=\"font-size: 14px;\" href=\"https:\/\/digilent.com\/reference\/software\/waveforms\/waveforms-3\/start?redirect=1#newest\">Wiki Page<\/a><span style=\"font-size: 14px;\">.<\/span><\/p>\n<div class='watch-action'><div class='watch-position align-left'><div class='action-like'><a class='lbg-style6 like-18456 jlk' data-task='like' data-post_id='18456' data-nonce='8896bc70a6' rel='nofollow'><img src='https:\/\/digilent.com\/blog\/wp-content\/plugins\/wti-like-post-pro\/images\/pixel.gif' title='Like' \/><span class='lc-18456 lc'>0<\/span><\/a><\/div><div class='action-unlike'><a class='unlbg-style6 unlike-18456 jlk' data-task='unlike' data-post_id='18456' data-nonce='8896bc70a6' rel='nofollow'><img src='https:\/\/digilent.com\/blog\/wp-content\/plugins\/wti-like-post-pro\/images\/pixel.gif' title='Unlike' \/><span class='unlc-18456 unlc'>0<\/span><\/a><\/div><\/div> <div class='status-18456 status align-left'>Be the 1st to vote.<\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p>The final chapter of the Analog Discovery series is here!<\/p>\n","protected":false},"author":18,"featured_media":18466,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[4323,4312,1563],"tags":[111,499],"ppma_author":[4466],"class_list":["post-18456","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software","category-usb-scopes-analyzers-generators","category-guide","tag-analog-discovery","tag-oscilloscope"],"jetpack_featured_media_url":"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2017\/01\/Tools-used.png","jetpack_sharing_enabled":true,"authors":[{"term_id":4466,"user_id":18,"is_guest":0,"slug":"kaitlyn","display_name":"Kaitlyn Franz","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/9276021eaa44781ce19f364cfca46ada25e1500769cf4803a095a5bae83c912a?s=96&d=mm&r=g","1":"","2":"","3":"","4":"","5":"","6":"","7":"","8":"","9":"","10":""}],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/18456","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\/18"}],"replies":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/comments?post=18456"}],"version-history":[{"count":0,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/18456\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media\/18466"}],"wp:attachment":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media?parent=18456"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/categories?post=18456"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/tags?post=18456"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=18456"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}