DSP Using ARM
DSP Using ARM
DSP Using ARM
1
Discrete-Time Linear Time Invariant System
2
Classification of Signals
3
Continuous-Time vs. Discrete-Time
4
Converting from Continuous to Discrete Time
A discrete-time signal may be formed by sampling a continuous-time signal
x(nT)
x(t) x(t)
T
0
kT (k+1)T (k+2)T t
x(t) nT x(n)
sampler quantiser
5
Periodic vs. Aperiodic Signals
A continuous -time signal x(t) is periodic if and only if
The smallest positive value of T for which this is the case is the period of the signal
x ( n) x ( n N ) for all n.
6
Deterministic vs. Random Signals
7
Power vs. Energy Signals
The energy in signal x(t) If x(t) is the current (measured in amps) flowing
T
in a resistor of value 1 ohm then E is the total
E Lim (t )dt
2
x
T
T energy (measured in joules) dissipated in that
resistor (over all time) and P is the average
The average power in signal x(t)
T
power (measured in watts).
1
P Lim (t )dt
2
x
T 2T
T
If average power P is finite and non-zero then E will be infinite and x(t) is described
as a power signal.
8
Impulse (Delta or Dirac) Function
For continuous-time systems
(t ) 0, t 0
(t )dt 1
1, n 0
d ( n)
0, n 0
d ( n) 1
9
Unit Step Function
For continuous-time systems
1, t 0
u (t )
0, t 0
u ( ) (t )dt
1, n 0
u ( n)
0, n 0
k
u ( k ) d ( n)
10
Sinusoid Function
For continuous-time systems
x(t ) sin( t )
x(n) sin( n T )
Sinusoidal signals pass through (any) linear time-invariant system with no change
to their shape.
11
Complex Exponential Function
For continuous-time systems Im
Asin(ωt)
x(t ) Ae j t rotating vector ωt
Acos(ωt) Re
For discrete-time systems
x(n) Ae jn T
12
Euler’s Formula
1 j t j t
cos( t ) (e e )
2
1 j t j t
sin( t ) (e e )
2j
j t
e cos( t ) j sin( t )
13
Sampling and Reconstruction
14
Digital to Analogue Conversion Using a Zero-Order Hold
y ( n) y ( nT )
0 T t
y(nT) h(t) y(t) = y(nT) * h(t)
t t t
T
A linear time invariant system is characterised by its impulse response h(t) or h(n).
Its output y(t) is formed by convolution of input signal x(t) and system impulse
Response h(t).
y (t ) x( )h(t )d y ( n) x ( k ) h( n k )
k
16
Discrete Time Convolution
d(n) h(n)
d(n) LTI y(n)
system
-1 0 1 2 3 n -1 0 1 2 3 n
Delta sequence Impulse response
17
Convolution
Each weighted impulse at the system input results in a weighted impulse response
at the system output.
18
output signal y(n) comprises
Convolution response to x(0) sum of responses
0 1 2 3 4 5 n
0 1 2 3 4 5 n
19
Convolution
A more practical and useful approach is to consider convolution from the point of
view of the output signal
N
y ( n) x ( k ) h( n k )
k 0
20
Convolution
Single cycle MAC and Harvard architecture are suited to its efficient computation.
21
Properties of Convolution
22
Correlation
Rxy ( p) x ( m) y ( m p )
m
p
23
Correlation
Sum of products
Rxy ( p) x ( m) y ( m p )
m
p
24
Correlation vs. Convolution
Convolution describes the relationships between input signal, output signal and
impulse response in a LTI system.
25