Digital Signal
Digital Signal
A signal is defined as any physical quantity that varies with time, space or
another independent variable.
A system is defined as a physical device that performs an operation on a signal.
System is characterized by the type of operation that performs on the signal.
Such operations are referred to as signal processing.
Advantages of DSP
1. A digital programmable system allows flexibility in reconfiguring the digital
signal processing operations by changing the program. In analog redesign of
hardware is required.
2. In digital accuracy depends on word length, floating Vs fixed point arithmetic
etc.In analog depends on components.
3. Can be stored on disk.
4. It is very difficult to perform precise mathematical operations on signals in
analog form but these operations can be routinely implemented on a digital
computer using software.
5. Cheaper to implement.
6. Small size.
7. Several filters need several boards in analog, whereas in digital same DSP
processor is used for many filters.
Disadvantages of DSP
1. When analog signal is changing very fast, it is difficult to convert digital form
(beyond 100KHz range)
2. w=1/2 Sampling rate.
3. Finite word length problems.
4. When the signal is weak, within a few tenths of millivolts, we cannot amplify
the signal after it is digitized.
5. DSP hardware is more expensive than general purpose microprocessors & micro
controllers.
6. Dedicated DSP can do better than general purpose DSP.
Applications of DSP
1. Filtering.
2. Speech synthesis in which white noise (all frequency components present to the
same level) is filtered on a selective frequency basis in order to get an audio signal.
3. Speech compression and expansion for use in radio voice communication.
4. Speech recognition.
5. Signal analysis.
6. Image processing: filtering, edge effects, enhancement.
7. PCM used in telephone communication.
8. High speed MODEM data communication using pulse modulation systems such
as FSK, QAM etc. MODEM transmits high speed (1200-19200 bits per second)
over a band limited (3-4 KHz) analog telephone wire line.
9. Wave form generation.
SIGNAL
A signal is a function of one or more independently variables that usually
represent time and/ or space, A signal contains some kind of information that can
be conveyed, displayed, or manipulated.
A. SYSTEM
Application
1. Communication system
2. Control system
3. Microelectromechanical system
4. Remote sensing
5. Biomedical signal processing
6. Auditory system
Four Types Of Data:
Advantages of digitization
1. Flexibility- you can use digital signals to different platforms. For example,
you can transfer and use your data from one computer to another
computer.
2. Repeatability – easy to retrieve information
1. Sampling
– is the acquisition of a continuous signal at discrete time intervals.
2. Quantizing
3. Coding
NYQUIST THEOREM
-It provides a prescription for the nominal sampling interval required to avoid
aliasing. The sampling frequency could be at least twice the highest frequency
contained in the signal
fs≥2fc
where in:
fs is the sampling frequency (unit : time/space) and fc is the highest frequency
contained in the signal.
CLASSIFICATION OF SIGNALS
–a signal x(t) is said to be continuous time signal if it is defined for all time t.
Even Signals
- x(-t)=x(t) for all t
- symmetric about the vertical axis
Odd Signals
Deterministic Signal
Random Signal
3. Sequence representation
Many signals that possess infinite energy, have a finite average power. The average
power of a discrete-time signal x ( n) is defined as
This operation may also be considered to be the product of two signals, x(n) and f
(n) = c.
DISCRETE-TIME SYSTEMS
Example.
An adder
An adder performs the addition of two signal sequences to form another (the sum)
sequence, which we denote as y(n).
A constant multiplier
This operation is depicted by Fig. below, and simply represents applying a scale
factor on the input x ( n ) .
A signal multiplier
Figure below illustrates the multiplication of two signal sequences to form another
(the product) sequence, denoted in the figure as y ( n ) .
Figure 4: Graphical representation of a signal mutiplier.
In contrast to the unit delay, a unit advance moves the input x( n ) ahead by one
sample in time to yield x(n + 1).
Using basic building blocks introduced above. Sketch the block diagram
representation of the discrete-time system described by the input-output
relation.
leads to the block diagram realization shown in Fig. b. Note that if we treat "the
system" from the "viewpoint" of an input-output or an external description.
Classification of Discrete-Time Systems
Static versus dynamic systems.
A discrete-time system is called static or memoryless if its output at any instant n
depends at most on the input sample at the same time, but not on past or future
samples of the input. In any other case, the system is said to be dynamic or to have
memory.
are both static or memoryless. On the other hand, the systems described by the
following input-output relations
implies that
for every input signal x ( n ) and every time shift k. In general, we can write the
output as
Now if this output y(n, k) = y(n - k), for all possible values of &, the system is time
invariant. On the other hand, if the output y(n, k ) # y(n - k), even for one value of
k, the system is time variant.
Example:
Determine if the systems shown in Fig. below are time invariant or time variant.
Solution
Now if the input is delayed by k units in time and applied to the system, it is clear
from the block diagram that the output will be
for any arbitrary input sequences xl(n) and xz(n), and any arbitrary constants a1
and a2.
Figure 7: Graphical representation of the superposition principle. T is linear if and
only if y(n)=y’(n).
Solution
(a) For two input sequences x1( n ) and a2(n), the corresponding outputs are
Example:
(f)
Stable versus unstable systems.
An arbitrary relaxed system is said to be bounded input-bounded output
(BIBO) stable if and only if every bounded input produces a bounded output.
The condition that the input sequence x(n) and the output sequence y(n) are
bounded is translated mathematically to mean that there exist some infinite
numbers, say MX and My , such that
[x(n)] ≤ MX ≤ ∞, [y(n)] ≤ My ≤ ∞,
For all values of n. If for some bounded input sequence x(n), the output is
unbounded (infinite). The system is classified as unstable.
Example:
Discrete-time systems can be interconnected to form larger systems. There are two
basic ways in which systems can be interconnected: in cascade (series) or in
parallel.
In the cascade interconnection the output of the first system is
Y1(n)=T1[x(n)]
In general, the order in which the operations T1 and T 2 are performed is important.
That is,
In the parallel interconnection, the output of the system ;T1; is y1( n ) and the
output of the system T2 is y2(n). Hence the output of the parallel interconnection
is
ANALYSIS OF DISCRETE-TIME LINEAR TIME-INVARIANT SYSTEMS
TECHNIQUES FOR THE ANALYSIS OF LINEAR SYSTEMS
There are two basic methods for analyzing the behavior or response of a
linear system to a given input signal. One method is based on the direct solution
of the input-output equation for the systems, which in general, has the form:
y(n)=F[y(n-1),y(n-z),...,y(n-N),x(n),x(n-1),...,x(n-M)]
where f [] denotes some function of the quantities in the brackets. Specifically, for
an LTI system, the general form of the input-output relationship is:
y(n)=− ∑𝑵 𝑴
𝒌=𝟏 𝒂𝒌 𝒚(𝒏 − 𝒌) + ∑𝒌=𝟎 𝒃𝒌 𝒙(𝒏 − 𝒌) ........1
where {Ak} and (Bk} are constant parameters that specify the system, and are
independent of an x(n) and y(n). The input-output relationship in (1) is called
difference equation.
The second method for analyzing the behavior of a linear system to a given
input signal is first to decompose or resolve the input signal into a sum of
elementary signals.
Now suppose that the signal x(n) is resolved into a weighted sum of elementary
signal components {Xk(n)} so that:
𝒙(𝒏) = ∑𝒌 𝑪𝒌 𝑿𝒌 (𝒏)
where {Ck) are the set of amplitudes (weighting coefficients) in the decomposition
of the signal x(n).
Now suppose that the response of the system to the elementary signal
component 𝑋𝑘 (𝑛) is 𝑦𝑘 (𝑛) . Thus
= ∑𝒌 𝑪𝒌 𝑿𝒌 (𝒏)
Suppose we have an arbitrary signal 𝑥(𝑛) that we wish to resolve into a sum
of unit sample sequences. We now select the elementary signal 𝑋𝑘 (𝑛) to be
𝑿𝒌 (𝒏) = 𝜹(𝒏 − 𝒌)
where k represents the delay of the unit sample sequences. If we multiply the two
sequences 𝑥(𝑛) and 𝛿(𝑛 − 𝑘), we have
𝒙(𝒏) = ∑∞
𝒌=−∞ 𝒙(𝒌)𝜹(𝒏 − 𝒌)
where the right-hand side of the equation gives the resolution or decomposition
of any arbitrary signal 𝑥(𝑛) into a weighted (scaled) sum of shifted unit sample
sequence.
Example:
Answer:
To determine the response of any relaxed linear system to any input signal, we
denote the response 𝑦(𝑛, 𝑘) of the system to the input unit sample sequence at
𝑛 = 𝑘 by the special symbol ℎ(𝑛, 𝑘), −∞ < 𝑘 < ∞. That is
In (A) we note that n is the time index and k is a parameter showing the
location of the input impulse. If the impulse at the input is scaled by an amount
𝐶𝑘 = 𝑥(𝑘), the response of the system is the correspondingly scaled output, that
is,
𝑪𝒌 𝒉(𝒏, 𝒌) = 𝒙(𝒌)𝒉(𝒏, 𝒌)
Now, if the input is the arbitrary signal 𝑥(𝑛) that is expressed as a sum of
weighted impulses, that is,
𝒙(𝒏) = ∑∞
𝒌=𝟎 𝒙(𝒌)𝜹(𝒏 − 𝒌)
then the response of the system to 𝑥(𝑛) is the corresponding sum of weighted
outputs, that is,
𝒚(𝒏) = 𝝉[∑∞
𝒌=−∞ 𝒙(𝒌)𝜹(𝒏 − 𝒌)]
= ∑∞
𝒌=−∞ 𝒙(𝒌)𝝉[𝜹(𝒏 − 𝒌)] (B)
= ∑∞
𝒌=−∞ 𝒙(𝒌)𝒉(𝒏, 𝒌)
Clearly, (B) follows from the superposition property of linear systems, and is
known as the superposition summation. Thus (B) applies to any relaxed linear
(time-variant) system.
If the system is time invariant, the formula in (B) simplifies considerably. In fact,
if the response of the LTI system to the unit sample sequence 𝛿(𝑛) is denoted as
ℎ(𝑛), that is
𝒉(𝒏) = 𝝉[𝜹(𝒏)]
then by the time-invariance property, the response of the system to the delayed
unit sample sequence 𝛿(𝑛 − 𝑘) is
𝒚 (𝒏) = ∑ ∞
𝒌=−∞ 𝒙(𝒌)𝒉(𝒏 − 𝒌) (C)
The formula in (C) that gives the response 𝑦(𝑛) of the LTI system as a function of
the input signal 𝑥(𝑛) and the unit sample (impulse) response ℎ(𝑛) is called a
convolution sum.
Suppose that we wish to complete the output of the system at same time instant,
say 𝑛 = 𝑛0 . According to (c), the response at 𝑛 = 𝑛0 is given as
𝒚(𝑵𝒐 ) = ∑∞
𝒌=−∞ 𝒙(𝒌)𝒉(𝑵𝒐 − 𝒌)
To summarize, the process of computing the convolution between 𝑥(𝑘) and
ℎ(𝑘) involves the following four step:
4. Summation. Sum all the values of the product sequence 𝑉𝑁𝑜 (𝑘) to obtain the
value of the output at the time 𝑛 = 𝑁𝑜
Examples:
Answer:
COMMUTATIVE LAW
ASSOCIATIVE LAW
Implications of the associative (a) and the associative and commutative (b)
properties of convolution.
DISTRIBUTIVE LAW
𝒙(𝒏) ∗ [𝒉𝟏 (𝒏) + 𝒉𝟐 (𝒏)] = 𝒙(𝒏) ∗ 𝒉𝟏 (𝒏) + 𝒙(𝒏) ∗ 𝒉𝟐 (𝒏)
𝒚 (𝒏𝒐 ) = ∑ ∞
𝒌=−∞ 𝒉(𝒌)𝒙(𝒏𝒐 − 𝒌)
= ∑∞ −𝟏
𝒌=𝟎 𝒉(𝒌)𝒙(𝒏𝒐 − 𝒌) + ∑𝒌=−∞ 𝒉(𝒌)𝒙(𝒏𝒐 − 𝒌)
Hence an LTI System is causal if an only if its impulse response is zero for
negative values of 𝑛 .Thus for a causal system, ℎ(𝑛) = 0 for 𝑛 < 0, we have
the two equivalent forms
𝒏
𝒚 (𝒏) = ∑ ∞
𝒌=𝟎 𝒉(𝒌)𝒙(𝒏 − 𝒌) = ∑𝒌=−∞ 𝒙𝟗𝒏)𝒉(𝒏 − 𝒌)
𝒚 (𝒏) = ∑ ∞
𝒌=−∞ 𝒉(𝒌)𝒙(𝒏 − 𝒌)
I 𝒚 (𝒏) I = I ∑ ∞
𝒌=−∞ 𝒉(𝒌)𝒙(𝒏 − 𝒌) I
Now, the absolute value of the sum of terms is always less than or equal
to the sum of the absolute values of the terms. Hence
I 𝒚 (𝒏) I ≤ ∑ ∞
𝒌=−∞|𝒉(𝒌)||𝒙(𝒏 − 𝒌)|
If the input is bounded, there exist a finite number Mx such that |𝑥(𝑛)| ≤
𝑀𝑥 .
|𝒚(𝒏)| ≤ 𝑴𝒙 ∑∞
𝒌=−∞|𝒉(𝒌)|
𝑺𝒏= ∑∞
𝒌=−∞|𝒉(𝒌)| < ∞
𝒚(𝒏) = ∑𝑴−𝟏
𝒌=𝟎 𝒏(𝒌)𝒙(𝒏 − 𝒌)
For this expression, the output at any time n is simply a weighted linear
combination of the input signal samples x(n), x(n-1),.....,x(n-M+1). FIR
system has a finite memory f length -M samples.
In contrast, an IIR linear time-invariant system has an infinite-duration
impulse response. Its output, based on the convolution formula, is
𝒚 (𝒏) = ∑ ∞
𝒌=𝟎 𝒉(𝒌)𝒙(𝒏 − 𝒌)
Examples:
1. If 𝑦(𝑛) = 𝑥(𝑛) ∗ ℎ(𝑛), show that ∑ 𝑦 = ∑ 𝑥 ∑ ℎ, where ∑ 𝑥 =
∑∞𝑛=−∞ 𝑥(𝑛).
Answer:
∑𝑛 𝑦(𝑛) = ∑𝑘 ℎ(𝑛) ∑ℎ 𝑥(𝑛)
2. Compute the convolution 𝑦(𝑛) = 𝑥(𝑛) ∗ ℎ(𝑛) of the following signals
and check the correctness of the results by using the test in (1).
1 2 4 5
Answer: 𝑥(𝑛) = {0, , , 1, , , 2}
3 3 3 3
↑
ℎ(𝑛) = {1,1,1,1,1}
↑
𝑦(𝑛) = 𝑥(𝑛) ∗ ℎ(𝑛)
1 10 20 11
={ , 1,2, , 5, , 6,5, , 2}
3 3 3 3
𝒓𝒙𝒚 (𝒍) = ∑∞
𝒏=−∞ 𝒙(𝒏)𝒚(𝒏 − 𝟏) , 𝒍 = 𝟎. ±𝟏, ±𝟐 …
or equivalently as,
𝒓𝒙𝒚 (𝒍) = ∑∞
𝒏=−∞ 𝒙(𝒏 + 𝟐)𝒚(𝒏) , 𝒍 = 𝟎. ±𝟏, ±𝟐 …
The index 𝑙 is the (time) shift (or lag) parameter and subscripts 𝑥𝑦 on
the cross correlation sequence 𝑟𝑥𝑦 (𝑙) indicate the sequence being
correlated.
Now if we reverse the order of the indices 𝑥𝑦, we obtain the cross
correlation sequence
𝒓𝒚𝒙 (𝒍) = ∑∞
𝒏=−∞ 𝒚(𝒏)𝒙(𝒏 − 𝒍)
or equivalently as,
𝒓𝒚𝒙 (𝒍) = ∑∞
𝒏=−∞ 𝒚(𝒏 + 𝟐)𝒙(𝒏)
Therefore, 𝑟𝑦𝑥 is simply the folded version of 𝑟𝑥𝑦 (𝑙) , where the folding
is done with respect to 𝑙 = 0. Hence, 𝑟𝑦𝑥 (𝑙) provides exactly the same
information as 𝑟𝑥𝑦 (𝑙), with respect to the similarity of 𝑥(𝑛) to 𝑦(𝑛).
For the special case where 𝑥(𝑛)= 𝑦(𝑛) we have the autocorrelation of
𝑥(𝑛), which is defined as the sequence
𝒓𝒙𝒙 (𝒍) = ∑∞
𝒏=−∞ 𝒙(𝒏)𝒙(𝒏 − 𝒍)
or equivalently as,
𝒓𝒙𝒙 (𝒍) = ∑∞
𝒏=−∞ 𝒙(𝒏 + 𝟐)𝒙(𝒏)
and
Examples:
Determine the autocorrelation sequence of the following signals.
a. 𝑥(𝑛) = {1,2,1,1}
↑
Answer: 𝑟𝑥𝑥 (𝑙) = {1,3,5,7,5,3,1}
↑
b. 𝑦(𝑛) = {1,1,2,1}
↑
Answer: 𝑟𝑥𝑥 (𝑙) = {1,3,5,7,5,3,1}
↑
THE 𝒁-TRANSFORM AND ITS APPLICATION TO THE ANALYSIS
OF LTI SYSTEMS
𝒙(𝒛) = ∑∞
𝒏=−∞ 𝒙(𝒏)𝒛
−𝒏
(1)