Professional Documents
Culture Documents
Lec 10
Lec 10
M.H. Perrott2007
A-to-D and its relation to sampling Downsampling and its relation to sampling Upsampling and interpolation D-to-A and reconstruction filtering Filters and their relation to convolution
Copyright 2007 by M.H. Perrott All rights reserved.
Downsampling, Upsampling, and Reconstruction, Slide 1
x[n]
Downsample by N
1/(NT) Sample/s
r[n]
u[n]
Upsample by M
M/(NT) Sample/s
D-to-A Converter
M/(NT) Sample/s
yc(t)
Digital circuits can perform very complex processing of analog signals, but require
Conversion of analog signals to the digital domain Conversion of digital signals to the analog domain Downsampling and upsampling to match sample rates of A-to-D, digital processor, and D-to-A
M.H. Perrott2007
x[n]
Anti-Alias Filter
1/T Sample/s
Downsample by 10
1/(NT) Sample/s
r[n]
u[n]
Upsample by 10
y[n]
D-to-A Converter
M/(NT) Sample/s
A-to-D and downsampler require anti-alias filtering D-to-A and upsampler require interpolation (i.e., reconstruction) filtering
M.H. Perrott2007
Prevents aliasing
t T Xc(f) A f 0 Xp(f)
t 1 X(ej2)
A T -2 T -1 T
A T 1 T 2 T f -2 -1
Sampling leads to periodicity in frequency domain We need to avoid overlap of replicated signals in frequency domain (i.e., aliasing)
M.H. Perrott2007
Xc(f) A
P(f) 1 T f -2 T -1 T 0 1 T 2 T f
A T -2 T -1 T
Xp(f)
-fbw fbw
-f f 1 + f bw bw 1 - fbw bw T T
1 T
2 T
Overlap in frequency domain (i.e., aliasing) is avoided if: We refer to the minimum 1/T that avoids aliasing as the Nyquist sampling frequency
M.H. Perrott2007
A-to-D Converter
xc(t) xc(t) Analog Anti-Alias Filter 1 t p(t) xc(t) t T xp(t) Quantize xp(t) Value t T 1 Impulse Train to Sequence x[n] A-to-D Converter
1/T Sample/s
x[n]
M.H. Perrott2007
Sampler converts continuous-time input signal into a discrete-time sequence Quantizer converts continuous-valued signal/sequence into a discrete-valued signal/sequence Introduces quantization noise as discussed in Lab 4
x[n]
P(f)
Xc(f) 1 0
f -1/T 0 1/T p(t) xp(t) Quantize xp(t) xc(t) Value f Xp(f) 1/T -2/T -1/T 0 1/T 2/T f
x[n] X(ej2)
Downsampling
Anti-Alias Filter x[n] Downsample r[n] by N
Similar to sampling, but operates on sequences Analysis is simplified by breaking into two steps
M.H. Perrott2007
Multiply input by impulse sequence of period N samples Remove all samples of xs[n] associated with the zerovalued samples of the impulse sequence, p[n] Amounts to scaling of time axis by factor 1/N
P(ej2) 1/N -1 -2/N -1/N 0 1/N 2/N p[n] j2) X(e xs(t) x[n] 0 1/N 1 Xs(ej2) 1 -1 1 r[n] Remove Zero Samples R(ej2) 1/N 0 1
1 -1
Multiplication by impulse sequence leads to replicas of input transform every 1/N Hz in frequency Removal of zero samples (i.e., scaling of time axis) leads to scaling of frequency axis by factor N
M.H. Perrott2007 Downsampling, Upsampling, and Reconstruction, Slide 9
P(ej2)
Undesired Signal or Noise
1 -1
-1 -2/N -1/N 0 1/N 2/N p[n] j2) X(e xs(t) x[n] 1 1/N Xs(ej2)
Removal of anti-alias filter would allow undesired signals or noise to alias into desired signal band What is the appropriate bandwidth of the anti-alias lowpass filter?
M.H. Perrott2007 Downsampling, Upsampling, and Reconstruction, Slide 10
Upsampler
u[n] Upsample by N up[n] Interpolate with Filter y[n]
u[n] n 1
up[n]
y[n]
n 1 N
M.H. Perrott2007
Add N-1 zero samples between every sample of the input Effectively scales time axis by factor N Filter the resulting sequence, up[n], in order to create a smoothly varying set of sequence samples Proper choice of the filter leads to interpolation between the non-zero samples of sequence up[n] (discussed in Lab 5)
up[n]
y[n] Y(ej2)
1 1 1/N Up(ej2) 1 -1
Addition of zero samples (scaling of time axis) leads to scaling of frequency axis by factor 1/N Interpolation filter removes all replicas of the signal transform except for the baseband copy
M.H. Perrott2007 Downsampling, Upsampling, and Reconstruction, Slide 12
D-to-A Converter
y[n] n 1 yc(t) D-to-A Converter
1/T Sample/s
yc(t)
yc(t)
Yc(f) f
Y(ej2) 1/T -2 -1 0 1 2 y[n] Sequence to Impulse Train 1/T yc(t) -2/T -1/T
Y(f) f
1/T
2/T
Conversion from sequence to impulse train amounts to scaling the frequency axis by sample rate of Dto-A (1/T) Reconstruction filter removes all replicas of the signal transform except for the baseband copy
M.H. Perrott2007 Downsampling, Upsampling, and Reconstruction, Slide 14
yc(t) t T
Zero-order hold circuit operates by maintaining the impulse value across the D-to-A sample period
Easy to implement in hardware
yc(t) t T
hzoh(t) t T
yc(t) t T
M.H. Perrott2007
Filtering corresponds to convolution in time between the input and the filter impulse response
yc(t) t T
hzoh(t) t T
yc(t) t T
Yc(f)
-2 T -2 T -1 T 0 1 T 2 T
Hzoh(f)
2 T
Yc(f)
f
-1 T 0 1 T
f
-2 T -1 T 0 1 T 2 T
M.H. Perrott2007
Summary
A-to-D converters convert continuous-time signals into sequences with discrete sample values
Operates with the use of sampling and quantization
D-to-A converters convert sequences with discrete sample values into continuous-time signals
Analyzed as conversion to impulse train followed by reconstruction filtering
Zero-order hold is a simple but low performance filter
Upsampling and downsampling allow for changes in the effective sample rate of sequences
Allows matching of sample rates of A-to-D, D-to-A, and digital processor Analysis: downsampler/upsampler similar to A-to-D/D-to-A