Welcome back to the Digilent Blog!
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’s Pmod line offers several audio peripheral modules that do just that.
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²S Pmods incorporate such DACs into their design.
The PmodAMP3 supports several audio data interface formats, such as the popular I²S and TDM interfaces. Operating under an easily achieved 3.3V (especially with Digilent system boards), this audio amplifier is configurable through I²C 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.
The PmodI²S is able to support all major audio data interface formats, including I²S, 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.
Digilent also offers two additional audio related Pmods–the PmodAMP2 and the PmodCON4. These two do 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.
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.
The PmodCON4 is able to accept analog signals from any of the four available input pins on it’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.
Check out these Pmods, and come back soon for more in the Pmod series!