{"id":2319,"date":"2014-09-09T09:41:01","date_gmt":"2014-09-09T16:41:01","guid":{"rendered":"https:\/\/blog.digilentinc.com\/?p=2319"},"modified":"2017-08-02T11:49:03","modified_gmt":"2017-08-02T18:49:03","slug":"digilent-pmods-audio-pmods","status":"publish","type":"post","link":"https:\/\/digilent.com\/blog\/digilent-pmods-audio-pmods\/","title":{"rendered":"Digilent Pmods &#8211; Audio Pmods"},"content":{"rendered":"<p>Welcome back to the Digilent Blog!<\/p>\n<p>&nbsp;<\/p>\n<p>You may recall <a href=\"https:\/\/digilent.com\/blog\/index.php\/digilent-pmods-communication-is-key\/\">a post<\/a> we had a few days back on the Pmods that offered a DAC. As I mentioned then, DACs are used for a wide variety of applications, but one of the most common ways that you see a DAC being used is in audio applications. Digilent&#8217;s Pmod line offers several audio peripheral modules that do just that.<\/p>\n<p>&nbsp;<\/p>\n<p>As a refresher, audio devices (such as an MP3 player) will take a digital signal and use their digital-to-analog converter to turn it into an analog voltage signal, which can in turn drive a speaker to output sound. The AMP3 and I\u00b2S Pmods incorporate such DACs into their design.<\/p>\n<figure id=\"attachment_2321\" aria-describedby=\"caption-attachment-2321\" style=\"width: 600px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/08\/PmodAMP3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2321\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/08\/PmodAMP3.png\" alt=\"Digilent's PmodAMP3\" width=\"600\" height=\"439\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/08\/PmodAMP3.png 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/08\/PmodAMP3-300x219.png 300w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/08\/PmodAMP3-225x164.png 225w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><figcaption id=\"caption-attachment-2321\" class=\"wp-caption-text\">Digilent&#8217;s PmodAMP3.<\/figcaption><\/figure>\n<p>The PmodAMP3 supports several audio data interface formats, such as the popular I\u00b2S and TDM interfaces. Operating under an easily achieved 3.3V (especially with Digilent system boards), this audio amplifier is configurable through <a title=\"Digilent Pmods: Communication Is Key\" href=\"https:\/\/digilent.com\/blog\/index.php\/digilent-pmods-communication-is-key\/\" target=\"_blank\" rel=\"noopener\">I\u00b2C<\/a> to adjust the sampling frequency, volume, and which speaker jack receives which data stream. The two speaker jacks are ideal for dedicated speakers to support each side of stereo sound.<\/p>\n<figure id=\"attachment_2322\" aria-describedby=\"caption-attachment-2322\" style=\"width: 400px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/08\/PmodI2S.jpg\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2322\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/08\/PmodI2S.jpg\" alt=\"Digilent's PmodI2S\" width=\"400\" height=\"284\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/08\/PmodI2S.jpg 400w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/08\/PmodI2S-300x213.jpg 300w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/08\/PmodI2S-225x159.jpg 225w\" sizes=\"auto, (max-width: 400px) 100vw, 400px\" \/><\/a><figcaption id=\"caption-attachment-2322\" class=\"wp-caption-text\">Digilent&#8217;s PmodI2S.<\/figcaption><\/figure>\n<p>The PmodI\u00b2S is able to support all major audio data interface formats, including I\u00b2S, TDM, and MSB and LSB justified. With a variable operating range of 3V to 5V, this Pmod can accept 16 to 24 audio data bits at a time at a variety of popular sampling frequencies such as 48, 96, 192 kHz. It has a single stereo jack so you can easily plug in your earbuds and enjoy its 105 dynamic dB range.<\/p>\n<p>&nbsp;<\/p>\n<p>Digilent also offers two additional audio related Pmods&#8211;the PmodAMP2 and the PmodCON4. These two\u00a0do not have a DAC of their own, but can easily be paired with other DACs, such as the DA1, to receive the appropriate analog signals.<\/p>\n<figure id=\"attachment_2320\" aria-describedby=\"caption-attachment-2320\" style=\"width: 600px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/08\/PmodAMP2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2320\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/08\/PmodAMP2.png\" alt=\"Digilent's PmodAMP2\" width=\"600\" height=\"475\" srcset=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/08\/PmodAMP2.png 600w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/08\/PmodAMP2-300x237.png 300w, https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/08\/PmodAMP2-225x178.png 225w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/a><figcaption id=\"caption-attachment-2320\" class=\"wp-caption-text\">Digilent&#8217;s PmodAMP2.<\/figcaption><\/figure>\n<p>The PmodAMP2 is able to process both the analog signals from a DAC as well as digital PWM signals. Although the PWM signals are digital, a DAC is not needed to process them because PWM signals oscillate between high and low voltage states and can be adjusted so that the average of the signal (via an RC filter) nicely approximates a desired analog signal. This module is able to operate anywhere between 2.5 and 5V and can amplify the monophonic audio with either a 6 or 12 dB gain.<\/p>\n<figure id=\"attachment_12216\" aria-describedby=\"caption-attachment-12216\" style=\"width: 600px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-12216\" src=\"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/09\/PmodCON4-600x424.png\" alt=\"Digilent's PmodCON4\" width=\"600\" height=\"424\" \/><figcaption id=\"caption-attachment-12216\" class=\"wp-caption-text\">Digilent&#8217;s PmodCON4<\/figcaption><\/figure>\n<p>The PmodCON4 is able to accept analog signals from any of the four available input pins on it&#8217;s 6 pin header. These inputs can then be routed via the jumper blocks to either of the RCA audio jacks. For those of you that might not know them by name, the RCA audio jacks are what you use the red and white wires of the red, white, and yellow RCA cable set to connect your DVD player or similar devices into your TV. The CON4 is also able to accept analog signals from the RCA audio jack ends and transmit those signals to the 6 pin header side to be interpreted by an Analog-to-Digital Converter. Note that you will likely need a voltage level shifter for the ADC to properly interpret the audio signal because they are classically an AC signal biased around 0 V and many Analog-to-Digital converters do not readily accept voltages below 0 V.<\/p>\n<p>&nbsp;<\/p>\n<p>Check out these Pmods, and come back soon for more in the Pmod series!<\/p>\n<div class='watch-action'><div class='watch-position align-left'><div class='action-like'><a class='lbg-style6 like-2319 jlk' data-task='like' data-post_id='2319' data-nonce='0cd049e29a' rel='nofollow'><img src='https:\/\/digilent.com\/blog\/wp-content\/plugins\/wti-like-post-pro\/images\/pixel.gif' title='Like' \/><span class='lc-2319 lc'>0<\/span><\/a><\/div><div class='action-unlike'><a class='unlbg-style6 unlike-2319 jlk' data-task='unlike' data-post_id='2319' data-nonce='0cd049e29a' rel='nofollow'><img src='https:\/\/digilent.com\/blog\/wp-content\/plugins\/wti-like-post-pro\/images\/pixel.gif' title='Unlike' \/><span class='unlc-2319 unlc'>0<\/span><\/a><\/div><\/div> <div class='status-2319 status align-left'>Be the 1st to vote.<\/div><\/div><div class='wti-clear'><\/div>","protected":false},"excerpt":{"rendered":"<p>You may recall a post we had a few days back on the Pmods that offered a DAC. As I mentioned then, DACs are used for a wide variety of applications but one of the most common ways that you see a DAC being used is in audio applications. Digilent&#8217;s Pmod line offers several audio peripheral modules that do just that. <\/p>\n","protected":false},"author":17,"featured_media":2321,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[38],"tags":[],"ppma_author":[4469],"class_list":["post-2319","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-expansion-modules"],"jetpack_featured_media_url":"https:\/\/digilent.com\/blog\/wp-content\/uploads\/2014\/08\/PmodAMP3.png","authors":[{"term_id":4469,"user_id":17,"is_guest":0,"slug":"jamescolvin","display_name":"James Colvin","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/509febded809c5de0423909f6ae6587f?s=96&d=mm&r=g","author_category":"","user_url":"","last_name":"Colvin","last_name_2":"","first_name":"James","first_name_2":"","job_title":"Applications Engineer \/ Technical Support Engineer \/ Product Support Engineer \/ Technical Writer \/ the person to bother about T&M and JTAG when the senior design engineer is busy","description":"A local Digilent employee who is sometimes tricked into making other content besides documentation and supporting customers on the Digilent Forum, but then I get to write a little more informally so that's a plus. \r\n\r\nA sassy engineer, lover of puns and dad jokes, father and husband. \r\n\r\nI know both way too much and simultaneously almost nothing about a number of nerdy topics. If you want to hear me rant, ask me what data rate USB C operates at."}],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/2319","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\/17"}],"replies":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/comments?post=2319"}],"version-history":[{"count":0,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/posts\/2319\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media\/2321"}],"wp:attachment":[{"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/media?parent=2319"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/categories?post=2319"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/tags?post=2319"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/digilent.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=2319"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}