{"id":17728,"date":"2016-11-21T10:00:54","date_gmt":"2016-11-21T18:00:54","guid":{"rendered":"https:\/\/blog.digilentinc.com\/?p=17728"},"modified":"2021-06-11T11:03:22","modified_gmt":"2021-06-11T18:03:22","slug":"waveforms-tools-with-the-ad2-and-eeboard-the-pattern-generator","status":"publish","type":"post","link":"https:\/\/digilent.com\/blog\/waveforms-tools-with-the-ad2-and-eeboard-the-pattern-generator\/","title":{"rendered":"WaveForms Tools with the AD2 and EEBoard: The Pattern Generator"},"content":{"rendered":"<p>A pattern generator is used to generate a user defined pattern of digital logic high\/low signals or pulses. With the <a href=\"https:\/\/digilent.com\/shop\/analog-discovery-2-100msps-usb-oscilloscope-logic-analyzer-and-variable-power-supply\/\">Analog Discovery 2<\/a>&#8216;s 16 digital channels (32 channels for the <a href=\"https:\/\/digilent.com\/shop\/electronics-explorer-all-in-one-usb-oscilloscope-multimeter-workstation\/\">Electronics Explorer Board<\/a>), you have multiple options for generating whatever digital pattern you choose, from a single signal to a full 32-bit bus.<\/p>\n<figure id=\"attachment_17749\" aria-describedby=\"caption-attachment-17749\" style=\"width: 600px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-17749\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/11\/ee-bus-600x534.png\" alt=\"What would you do with a 32-bit bus?\" width=\"600\" height=\"534\" \/><figcaption id=\"caption-attachment-17749\" class=\"wp-caption-text\">What would you do with a 32-bit bus?<\/figcaption><\/figure>\n<p>Defining the pattern on each channel couldn&#8217;t be simpler.\u00a0There are a number of preset patterns you can use, like a Johnson counter or a constant value. You can also custom define each channel with a user-defined pattern.<\/p>\n<figure id=\"attachment_17750\" aria-describedby=\"caption-attachment-17750\" style=\"width: 600px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-17750\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/11\/5p19-600x328.png\" alt=\"A user-defined channel for use with a 7-segment numerical LED display.\" width=\"600\" height=\"328\" \/><figcaption id=\"caption-attachment-17750\" class=\"wp-caption-text\">A user-defined channel for use with a 7-segment numerical LED display.<\/figcaption><\/figure>\n<p>You can also define a logic truth table and use the digital channels as the inputs or outputs for said table. Simply map the input\/output pins using the property tab&#8230;<\/p>\n<figure id=\"attachment_17747\" aria-describedby=\"caption-attachment-17747\" style=\"width: 600px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-17747 size-medium\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/11\/4p17-600x439.png\" alt=\"First define your logic inputs\/outputs.\" width=\"600\" height=\"439\" \/><figcaption id=\"caption-attachment-17747\" class=\"wp-caption-text\">First define your logic inputs\/outputs to the desired digital pins.<\/figcaption><\/figure>\n<p>&#8230;and then define the truth table under the truth table tab.<\/p>\n<figure id=\"attachment_17748\" aria-describedby=\"caption-attachment-17748\" style=\"width: 600px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-17748\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/11\/4p20-600x443.png\" alt=\"The second step is to define the truth table as needed.\" width=\"600\" height=\"443\" \/><figcaption id=\"caption-attachment-17748\" class=\"wp-caption-text\">The second step is to define the truth table as needed.<\/figcaption><\/figure>\n<p>For a more complete tutorial, check out my <a href=\"http:\/\/www.instructables.com\/id\/Using-the-Pattern-Generator-With-the-Analog-Discov\/\">Instructable<\/a>.<\/p>\n<div class='watch-action'><div class='watch-position align-left'><div class='action-like'><a class='lbg-style6 like-17728 jlk' data-task='like' data-post_id='17728' 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-17728 lc'>0<\/span><\/a><\/div><div class='action-unlike'><a class='unlbg-style6 unlike-17728 jlk' data-task='unlike' data-post_id='17728' 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-17728 unlc'>0<\/span><\/a><\/div><\/div> <div class='status-17728 status align-left'>Be the 1st to vote.<\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p> Learn how to generate a user defined pattern of digital logic with the pattern generator!<\/p>\n","protected":false},"author":22,"featured_media":17750,"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":[1736],"ppma_author":[4471],"class_list":["post-17728","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-software","category-usb-scopes-analyzers-generators","category-guide","tag-analog-discovery-2"],"jetpack_featured_media_url":"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2016\/11\/5p19-e1479514288701.png","jetpack_sharing_enabled":true,"authors":[{"term_id":4471,"user_id":22,"is_guest":0,"slug":"brmarcum","display_name":"Brandon Marcum","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/3f3481ac36f3c92f08a1a8266d60111ca31c5031c4428d551991aa080d9d529b?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\/17728","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\/22"}],"replies":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/comments?post=17728"}],"version-history":[{"count":0,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/17728\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media\/17750"}],"wp:attachment":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media?parent=17728"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/categories?post=17728"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/tags?post=17728"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=17728"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}