Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

Digital Signal Processing - UNIT 1

Download as pdf or txt
Download as pdf or txt
You are on page 1of 18

UNIT I DISCRETE TIME SIGNALS AND SYSTEMS

Need and benefits of Digital Signal Processing - Classification of systems: Continuous,


discrete,linear, causal, stable, dynamic, recursive, time variance - classification of
signals: continuous and discrete, energy and power - mathematical representation of
signals - Typical signal processing operations: convolution, correlation and
transformation - Analog to Digital conversion of signals - sampling, signal
reconstruction, signal quantization and encoding.

Signal:

A Signal is defined as any physical quantity that changes with time, distance, speed,
position, pressure, temperature or some other quantity. A Signal is physical quantity that
consists of many sinusoidal of different amplitudes and frequencies.

Ex x(t) = 10t

X(t) = 5x2 +20xy+30y

A System is a physical device that performs an operations or processing on a signal. Ex


Filter or Amplifier.

CLASSIFICATION OF SIGNAL PROCESSING

1) ASP (Analog signal Processing) : If the input signal given to the system is analog then
system does

analog signal processing. Ex Resistor, capacitor or Inductor, OP-AMP etc.

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.

Digital Signal processing_UNIT 1


Most of the signals generated are analog in nature. Hence these signals are converted to
digital form by the analog to digital converter. Thus AD Converter generates an array of
samples and gives it to the digital signal processor. This array of samples or sequence of
samples is the digital equivalent of input analog signal. The DSP performs signal processing
operations like filtering, multiplication,transformation or amplification etc operations over
this digital signals. The digital output signal from the DSP is given to the DAC.

ADVANTAGES OF DSP OVER ASP

1. Physical size of analog systems are quite large while digital processors are more compact
and light in weight.

2. Analog systems are less accurate because of component tolerance ex R, L, C and active
components. Digital components are less sensitive to the environmental changes, noise and
disturbances.

3. Digital system are most flexible as software programs & control programs can be easily
modified.

4. Digital signal can be stores on digital hard disk, floppy disk or magnetic tapes. Hence
becomes transportable. Thus easy and lasting storage capacity.

5. Digital processing can be done offline.


6. Mathematical signal processing algorithm can be routinely implemented on digital
signal processing systems. Digital controllers are capable of performing complex
computation with constant accuracy at high speed.

7. Digital signal processing systems are upgradeable since that are software controlled.

8. Possibility of sharing DSP processor between several tasks.

9. The cost of microprocessors, controllers and DSP processors are continuously going
down. For some complex control functions, it is not practically feasible to construct analog
controllers.

10. Single chip microprocessors, controllers and DSP processors are more versatile and
powerful.

Disadvantages Of DSP over ASP

1. Additional complexity (A/D & D/A Converters)

2. Limit in frequency. High speed AD converters are difficult to achieve in practice. In high
frequency applications DSP are not preferred.
Digital Signal processing_UNIT 1
CLASSIFICATION OF SIGNALS

1. Single channel and Multi-channel signals

2. Single dimensional and Multi-dimensional signals

3. Continuous time and Discrete time signals.

4. Continuous valued and discrete valued signals.

5. Analog and digital signals.

6. Deterministic and Random signals

7. Periodic signal and Non-periodic signal

8. Symmetrical(even) and Anti-Symmetrical(odd) signal

9. Energy and Power signal

1) Single channel and Multi-channel signals

If signal is generated from single sensor or source it is called as single channel signal. If the
signals are generated from multiple sensors or multiple sources or multiple signals are
generated from same source called as Multi-channel signal.

Example ECG signals.

Multi-channel signal will be the vector sum of signals generated from multiple sources.

2) Single Dimensional (1-D) and Multi-Dimensional signals (M-D)

If signal is a function of one independent variable it is called as single dimensional signal


like speech signal and if signal is function of M independent variables called as Multi-
dimensional signals. Gray scale level of image or Intensity at particular pixel on black and
white TV are examples of M-D signals.
3)Continuous time and Discrete time signals

S.NO Continuous Time (CTS) Discrete time (DTS)


1 This signal can be defined at any time instance & This signal can be defined
they can take all values in the continuous only at certain specific
interval(a, b) where a can be -∞ & can be ∞ values of time. These time
instance need not be
equidistant but in practice
they are usually takes at
equally spaced intervals.
Digital Signal processing_UNIT 1
2 These are described by differential equations. These are described by
difference equation.
3 This signal is denoted by x(t). These signals are denoted by
x(n) or notation x(nT) can
also be used.
4 The speed control of a dc motor using a Microprocessors and
techogenerator feedback or Sine or exponential computer based systems
waveforms. uses discrete time signals.
4)Continuous valued and Discrete Valued signals

S.NO Continuous Time valued Discrete valued


1 If a signal takes on all possible values on a finite If signal takes values from a
or infinite range, it is said to be continuous finite set of possible values,
valued signal.. it is said to be discrete
valued signal.

2 Continuous Valued and continuous time signals Discrete time signal with set
are basically analog signals of discrete amplitude are
called digital signal.
5)Analog and digital signal

S.NO Analog Digital


1 These are basically continuous time & These are basically discrete
continuous amplitude signals time signals & discrete
amplitude signals. These
signals are basically
obtained by sampling &
quantization process.
2 ECG signals, Speech signal, Television signal etc. All the signals generated
from various sources in
nature are analog. All signal
representation in computers
and digital signal processors
are digital.
6)Deterministic and Random signals

S.NO Deterministic Random signals

1 Deterministic signals can be represented or Random signals that cannot


described by a mathematical equation or lookup be represented or described
table. by a mathematical equation
or lookup table.
2 Deterministic signals are preferable because for Not Preferable. The random

Digital Signal processing_UNIT 1


analysis and processing of signals we can use signals can be described
mathematical model of the signal. with the help of their
statistical properties
3 The value of the deterministic signal can be The value of the random
evaluated at time (past, present or future) signal cannot be evaluated at
without certainty any instant of time.
4 Example Sine or exponential waveforms. Example Noise signal or
Speech signal
7)Periodic signal and Non-Periodic signal
The signal x(n) is said to be periodic if x(n+N)= x(n) for all n where N is the fundamental
period of the signal. If the signal does not satisfy above property called as Non-Periodic
signals. Discrete time signal is periodic if its frequency can be expressed as a ratio of two
integers. f= k/N where k is integer constant.

8)Symmetrical(Even) and Anti-Symmetrical(odd) signal

A signal is called as symmetrical(even) if x(n) = x(-n) and if x(-n) = -x(n) then signal is odd.
X1(n)=cos(ωn) and x2(n)= sin(ωn) are good examples of even & odd signals respectively.
Every discrete

signal can be represented in terms of even & odd signals.

X(n) signal can be written as

Problems:

Digital Signal processing_UNIT 1


1.Test whether the following CT waveforms is periodic or not. If periodic find out the
fundamental period.

a) 2 sin(2/3)t + 4 cos (1/2)t + 5 cos((1/3)t Ans: Period of x(t)= 12

b) a cos(t √2) + b sin(t/4) Ans: Non-Periodic

2) Find out the even and odd parts of the discrete signal x(n)={2,4,3,2,1}

3) Find out the even and odd parts of the discrete signal x(n)={2,2,2,2}

9.Energy signal and Power signal

Discrete time signals are also classified as finite energy or finite average power signals.

The energy of a discrete time signal x(n) is given by

If Energy is finite and power is zero for x(n) then x(n) is an energy signal. If power is finite
and energy is infinite then x(n) is power signal. There are some signals which are neither
energy nor a power signal.

PROBLEMS:

a) Find the power and energy of u(n) unit step function.

b) Find the power and energy of r(n) unit ramp function.

c) Find the power and energy of an u(n).

Digital Signal processing_UNIT 1


DISCRETE TIME SIGNALS AND SYSTEM

There are three ways to represent discrete time signals

STANDARD SIGNAL SEQUENCES

Digital Signal processing_UNIT 1


PROPERTIES OF DISCRETE TIME SIGNALS

Shifting : signal x(n) can be shifted in time. We can delay the sequence or advance the
sequence.

This is done by replacing integer n by n-k where k is integer. If k is positive signal is


delayed in time by k samples (Arrow get shifted on left hand side) And if k is negative
signal is advanced in time k samples

(Arrow get shifted on right hand side)

Folding / Reflection : It is folding of signal about time origin n=0. In this case replace n by
–n. Original signal:

Addition : Given signals are x1(n) and x2(n), which produces output y(n) where y(n) =
x1(n)+ x2(n).

Adder generates the output sequence which is the sum of input sequences.

Scaling: Amplitude scaling can be done by multiplying signal with some constant. Suppose
original signal is x(n). Then output signal is A x(n)

Digital Signal processing_UNIT 1


Multiplication : The product of two signals is defined as y(n) = x1(n) * x2(n).
CLASSIFICATION OF DISCRETE TIME SYSTEMS

1) STATIC v/s DYNAMIC

S.NO STATIC DYNAMIC (Dynamicity


property)
1 Static systems are those systems whose output
at any instance of time depends at most on input Dynamic systems output
sample at same time. depends upon past or future
samples of input.
2 Static systems are memory less systems. They have memories for
memorize all samples

It is very easy to find out that given system is static or dynamic. Just check that output of
the system solely depends upon present input only, not dependent upon past or future.

S.NO System [y(n)] Static / Dynamic


x(n) Static
A(n-2) Dynamic
X 2 (n) Static
X(n2 ) Dynamic
n x(n) + x2 (n) Static
X(n)+ x(n-2) +x(n+2) Dynamic
2) TIME INVARIANT v/s TIME VARIANT SYSTEMS

S.NO TIME INVARIANT (TIV) / SHIFT INVARIANT TIME VARIANT SYSTEMS /


SHIFT VARIANT SYSTEMS (
1 1 A System is time invariant if its input output A System is time variant if its
characteristic do not change with shift of time input output characteristic
changes with time
2 Linear TIV systems can be uniquely No Mathematical analysis
characterized by Impulse response, frequency can be performed.
response or transfer function
3 Thermal Noise in Electronic components b. a. Rainfall per month
Printing documents by a printer b. Noise Effect
It is very easy to find out that given system is Shift Invariant or Shift Variant. Suppose if the
system produces output y(n) by taking input x(n) y(n)x(n) If we delay same input by k
units x(n-k) and apply it to same systems, the system produces output y(n-k) y(n-k)x(n-
k)

3)LINEAR v/s NON-LINEAR SYSTEMS

Digital Signal processing_UNIT 1


S.NO LINEAR NON-LINEAR
1 A System is linear if it satisfies superposition A System is Non-linear if it
theorem. does not satisfies
Let x1(n) and x2(n) are two input sequences, superposition theorem
then the system is said to be linear if and only if
T[a1x1(n) + a2x2(n)]=a1T[x1(n)]+a2T[x2(n)]

hence T [ a1 x1(n) + a2 x2(n) ] = T [ a1 x1(n) ] + T [ a2 x2(n) ]

It is very easy to find out that given system is Linear or Non-Linear.

Response to the system to the sum of signal = sum of individual responses of the system.

S.NO System [y(n)] Linear or Non-Linear


1. e x(n) Non-Linear
x 2 (n) Non-Linear
m x(n) + c Non-Linear
cos [ x(n) ] Non-Linear
X(-n) Linear
Log 10 (|x(n)|) Non-Linear
4)CAUSAL v/s NON CAUSAL SYSTEMS

S.NO CAUSAL NON-CAUSAL (Causality


Property)
1 A System is causal if output of system at any A System is Non causal if
time depends only past and present inputs. output of system at any time
depends on future inputs.
2 In Causal systems the output is the function of In Non-Causal System the
x(n), x(n-1), x(n-2)….. and so on. output is the function of
future inputs also. X(n+1)
x(n+2) .. and so on
It is very easy to find out that given system is causal or non-causal. Just check that output of
the system depends upon present or past inputs only, not dependent upon future.
Digital Signal processing_UNIT 1
S.NO System [y(n)] Causal /Non-Causal
x(n) + x(n-3)2 Causal
X(n) Causal
X(n) + x(n+3) Non-Causal
2 x(n) Causal
X(2n) Non-Causal
X(n)+ x(n-2) +x(n+2 Non-Causal
5)STABLE v/s UNSTABLE SYSTEMS

S.NO STABLE UNSTABLE (Stability


Property)
1 A System is BIBO stable if every bounded input A System is unstable if any
produces a bounded output. bounded input produces a
unbounded output.
2 The input x(n) is said to bounded if there exists
some finite number Mx such that |x(n)| ≤ Mx <
∞ The output y(n) is said to bounded if there
exists some finite number My such that |y(n)| ≤
My < ∞
STABILITY FOR LTI SYSTEM

It is very easy to find out that given system is stable or unstable. Just check that by
providing input signal check that output should not rise to ∞.

The condition for stability is given by

ANALYSIS OF DISCRETE LINEAR TIME INVARIANT (LTI/LSI) SYSTEM

1) CONVOLUTION SUM METHOD

LINEAR CONVOLUTION SUM METHOD

1. This method is powerful analysis tool for studying LSI Systems.

2. In this method we decompose input signal into sum of elementary signal. Now the
elementary input signals are taken into account and individually given to the system. Now
Digital Signal processing_UNIT 1
using linearity property whatever output response we get for decomposed input signal, we
simply add it & this will provide us total response of the system to any given input signal.

3. Convolution involves folding, shifting, multiplication and summation operations.

4. If there are M number of samples in x(n) and N number of samples in h(n) then the
maximum number of samples in y(n) is equals to M+n-1.

Linear Convolution states that

METHOD 3: VECTOR FORM (TABULATION METHOD)

X(n)= {x1,x2,x3} & h(n) ={ h1,h2,h3}

Digital Signal processing_UNIT 1


2 PROPERTIES OF LINEAR CONVOLUTION

x(n) = Excitation Input signal

y(n) = Output Response

h(n) = Unit sample response

1. Commutative Law: (Commutative Property of Convolution)

x(n) * h(n) = h(n) * x(n)

2.Associate Law: (Associative Property of Convolution)

[ x(n) * h1(n) ] * h2(n) = x(n) * [ h1(n) * h2(n) ]

3.Distribute Law: (Distributive property of convolution)

x(n) * [ h1(n) + h2(n) ] = x(n) * h1(n) + x(n) * h2(n)

CORRELATION:

It is frequently necessary to establish similarity between one set of data and another. It
means we would like to correlate two processes or data. Correlation is closely related to
convolution, because the correlation is essentially convolution of two data sequences in
which one of the sequences has been reversed.

Applications are in

1) Images processing for robotic vision or remote sensing by satellite in which data from
different image is compared

2) In radar and sonar systems for range and position finding in which transmitted and
reflected waveforms are compared.

Digital Signal processing_UNIT 1


3) Correlation is also used in detection and identifying of signals in noise.

4) Computation of average power in waveforms.

5) Identification of binary codeword in pulse code modulation system

DIFFERENCE BETWEEN LINEAR CONVOLUTION AND CORRELATION

TYPES OF CORRELATION

Under Correlation there are two classes.

1) CROSS CORRELATION:

When the correlation of two different sequences x(n) and y(n) is performed it is called as
Cross correlation. Cross-correlation of x(n) and y(n) is rxy(l) which can be mathematically
expressed as

AUTO CORRELATION:

Digital Signal processing_UNIT 1


In Auto-correlation we correlate signal x(n) with itself, which can be mathematically
expressed as

PROPERTIES OF CORRELATION

1) The cross-correlation is not commutative.

rxy(l) = ryx(-l)

2) The cross-correlation is equivalent to convolution of one sequence with folded version


of another sequence.

rxy(l) = x(l) * y(-l).

3) The autocorrelation sequence is an even function.

rxx(l) = rxx(-l)

Examples:

Q) Determine cross-correlation sequence

x(n)={2, -1, 3, 7,1,2, -3} & y(n)={1, -1, 2, -2, 4, 1, -2 ,5}

Answer: rxy(l) = {10, -9, 19, 36, -14, 33, 0,7, 13, -18, 16, -7, 5, -3}

Q) Determine autocorrelation sequence

x(n)={1, 2, 1, 1} Answer: rxx(l) = {1, 3, 5, 7, 5, 3, 1}

A/D CONVERSION

BASIC BLOCK DIAGRAM OF A/D CONVERTER

Digital Signal processing_UNIT 1


SAMPLING THEOREM

It is the process of converting continuous time signal into a discrete time signal by taking
samples of the continuous time signal at discrete time instants.

X[n]= Xa(t) where t= nTs = n/Fs ….(1)

When sampling at a rate of fs samples/sec, if k is any positive or negative integer, we


cannot distinguish between the samples values of fa Hz and a sine wave of (fa+ kfs) Hz.
Thus (fa + kfs) wave is alias or image of fa wave.

Thus Sampling Theorem states that if the highest frequency in an analog signal is Fmax and
the signal is sampled at the rate fs > 2Fmax then x(t) can be exactly recovered from its
sample values. This sampling rate is called Nyquist rate of sampling. The imaging or
aliasing starts after Fs/2 hence folding frequency is fs/2. If the frequency is less than or
equal to 1/2 it will be represented properly.

Example:

Case 1: X1(t) = cos 2∏ (10) t Fs= 40 Hz i.e t= n/Fs

x1[n]= cos 2∏(n/4)= cos (∏/2)n

Case 2: X1(t) = cos 2∏ (50) t Fs= 40 Hz i.e t= n/Fs

x1[n]= cos 2∏(5n/4)= cos 2∏( 1+ ¼)n

= cos (∏/2)n

Thus the frequency 50 Hz, 90 Hz , 130 Hz … are alias of the frequency 10 Hz at the
sampling rate of 40 samples/sec

2.QUANTIZATION

The process of converting a discrete time continuous amplitude signal into a digital signal
by expressing each sample value as a finite number of digits is called quantization. The
error introduced in representing the continuous values signal by a finite set of discrete
value levels is called quantization error or quantization noise.

Example: x[n] = 5(0.9)n

Digital Signal processing_UNIT 1


u(n) where 0 <n < ∞ & fs= 1 Hz

Quantization Step/Resolution : The difference between the two quantization levels is


called quantization step. It is given by Δ = XMax – xMin / L-1 where L indicates Number of
quantization levels.

3.CODING/ENCODING

Each quantization level is assigned a unique binary code. In the encoding operation, the
quantization sample value is converted to the binary equivalent of that quantization level.
If 16 quantization levels are present, 4 bits are required. Thus bits required in the coder is
the smallest integer greater than or equal to Log2 L. i.e b= Log2 L Thus Sampling frequency
is calculated as fs=Bit rate / b.

4.ANTI-ALIASING FILTER

When processing the analog signal using DSP system, it is sampled at some rate depending
upon the bandwidth. For example if speech signal is to be processed the frequencies upon
3khz can be used.Hence the sampling rate of 6khz can be used. But the speech signal also
contains some frequency components more than 3khz. Hence a sampling rate of 6khz will
introduce aliasing. Hence signal should be band limited to avoid aliasing.

The signal can be band limited by passing it through a filter (LPF) which blocks or
attenuates all the frequency components outside the specific bandwidth. Hence called as
Anti aliasing filter or prefilter.

5.SAMPLE-AND-HOLD CIRCUIT:

The sampling of an analogue continuous-time signal is normally implemented using a


device called an analogue-to- digital converter (A/D). The continuous-time signal is first
passed through a device called a sample-and-hold (S/H) whose function is to measure the
input signal value at the clock instant and hold it fixed for a time interval long enough for
the A/D operation to complete. Analogue-to-digital conversion is potentially a slow
operation, and a variation of the input voltage during the conversion may disrupt the
operation of the converter. The S/H prevents such disruption by keeping the input voltage

Digital Signal processing_UNIT 1


constant during the conversion. This is schematically illustrated by Figure.

After a continuous-time signal has been through the A/D converter, the quantized output
may differ from the input value. The maximum possible output value after the quantization
process could be up to half the quantization level q above or q below the ideal output value.
This deviation from the ideal output value is called the quantization error. In order to
reduce this effect, we increases the number of bits.

Digital Signal processing_UNIT 1

You might also like