Understanding DSP
Understanding DSP
Fourier Transform
The whole of DSP depends on the Fourier analysis. By learning the philosophy behind
this, one can easily master the subject.
Fourier transform is not a device and is not an output of a system. It is just a tool that helps
us understand the system better. It defines a system. It defines the relation between a
certain input and a certain output.
Using Fourier series any signal can be expressed in terms of periodic signals such as sine
and/or cosine.
*Actually to build a square wave, we need infinite sinusoidal components. And interestingly to
build a sine wave, we need infinite square waves. We only have a one-sided advantage.
It is probably better to express using sinusoidal signals since most of the practical
applications involve sinusoidals.
Components of DSP
There are circuits which produce a characteristic output for a certain type of input.
Thus to understand why the systems behave as they do, we use Fourier analysis. And by
using Fourier analysis, we can build better circuits which provide optimum outputs.
Broadly classifying there are two types of circuits:
1. A circuit which modifies an input signal. If it increases the magnitude, it is an
Amplifier. If it decreases the magnitude, it is an Attenuator.
2. A circuit which segregates an input signal. If it removes certain frequencies from the
signal, then it is a Filter. If it adds certain frequencies to the signal, it is a Mixer.
The circuits can be a combination of both. Ex: a circuit can be both an amplifier as well as a
filter.
These are the only operations that you would ever perform in a DSP system. Now by looking
at the example above, isnt it easy to obtain any required output? It sure is.
Sampling theorem
The whole of Fourier analysis is based on the essence of this simple yet intriguing
theorem.
The theorem signifies the constraint that has to be fulfilled to save the information in the
signals.
We can draw a line curved upwards or down. Two upward peaks cannot be present in a line
segment neither can two downward peaks be. If they did exist, then we can break them into
two separate curves.
Imagine a small segment of a signal. Let us try to apply the analogy from the above example.
A signal can have only one upward peak and only one downward peak. This is nothing but a
sine wave of one oscillation.
To read (trace) this sine wave, we need to probe the wave twice (once for each peak). Thus
to read the sample sine wave we need another sine wave with 2 oscillations in the same
period (or sine wave with twice the frequency of the given wave).
Now suppose a sample needs to be read using another signal. What characteristics should
the signal possess?
1. If the sample is to be read then we must know the smallest duration of upward or
downward peaks.
2. We now take the smallest peak duration and find a sine wave that fits it.
3. Now we use another sine wave which has twice the number of oscillations and is used
as the sampling signal.
If we say -
He is a carpenter
OR
He is a person who converts a block of wood into a chair.
-Both mean the same.
So if we say-
It is a Low Pass filter
OR
It is a circuit which removes high frequency components from the input.
-They are still the same.
Similarly if we know what is the output for an Impulse, we can definitely calculate what is the
output for any signal.
(Digital signals are nothing but a train of impulses with different magnitudes. The output is
the joint action of all the components together.)
Convolution is a method for evaluating the output. All Digital signals can be expressed
using impulses. By doing so, we have a train of impulses with different magnitudes (or
weights) [Equation 1]. We already know from the discussion above the output for impulse is
impulse response. Thus the output for the train of impulse with different weights is nothing
but the impulse response multiplied by the respective weights [Equation 2].
-Where x[k] is the magnitude of the kth sample, [n-k] is the k samples delayed impulse.
th
-Where x[k] is the magnitude of the k sample, h[n-k] is the k sample delayed impulse
response.
Note that the variables in the summation can be interchanged but y[n] remains unchanged.
Equation 2 can also be re-written as-
Filters
The classification of digital filters is based upon its impulse response. Thus depending
upon whether a filter is IIR or FIR we use suitable design strategies.
It is the inherent property of FIR filters to be stable. A bounded input always produces
bounded output (- a finite response). However, IIR filters may or may not be stable. They can
be assumed stable if their response dies down eventually (even at infinity).
So, depending upon the users demands for stability, ease of design and ease of
implementation we chose between IIR and FIR filters.
Whatever we learned till now was not actually DSP. This is just a brief overview. But the joy of
learning DSP doesnt end here.
Formats:
Light Blue Highlight Topic
Dark Blue Text Questions
Blue Highlight Examples
Purple Highlight Additional Information
Font:
DejaVu Sans Condensed
Bharath P