Professional Documents
Culture Documents
DSP Slide I
DSP Slide I
DSP Slide I
A signal is defined as any physical quantity that varies with one or more independent
variables.Eg. ECG, EEG, ac power, seismic, speech
•ASP (Analog signal Processing) : If the input signal given to the system is analog then
system does analog signal processing. Eg. Resistor, capacitor or Inductor, OP-AMP etc.
ANALOG
Analog SYSTEM Analog
input output
DSP (Digital signal Processing)
If the input signal given to the system is digital then system does digital signal processing.
Ex Digital Computer, Digital Logic Circuits etc. The devices called as ADC (analog to
digital Converter) converts Analog signal into digital and DAC (Digital to Analog
Converter) does vice-versa.
Analog Analog
ADC DSP DAC output
input
➢ Digital signal can be stored on digital hard disk, floppy disk or magnetic
tapes. Hence becomes transportable.
➢ Digital processing can be done offline.
➢ Digital signal processing systems are upgradeable since they are software
controlled.
➢ Consumer Electronics (flat screen TVs, television sets, MP3 players, video
recorders, DVD players, radio receivers, etc.)
➢ Seismology (geophysical exploration such as oil ,gas ,nuclear and earth quake)
Sampling
Sampling is the processes of converting continuous-time analog signal, xa(t),
into a discrete-time signal by taking the “samples” at discrete-time intervals
Types of sampling
▪ Ideal Sampling
▪ Natural Sampling
▪ Flat-Top Sampling
Flat-Top Sampling
Natural Sampling
Ideal Sampling
Ideal Sampling
𝛿𝑇𝑠 (𝑓) = 𝑓𝑠 σ∞
𝑛=−∞ 𝛿(𝑓 − 𝑛𝑓𝑠 )
𝑋𝑠 (𝑓) = 𝑓𝑠 σ∞
𝑛=−∞ 𝑋(𝑓 − 𝑛𝑓𝑠 )
◼ This means that the output is simply the replication of the original signal at
discrete intervals.
Summary of Impulse Sampling
fs = 2fm
𝑋𝑠 (𝑓) = 𝑓𝑠 σ∞
𝑛=−∞ 𝑋(𝑓 − 𝑛𝑓𝑠 )
◼ Sampling Theorem: A finite energy function x(t) can be completely
reconstructed from its sampled value x(nTs) with
𝑥(𝑡) = σ∞
𝑛=−∞ 𝑥 𝑛𝑇𝑠 sincfs(t-nTs)
1 1
provided that => = Ts
fs 2 fm
“If a signal is sampled at a rate at least, but not exactly equal to twice the
max frequency component of the waveform, then the waveform can be
exactly reconstructed from the samples without any distortion”
f s 2 f max
Aliasing
fs > 2fm
t − nTs
x p (t ) =
n =−
Natural Sampling
𝑐𝑛 = 𝐴𝑓𝑠 𝑠𝑖𝑛𝑐(𝑛𝑓𝑠 𝜏)
𝑛=−∞
▪ The pulse is held to a constant height for the whole sample period
▪ This technique is used to realize Sample-and-Hold (S/H) operation
In S/H, input signal is continuously sampled and then the value is held
for as long as it takes to for the A/D to acquire its value
x '(t ) = x(t ) (t )
xs (t ) = x '(t ) * p(t )
= p(t ) * x(t ) (t ) = p(t ) * x(t ) (t − nTs )
n =−
X s ( f ) = [ xs (t )] = P( f ) x(t ) (t − nTs )
n =−
1
= P( f )
Ts
X ( f − nf )
n =−
s 𝑝 𝑓 = 𝐴𝜏𝑠𝑖𝑛𝑐(𝑓𝜏)𝑒 −𝑗𝜋𝑓𝜏
▪ One way of recovering the original signal from sampled signal Xs(f) is to
pass it through a Low Pass Filter (LPF) as shown below
◼ If fs > 2B then we recover x(t) exactly
◼ Else we run into some problems and signal
is not fully recovered
Dynamic range
Step size ∆
Let Δ=q
q q
Error of a uniform quantizer is bounded by − e
2 2
▪ Graphical representation
▪ Functional representation
▪ Tabular representation
▪ Sequence representation
Consider a signal x(n) with values
x (-2) = 3, x (-1) = 2, x (0) = 0, x (1) = 3, x (2) = 1 and x (3) = 2
Tabular representation
Sequence representation
Homogeneity a system which produces an output y(n) for an input x(n) must
produce an output ay(n) for an input ax(n).
Superposition a system which produces an output y1(n) for an input x1(n) and an
output y2(n) for an input x2(n) must produce an output y1(n) + y2(n)
for an input x1(n) + x2(n).
If
then
✓ Causal systems are real time systems. They are physically realizable.
✓ Graphical Method
✓ Using equation of convolution
✓ Tabulation method
Graphical Method
There are four basic steps to the calculation:
Example: Determine the output of x[n] = {1,2,3} input to the system described
by h[n] = {-1,2,2}
The output y[n] = [ -1, -2+2, -3+4+2, 6+4, 6]= [-1, 0, 3, 10, 6]