Docsity

Digital-to-Analog Conversion - Lecture Notes | EE 422G, Study notes of Signals and Systems

Toggle sidebar
bg1
EE 422G Notes: Chapter 8 Instructor: Cheung
Page 5-9
8.2B Digital-to-Analog Conversion
D/A = Passing xs(t) through an analog low-pass filter. Mathematically:
∑
∫∑
∫
∞
−∞=
∞
∞−
∞
−∞=
∞
∞−
−=
−−=
−=
⇔=
n
n
s
s
nTthnTx
dthnTnTx
dthxtx
sHsXsX
)()(
)()()(
)()()(
ˆ
)()()(
ˆ
τττδ
τττ
Two factors:
1. How accurate can the continuous-time signal be reconstructed?
2. How complex is it to realize?
We will look at four methods briefly
1. Ideal low-pass
2. Sample-and-Hold
3. Linear Interpolation
4. General low-pass filter (e.g. RC filter)
1. Ideal Low-Pass filter
Idea: In frequency domain, multiply by a brick wall filter
<
= Otherwise 0
5.0||
)( s
T
jH
ωω
ω
is the same as convolving with a sinc filter in the time domain
) (sinc) (sinc
)2/(
)2/sin(
)( 22 ss tt
t
t
th
s
s
π
ω
π
ω
ω
ω
===
Most accurate Least accurate
Ideal Low-pass …… RC-filter Linear Interpolation Sample-and-Hold
Simplest Unrealizable
Sample-and-Hold Linear Interpolation RC-filter …… …… Ideal Low-pass
The estimate )(
ˆ
tx at time t is based on a linear combination of all samples )(nTx .
pf3
pf4
pf5

Partial preview of the text

Download Digital-to-Analog Conversion - Lecture Notes | EE 422G and more Study notes Signals and Systems in PDF only on Docsity!

8.2B Digital-to-Analog Conversion

D/A = Passing xs(t) through an analog low-pass filter. Mathematically:

∑

∫ ∑

∫

∞

=−∞

∞

−∞

∞ =−∞

∞

−∞

n

n

s

s

x nTht nT

xnT nTht d

xt x ht d

X s X sH s

Two factors:

1. How accurate can the continuous-time signal be reconstructed?

2. How complex is it to realize?

We will look at four methods briefly

1. Ideal low-pass

2. Sample-and-Hold

3. Linear Interpolation

4. General low-pass filter (e.g. RC filter)

1. Ideal Low-Pass filter

Idea: In frequency domain, multiply by a brick wall filter

0 Otherwise

s

T

H j

ω ω ω

is the same as convolving with a sinc filter in the time domain

sinc( ) sinc( ) ( / 2 )

sin( / 2 ) ( ) 2 2

s s t t t

t h t

s

s π

ω

π

ω

ω

ω = = =

Most accurate Least accurate

Ideal Low-pass …… RC-filter Linear Interpolation Sample-and-Hold

Simplest Unrealizable

Sample-and-Hold Linear Interpolation RC-filter …… …… Ideal Low-pass

The estimate x ˆ^ ( t ) at time t is based on a linear combination of all samples x ( nT ).

Interpretation in time-domain:

Why is it impossible to implement “real-time” sinc filter?

It goes from -∞ to +∞, which means we need to know x(nT) from -∞ to +∞. Not

possible unless the signal is finite duration and stored.

2. Sample-and-Hold

It is easy to see that the interpolation filter must look like:

= (^) ∑

∞

= T

t nT x t xnT n

ˆ( (^) ) ( )sinc 0

Diagram on right shows the contributions from each term (only four terms are shown) Notice:

  1. At integral number of T (i.e. (n-1)T, nT), only one term has non-zero contribution.
  2. For all other t, (^) x ˆ( t )has contributions

from all other samples.

Idea:

(n-2)T (n-1)T nT (n+1)T

x ˆ ( t )

  • π/T

T

π/T

H(jω)

ω

x ( nT )sinc ( t − nTT )

( (^) T ) t n T x n T ( 1 ) (( 1 ) ) sinc − − −

x ˆ ( t )

 

  

T

t h(t) sinc

T 2T 3T 4T 5T 6T

t

Time-domain interpolation: let’s say t = (n-1)T + k with 0

8.2C Quantization

Quantization represents a continuous real number (ex. 123.30352562…) using the

discrete level, among 2

n

(ex. n=5) different levels, closest to the input (ex. 123.50).

Unlike sampling, quantization almost always induces loss in precision. If the input

value is very large, we may not care about a loss in the 10

th

decimal place.

To quantify this “relative” loss, we use the Signal-to-(quantization)-Noise Ratio

(SNR) defined as follows:

in dB Averagepowerofquantization error

Averagesignalpower SNR =

Obviously, a large SNR indicates high fidelity.

Quantization Error, e = 123.30352562–123.50 = -0.

This error must be between -∆/2 and ∆/2, where ∆ is the interval between

successive levels (ex ∆=0.5) ∆ depends on two parameters:

1. Number of levels, i.e. 2

n

2. The dynamic range (max – min) of the input signal. Let’s denote as D.

Then,

n n D

D −

Assume the quantization error e is uniformly distributed between -∆/2 and ∆/2.

[ ]

Ee

Averagepowerofquantization error

2 2 2

2

2

2

2 n D

e de

−

−

∆

∆

Patterns Levels

5 - bit computer

123.30352562… (^) 11100 (closest level)

11010 122. 11011 123. 11100 123. 11101 124.

M

M