CSE 304-Digital Signal Processing: Dr. Amir A. Khan Office: A-218, SEECS 9085-2162 Amir - Ali@seecs - Edu.pk
CSE 304-Digital Signal Processing: Dr. Amir A. Khan Office: A-218, SEECS 9085-2162 Amir - Ali@seecs - Edu.pk
Lecture-2
Signal Processing
Input
signal
Signal
Processing
System
Output
signal
continuous-time signal
signal
discrete-time signal
signal
continuous-time signal
analog
analog output
system
system
discrete-time signal
discretediscretetime
time output
system
system
digital signal
digital signal
signal
Lecture-2
digital
digital output
system
system
Signal Processing
Input
signal
analog
signal
Signal
Processing
System
A/D
digital
signal
Output
signal
DSP
D/A
analog
signal
Lecture-2
Pros
Accuracy can be controlled
Repeatable
Sensitivity to electrical noise is minimal
Dynamic range can be controlled using floating point numbers
Flexibility can be achieved with software implementations
Non-linear and time-varying operations are easier to implement
Digital storage is cheap
Digital information can be encrypted for security
Price/performance and reduced time-to-market
Cons
Sampling causes loss of information
A/D and D/A requires mixed-signal hardware
Limited speed of processors
Quantization and round-off errors
Lecture-2
Obtained from periodic sampling of analog signals x[n] xa [nT ] (T=sampling interval)
Lecture-2
x[n] [n n0 ] x[n0 ] [n n0 ]
h[k ] [n k ] h[n]
Impulse Response
x[n] Ae j (0 2 ) n Ae j0 n e j 2n Ae j0 n
y[n]=T(x[n
])
Impulse Response ?
Moving Average
k M
1
y ( n)
x(n k )
M 1 M 2 1 k M
1
Lecture-2
MM
11
hh((nn))
((nnkk))
M
M1 M
M2 11kkMM1
1
11
hh((nn)) M
M11M
M2211
00
M
M11nnM
M22
otherwise
otherwise
Properties of Systems
1. Memory / Memoryless Systems
2. Causal / Non-causal Systems
3. Time Invariant /Variant System
4. Linear / Non-linear Systems
9
Lecture-2
Memory-less Systems
Memory Systems
n
x[k ]
y[n] x[n]
y[n]
y (t ) x(t )
y[n 1] x[n]
v(t ) i (t ) R
Accumulator
n 1
x[k ] x[n]
Average
Lecture-2
1
y[n] ( x[n 1] x[n] x[n 1])
3
y[n] 2 x[n]
1
w[n] x[n] y[n]
2
x[n]
y[n]
w[n]=
x[n]
Lecture-2
11
Dr. Amir / SEECS-NUST
x1 (t ) x 2 (t ) y1 (t ) y 2 (t )
Additivity
Homogenity
ax(t ) ay (t )
Linearity condition
ax1 (t ) bx 2 (t ) ay1 (t ) by 2 (t )
Examples
y (t ) x 2 (t ), Non Linear
Lecture-2
y(n)=T[x(n)]
x(n)
x(n-k)
TT[[]]
y(n)
x(n)
y(n-1)
x(n-1)
y(n-2)
x(n-2)
Lecture-2
y(n-k)
x(n)
xx((nn)) xx((kk))((nnkk))
k k
y ( n)
TT[[]]
Lecture-2
y(n)=T[x(n)]
yy((nn))TT xx((kk))((nnkk))
kk
Impulse response
with some shift
LTI-system CharacterizationConvolution
x(n)
Lecture-2
h(n)
h(n)
x(n)*h(n)
Convolution-Demonstration
Syste
m
Syste
m
Lecture-2
Convolution-Demonstration
Syste
m
y[n]=x[0]h[n-0]+x[3]h[n-3]+x[6]h[n-6]
y[n]
x[k ]h[n k ]
k
Syste
m
Lecture-2
hh11(n)
(n)
hh22(n)
(n)
y(n)
x(n)
hh22(n)
(n)
hh11(n)
(n)
y(n)
x(n)
hh11(n)*h
(n)*h22(n)
(n)
y(n)
These
These systems
systems are
are identical.
identical.
Lecture-2
x(n)
y(n)
hh22(n)
(n)
x(n)
hh11(n)+h
(n)+h22(n)
(n)
y(n)
These
These two
two systems
systems are
are identical.
identical.
Lecture-2
y[n] 2 x[n]
y[n] x[n] x[n 1]
A causal system whose impulse response h(n) satisfies
hh((nn)) 00 for
for nn 00
x[n] B
y[n]
x[k ]h[n k ]
h[k ]x[n k ]
y[n]
y[n]
h[k ]
x[n k ]
y[n] B
h[k ]
Lecture-2
y[n] B
h[k ]
h[k ]
For an LTI system to be stable, the condition is thus that its impulse
response is absolutely summable
Think about Finite Impulse Response (FIR) and Infinite Impulse
response (IIR) systems from stability perspective
FIR systems are always stable
Lecture-2