Unit 1 Introduction To Digital Signal Processing
Unit 1 Introduction To Digital Signal Processing
Digital Signal
ADC Processor DAC
Input Output
Signal Signal
Fig 1.3: (a) Continuous time signal (b) Sampled Signal (c) Sampled Data Signal
(d) Quantized Signal (e) DAC Output
ADC process involves sampling the signal and then quantizing the same to a
digital value. In order to avoid Aliasing effect, the signal has to be sampled at a rate
atleast equal to the Nyquist rate. The condition for Nyquist Criterion is as given below,
fs= 1/T 2 fm
A sequence that repeats itself after every period N is called a periodic sequence.
Consider a periodic sequence x (n) with period N
x (n)=x (n+N) n=..,-1,0,1,2,..
Frequency response gives the frequency domain equivalent of a discrete time
sequence. It is denoted as X (e j)
X(e j)=x(n) e-jn
Frequency response of a discrete sequence involves both magnitude response and
phase response.
called as Fast Fourier Transform Algorithms. The following table depicts the complexity
involved in the computation using DFT algorithms.
Complex Multiplications N2
LTI systems are characterized by its impulse response or unit sample response in
time domain whereas it is characterized by the system function in frequency domain.
1.7.1 Convolution
Convolution is the operation that related the input output of an LTI system, to its
unit sample response. The output of the system y (n) for the input x (n) and the impulse
response of the system being h (n) is given as
y (n) = x(n) * h(n) = x(k) h(n-k)
x(n) is the input of the system
h(n) is the impulse response of the system
y(n) is the output of the system
1.7.2 Z Transformation
Z Transformations are used to find the frequency response of the system. The Z
Transform for a discrete sequence x (n) is given by,
X (Z)= x(n) Z-n
Filters are used to remove the unwanted components in the sequence. They are
characterized by the impulse response h (n). The general difference equation for an Nth
order filter is given by,
y (n) = aky(n-k)+ bkx(n-k)
Values of the filter coefficients vary with respect to the type of the filter. Design
of a digital filter involves determining the filter coefficients. Based on the length of the
impulse response, digital filters are classified into two categories viz Finite Impulse
Response (FIR) Filters and Infinite Impulse Response (IIR) Filters.
Also
H (Z)=bk Z-k
The major drawback of FIR filters is, they require more number of filter
coefficients to realize a desired response as compared to IIR filters. Thus the
computational time required will also be more.
1. Find the magnitude and phase response of an FIR filter represented by the
difference equation
y(n)= 0.5 x(n) + 0.5 x(n-1)
As
Y (n)= 0.5 x(n) + 0.5 x(n-1)
h (n)= 0.5 (n) + 0.5 (n-1) = [0.5 0.5]
-1
H (Z)= 0.5+0.5Z
H (e j)= 0.5+0.5 e -j
= 0.5+0.5 cos -j0.5 sin
=0.5 (1+ cos ) -j0.5 sin
= [0.5*2* cos2 (/2)]-j[0.5*2* sin (/2)* cos (/2)]
= cos2 (/2) -j[sin (/2)* cos (/2)]
mag (H (e j)) = sqrt (cos4 (/2) +sin2 (/2) cos2 (/2))
= sqrt [cos2 (/2)( cos2 (/2)+ sin2 (/2))]
= cos (/2)
Similarly,
Phase (H (e j)) = tan 1[-(sin (/2) cos (/2))/ cos2 (/2)]
= tan 1[-tan (/2)]
= - (/2)
The magnitude and phase response curves of the designed FIR filter is as
shown in figure 1.8.
Stability of IIR filters depends on the number and the values of the filter
coefficients.
The major advantage of IIR filters over FIR is that, they require lesser coefficients
compared to FIR filters for the same desired response, thus requiring less computation
time.
2 Obtain the transfer function of the IIR filter whose difference equation is given by
y (n)= 0.9y (n-1)+0.1x (n)
Realization of the IIR filter with the above difference equation is as shown in
figure 1.9.
bk = (1/2) H (e j) e-jk d
Direct IIR filter design methods are based on least squares fit to a desired
frequency response. These methods allow arbitrary frequency response specifications.
Decimation and Interpolation are two techniques used to alter the sampling rate of
a sequence. Decimation involves decreasing the sampling rate without violating the
sampling theorem whereas interpolation increases the sampling rate of a sequence
appropriately by considering its neighboring samples.
1.9.1 Decimation
Decimation is a process of dropping the samples without violating sampling
theorem. The factor by which the signal is decimated is called as decimation factor and it
is denoted by M. It is given by,
y(m)=w(mM)= bk x(mM-k)
where w(n)= bk x(n-k)
1.9.2 Interpolation
Interpolation is a process of increasing the sampling rate by inserting new samples
in between. The input output relation for the interpolation, where the sampling rate is
increased by a factor L, is given as,
y(m)= bk w(m-k)
where w(n)= x(m/L), m=0,L, 2L
0 Otherwise
4. Let x(n)= [0 3 6 9 12] be interpolated with L=3. If the filter coefficients of the
filters are bk=[1/3 2/3 1 2/3 1/3], obtain the interpolated sequence
w (m) = [0 0 0 3 0 0 6 0 0 9 0 0 12]
bk=[1/3 2/3 1 2/3 1/3]
We have,
y(m)= bk w(m-k) = b-2 w(m+2)+ b-1 w(m+1)+ b0 w(m)+ b1 w(m-1)+ b2 w(m-2)
Substituting the values of m, we get
y(0)= b-2 w(2)+ b-1 w(1)+ b0 w(0)+ b1 w(-1)+ b2 w(-2)= 0
y(1)= b-2 w(3)+ b-1 w(2)+ b0 w(1)+ b1 w(0)+ b2 w(-1)=1
y(2)= b-2 w(4)+ b-1 w(3)+ b0 w(2)+ b1 w(1)+ b2 w(0)=2
Similarly we get the remaining samples as,
y (n) = [ 0 1 2 3 4 5 6 7 8 9 10 11 12]