DSP M1
DSP M1
Unit - 1
When the signal is the superposition (ie sum) of two or more complex
exponentials of different amplitudes and phases, we just add them in the
plot and place them appropriately in frequency. So for example a
sinusoidal signal, as
Orthogonality
Basis Function
basic function
• is an orthonormal set
•
Example
Key takeaway
a0y[n]+ay[n-1]+….+aN-1y[n-N+1]+any[n-N]=b0x[n]+b1x[n-1]+….+bMx[n-
M]
y[n] = { - }
Homogeneous Solution:
Let x[n]=0
=0
Key takeaway
Examples
Que) Find the homogenous solution for the difference equation y[n]- y[n-
1]+ y[n-2]=1+3-n. Given y[-2] = 0 and y[-1]=2
Y[n] = rn
rn-2(r2- r+ ) = 0
r= and r=1
y[n] = p1 + p2
y[n] = p12-n +
Particular Solution:
1) A constant k
(2) A Mn KMn
(5)
k1 cos ω0n + k sin ω0n
The complete solution of any difference equation is the sum of
homogeneous solution and the particular solution.
Que) For the difference equation find the particular solution x[n] = 3n
Sol: As x[n] = 3n
9k- k+ k = 9
k= 27/20
y[n]= 3n
2. Multi-rate sampling
Figure below shows the structure and operation of a finite pulse width sampler,
where 2(a) represents the basic block diagram and 2(b) illustrates the function of
the same. T is the sampling period and p is the sample duration.
The block diagram of sampler is shown above, having a pulse train of p seconds
and sampling period of T seconds.
p(t)=
p(t)=
= 2π/T
C n=
p(t)=1 for 0≤ t ≤p
f*(t)=
F*(s)=
C n=
Reconstruction process
The first or higher order holds have no advantage over the ZOH. In the first order
hold the last two signal samples are used to reconstruct the signal for the current
sampling period.
Aliasing
Key takeaway
We can simply avoid aliasing by sampling the signal at a higher rate than the
Nyquist rate (Fs>Fm). Or, we can use anti-aliasing filters. These are special low-
pass filters that are usually found in the initial stages of any digital signal
processing operation. The anti-aliasing filters attenuate the unnecessary high-
frequency components of a signal. They band-limit the input signal by removing
all frequencies higher than the signal frequencies.
Examples
Solution:
We know,
X[n] =x(nT)
= cos(200πnT)
2) Determine the Nyquist frequency and Nyquist rate for the continuous-time signal
x(t) which has the form of X(t) = 1+ sin(2000πt) + cos (4000πt)
Solution:
The Nyquist frequency is 4000π rad/s and the Nyquist rate is 8000π rad/s.
Solution.
Solution.
Solution. a.
d. For
the sampling rate
Solution:
Taking T= 1/1000s
Ø1 = 250π
Ø2n/1000)
Ø2 = 2250π
Sampling theorem
In sampling the signal m(t) is multiplied with periodic pulse train. Let M(ω) the
spectrum of the input signal be band limited with the maximum frequency of fm as
shown in figure 4.
The frequency spectrum of this signal when impulse sampled is plotted in figure 5
(for fs>2 fm). In figure 6 for (fs<2 fm). From figure 5 and figure 6 we can conclude
that as long as fs≥2fm the original signal is preserved in the sampled signal and can
be extracted from it by the low pass filter. This is known as Shannon’s Sampling
theorem. This theorem states that the information contained in a signal is fully
preserved in the sampled form as long as the sampling frequency is at least twice
the maximum frequency contained in the signal.
Nyquist rate
The following figure indicates a continuous-time signal x (t) and a sampled
signal xs (t). When x (t) is multiplied by a periodic impulse train, the sampled
signal xs (t) is obtained.
Sampling Rate
To discretize the signals, the gap between the samples should be fixed. That gap
can be termed as a sampling period Ts.
Sampling Frequency=1/Ts=fs
Where:
Nyquist Rate
Suppose that a signal is band-limited with no frequency components higher
than W Hertz. That means, W is the highest frequency. For such a signal, for
effective reproduction of the original signal, the sampling rate should be twice the
highest frequency.
Which means,
fS=2W
Where:
Key takeaway
References:
DSP
Unit - 1
When the signal is the superposition (ie sum) of two or more complex
exponentials of different amplitudes and phases, we just add them in the
plot and place them appropriately in frequency. So for example a
sinusoidal signal, as
Orthogonality
Let us consider a set of n mutually orthogonal functions x 1(t), x2(t)... xn(t)
over the interval t1 to t2. As these functions are orthogonal to each other,
any two signals xj(t), xk(t) have to satisfy the orthogonality condition. i.e.
Where,
Basis Function
basic function
Example
Solution:
Key takeaway
a0y[n]+ay[n-1]+….+aN-1y[n-N+1]+any[n-N]=b0x[n]+b1x[n-1]+….+bMx[n-
M]
y[n] = { - }
Homogeneous Solution:
Let x[n]=0
=0
Key takeaway
1. Then solution will be of the form
2. y[n] = p1 + p2 + p3 +……+ pn (For distinct roots)
3. y[n]= p1n + p2 + p3 +……+pm+1 +…….+ pnrN (For
multiple roots)
Examples
Que) Find the homogenous solution for the difference equation y[n]- y[n-
1]+ y[n-2]=1+3-n. Given y[-2] = 0 and y[-1]=2
Y[n] = rn
rn-2(r2- r+ ) = 0
r= and r=1
y[n] = p1 + p2
y[n] = p12-n +
Particular Solution:
1) A constant k
(2) A Mn KMn
(5)
k1 cos ω0n + k sin ω0n
Que) For the difference equation find the particular solution x[n] = 3n
Sol: As x[n] = 3n
9k- k+ k = 9
k= 27/20
y[n]= 3n
1.3 Sampling and reconstruction of signals- aliasing
2. Multi-rate sampling
Figure below shows the structure and operation of a finite pulse width sampler,
where 2(a) represents the basic block diagram and 2(b) illustrates the function of
the same. T is the sampling period and p is the sample duration.
p(t)=
p(t)=
= 2π/T
C n=
p(t)=1 for 0≤ t ≤p
f*(t)=
F*(s)=
C n=
Reconstruction process
Fig 3 Sampled Data
The basic sampler is shown in above figure (a) and output in figure (b). The high
frequency signal present in the reconstructed signal is filtered by the controller
elements which are the low pass in frequency behaviour.
The first or higher order holds have no advantage over the ZOH. In the first order
hold the last two signal samples are used to reconstruct the signal for the current
sampling period.
Aliasing
Key takeaway
We can simply avoid aliasing by sampling the signal at a higher rate than the
Nyquist rate (Fs>Fm). Or, we can use anti-aliasing filters. These are special low-
pass filters that are usually found in the initial stages of any digital signal
processing operation. The anti-aliasing filters attenuate the unnecessary high-
frequency components of a signal. They band-limit the input signal by removing
all frequencies higher than the signal frequencies.
Examples
1) The continuous-time signal x(t) = cos(200πt) is used as the input for a CD
converter with the sampling period 1/300 sec. Determine the resultant discrete-
time signal x[n].
Solution:
We know,
X[n] =x(nT)
= cos(200πnT)
2) Determine the Nyquist frequency and Nyquist rate for the continuous-time signal
x(t) which has the form of X(t) = 1+ sin(2000πt) + cos (4000πt)
Solution:
The Nyquist frequency is 4000π rad/s and the Nyquist rate is 8000π rad/s.
Solution.
Solution.
• For
Solution. a.
Solution:
Taking T= 1/1000s
Ø1 = 250π
Ø2n/1000)
Ø2 = 2250π
Sampling theorem
In sampling the signal m(t) is multiplied with periodic pulse train. Let M(ω) the
spectrum of the input signal be band limited with the maximum frequency of fm as
shown in figure 4.
The frequency spectrum of this signal when impulse sampled is plotted in figure 5
(for fs>2 fm). In figure 6 for (fs<2 fm). From figure 5 and figure 6 we can conclude
that as long as fs≥2fm the original signal is preserved in the sampled signal and can
be extracted from it by the low pass filter. This is known as Shannon’s Sampling
theorem. This theorem states that the information contained in a signal is fully
preserved in the sampled form as long as the sampling frequency is at least twice
the maximum frequency contained in the signal.
Nyquist rate
Sampling Rate
To discretize the signals, the gap between the samples should be fixed. That gap
can be termed as a sampling period Ts.
Sampling Frequency=1/Ts=fs
Where:
Nyquist Rate
Which means,
fS=2W
Where:
Key takeaway
References: