{"id":24447,"date":"2018-05-04T08:28:38","date_gmt":"2018-05-04T15:28:38","guid":{"rendered":"https:\/\/blog.digilentinc.com\/?p=24447"},"modified":"2021-06-09T14:50:09","modified_gmt":"2021-06-09T21:50:09","slug":"add-audio-in-and-out-to-designs-with-the-pmod-i2s2","status":"publish","type":"post","link":"https:\/\/digilent.com\/blog\/add-audio-in-and-out-to-designs-with-the-pmod-i2s2\/","title":{"rendered":"Add Audio In and Out to Designs with the Pmod I2S2"},"content":{"rendered":"<p>Those of you familiar with our <a href=\"https:\/\/digilent.com\/shop\/pmod-modules\/\">Pmod<\/a>\u00a0line might recall that a subsection includes our <a href=\"https:\/\/digilent.com\/blog\/digilent-pmods-audio-pmods\/\">audio Pmods<\/a>. The <a href=\"https:\/\/digilent.com\/shop\/pmod-i2s-stereo-audio-output\/\">Pmod I2S<\/a> provides an audio output expansion board, that communicates with the host board via I2S. Based on the popularity of the Pmod I2S, I&#8217;m excited to introduce<a href=\"https:\/\/digilent.com\/shop\/pmod-i2s2-stereo-audio-input-and-output\"> Pmod I2S2<\/a> which features stereo audio input and output.<br \/>\n<a href=\"https:\/\/digilent.com\/shop\/pmod-i2s2-stereo-audio-input-and-output\/\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-24452 size-medium\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/05\/Pmod-I2S2-Oblique-600x518.jpg\" alt=\"\" width=\"600\" height=\"518\" data-wp-pid=\"24452\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/05\/Pmod-I2S2-Oblique-600x518.jpg 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/05\/Pmod-I2S2-Oblique-110x96.jpg 110w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/05\/Pmod-I2S2-Oblique.jpg 640w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>The <a href=\"https:\/\/digilent.com\/shop\/pmod-i2s2-stereo-audio-input-and-output\">Pmod I2S2<\/a> connects to the host board via the 12-pin Pmod Connector. Accessible on this connector are two I2S interfaces, which communicate with the Cirrus CS5343 Multi-Bit Audio A\/D Converter and the Cirrus CS4344 Stereo\u00a0D\/A Converter, which are each connected to 3.5mm audio jacks. The Pmod I2S2 supports 24-bit resolution per channel and input sample rates of up to 108kHz. The Pmod also features Master or Slave mode on the line-in (Audio In) converter, which can be selected using the jumper in the center of the module.<\/p>\n<p><a href=\"https:\/\/digilent.com\/shop\/pmod-i2s2-stereo-audio-input-and-output\/\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-24448 size-medium\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/05\/Pmod-I2S2-Callout-600x386.png\" alt=\"\" width=\"600\" height=\"386\" data-wp-pid=\"24448\" \/><\/a><\/p>\n<p>Along with the hardware, the Pmod I2S2 comes with reference material including an FPGA demo project pre-built for our <a href=\"https:\/\/digilent.com\/shop\/arty-a7-artix-7-fpga-development-board-for-makers-and-hobbyists\/\">Arty<\/a> boards. Below you can see the Pmod I2S2 connected to an <a href=\"https:\/\/digilent.com\/shop\/arty-s7-spartan-7-fpga-board-for-makers-and-hobbyists\/\">Arty S7<\/a>, running the pass-through\u00a0demo. This demonstration project takes the audio input (from a computer) and passes it to the audio output (headphones).<\/p>\n<p><a href=\"https:\/\/digilent.com\/shop\/pmod-i2s2-stereo-audio-input-and-output\/\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-24450 size-medium\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/05\/AD2-decoding-the-I2S-data-on-the-Pmod-I2S2-Middle-C-e1525445638435-557x600.jpg\" alt=\"\" width=\"557\" height=\"600\" data-wp-pid=\"24450\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/05\/AD2-decoding-the-I2S-data-on-the-Pmod-I2S2-Middle-C-e1525445638435-557x600.jpg 557w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/05\/AD2-decoding-the-I2S-data-on-the-Pmod-I2S2-Middle-C-e1525445638435-768x827.jpg 768w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/05\/AD2-decoding-the-I2S-data-on-the-Pmod-I2S2-Middle-C-e1525445638435-951x1024.jpg 951w\" sizes=\"auto, (max-width: 557px) 100vw, 557px\" \/><\/a><\/p>\n<p>For this demonstration, I&#8217;ve hooked up the <a href=\"https:\/\/digilent.com\/shop\/analog-discovery-2-100msps-usb-oscilloscope-logic-analyzer-and-variable-power-supply\/\">Analog Discovery 2<\/a> and set up the Logic Analyzer tool to decode the I2S protocol. Below you can see a screen grab of\u00a0<a href=\"https:\/\/digilent.com\/reference\/software\/waveforms\/waveforms-3\/start?redirect=1\">WaveForms<\/a> showing the decoded data. Here I&#8217;m just playing a constant middle C.<\/p>\n<p><a href=\"https:\/\/digilent.com\/reference\/software\/waveforms\/waveforms-3\/start?redirect=1\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-24449 size-medium\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/05\/middle-C-I2S-in-WaveForms-600x401.png\" alt=\"\" width=\"600\" height=\"401\" data-wp-pid=\"24449\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/05\/middle-C-I2S-in-WaveForms-600x401.png 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/05\/middle-C-I2S-in-WaveForms-768x513.png 768w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/05\/middle-C-I2S-in-WaveForms-800x534.png 800w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/05\/middle-C-I2S-in-WaveForms.png 987w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><\/p>\n<p>For more information on the<a href=\"https:\/\/digilent.com\/shop\/pmod-i2s2-stereo-audio-input-and-output\"> Pmod I2S2,<\/a> check out its store page and reference material. And of course, if you have any questions, feel free to comment below or post on the<a href=\"https:\/\/forum.digilent.com\/\"> Digilent Forum.<\/a><\/p>\n<figure id=\"attachment_24461\" aria-describedby=\"caption-attachment-24461\" style=\"width: 450px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/05\/May-the-4th-be-with-you.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"wp-image-24461 size-medium\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/05\/May-the-4th-be-with-you-450x600.jpg\" alt=\"\" width=\"450\" height=\"600\" data-wp-pid=\"24461\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/05\/May-the-4th-be-with-you-450x600.jpg 450w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/05\/May-the-4th-be-with-you-768x1024.jpg 768w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/05\/May-the-4th-be-with-you-800x1067.jpg 800w\" sizes=\"auto, (max-width: 450px) 100vw, 450px\" \/><\/a><figcaption id=\"caption-attachment-24461\" class=\"wp-caption-text\">May the 4th be with you.<\/figcaption><\/figure>\n<div class='watch-action'><div class='watch-position align-left'><div class='action-like'><a class='lbg-style6 like-24447 jlk' data-task='like' data-post_id='24447' data-nonce='b777872406' rel='nofollow'><img src='https:\/\/digilent.com\/blog\/wp-content\/plugins\/wti-like-post-pro\/images\/pixel.gif' title='Like' \/><span class='lc-24447 lc'>0<\/span><\/a><\/div><div class='action-unlike'><a class='unlbg-style6 unlike-24447 jlk' data-task='unlike' data-post_id='24447' data-nonce='b777872406' rel='nofollow'><img src='https:\/\/digilent.com\/blog\/wp-content\/plugins\/wti-like-post-pro\/images\/pixel.gif' title='Unlike' \/><span class='unlc-24447 unlc'>0<\/span><\/a><\/div><\/div> <div class='status-24447 status align-left'>Be the 1st to vote.<\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p>Looking for a comprehensive expansion board for all your stereo audio input and output needs? We have heard your requests, and are pleased to announce the arrival of the Pmod I2S2!<\/p>\n","protected":false},"author":18,"featured_media":24450,"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,"footnotes":""},"categories":[4327,35],"tags":[],"ppma_author":[4466],"class_list":["post-24447","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-projects","category-fpga"],"jetpack_featured_media_url":"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2018\/05\/AD2-decoding-the-I2S-data-on-the-Pmod-I2S2-Middle-C-e1525445638435.jpg","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\/24447","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=24447"}],"version-history":[{"count":0,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/24447\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media\/24450"}],"wp:attachment":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media?parent=24447"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/categories?post=24447"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/tags?post=24447"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=24447"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}