{"id":27903,"date":"2020-06-25T08:31:03","date_gmt":"2020-06-25T15:31:03","guid":{"rendered":"https:\/\/blog.digilentinc.com\/?p=27903"},"modified":"2020-06-25T08:31:03","modified_gmt":"2020-06-25T15:31:03","slug":"bridging-a-usb-to-a-microcontroller-as-shown-by-the-analog-discovery-2","status":"publish","type":"post","link":"https:\/\/digilent.com\/blog\/bridging-a-usb-to-a-microcontroller-as-shown-by-the-analog-discovery-2\/","title":{"rendered":"Bridging a USB to a Microcontroller, as Shown by the Analog Discovery 2"},"content":{"rendered":"<p>Our friend Yahya, Editor at<a href=\"http:\/\/www.atadiat.com\"> Atadiat<\/a> (the Arabic word for\u00a0<em>hardware<\/em>), has put together a fine tutorial on serial engine programming. Using the MPSSE (Multi-Protocol Synchronous Serial Engine) from <a href=\"http:\/\/www.ftdichip.com\">FTDI Chip<\/a> as a bridge, you&#8217;re able to execute different types of USB to serial conversion. This article explains a little about the MPSSE, how to configure it, and then finally shows how to write a QT C++ program and run a test of it using <a href=\"https:\/\/bit.ly\/3i14nbl\">WaveForms<\/a> and the <a href=\"https:\/\/bit.ly\/2VfW7u8\">Analog Discovery 2<\/a>.<\/p>\n<figure id=\"attachment_27904\" aria-describedby=\"caption-attachment-27904\" style=\"width: 735px\" class=\"wp-caption alignnone\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-27904 size-full\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2020\/06\/mpsse-ftdi-block.png\" alt=\"\" width=\"735\" height=\"491\" data-wp-pid=\"27904\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2020\/06\/mpsse-ftdi-block.png 735w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2020\/06\/mpsse-ftdi-block-600x401.png 600w\" sizes=\"auto, (max-width: 735px) 100vw, 735px\" \/><figcaption id=\"caption-attachment-27904\" class=\"wp-caption-text\">A diagram of the MPSSE<\/figcaption><\/figure>\n<p><a href=\"https:\/\/atadiat.com\/en\/e-ftdi-mpsse-engine-programming-basics-a-gui-example\/\">CLICK HERE<\/a> to read the tutorial in it&#8217;s entirety on Atadiat.com.<\/p>\n<div class='watch-action'><div class='watch-position align-left'><div class='action-like'><a class='lbg-style6 like-27903 jlk' data-task='like' data-post_id='27903' data-nonce='fd7a0819bd' rel='nofollow'><img src='https:\/\/digilent.com\/blog\/wp-content\/plugins\/wti-like-post-pro\/images\/pixel.gif' title='Like' \/><span class='lc-27903 lc'>+2<\/span><\/a><\/div><div class='action-unlike'><a class='unlbg-style6 unlike-27903 jlk' data-task='unlike' data-post_id='27903' data-nonce='fd7a0819bd' rel='nofollow'><img src='https:\/\/digilent.com\/blog\/wp-content\/plugins\/wti-like-post-pro\/images\/pixel.gif' title='Unlike' \/><span class='unlc-27903 unlc'>0<\/span><\/a><\/div><\/div> <div class='status-27903 status align-left'><\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p>Our friend Yahya, Editor at Atadiat (the Arabic word for\u00a0hardware), has put together a fine tutorial on serial engine programming. Using the MPSSE (Multi-Protocol Synchronous Serial Engine) from FTDI Chip &hellip; <\/p>\n","protected":false},"author":50,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false,"_ppma_block_editor_authors":""},"categories":[4312],"tags":[],"ppma_author":[4502],"class_list":["post-27903","post","type-post","status-publish","format-standard","hentry","category-usb-scopes-analyzers-generators"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.7 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Bridging a USB to a Microcontroller, as Shown by the Analog Discovery 2 - Digilent Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/digilent.com\/blog\/bridging-a-usb-to-a-microcontroller-as-shown-by-the-analog-discovery-2\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Bridging a USB to a Microcontroller, as Shown by the Analog Discovery 2 - Digilent Blog\" \/>\n<meta property=\"og:description\" content=\"Our friend Yahya, Editor at Atadiat (the Arabic word for\u00a0hardware), has put together a fine tutorial on serial engine programming. Using the MPSSE (Multi-Protocol Synchronous Serial Engine) from FTDI Chip &hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/digilent.com\/blog\/bridging-a-usb-to-a-microcontroller-as-shown-by-the-analog-discovery-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Digilent Blog\" \/>\n<meta property=\"article:published_time\" content=\"2020-06-25T15:31:03+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2020\/06\/mpsse-ftdi-block.png\" \/>\n\t<meta property=\"og:image:width\" content=\"735\" \/>\n\t<meta property=\"og:image:height\" content=\"491\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"David Horn\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"David Horn\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/digilent.com\\\/blog\\\/bridging-a-usb-to-a-microcontroller-as-shown-by-the-analog-discovery-2\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/digilent.com\\\/blog\\\/bridging-a-usb-to-a-microcontroller-as-shown-by-the-analog-discovery-2\\\/\"},\"author\":{\"name\":\"David Horn\",\"@id\":\"https:\\\/\\\/digilent.com\\\/blog\\\/#\\\/schema\\\/person\\\/be8611777ee4aaf413f8d2c50f4e3c42\"},\"headline\":\"Bridging a USB to a Microcontroller, as Shown by the Analog Discovery 2\",\"datePublished\":\"2020-06-25T15:31:03+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/digilent.com\\\/blog\\\/bridging-a-usb-to-a-microcontroller-as-shown-by-the-analog-discovery-2\\\/\"},\"wordCount\":118,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/digilent.com\\\/blog\\\/bridging-a-usb-to-a-microcontroller-as-shown-by-the-analog-discovery-2\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/digilent.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/mpsse-ftdi-block.png\",\"articleSection\":[\"Digilent USB Scopes, Analyzers, Generators: Info &amp; Use Cases\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/digilent.com\\\/blog\\\/bridging-a-usb-to-a-microcontroller-as-shown-by-the-analog-discovery-2\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/digilent.com\\\/blog\\\/bridging-a-usb-to-a-microcontroller-as-shown-by-the-analog-discovery-2\\\/\",\"url\":\"https:\\\/\\\/digilent.com\\\/blog\\\/bridging-a-usb-to-a-microcontroller-as-shown-by-the-analog-discovery-2\\\/\",\"name\":\"Bridging a USB to a Microcontroller, as Shown by the Analog Discovery 2 - Digilent Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/digilent.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/digilent.com\\\/blog\\\/bridging-a-usb-to-a-microcontroller-as-shown-by-the-analog-discovery-2\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/digilent.com\\\/blog\\\/bridging-a-usb-to-a-microcontroller-as-shown-by-the-analog-discovery-2\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/digilent.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/mpsse-ftdi-block.png\",\"datePublished\":\"2020-06-25T15:31:03+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/digilent.com\\\/blog\\\/#\\\/schema\\\/person\\\/be8611777ee4aaf413f8d2c50f4e3c42\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/digilent.com\\\/blog\\\/bridging-a-usb-to-a-microcontroller-as-shown-by-the-analog-discovery-2\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/digilent.com\\\/blog\\\/bridging-a-usb-to-a-microcontroller-as-shown-by-the-analog-discovery-2\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/digilent.com\\\/blog\\\/bridging-a-usb-to-a-microcontroller-as-shown-by-the-analog-discovery-2\\\/#primaryimage\",\"url\":\"https:\\\/\\\/digilent.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/mpsse-ftdi-block.png\",\"contentUrl\":\"https:\\\/\\\/digilent.com\\\/blog\\\/wp-content\\\/uploads\\\/2020\\\/06\\\/mpsse-ftdi-block.png\",\"width\":735,\"height\":491},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/digilent.com\\\/blog\\\/bridging-a-usb-to-a-microcontroller-as-shown-by-the-analog-discovery-2\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/digilent.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Bridging a USB to a Microcontroller, as Shown by the Analog Discovery 2\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/digilent.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/digilent.com\\\/blog\\\/\",\"name\":\"Digilent Blog\",\"description\":\"Learning for Engineers, Students, and Hobbyists\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/digilent.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/digilent.com\\\/blog\\\/#\\\/schema\\\/person\\\/be8611777ee4aaf413f8d2c50f4e3c42\",\"name\":\"David Horn\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/917c337136844f075c76fcf4a0c3b94aa8c225366009ebf63c08fcb9ce6d0e52?s=96&d=mm&r=g6b6f60a0363dcaab9a192365a3657531\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/917c337136844f075c76fcf4a0c3b94aa8c225366009ebf63c08fcb9ce6d0e52?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/917c337136844f075c76fcf4a0c3b94aa8c225366009ebf63c08fcb9ce6d0e52?s=96&d=mm&r=g\",\"caption\":\"David Horn\"},\"url\":\"https:\\\/\\\/digilent.com\\\/blog\\\/author\\\/davidh\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Bridging a USB to a Microcontroller, as Shown by the Analog Discovery 2 - Digilent Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/digilent.com\/blog\/bridging-a-usb-to-a-microcontroller-as-shown-by-the-analog-discovery-2\/","og_locale":"en_US","og_type":"article","og_title":"Bridging a USB to a Microcontroller, as Shown by the Analog Discovery 2 - Digilent Blog","og_description":"Our friend Yahya, Editor at Atadiat (the Arabic word for\u00a0hardware), has put together a fine tutorial on serial engine programming. Using the MPSSE (Multi-Protocol Synchronous Serial Engine) from FTDI Chip &hellip;","og_url":"https:\/\/digilent.com\/blog\/bridging-a-usb-to-a-microcontroller-as-shown-by-the-analog-discovery-2\/","og_site_name":"Digilent Blog","article_published_time":"2020-06-25T15:31:03+00:00","og_image":[{"width":735,"height":491,"url":"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2020\/06\/mpsse-ftdi-block.png","type":"image\/png"}],"author":"David Horn","twitter_card":"summary_large_image","twitter_misc":{"Written by":"David Horn","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/digilent.com\/blog\/bridging-a-usb-to-a-microcontroller-as-shown-by-the-analog-discovery-2\/#article","isPartOf":{"@id":"https:\/\/digilent.com\/blog\/bridging-a-usb-to-a-microcontroller-as-shown-by-the-analog-discovery-2\/"},"author":{"name":"David Horn","@id":"https:\/\/digilent.com\/blog\/#\/schema\/person\/be8611777ee4aaf413f8d2c50f4e3c42"},"headline":"Bridging a USB to a Microcontroller, as Shown by the Analog Discovery 2","datePublished":"2020-06-25T15:31:03+00:00","mainEntityOfPage":{"@id":"https:\/\/digilent.com\/blog\/bridging-a-usb-to-a-microcontroller-as-shown-by-the-analog-discovery-2\/"},"wordCount":118,"commentCount":0,"image":{"@id":"https:\/\/digilent.com\/blog\/bridging-a-usb-to-a-microcontroller-as-shown-by-the-analog-discovery-2\/#primaryimage"},"thumbnailUrl":"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2020\/06\/mpsse-ftdi-block.png","articleSection":["Digilent USB Scopes, Analyzers, Generators: Info &amp; Use Cases"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/digilent.com\/blog\/bridging-a-usb-to-a-microcontroller-as-shown-by-the-analog-discovery-2\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/digilent.com\/blog\/bridging-a-usb-to-a-microcontroller-as-shown-by-the-analog-discovery-2\/","url":"https:\/\/digilent.com\/blog\/bridging-a-usb-to-a-microcontroller-as-shown-by-the-analog-discovery-2\/","name":"Bridging a USB to a Microcontroller, as Shown by the Analog Discovery 2 - Digilent Blog","isPartOf":{"@id":"https:\/\/digilent.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/digilent.com\/blog\/bridging-a-usb-to-a-microcontroller-as-shown-by-the-analog-discovery-2\/#primaryimage"},"image":{"@id":"https:\/\/digilent.com\/blog\/bridging-a-usb-to-a-microcontroller-as-shown-by-the-analog-discovery-2\/#primaryimage"},"thumbnailUrl":"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2020\/06\/mpsse-ftdi-block.png","datePublished":"2020-06-25T15:31:03+00:00","author":{"@id":"https:\/\/digilent.com\/blog\/#\/schema\/person\/be8611777ee4aaf413f8d2c50f4e3c42"},"breadcrumb":{"@id":"https:\/\/digilent.com\/blog\/bridging-a-usb-to-a-microcontroller-as-shown-by-the-analog-discovery-2\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/digilent.com\/blog\/bridging-a-usb-to-a-microcontroller-as-shown-by-the-analog-discovery-2\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/digilent.com\/blog\/bridging-a-usb-to-a-microcontroller-as-shown-by-the-analog-discovery-2\/#primaryimage","url":"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2020\/06\/mpsse-ftdi-block.png","contentUrl":"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2020\/06\/mpsse-ftdi-block.png","width":735,"height":491},{"@type":"BreadcrumbList","@id":"https:\/\/digilent.com\/blog\/bridging-a-usb-to-a-microcontroller-as-shown-by-the-analog-discovery-2\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/digilent.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Bridging a USB to a Microcontroller, as Shown by the Analog Discovery 2"}]},{"@type":"WebSite","@id":"https:\/\/digilent.com\/blog\/#website","url":"https:\/\/digilent.com\/blog\/","name":"Digilent Blog","description":"Learning for Engineers, Students, and Hobbyists","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/digilent.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/digilent.com\/blog\/#\/schema\/person\/be8611777ee4aaf413f8d2c50f4e3c42","name":"David Horn","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/917c337136844f075c76fcf4a0c3b94aa8c225366009ebf63c08fcb9ce6d0e52?s=96&d=mm&r=g6b6f60a0363dcaab9a192365a3657531","url":"https:\/\/secure.gravatar.com\/avatar\/917c337136844f075c76fcf4a0c3b94aa8c225366009ebf63c08fcb9ce6d0e52?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/917c337136844f075c76fcf4a0c3b94aa8c225366009ebf63c08fcb9ce6d0e52?s=96&d=mm&r=g","caption":"David Horn"},"url":"https:\/\/digilent.com\/blog\/author\/davidh\/"}]}},"jetpack_sharing_enabled":true,"authors":[{"term_id":4502,"user_id":50,"is_guest":0,"slug":"davidh","display_name":"David Horn","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/917c337136844f075c76fcf4a0c3b94aa8c225366009ebf63c08fcb9ce6d0e52?s=96&d=mm&r=g","author_category":"","user_url":"","last_name":"Horn","last_name_2":"","first_name":"David","first_name_2":"","job_title":"","description":""}],"jetpack_featured_media_url":"","post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/27903","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\/50"}],"replies":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/comments?post=27903"}],"version-history":[{"count":0,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/27903\/revisions"}],"wp:attachment":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media?parent=27903"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/categories?post=27903"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/tags?post=27903"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=27903"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}