HW8

From Class Wiki
Jump to navigation Jump to search

Problem Statement

Write a section describing how a CD player works with out oversampling but with digital filtering (1x oversampling)

Solution

CD players are used to play audio files and although these are limited we can look at any non periodic signal as periodic with an infinite period. We can represent this signal, x(t) as such in the time domain and X(f) in the frequency domain.

X continuous3.jpg X frequency1b.jpg

In order to take the signal and read it digitally we must sample it. This gives us data points creating a discrete function of time , where is and integer and is the period between samples. We use a frequency of 44 kHz as it is twice the frequency at which a human can hear (i.e. 2 x 22 kHz) -- that means, kHz. Mathematically sampling is represented by multiplying x(t) with the delta function which results in a convolution with X(f).

X discrete a.jpg X frequency2a.jpg

Represented as: and respectively.

This type of sampling can result in aliasing. This is prevented by oversampling represented on CD players and other media devices as Nx for N times oversampling. It is commonly seen at 8 or 16 and my latest player had it at 52. For this particular assignment we were asked to look at digital filtering but we can accommodate for any oversampling with the variable 'p'. We will use a FIR filter for this. It can be represented graphically as:

FIR filter time.jpg X frequency3a.jpg

and mathematically as: and .

When we run the signal through this filter we multiply it mathematically in the time domain. In the frequency domain this will look like convolution.

Oversampled.jpg X frequency4a.jpg

x(t)*g(t) and X(f)G(f)

Next we send the signal through a D/A converter. This allows the computer inside the CD player to read the signal information. Graphically this is just a step up and step down a half the period long, known as a pulse function.

P t.jpg P f.jpg

Lets call these p(t) and P(f).

We can now convolve the sampled signal with the pulse signal to produce our digital signal. In the frequency domain we get a multiplication once again.

X step.jpg X frequency5.jpg

Mathematically these are: and , respectively.

Finally we output the signal. In order to get a smooth sound we finally send the signal through a low pass filter. This will return us to our original signal, sweet sounding tunes.

Lowpass g t.jpg Lowpass G f.jpg

Graphically we can see that the digital wave will become more analog and the frequency response will eliminate everything outside the desired frequencies.

X continuous3.jpg X frequency1b.jpg

Thank you to max for most of the images.