DSP PPT MOD 1
DSP PPT MOD 1
Processing
Presented by:
Bhargavi K Rao
Assistant Professor
Dept. of ECE
TEXT BOOK:
1. “Digital Signal Processing”, Avatar Singh and S. Srinivasan, Thomson
Learning, 2004.
REFERENCE BOOKS:
1.Digital Signal Processing: A practical approach, Ifeachor E. C.,
Jervis B. W Pearson- Education, PHI, 2002.
2.“Digital Signal Processors”, B Venkataramani and M Bhaskar TMH,
2nd, 2010.
3. “Architectures for Digital Signal Processing”, Peter Pirsch John
Weily, 2008.
Learning objectives
To understand the DSP system, the sampling process, DFT &
FFT.
Fig 1.3: (a) Continuous time signal (b) Sampled Signal (c) Sampled Data Signal
(d) Quantized Signal (e) DAC Output
1.4 The Sampling Process
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 at least equal to the Nyquist rate. The
condition for Nyquist Criterion is as given below,
fs= 1/T ≥ 2 fm
where fs is the sampling frequency
fm is the maximum frequency component in the message signal
If the sampling of the signal is carried out with a rate less than the
Nyquist rate, the higher frequency components of the signal cannot
be reconstructed properly. The plots of the reconstructed outputs
for various conditions are as shown in figure 1.4.
Fig 1.4 Verification of Sampling Theorem
1.5 Discrete Time Sequences
Consider an analog signal x(t) given by, x(t)= A cos (2πft)
If this signal is sampled at a Sampling Interval T, in the above equation
replacing t by nT we get,
x (nT) = A cos (2πfnT) where n= 0,1, 2,..etc
For simplicity denote the sequence x (nT) as x (n)
∴ x (n) = A cos (2πfnT) where n= 0,1, 2,..etc
We have fs=1/T also θ = 2πfT
∴ x (n) = A cos (2πfnT)= A cos (2πfn/fs) = A cos θn
The quantity θ is called as digital frequency,
θ = 2πfT = 2πf/fs radians
Note that the digital frequency range , for a properly sampled signal as
obtained from above equation, is from 0 to ∏
The above x(n) sequence called the sinusoidal sequence.
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,……..
The equations that relate the time domain sequence x (n) and
the corresponding frequency domain sequence X (K) are
called DFT Pair and is given by,
1.6.2 The Relationship between DFT and Frequency Response
X(ejθ)= 𝑵−𝟏
𝒏=𝟎 𝒙(𝒏) e-jnθAlso,
X (K)=Σx(n) e-j2πnk/N
∴ X (K)= X (e jθ) at θ = 2πk/N
From the above expression it is clear that we can use DFT to find the
Frequency response of a discrete signal.
Spacing between the elements of X(k) is given
as∆f=fs/N=1/NT=1/T0
Where T0 is the signal record length
It is clear from the expression of ∆f that, in order to minimize the
spacing between the samples N has to be a large value.
Although DFT is an efficient technique of obtaining the frequency
response of a sequence, it requires more number of complex
operations like additions and multiplications. Thus many
improvements over DFT were proposed.
Complex Multiplications N2
The magnitude and phase of the transfer function H (Z) gives the
frequency response of the system. From the transfer function we
can also get the poles and zeros of the system by solving its
numerator and denominator respectively.
1.8 Digital Filters
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) = Σ ak y(n-k)+ Σ bk x(n-k)
Similarly,
Unlike FIR filters, IIR filters have infinite number of impulse response samples.
They are recursive filters as the output depends not only on the past and present
inputs but also on the past outputs. They generally do not have linear phase
characteristics. Typical system function of such filters is given by,
H (Z) = (b0+b1z-1+b2z-2+…………bLz-L) / (1- a1z-1- a2 z-2-………aN z-N)
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.
Fig 1.10 Frequency Response of the IIR Filter
1.8.3 FIR Filter Design
Frequency response of an FIR filter is given by the following
expression, H (e jθ) =Σbk e-jkθ
Design procedure of an FIR filter involves the determination of
the filter coefficients bk.
bk = (1/2π) ∫ H (e jθ) e-jkθ dθ
1.8.4 IIR Filter Design
IIR filters can be designed using two methods using windows
and direct method.
In this approach, a digital filter can be designed based on its
equivalent analog filter. An analog filter is designed first for
the equivalent analog specifications for the given digital
specifications. Then using appropriate frequency
transformations, a digital filter can be obtained.
The filter specifications consist of passband and stopband
ripples in dB . Passband and Stopband frequencies in rad/sec.
Fig 1.11 Lowpass Filter Specifications
Direct IIR filter design methods are based on least squares fit to a desired
frequency response. These methods allow arbitrary frequency response
specifications
1.9 Decimation and Interpolation
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.
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)
w (m) = [0 0 0 3 0 0 6 0 0 9 0 0 12]
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]
Questions
2. An analog signal is sampled at the rate of 8KHz. If 512 samples of this signal
are used to compute DFT X(k) determine the analog and digital frequency
spacing between adjacent X(k0 elements. Also, determine analog and digital
frequencies corresponding to k=60.
4. What is DSP? What are the important issues to be considered in designing and
implementing a DSP system? Explain in detail.
5. Why signal sampling is required? Explain the sampling process.
6. Define decimation and interpolation process. Explain them using block diagrams
and equations. With a neat diagram explain the scheme of a DSP system.
7. With an example explain the need for the low pass filter in decimation process.
8. For the FIR filter y(n)=(x(n)+x(n-1)+x(n-2))/3. Determine i) System Function ii)
Magnitude and phase function iii) Step response iv) Group Delay.
9. List the major architectural features used in DSP system to achieve high speed
program execution.
10. Explain how to simulate the impulse responses of FIR and IIR filters.
11. Explain the two method of sampling rate conversions used in DSP system, with
suitable block diagrams and examples. Draw the corresponding spectrum.
12. Assuming X(K) as a complex sequence determine the number of complex
real multiplies for computing IDFT using direct and Radix-2 FT algorithms.
13. With a neat diagram explain the scheme of a DSP system. (June.12, 8m).
14. With an example explain the need for the low pass filter in decimation
process. (June.12, 4m)
15. For the FIR filter y(n)=(x(n)+x(n-1)+x(n-2))/3. Determine i) System
Function ii) Magnitude and phase function iii) Step response iv) Group
Delay. (June.12, 8m)
16. List the major architectural features used in DSP system to achieve high speed
program execution. (Dec.11, 6m).
17. Explain how to simulate the impulse responses of FIR and IIR filters.
(Dec.11, 6m).
18. Explain the two method of sampling rate conversions used in DSP system,
with suitable block diagrams and examples. Draw the corresponding
spectrum. (Dec.11, 8m).
19. Explain with the help of mathematical equations how signed numbers
can be multiplied. (July.11, 8m).
20. With a neat diagram explain the scheme of the DSP system. (Dec.10-Jan.11,
8m)
Thank You