ADC/DAC and Digital Audio Processing

https://embeddedcentric.com/adc-dac-and-digital-audio-processing/

LAB 8

***Helpful Note: The tutorial doesn't specify this, but you will need minicom open when running the program.

Also if a warning appears after you have created the HDL wrapper you should be okay to continue anyway.


Summary:

In this lab, we use the ADAU1761 audio codec chip (coder-decoder) mounted on the Zed board, to output different pitches using the switches. Inside the codec are two ADCs, Right Channel and Left Channel, that we used to sample audio. The NCO generates samples of the sine waves at the designated frequencies and these samples are superpositioned and sent to the DACs through the I2S bus, so that they can be played on the speaker.


ADAU1761 is and audio codec chip located on the Zedboard used for audio processing.
  • Used for acoustic purposes (playing, recording, processing).
  • The sample frequency is generated by the PLL logic which is driven by a master clock supplied by an external source.
  • The ADAU1761 cannot initiate a data transfer.
  • Uses two's compliment fix point format

NCO (Numerically Controlled Oscillator) - Generates samples of the sine wave at selected/desired frequencies.
  • The samples of the sine wave are superpositioned on the received audio samples. 
  • The modified audio samples (recieved + sine samples) are sent to the DAC converters of the Codec for playing on the speaker (connected to green output on board).
  • The NCO is implanted in the hardware as an AXI core to provide accurate timing.

ADC are used to digitize audio signals
  • Nyquist Theorem: Sampling frequency of an audio ADC should be at least twice the highest frequency.

After obtaining digitized samples of an audio signal, processing can take place in a digital system.

To play back the processed audio, a DAC is needed to convert the stream of digital values into an analog signal and the analog signal can be sent to the speaker for playing.

The samples travel through (connections) the I2C standard audio bus.

The frequency of the sine wave to be superpositioned on the input audio is set by the switches.
  • The switches/LEDs correspond to their binary value
I2S Bus (Inter-IC Sound) is the standard for transferring audio data within digital systems.
  • Signals: The serial audio data in/out lines
    • two clocks and data lines
    • LRC (Left-Right Clock): Identifies the audio system sample rate and frames the two channels of audio data that exists on the single audio data line.
    • BCLK (Bit Clock / Serial Clock): Times the shift of audio data bits into or out of the data audio port.
In addition you can connect an input source into the blue connection on the zedboard and play a song while changing the pitches using the switches.
Note: The actual song pitches do not change, they just play together. 












Comments

Popular posts from this blog

Adam Taylor MicroZed Chronicles: Interrupt Latency

Using the XADC Header to Read Voltages

Github