Docsity

Introduction - Digital Signal Processing - Lecture Slides, Slides of Computer Fundamentals

Partial preview of the text

Download Introduction - Digital Signal Processing - Lecture Slides and more Slides Computer Fundamentals in PDF only on Docsity!

Introduction to Digital Signal Processing

TOPICS

1. Impact of DSP

2. Analog vs. digital: why, what & how

3. Digital system example

4. Sampling & aliasing

5. ADCs: performance & choice

6. Digital data formats

Impact of DSP on Modern Living

Cellular/mobile telephony Speech and channel coding Voice and data processing Power management Multipath equaliztion

Digital audio Stereo and surround sound Audio equalization and mixing Electronic music

Automotive Digital Audio Digital Radio Personal communication systems Active suspension

Medical electronics Critical/intensive care monitors Digital X-rays ECG analyzers Cardiac monitors Medical imaging

Personal computer Sound cards Data storage and retrieval Error correction/concealment Multimedia Modems

Analog & digital signals

-0.

-0.

0

0.

0.

0.

0 2 4 6 8 10 sampling time, tk [ms]

Voltage [V] ts

-0.

-0.

0

0.

0.

0.

0 2 4 6 8 10 sampling time, tk [ms]

Voltage [V] t s

Continuous function V of continuous variable t (time, space etc) : V(t).

Analog

Discrete function V (^) k of discrete sampling variable t (^) k , with k = integer: V (^) k = V(t (^) k ).

Digital

-0.

-0.

0

0.

0.

0.

0 2 4 6 8 10 time [ms]

Voltage [V]

Uniform (periodic) sampling. Sampling frequency f (^) S = 1/ t (^) S

Digital system example

ms

V DOMAIN ANALOG

ms

V

Filter Antialiasing

k

A^ A/D DOMAIN DIGITAL

k

A

Digital Processing

ms

V^ D/A DOMAIN ANALOG

ms

V Filter Reconstruction

Sometimes steps missing

- Filter + A/D

(ex: economics);

- D/A + filter

(ex: digital output wanted).

General scheme

Topics of this
lecture.

Digital

Processing

Filter

Antialiasing

A/D

Digital system implementation

  • Sampling rate.
  • Pass / stop bands.
KEY DECISION POINTS:
Analysis bandwidth, Dynamic range
  • No. of bits. Parameters.

Digital Processing

A/D

Antialiasing Filter

ANALOG INPUT

DIGITAL OUTPUT

  • Digital format. What to use for processing? See slide “DSPing aim & tools”

Sampling - 2

__ (^) s(t) = sin(2πf 0 t)

-1.

-0.

-0.

-0.

-0.

0

1

t

s(t) @ f (^) S f 0 = 1 Hz, f (^) S = 3 Hz

-1.

-0.

-0.

-0.

-0.

0

1

t

__ (^) s 1 (t) = sin(8πf^0 t)

-1.

-0.

-0.

-0.

-0.

0

1

t

__ (^) s 2 (t) = sin(14πf^0 t)

-1.

-0.

-0.

-0.

-0.

0

1

t

s k (t) = sin( 2π (f 0 + k f S) t ) , k  ∈

s(t) @ f (^) S represents exactly all sine-waves s (^) k (t) defined by:

The sampling theorem

A signal s(t) with maximum frequency f MAX can be
recovered if sampled at frequency f S > 2 f MAX.

Condition on fS?

fS > 300 Hz

s(t) = 3 ⋅cos(50πt)+ 10 ⋅sin(300πt)−cos(100π t)

F 1 =25 Hz, F 2 = 150 Hz, F 3 = 50 Hz

F 1 F 2 F 3

f (^) MAX

Example

Theo*

***** (^) Multiple proposers: Whittaker(s), Nyquist, Shannon, Kotel’nikov.

Nyquist frequency (rate) f N = 2 f MAX or f MAX or f S,MIN or f S,MIN /

Naming gets

confusing!

Sampling low-pass signals

  • B 0 B f

Continuous spectrum (a) Band-limited signal: frequencies in [-B, B] (fMAX = B).

(a)

-B 0 B f (^) S/2 f

Discrete spectrum No aliasing (^) (b) Time sampling frequency repetition. fS > 2 B no aliasing.

(b)

0 f (^) S/2 f

Discrete spectrum (c)^ Aliasing & corruption

(c) fS 2 B aliasing!

Aliasing: signal ambiguity in frequency domain

Antialiasing filter

  • B 0 B f

Signal of interest Out of band noise Out of band noise

  • B 0 B fS/ f

(a),(b) Out-of-band noise can aliase into band of interest. Filter it before!

(a)

(b)

(c)

Passband: depends on bandwidth of interest.

Attenuation A (^) MIN : depends on

  • ADC resolution ( number of bits N). AMIN, dB ~ 6.02 N + 1.
  • Out-of-band noise magnitude. Other parameters: ripple, stopband frequency...

(c) Antialiasing filter

Over-sampling (hints)

fOS = over-sampling frequency,

fOS = 4 w = additional bits required.

w · f

S

Each additional bit implies over-sampling by a factor of four.

It works for:

  • white noise with amplitude sufficient to change the input signal randomly from sample to sample by at least LSB.
  • Input that can take all values between two ADC bits.

Caveat

Oversampling : sampling at frequencies f (^) S >> 2 f (^) MAX.

Over-sampling & averaging may improve ADC resolution
( i.e. SNR, see^2 )