Digital Signal Processing
Digital Signal Processing
Digital Signal Processing
𝑋 𝑧 =𝑍 𝑥 𝑛 = 𝑥 𝑛 𝑧 −𝑛
𝑛=0
where 𝑍 denotes the 𝑧 –transform and 𝑧 is given by
𝑧 = 𝑒 𝜎𝑇 𝑒 𝑗𝜔𝑇 = 𝑒 𝜎+𝑗𝜔 𝑇 = 𝑒 𝑠𝑇
• Hence,
𝑧 −1 = 𝑒 −𝑠𝑇
where 𝑇 represents the sample period
• Furthermore, the polar coordinates of a point 𝑋 𝑟, Φ in 𝑧 – space are given by
𝑟 = 𝑧 = 𝑒 𝑠𝑇
Φ = arg 𝑧 = 𝜔𝑇
ln 𝑟
𝜎=
𝑇
2. 𝑧 -Transform and its relationship to the
Laplace Transform
• Furthermore, using
𝑧 −1 = 𝑒 −𝑠𝑇
It can be shown that
2 1 − 𝑧 −1
𝑠=
𝑇 1 + 𝑧 −1
.
E 6.25 (3.75) 23.562 −3𝜋/4
. .
𝑗
B
C A
. 𝜔𝑇
E . −𝑗
2. 𝑧 -Transform and its relationship to the
Laplace Transform
• We know that the highest frequency that can be represented by a
𝑓
signal sampled at 𝑓 Hz is Hz
2
𝑋 𝑧 = 𝑥 𝑛 𝑧 −𝑛 = 𝑥 0 𝑧 0 + 𝑥 1 𝑧 −1 + 𝑥 2 𝑧 −2 + 𝑥 3 𝑧 −3 + 𝑥 4 𝑧 −4
𝑛=0
• This gives
𝑋 𝑧 = 5 − 2𝑧 −1 + 3𝑧 −2 + 7𝑧 −3 − 𝑧 −4
• An observation is that 𝑧 is essential a time shift operator
• Multiplication by 𝑧 advances a signal point by one sample interval, and multiplication
by 𝑧 −1 delays it by the same amount
• There is a very simple way to demonstrate the time-shifting property of the 𝑧-
transform; simply apply it to an impulse function and a delayed impulse function
Example 2
• Find the 𝑧-transforms of the following:
a. The impulse function 𝛿 𝑛
b. The weighted, delayed impulse function 𝐴𝛿 𝑛 − 3
4. Digital Filters, Diagrams and the 𝑧-transfer
function
• There are two main kinds of linear digital filter that operate in the time
domain; the Finite Impulse Response (FIR) and the Infinite Impulse
Response (IIR)
• There are only ever three operations that a processor uses to execute
them: time shift, multiplication and addition
• Because these three operations are of such pivotal importance not just to
digital filters but to whole of DSP in general, all real-time DSP devices are
designed to execute them as fast as possible
4. Digital Filters, Diagrams and the 𝑧-transfer
function
• A digital filter may be represented as an equation, sometimes called a
difference formula
• Filter block diagrams, as they are called portray the three key
operations of digital filters as shown in the next slide
4. Digital Filters, Diagrams and the 𝑧-transfer
function
• A square enclosing the symbol 𝑧 −1 (or sometimes 𝑇) denotes that a delay operation is applied to
the incoming signal
𝑧 −1
• A triangle enclosing a symbol or number indicates that the incoming signal is multiplied by this
term or value
ℎ𝑛
∑
4. Digital Filters, Diagrams and the 𝑧-transfer
function
• Example of digital filter: (a) FIR (b) Typical IIR filter block diagrams
(a) (b)
Exercise 3
• Draw an FIR filter as follows:
3
𝑦 𝑛 = ℎ 𝑘 𝑥 𝑛−𝑘
𝑘=0
4. Digital Filters, Diagrams and the 𝑧-transfer
function
• The non-recursive FIR discrete-time equation is given by
𝑀−1
𝑦 𝑛 = ℎ 𝑘 𝑥 𝑛−𝑘
𝑘=0
• The equation above shows that the impulse response is time limited, i.e. it
comprises 𝑀 coefficients, or taps
• In contrasts, the IIR version involves a feedback structure and is therefore given
by
∞ 𝑀 𝑁
𝐻 𝑧 = ℎ 𝑛 𝑧 −𝑛 = ℎ 0 + ℎ 1 𝑧 −1 + ⋯ + ℎ 𝑀 − 1 𝑧 − 𝑀−1
𝑛=0
• In contrast, the transfer function of an IIR filter involves the ratio of two
polynomials:
𝑎 0 + 𝑎 1 𝑧 −1 + ⋯ + 𝑎 𝑚 𝑧 −𝑚 ∑𝑀𝑚=0 𝑎 𝑚 𝑧 −𝑚
𝐻 𝑧 = =
−1
1 +𝑏 1 𝑧 + ⋯+ 𝑏 𝑛 𝑧 −𝑛 1 + ∑𝑁𝑛=1 𝑏 𝑛 𝑧 −𝑛
• So finally, we have
𝑌 𝑧 𝑎 0 + 𝑎 1 𝑧 −1 + 𝑎 2 𝑧 −2
𝐻 𝑧 = =
𝑋 𝑧 1 + 𝑏 1 𝑧 −1 + 𝑏 2 𝑧 −2 + 𝑏 3 𝑧 −3
∑2𝑚=0 𝑎 𝑚 𝑧 −𝑚
=
1 + ∑3𝑛=1 𝑏 𝑛 𝑧 −𝑛