Doc11 B14 Dspcourse l1
Doc11 B14 Dspcourse l1
DESIGN
B3 Option – 8 lectures
Michaelmas Term 2003
Stephen Roberts
Recommended texts
Analogue filters
Paul Horowitz, Winfield Hill. The art of electronics. 2nd Ed. Cambridge
University Press. Especially useful for getting a feel for the issues in ana-
logue design.
Oppenheim, Willsky & Nawab. Signals and Systems, 2nd Ed. Prentice Hall.
1
Lecture 1 - Introduction
1.1 Introduction
Signal processing is the treatment of signals (information-bearing waveforms or
data) so as to extract the wanted information, removing unwanted signals and
noise. The two applications mentioned below are familiar to me, but I could have
equally well chosen applications as diverse as the analysis of seismic waveforms
or the recording of moving rotor blade pressures and heat transfer rates.
2
Speaker verification and identification.
0.1 mV
1s
Figure 1.1: A typical section of EEG signal. The large positive spikes are artifacts
caused by eye movements.
3
1.1.2 Analogue vs. Digital Signal Processing
Most of the signal processing techniques mentioned above could be used to pro-
cess the original analogue (continuous-time) signals or their digital version (the
signals are sampled in order to convert them to sequences of numbers). For
example, the earliest type of “voice coder” developed was the channel vocoder
which consists mainly of a bank of band-pass filters. More recent versions of this
vocoder use digital (rather than analogue) filtering, although this does not result
directly in any improvement in performance; however, one advantage of the digi-
tal implementation is that it can be “re-configured” as another type of vocoder (for
example, the linear prediction vocoder); it is also much easier to encrypt digital
rather than analogue data, for applications where communication must remain se-
cure. The trend is, therefore, towards digital signal processing systems; even the
well-established radio receiver has come under threat. The other great advantage
of digital signal processing lies in the ease with which non-linear processing may
be performed. Almost all recent developments in modern signal processing are in
the digital domain. This lecture course concentrates on the basics though.
It is, however, important not to neglect analogue signal processing and some
of the reasons for this should become clear during the course. On a more practical
point, you will have noted that filters are the main topic of this course, and a thor-
ough grounding in the design of analogue filters is a pre-requisite to understanding
much of the underlying theory of digital filtering.
Notes
If we represent an input signal by some support in a frequency domain,
(i.e. the set of frequencies present in the input) then no new frequency
support will be required to model the output, i.e.
!#"%$'&(
4
Linear systems can be broken down into simpler sub-systems which can be
re-arranged in any order, i.e.
1.1.7 Causality
In a causal (or realisable) system, the present output signal depends only upon
present and previous values of the input. (Although all practical engineering sys-
tems are necessarily causal, there are several important systems which are non-
causal (non-realisable), e.g. the ideal digital differentiator.)
1.1.8 Stability
A stable system (over a finite interval A ) is one which produces a bounded output
in response to a bounded input (over A ).
5
filtering. Each of these can be represented by a linear time-invariant “block” with
an input-output characteristic which can be defined by:
The transfer function in a frequency domain. We will see that the choice of
frequency basis may be subtly different from time to time.
As we will see, there is (for the systems we examine in this course) an in-
vertable mapping between the time and frequency domain representations.
0.4 0.25
0.2
0.3
0.15
0.2
0.1
0.1
0.05
0 0
0 2 4 6 0 20 40 60 80 100
components total
0.1 0.25
0.08 0.2
0.06 0.15
0.04 0.1
0.02 0.05
0 0
0 20 40 60 80 100 0 20 40 60 80 100
6
The output at time , , is obtained simply by adding the effect of each
separate impulse function – this gives rise to the convolution integral:
%F OQP
7CEDFHG;I)KJ LJ,M-J IN ),+ ( R PS ;
')TJ :-BJ ULJ
J is a dummy variable which represents time measured “back into the past” from
the instant at which the output is to be calculated.
1.3.1 Notes
Convolution is commutative. Thus:
7
Step response The step function is the time integral of an impulse. As
integration (and differentiation) are linear operations, so the order of appli-
cation in a LTI system does not matter:
k
l),+ RmL2)B+8-B 2),+ step response
k
l),+8- 2),+ RnLl),+ step response
s
w{yrt7CEuxyrt yr
where uxyrt can be expressed as a pole-zero representation of the form:
#r})H~0B#r!)W~Q
uv#rteC
|
yr)*B #r})*X%B#r})
(NB: The inverse transformation, ie. obtaining from w?#rt , is not a
straightforward mathematical operation.)
8
The Fourier transform:
s
2/),+ Frequency response uv2 wv2
where,
s $
a0:
_2'CfRVS ; p L Fourier transform of ;
a
S
and
s
wx27C3uv2 2
The output time function can be obtained by taking the inverse Fourier trans-
form:
$
IC R S x :
w 2 p L
a
S
1.4.1 Relationship between time & frequency domains
Theorem
If -B is the impulse response of an LTI system, uv2 , the Fourier transform of
-B , is the frequency response of the system.
Proof
Consider an input ; C e to an LTI system. Let -B be the impulse
|
response, with a Fourier transform ux_2 .
$ %F $ %F
.
a 0
a :
.
a B- JX LJ
C| R(P S p B- J LJ| RVP S p
$ F $ F F
0
a :
0
a
:
C | p R S B- J p LJ | p R S -BJX p N
a a
S S
9
(lower limit of integration can be changed from to ) since -J !C for
2( )
$ $
: a0
C | G p ux_2Bp uvU)/2%M
Let uv27Cp
U ie. C¡¢uv2t¡¤£ ¥{CE¦ - G uv2%M
$_¨ $_¨
§ a0§
Then 7C | Gp p
eBV¥, MCE
|
i.e. an input sinusoid has its amplitude scaled by ¡¢uv2t¡ and its phase changed
by arg G uv2M , where ux_2 is the Fourier transform of the impulse response
-B .
Theorem
Convolution in the time domain is equivalent to multiplication in the frequency
domain i.e.
7C©- hª2; e1 a G wx27CEuv2 s 2%M
and
7C«-B hª/; e1E¬ a G wx#rteC3uv#rt s #rt%M
Proof
` (Laplace) transform
Consider the general integral ` of a shifted function:
$
` a
R $ F I)TJX p q L
¬!G h)WJ M C
C p a q ¬>G %M
`
Now consider the Laplace transform of the` convolution integral
$
¬!G ª/-B M C R $ R F ')WJX-BJX` LJXp a q L
F
F a `
C R -BJX p q LJ®¬!G M
C ¬>G-B %Mt¬>G %M
By allowing r+¯ we prove the result for the Fourier transform as well.
10