DSP_Unit_1
DSP_Unit_1
Dr Rashmi Patil
Program:B. Tech. (E&TC) Semester: B.TECH Semester-VI
FA SA Total
Lectur
Tutorial Credit Hours FA2
e 1
3 -- 3 3 20 20 60 100
2
� Prior knowledge of:
� Analog ,Digital signals, Signal Transforms ,Mathematics Is
essential
� Objectives:
5
� Text Books:
� John G.Proakis, D.G.Manolakis, "Digital Signal Processing:Principles,Algorithms
and Applications", Pearson Education, 4th edition
� A.Nagoor Kani,”Digital Signal Processing”.McGrawHill 2nd edition
� Venkataramani.B, Bhaskar.M, “Digital Signal Processors, Architecture,
Programming and Application”,Tata McGraw Hill, New Delhi, 2003.
� Reference Books:
� S.K. Mitra, "Digital Signal Processing Computer Based Approach", Tata MacGraw
Hill , 3rd edition
� Avtar Singh, S.Srinivasan DSP Implementation using DSP microprocessor with
Examples from TMS32C54XX -Thamson 2004.
� Salivahanam, A Vallavaraj, C. Guanapriya , "Digital Signal Processing", Tata
MacGraw Hill , 1st edition
� Rulph Chassaing, Donald Relay ”Digital Signal Processing and Applications with
TMS3206713 and TMS320C6416DSK”, 2nd Edition, Wiley 2014
6
� P. Ramesh Babu, "Digital Signal Processing" Scitech publication, 4th edition
NPTEL COURSES
� https://nptel.ac.in/courses/117/102/117102060/
� https://www.classcentral.com/course/youtube-electrica
l-digital-signal-processing-47650/classroom
� .https://ocw.mit.edu/courses/res-6-008-digital-signal-pr
ocessing-spring-2011/
7
UNIT 1
� DSP Introduction: Basic Elements of DSP and its
requirements, Sampling and Reconstruction,
Advantages & Disadvantages, Mapping between
analog frequencies to Digital frequencies, System
Stability and Correlation
8
Definition
9
SIGNAL PROCESSING
� Humans are the most advanced signal processors – speech and pattern
recognition, speech synthesis,…
� • We encounter many types of signals in various applications – Electrical
signals: voltage, current, magnetic and electric fields,… – Mechanical
signals: velocity, force, displacement,… – Acoustic signals: sound,
vibration,… – Other signals: pressure, temperature,…
� • Most real-world signals are analog – They are continuous in time and
amplitude – Convert to voltage or currents using sensors and transducers
� • Analog circuits process these signals using – Resistors, Capacitors,
Inductors, Amplifiers,…
� • Analog signal processing examples – Audio processing in FM radios –
Video processing in traditional TV sets
10
ANALOG SIGNAL PROCESSING
� Most of the natural signals are analog
⚫ Analog signal processing
� Differentiation, Integration, Filtering, Amplification
� Implemented via passive or active electronic circuitry.
11
LIMITATIONS OF ANALOG SIGNAL PROCESSING
� • Inflexibility to changes
� Accuracy limitations due to – suffer from Component tolerances –
Undesired nonlinearities
� • Limited repeatability due to – Tolerances – Changes in environmental
conditions
� Difficulty of storing information
� Difficulty of implementing certain operations – Nonlinear operations –
Time-varying operations
� • Temperature Variation
� • Sensitivity to electrical noise
� • Limited dynamic range for voltage and currents
12
DIGITAL SIGNAL
� Signal: a function of independent variables (time,
distance, position….)
� Independent variable-Continuous/discrete
� Discrete time signal
⚫ A sequence of numbers
� Analog signal
⚫ continuous time signal with continuous amplitude
� Digital Signal
⚫ A discrete time signal with discrete valued amplitudes
13
14
WITHOUT DSP???????
� We would not have
⚫ Digital/internet audio or video
⚫ Digital recording, CD, DVD, MP3 players
⚫ Digital cameras
⚫ Digital and cellular telephones
⚫ Digital satellite and TV
⚫ powerful tools to analyze, visualize data
⚫ Image and video editing systems
� Medical instruments would be less efficient or unable to
provide useful information for precise diagnosis (digital
ECG analyzer, digital X-ray, medical imaging
systems……..) 15
WHY PROCESSING
� To obtain better quality signal
⚫ E.g. noise filtering
Signal
Processing
16
DIGITAL SIGNAL PROCESSING
� Digital signal
Multiplication
Addition Delay
DSP
17
WHY DSP
� Cost effective
� Less sensitive to component tolerances and
environmental changes
� Amenable(accept all the changes easily) to full
integration
⚫ Analog circuits: Inductors and transformers
� Accuracy can be increased by increasing the word length
(cost increases)
� Dynamic range can be increased by floating point
operations
� Time sharing of a processor is possible (time 18
multiplexing)
PROS AND CONS OF DIGITAL SIGNAL PROCESSING
� • Pros
� – Accuracy can be controlled by choosing word length
� – 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
19
� – Quantization and round-off errors
� --Expensive for small applications
APPLICATION OF DSP
1. Telecommunication: Echo cancellation in telephone networks,
Telephone dialling application, Modems, Line repeaters, Channel
multiplexing, Data encryption, Video conferencing, Cellular
phone, FAX.
2. Consumer electronics: Digital Audio,/TV, electronic music
synthersizer, educational toys, FM stereo applications, Sound
recording applications.
3. Instrumentation and control: Spectrum analysis, Digital filter,
PLL, function generator, Servo control, Robot control, process
control.
4. Image processing: Image compression, Image enhancement, Image
analysis and recognition.
5. Medicine: Medical diagnostic instrumentation such as
20
Computerized Tomography (CT), X-ray scanning,
Magnetic resonance imaging, Spectrum analysis of ECG and EEG
signals to detect the various disorders in heart and brain, Patient
monitoring.
6.Speech processing: Speech analysis methods are used in automatic
speech recognition, speaker verification and speaker
identification. Speech synthesis techniques includes conversion of
written text into speech.
22
ANALOG-TO-DIGITAL AND DIGITAL-TO-ANALOG
CONVERSION(X)
Many signals of practical interest, such as speech, biological
signals, seismic signals, sonar signals, and various communications
signals such as audio and video signals are analog. To process
analog signals by digital means, it is first necessary to convert them
into digital form. This procedure is called analog-to-digital (A/D)
conversion, and the corresponding devices are called A/D
converters (ADCs).
A/D conversion is a three-step process. Sampling, Quantization
and coding
SAMPLING
� This is the conversion of a continuous-time signal into a discrete-time signal
obtained by taking "samples" of the continuous-time signal at discrete-time
instants.
� For periodic or uniform sampling, if xa(t) is the analog input to the sampler,
the discret time output is
xa(nT) =x(n),
where T is called the sampling interval.and its reciprocal 1/T = Fs, is
called the sampling rate (samples per second) or the sampling
frequency (hertz).
For Periodic sampling
•Relationship between the time variables t of continuous-time and n
of discrete-time signals is
Fs ≥2 fmax
The overlap or aliasing occurs about the point FN, that is half the
sampling frequency point. This frequency point is variously called
the folding frequency, Nyquist frequency, and so on.
QUANTIZATION
� In quantization and encoding, each analog sample is
assigned to one of 2B values where B is the number of ADC
bits. Quantization introduces an error which cannot be
removed. The level of the error is the function of the number
of bits of the ADC, being approximately equal to one-half an
LSB .
� For example, a 12-bit ADC with an input voltage range of ±10
V will have an LSB of 20/212 V, that is 4.9 mV, and a
quantization error 2.45 mV.
� For an ADC with B binary digits ,the number of quantization
levels is 2B and interval between the levels, that is the
quantization step size, q is given by
where Vfs, is the full-scale range of the ADC with bipolar signal
inputs. For example a sine wave input of amplitude A ,the
quantization step size becomes q = 2A/2B
The maximum quantization error, for the case where the values
are rounded up or down, is ±q/2.
The quantization error for each sample, e, is normally assumed
to be random and uniformly distributed in the interval ±q/2
with zero mean. In this case, the quantization noise power, or
variance, is given by
For the sine wave input, the average signal power is A2/2. The
signal-to-quantization noise power ratio (SQNR), in decibels, is
This is a theoretical maximumvalue.In practice,achievable SQNR is
less than this value. However, the SQNR increases with the
number of bits, B .
The digital samples, x(n), which in many cases are in a binary
form, are next encoded into a form suitable for further
manipulation. Encoding means assigning discrete codes to the
quantized samples.
NUMERICALS
37
NUMERICALS
38
NUMERICALS
39
NUMERICALS
40
41
42
43
44
45
46
47
SIGNAL REPRESENTATION
Notations:
⚫ Analog signal:
⚫ Digital Signal:
Signal representation
Units
48
RELATIONS
� What is the relation between F and f
49
FREQUENCY RANGES
� What is the frequency range of and
50
FREQUENCY MAPPING
51
RELATIONS AMONG FREQUENCY VARIABLES
52