23
Fundamentals of Digital Signal Processing (DSP)

Fundamentals of Digital Signal Processing (DSP)

Embed Size (px)

Citation preview

Page 1: Fundamentals of Digital Signal Processing (DSP)

Fundamentals of

Digital Signal Processing (DSP)

Page 2: Fundamentals of Digital Signal Processing (DSP)

DSP is Everywhere!• Audiological equipment

– Hearing aids– Otoacoustic systems– Audiometers– Aural rehabilitation programs– ABRs

• Telecommunications– Cellular phones– Voice over Internet

• Audio– CD, DVD, DAT players– MP3 players

• Biomedical monitoring equipment• Digital Television

Page 3: Fundamentals of Digital Signal Processing (DSP)

Analog vs Digital• Analog

– infinitely detailed– continuous in time– continuous in amplitude

• Digital– discrete numbers– discrete in time– discrete in amplitude

• Challenge: a digital representation that adequately maps the analog values.

Page 4: Fundamentals of Digital Signal Processing (DSP)

Analog SystemsAcousticdomain

Electricdomain

Acousticdomain

Page 5: Fundamentals of Digital Signal Processing (DSP)

Programmable Analog SystemsAcousticdomain

Acousticdomain

Electricdomain

Digital domain

Page 6: Fundamentals of Digital Signal Processing (DSP)

Digital SystemsAcousticdomain

Electricaldomain

Electricaldomain

Acousticdomain

Digital domain

Page 7: Fundamentals of Digital Signal Processing (DSP)

Why digital?

• Flexibility• Programmability• Reproducibility and Precision (??)• Advanced Signal Processing

– Multichannel compression– Precise frequency shaping– Feedback cancellation– Noise reduction– Directional processing

Page 8: Fundamentals of Digital Signal Processing (DSP)

DSP Applications

• Digital signal analysis/display

• Digital recording, processing, and reproduction

• Digital signal synthesis

Page 9: Fundamentals of Digital Signal Processing (DSP)

DSP Buzzwords

• A to D Converter• D to A Converter• Sampling• Quantization• Aliasing• Anti-aliasing filter• Algorithm• Oversampling

Page 10: Fundamentals of Digital Signal Processing (DSP)

Sampling Process

Analog Signal

Sampling Interval (Ts)

Sampled Numbers

Page 11: Fundamentals of Digital Signal Processing (DSP)

Analog-to-Digital Conversion

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1-5

0

5

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1-5

0

5

0 0.1 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1-5

0

5

Analog

Discrete

Digital

Page 12: Fundamentals of Digital Signal Processing (DSP)

Undersampling or Aliasing

Undersampling results in a form of distortion termed as aliasing.

http://www.dsptutor.freeuk.com/aliasing/AliasingDemo.html

Page 13: Fundamentals of Digital Signal Processing (DSP)

How to prevent aliasing?• Nyquist Criterion: When a signal is sampled,

the sampling rate must be greater than twice the highest frequency of the input signal.

• What if the highest frequency is unknown? – Use a low pass filter to remove unwanted

frequencies. Set the sampling rate greater than twice the bandwidth of the low pass filter. The low pass filter is called an anti-aliasing filter.

Page 14: Fundamentals of Digital Signal Processing (DSP)

Quantization

• The sampled values are converted into bit representation

• The process is called “Quantization”• The performance of a quantizer is

dependent on the number of bits, also called bit resolution.

Page 15: Fundamentals of Digital Signal Processing (DSP)

Binary Logical Circuits Flip Flops

ON OFF ON OFF

#1 #2 #3 #4

1 0 1 0

Each of these values is called a bit. The string of values 1010 is a binaryrepresentation. A string of 8 bits is called a byte.

Page 16: Fundamentals of Digital Signal Processing (DSP)

0 0.2 0.4 0.6 0.8 1-20

-15

-10

-5

0

5

10

15

20

An example of binary counting

Voltage Flip Flop #1 Flip Flop #2 Binary Dec 5 < V < 10 on (1) on (1) 11 3 0 < V < 5 on (1) off (0) 10 2 -5 < V < 0 off (0) on (1) 01 1-10 < V < -5 off (0) off (0) 00 0

Page 17: Fundamentals of Digital Signal Processing (DSP)

Example (contd.)

0 0.2 0.4 0.6 0.8 1-20

-15

-10

-5

0

5

10

15

20

0 0.2 0.4 0.6 0.8 1-2

-1

0

1

2

3

4

5

Vol

tage

Dec

imal

num

ber

Analog – fine grain signal

Digital – quantized signal

Page 18: Fundamentals of Digital Signal Processing (DSP)

Example (contd.)

0 0.2 0.4 0.6 0.8 1

-10

-5

0

5

10

0 0.2 0.4 0.6 0.8 1-2

-1

0

1

2

3

4

5

Analog – fine grain signal

Digital – quantized signal

Page 19: Fundamentals of Digital Signal Processing (DSP)

3-bit Analog-to-Digital Converter

Voltage #1 #2 #3 Binary Decimal

7.5 < V <= 10 on(1) on (1) on(1) 111 7 5 < V <= 7.5 on(1) on (1) off(0) 110 6 2.5 < V <= 5 on(1) off (0) on(1) 101 5 0 < V <= 2.5 on(1) off (0) off(0) 100 4-2.5 < V <= 0 off(0) on(1) on(1) 011 3 -5 < V <= -2.5 off(0) on(1) off(0) 010 2-7.5 < V <= -5 off(0) off(0) on(1) 001 1 -10 < V <= -7.5 off(0) off(0) off(0) 000 0

Page 20: Fundamentals of Digital Signal Processing (DSP)

3-bit Quantization

0 0.2 0.4 0.6 0.8 1-2

0

2

4

6

8

0 0.2 0.4 0.6 0.8 1

-10

-5

0

5

10

Page 21: Fundamentals of Digital Signal Processing (DSP)

Characteristics of an A/D Converter• Input range

– The voltage range that the A/D converter can handle. Can be unipolar (either +ve or –ve voltages), or bipolar (both +ve and –ve)

• Resolution– Represented by the number of bits. The

number of possible states is given by 2N, where N is the number of bits.

• Sampling Rate– Rate at which samples are measured.

Page 22: Fundamentals of Digital Signal Processing (DSP)

Digital Signal Processing

• A series of trigonometric and arithmetic operations.

• Series of steps called “algorithm”• Algorithm classes

– Spectral analysis– Digital filtering– Coding and compressing data– Noise reduction– Etc.

Page 23: Fundamentals of Digital Signal Processing (DSP)

Conclusions• Digital Signal Processing (DSP) is often used in

modern audiological equipment.• Fundamental concepts in DSP

– Sampling – discretization of the time axis– Quantization – discretization of the amplitude axis

• Digital Processing – a series of instructions to manipulate the digital numbers.