Sei sulla pagina 1di 11

EE3271 Jan03 Exam Solutions 1 11/11/04 BMGC

University of Manchester
Manchester School of Engineering
Electrical Engineering Programmes

First Semester Year 3 Examination Paper

EE3271: Digital Signal Processing

Date of Examination: January 2003


Answer THREE questions out of the five given.

Time allowed TWO HOURS

(Each question is marked out of 20).

________________________________________________________________________

1.(a) A digital LTI system has the finite impulse response:

{…, 0, …, 0, 1, 0, −1, 0, …, 0, … }

Calculate its response to the input signal:

{…, 0, …, 1, 2, 3, 2, 1, …, 0, … }. [4 marks]

Show that the system's gain and phase responses are given, respectively, by:
G(Ω) = | 2sin(Ω) | and φ(Ω) = π/2 − Ω.
where Ω denotes frequency in radians per sampling interval. [4 marks]
Explain the term "linear phase" and state whether this system is linear phase. [2 marks]

(b) Design a sixth order FIR high-pass digital filter with cut-off frequency at one quarter of the
sampling frequency. [ 10 marks]

2. (a) Explain why analogue signals are generally low-pass filtered before they are
converted to digital form. For a given signal, why does increasing the sampling
rate simplify the analogue filter required? [8 marks]

(b) A digital signal processing system, with a twelve-bit uniformly quantising


analogue-to-digital converter and a sampling rate of 16 kHz, is used to process
analogue signals band-limited to the frequency range 0 Hz to 7 kHz. Estimate the
EE3271 Jan03 Exam Solutions 2 11/11/04 BMGC

maximum achievable signal-to-quantisation noise ratio (SQNR) for sinusoidal


input signals, and state what assumptions it is reasonable to make about the
statistical and spectral properties of the quantisation noise. [8 marks]

(c) How and to what extent would the maximum achievable SQNR be affected by
increasing the sampling rate to 32 kHz and replacing the 12-bit analogue-to-
digital converter by a 16-bit converter? [4 marks]

3. (a) Explain how the poles and zeros of the discrete time system function H(z) affect the
stability, the gain response and the phase response of the system. [7 marks]

(b) Give the system function H(z) and a signal-flow-graph for the following difference equation:

y[n[ = x[n] + x[n-1] - 0.81 y[n-2]


[ 3 marks]
Plot its poles and zeros on the z-plane and determine whether it is stable. [ 2 marks]
Sketch its gain response. [ 6 marks]

(c) If the frequency-response of a digital filter is given by the expression:

H (e j Ω ) = 1 + cos (3 Ω ) − j sin (3 Ω )

what would be its output when the input signal is {x[n]} with

x[n] = 3 cos ( n π / 4 + 0.5 ) for −∞ < n < ∞ . [ 2 marks]

4. Given that the system function of a third order Butterworth type analogue low-pass
analogue filter with a 3 dB cut-off frequency of one radian/second is:

1
H(s) = 
(1 + s ) ( 1 + s + s2 )

use the bilinear transformation to design a third order low-pass digital filter with a 3 dB cut-off
frequency at one quarter of the sampling frequency. [8 marks]

Give a signal-flow-graph for the IIR filter. [4 marks]

With the aid of simple sketch graphs explain how frequency warping affects the frequency
response of the digital filter. [4 marks]

Give a flow-diagram to indicate how the digital filter would be implemented on a DSP
microprocessor with floating point arithmetic. [4 marks]
EE3271 Jan03 Exam Solutions 3 11/11/04 BMGC

5.(a) Briefly outline four of the main advantages and one disadvantage of digital as opposed to
analogue signal processing. [5 marks]

(b) Given that the discrete time Fourier transform (DTFT) of the 20th order rectangular
window sequence, {w[n]}, is W( e j Ω ) with magnitude spectrum shown in figure 1,
show that the DTFT of a cosine sequence of frequency Ω 0 radians per sampling interval,
windowed by {w[n]}, is 0.5 W( ej(Ω - Ω 0) ) + 0.5 W( ej(Ω + Ω 0) ). [3 marks]

Sketch the modulus of the DTFT of the windowed cosine sequence in two cases:

(i) when Ω 0 = 0.4π , [2 marks]


(ii) when Ω 0 = 0.55π [2 marks]

In each case, sketch the expected form of the modulus of the 20th order discrete Fourier
transform (DFT) of the rectangularly windowed cosine sequence. [4 marks]

(c) Referring to your answer above, explain why non-rectangular windows (Hann, etc.) are
generally preferred to the rectangular window when using the DFT or FFT for spectral
estimation? [4 marks]

20

15

Modulus DTFT
10

0
−π −0.8π −0.6π −0.4π −0.2π 0 0.2π 0.4π 0.6π 0.8π π
Radians/sample
-5

Figure 1
EE3271 Jan03 Exam Solutions 4 11/11/04 BMGC

EE3271 DSP Exam Jan 2003

Solutions
∞ 2
1(a) y[n] = ∑ h[m]x[n − m] = ∑ h[m]x[n − m]
m = −∞ m=0
= x[n] - x[n-2]

n x[n] x[n-1] x[n-2] y[n]


0 1 0 0 1
1 2 1 0 2
2 3 2 1 2
3 2 3 2 0
4 1 2 3 -2
5 0 1 2 -2
6 0 0 1 -1
7 0 0 0 0 etc.

Solution is:
{ …, 0, 1, 2, 2, 0, -2, -2, -1, 0, …, 0, …}

X(e j Ω ) = 1 - e - 2 j Ω
= e - j Ω (e j Ω - e - j Ω)
= 2 j e - j Ω sin (Ω)

G(Ω) = |2 sin (Ω) | φ (Ω) = π / 2 - Ω

Not linear phase as the straight line phase-response does not pass through the origin.
"Linear phase" means that −φ(Ω) / Ω = constant, which means that the delay is constant for all
frequencies
EE3271 Jan03 Exam Solutions 5 11/11/04 BMGC

1 (b) The relative cut-off frequency ΩC = π / 2 radians per sample.

Take phase to be zero initially.


Therefore H(ejΩ) = G(Ω)
By the inverse DTFT formula:

1 π
h[n] =
2π ∫π

G (Ω)e jΩn dΩ

1 π 1 −π / 2
=
2π ∫π e jΩn dΩ
/2
+
2π ∫π −
e jΩn dΩ

1 π
=
2π ∫π /2
(e jΩn + e − jΩn )dΩ

1 π
=
2π ∫π /2
(cos(Ωn))dΩ

The impulse response is {h[n]} with


h[n] = (−1/(πn)) sin(nπ/2) when n ≠ 0 and h[n] = 0.5 when n=0.

On rectangularly windowing and delaying by 3 samples, we obtain the causal finite impulse
response:
{h[n]} = { …, 0, 0, -1/(3π), 0, -1/π, 0.5, -1/π, 0, 1/(3π), 0, …, 0, …}

H(z) = 0.106 - 0.32 z-2 + 0.5 z-3 - 0.32z--4 + 0.106z-6


EE3271 Jan03 Exam Solutions 6 11/11/04 BMGC

2. (a) The DTFT of {x[n]} obtained by sampling xa(t) at intervals of T seconds is :


1
X(e jωT ) =
T

n = −∞
X a ( j (ω − nω 0 )) with ω 0 = 2π / T

If xa( t ) is band-limited between -π/T and +π/T radians/sec ( ±fs/2 Hz ), then


Xa( jω ) =0 for ω  ≥ π/T.
It follows that :
X( ejωT ) = ( 1/T ) Xa( jω ) for -π/T < ω < π/T
This is because Xa( j( ω - 2π/T ) ), Xa( j( ω + 2π/T ) ) and Xa( jω ) do not overlap.

Where Xa(jω) is not band-limited to the frequency range -π/T to π/T, overlap occurs.
If now we take Xs( ejωT ) to represent Xa( jω )/T for -π/T < ω< π/T, it will be distorted.
This is aliasing distortion.

To avoid aliasing distortion, low-pass filter xa( t ) to band-limit the signal to ±fS/2 Hz
before sampling at fs Hz. It then satisfies “ Nyquist sampling criterion ”.

Assuming xa(t) is band-limited to ± F Hz, in theory, we could choose fS = 2F Hz.


There are two related problems with this choice.

(1) Need very sharp analogue anti-aliasing filter to remove everything above F Hz.
(2) Need very sharp analogue reconstruction filter to eliminate images (ghosts):

Xs(j6.284f)
-fs/2 fs/2

REMOVE REMOVE f

-F F 2F Hz

Increasing fS, e.g. to 44.1 kHz when F is fixed at 20 kHz modifies this diagram as follows:-

Xs(j6.28f)

fs/2
-fs/2

REMOVE REMOVE f

-F F 2F Hz

Analogue filtering is now easier. Need only remove everything above fS - F Hz. If fs is further
increased, and F does not change, removing spectrum above fs -F without affecting -F to F
becomes even easier.
EE3271 Jan03 Exam Solutions 7 11/11/04 BMGC

2(b) Quantisation noise power : ∆2/12 where ∆ is quantisation step.


Sinusoidal signal power = A2 / 2 where A is the maximum possible signal amplitude.
Twelve bit ADC, therefore 212 quantisation levels.
A = 2 11 ∆

Signal-to-quantisation noise ratio (SQNR) = (A2/2) / (∆2 / 2)


= 2 21 ∆2 / (∆2 /12)
= 2 23 x 3 = 25.166 x 10 6

In dB SQNR = 10 log10(2 23 x 3) = 73.7 dB ( = 6 x 12 + 1.7)

The quantisation noise spectrum may be assumed white in the frequency range 0 to fs / 2 Hz.
In the time-domain, the quantisation error samples may be assumed random and statistically
uniformly distributed between -∆/2 and ∆/2.

2 (c) Doubling fs does not change the SQNR directly, but spreads the quantisation noise across
spectrum -16 kHz to 16 kHz. We can filter off noise above 7 kHz thus removing approximately
half its power saving 3 dB in SQNR.
Replacing the 12-bit ADC by a 16-bit device gains 24 dB.
Therefore the SQNR increases to 97.7 + 3 dB. = 100.7 dB.
EE3271 Jan03 Exam Solutions 8 11/11/04 BMGC

4. (concluded)

Set variables W1, W2 & W3 to zero

L1: INPUT X

Set W = X/3 - W2 / 2

Set V = W + 2 * W1 + W2

Set W2 = W1

Set W1 = W

Set Y = 0.5 * V + W3

Output Y

Set W3 = 0.5 * V

Repeat indefinitely
EE3271 Jan03 Exam Solutions 9 11/11/04 BMGC

5 (a) Advantages of digital as opposed to analogue signal processing include the


following ( choose 4 ) :-
• More and more signals are being transmitted and /or stored in digital form so it makes sense
to process them in digital form also.
• DSP systems can be designed and tested in “ simulation ” using universally available
computing equipment ( e.g. PCs with sound and vision cards ).
• Guaranteed accuracy, as pre-determined by word-length and sampling rate.
• Perfect reproducibility. Every copy of a DSP system will perform identically.
• The characteristics of the system will not drift with temperature or ageing.
• Advantage can be taken of the availability of advanced semiconductor VLSI technology.
• DSP systems are flexible in that they can be reprogrammed to modify their operation without
changing the hardware. Products can be distributed / sold and updated via Internet.
• Digital VLSI technology is now so powerful that DSP systems can now perform functions
that would be extremely difficult or impossible in analogue form. Two examples of such
functions are : (i) adaptive filtering ( where the parameters of a digital filter are variable and
must be adapted to the characteristics of the input signal) and, (ii) speech recognition which
is again based on information obtained from speech by digital filtering.

Disadvantages of digital signal processing ( choose one ) :


• DSP designs can be expensive especially for high bandwidth signals where fast
analogue/digital conversion is required.
• The design of DSP systems can be extremely time-consuming and a highly complex and
specialized activity. There is an acute shortage of electrical engineering graduates with the
knowledge and skill required.
• The power requirements for DSP devices can be high, thus making them unsuitable for
battery powered portable devices such as mobile telephones. Fixed point processing devices (
offering integer arithmetic only ) are available which are simpler than floating point devices
and less power consuming. However the ability to program such devices is a particularly
valued and difficult skill.

5. (b) The DTFT of {cos(Ω0n)} is DTFT of 0.5{exp(jΩ0n)} + 0.5{exp(jΩ0n)}


which is π δ(Ω - Ω0) + π δ(Ω + Ω0) .
The DTFT of {cos(Ω0n) w[n]} is, by frequency domain convolution,
1 π

2π ∫ π (πδ (θ − Ω

0 ) + πδ (θ + Ω 0 ))W (e j ( Ω −θ ) ) dθ

= 0.5 W(exp(j[Ω - Ω0]) + 0.5 W(exp(j[Ω + Ω0])

(b) When Ω0 = 0.4π, the frequency of the sinusoid corresponds exactly with a frequency
sampling point. Hence the DFT graph will have a line of amplitude 10 at 0.4π, and a similar
line at –0.4π. All other DFT frequency-domain samples are zero since they coincide exactly
with zero crossings of the sincs function (see fig A below)
EE3271 Jan03 Exam Solutions 10 11/11/04 BMGC

When Ω0 = 0.55π, the frequency of the sinusoid lies mid way between two DFT frequency
sampling points. Therefore we see samples of the sincs function as illustrated in fig B below.

(c) Fig B shows X k for the 20-point DFT of a sinusoid of amplitude 10 and frequency 5.5π
radians/sample. Only the first 10 points need be plotted.
The frequency sampling points are 0, 0.1π, 0.2π, …, 0.9π, π
Note that 0.55π lies between two frequency sampling points.
Samples of the rectangular window's frequency response, with its side-lobes, are seen, and
frequency samples 5 and 6 are strongly affected as they are closest to the centre of the main lobe.
As there is no frequency sampling point at the peak of the main lobe, this is not seen.
The full height of the main lobe is not seen making the sinusoid look lower in magnitude than it
really is.

When the sampled sinusoid is of relative frequency 0.4 π , the effect of the rectangular window is
no longer seen because the sampling points happen to coincide exactly with the zero crossings of
the sincs function.(Fig A). Now the full height of the main lobe is seen (amplitude 10). This
always occurs when the frequency of the cosine wave coincides exactly with a frequency
sampling point.

The difference between Figs A and B is undesirable for estimating the amplitudes of signals,
especially sinusoids.

The solution is to use non-rectangular window functions such as the Hann window defined for
0 ≤ n < N as follows:
EE3271 Jan03 Exam Solutions 11 11/11/04 BMGC

0.5 - 0.5 cos((2n + 1) / N) : 0≤n< N


w[n] = 
 0 : otherwise
1
w[n]

0 .9

0 .8

0 .7

0 .6

0 .5
H a n n w in d o w
0 .4

0 .3

0 .2

0 .1
n
0
0 2 4 6 8 10 12 14 16 18 20

The DTFT of a 20th order Hann window compared with 20th order rectangular:-

25
W(exp(jw))

20 Rect
R2
15 R3
Hann

10

Radians/sample
5

0
-3.14 -2.355 -1.57 -0.785 0 0.785 1.57 2.355 3.14
-5

Hann window order 20 compared with rectangular.

In the frequency-domain, there is


(i) a broader main-lobe whose width is approximately doubled as compared with the main
lobe obtained with a rectangular window of the same order,
(ii) reduced side-lobe levels, and
(iii) a maximum error of 15%.
Hence, when analysing a sine wave, at least 3 points will be strongly affected even when the
sine-wave frequency coincides with a sampling point. The result is a loss of spectral resolution,
but also a reduction in estimation error due to the frequency sampling effect.

Potrebbero piacerti anche