Sunteți pe pagina 1din 36

EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K.

Page 1
EE247
Lecture 11
Filters (continued)
Example: Switched-capacitor filters in
CODEC integrated circuits
Switched-capacitor filter design summary
Comparison of various filter topologies
New Topic: Data Converters
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 2
Summary
Last Lecture
Switched-capacitor filters
Switched-capacitor integrators
LDI integrators
Effect of parasitic capacitance
Bottom-plate integrator topology
Resonators
Bandpass filters
Lowpass filters
Termination implementation
Transmission zero implementation
Switched-capacitor filter design considerations
Effect of non-idealities
Switched-capacitor filters utilizing double sampling technique
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 3
Switched-Capacitor Filter Application
Example: Voice-Band CODEC (Coder-Decoder) Chip
Ref: D. Senderowicz et. al, A Family of Differential NMOS Analog Circuits for PCM Codec Filter Chip, IEEE
Journal of Solid-State Circuits, Vol.-SC-17, No. 6, pp.1014-1023, Dec. 1982.
f
s
= 1024kHz
f
s
= 128kHz f
s
= 8kHz f
s
= 8kHz
f
s
= 8kHz f
s
= 128kHz f
s
= 128kHz
f
s
= 128kHz
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 4
CODEC Transmit Path
Lowpass Filter Frequency Response
0 2000 4000 6000 8000
-50
-40
-30
-20
-10
0
Frequency (Hz)
M
a
g
n
i
t
u
d
e

(
d
B
)
Note: f
s
=128kHz
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 5
CODEC Transmit Path
Highpass Filter
1000
-50
-40
-30
-20
-10
0
Frequency (Hz)
M
a
g
n
i
t
u
d
e

(
d
B
)
10000 100
10
Note: f
s
=8kHz
230
60
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 6
CODEC Transmit Path Filter
Overall Frequency Response
1000
-50
-40
-30
-20
-10
0
Frequency (Hz)
M
a
g
n
i
t
u
d
e

(
d
B
)
10000 100
10
Low Q bandpass (Q<1) filter shapeImplemented with lowpass followed by highpass
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 7
CODEC Transmit Path
Clocking & Anti-Aliasing Scheme
First filter (1
st
order RC type) performs anti-aliasing for the next
S.C. biquad
The 1
st
& 2
nd
stage filters form 3
rd
order elliptic LPF with corner
frequency @ 32kHz Anti-aliasing for the next lowpass filter
The stages prior to the high-pass perform anti-aliasing for high-
pass
Notice gradual lowering of clock frequency Ease of anti-aliasing
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 8
SC Filter Summary
Pole and zero frequencies proportional to
Sampling frequency f
s
Capacitor ratios
High accuracy and stability in response
Long time constants realizable without requiring large value R
Compatible with transconductance amplifiers
Reduced circuit complexity, power dissipation
Amplifier bandwidth requirements less stringent
compared to CT filters (low frequencies only)
Issue: Sampled-data filters require anti-aliasing
prefiltering
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 9
Switched-Capacitor Filters versus Continuous-
Time Filter Limitations
Considering overall
effects of:
Opamp finite slew
rate
Opamp finite unity-
gain-bandwidth
Opamp settling
issues
Clock feedthru
Switch+ sampling
cap. finite time-
constant
Filter
bandwidth
Magnitude
Error
5-10MHz
S.C. Filter
Cont. Time Filter
Limited switched-capacitor filter performance frequency range
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 10
Summary
Filter Performance versus Filter Topology
_
1-5%
1-5%
1-5%
1-5%
Freq.
tolerance
+ tuning
<<1% 40-90dB ~ 10MHz Switched
Capacitor
+-40-60% 40-70dB ~ 100MHz Gm-C
+-30-50% 50-90dB ~ 5MHz Opamp-
MOSFET-RC
+-30-50% 40-60dB ~ 5MHz Opamp-
MOSFET-C
+-30-50% 60-90dB ~10MHz Opamp-RC
Freq.
tolerance
w/o tuning
SNDR Max. Usable
Bandwidth
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 11
Material Covered in EE247
Where are We?
Filters
Continuous-time filters
Biquads & ladder type filters
Opamp-RC, Opamp-MOSFET-C, gm-C filters
Automatic frequency tuning
Switched capacitor (SC) filters
Data Converters
D/A converter architectures
A/D converter
Nyquist rate ADC- Flash, Pipeline ADCs,.
Oversampled converters
Self-calibration techniques
Systems utilizing analog/digital interfaces
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 12
Data Converters
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 13
Suggested Reference Texts
R. v. d. Plassche, CMOS Integrated Analog-to-Digital and
Digital-to-Analog Converters, 2nd ed., Kluwer, 2003.
B. Razavi, Data Conversion System Design, IEEE Press, 1995.
S. Norsworthy et al (eds), Delta-Sigma Data Converters, IEEE
Press, 1997.
Extensive treatment of oversampled converters including
stability, tones, bandpass converters.
J. G. Proakis, D. G. Manolakis, Digital Signal Processing,
Prentice Hall, 1995.
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 14
Converter Applications
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 15
Data Converter Basics
DSPs benefited from device scaling
However, real world signals are still
analog:
Continuous time
Continuous amplitude
DSP can only process:
Discrete time
Discrete amplitude
Need for data conversion from
analog to digital and digital to
analog
Analog
Postprocessing
D/A
Conversion
DSP
A/D
Conversion
Analog
Preprocessing
Analog Input
Analog Output
000
...001...
110
Filters
Filters
?
?
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 16
A/D & D/A Conversion
A/D Conversion
D/A Conversion
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 17
Data Converters
Stand alone data converters
Used in variety of systems
Example: Analog Devices AD9235 12bit/ 65Ms/s
ADC- Applications:
Ultrasound equipment
IF sampling in wireless receivers
Various hand-held measurement equipment
Low cost digital oscilloscopes
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 18
Data Converters
Embedded data converters
Integration of data conversion interfaces along
with DSPs and/or RF circuits Cost, reliability,
and performance
Main issues
Feasibility of integrating sensitive analog functions in a
technology typically optimized for digital performance
Down scaling of supply voltage as a result of downscaling of
feature sizes
Interference & spurious signal pick-up from on-chip digital
circuitry and/or high frequency RF circuits
Portable applications dictate low power consumption
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 19
Example: Typical Cell Phone
Contains in integrated form:
4 Rx filters
4 Tx filters
4 Rx ADCs
4 Tx DACs
3 Auxiliary ADCs
8 Auxiliary DACs
Total: Filters 8
ADCs 7
DACs 12
Dual Standard, I/Q
Audio, Tx/Rx power
control, Battery charge
control, display, ...
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 20
D/A Converter Transfer Characteristics
An ideal digital-to-
analog converter:
Accepts digital inputs
b
1
-b
n
Produces either an
analog output voltage
or current
Assumption (will be
revisited)
Uniform, binary digital
encoding
Unipolar output
ranging from 0 to V
FS
D/A
..
b
1
b
2
b
3
b
n
V
o
or I
o
MSB LSB
FS
FS
N
FS
2
N # of bi t s
V f ul l scal e out put
mi n. st ep si ze 1LSB
V
2
V
or N l og resol ut i on
=
=
=
=
=

Nomenclature:
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 21
D/A Converter Transfer Characteristics
FS
FS
N
N # of bi t s
V f ul l scal e out put
mi n. st ep si ze 1LSB
V
2
=
=
=
=
N
0 FS
i 1
N
i 1
i
N i
bi
V V
2
bi 2 , bi 0 or 1
=
=

=
= =

D/A
..
b
1
b
2
b
3
b
n
V
0
MSB LSB
binary-weighted
( )
i
max
o FS
max
o FS
N
Not e : D b 1,al l i
V V
1
1 V V
2
=
=

=


EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 22
D/A Converter
Exampe: D/A with 3-bit Resolution
D/A
b
1
b
2
b
3
V
0
MSB
LSB
( )
( )
FS
0
1 2 3
3
FS
0
0
N
FS FS
2 1 0
2 1 0
Exampl e : N 3
Assume V 0. 8V
Input code i s 101
V
b 2 b 2 b 2
Then : V / 2 0. 1V
V 0. 1V
1 2 0 2 1 2
V 0. 5V
Not e : MSB V / 2 & LSB V / 2
=
=
=
+ +
= =
= =
+ +
=

1 0 1
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 23
Ideal 3-Bit D/A Transfer Characteristic
Ideal DAC
introduces
no error!
One-to-one
mapping
from input to
output
000 001 010 011 100 101 110 111
Step Height (1LSB =)
Ideal Response
Digital Input
Code
Analog
Output
V
FS
V
FS
/2
V
FS
/8
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 24
A/D Converter Transfer Characteristics
An ideal analog-to-digital
converter:
Accepts analog input in the
form of either voltage or
current
Produces digital output either
in serial or parallel form
Assumption (will be revisited)
Unipolar input ranging from 0
to V
FS
Uniform, binary digital
encoding
A/D
..
b
1
b
2
b
3
b
n
V
in
MSB LSB
FS
FS
N
FS
2
N # of bi t s
V f ul l scal e out put
mi n. resol uvabl e i nput 1LSB
V
2
V
or N l og resol ut i on
=
=
=
=
=

EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 25
Ideal A/D Transfer Characteristic
Ideal ADC
introduces
error with max
peak-to-peak:
(+-1/2 )
= V
FS
/2
N

N= # of bits
This error is
called
``quantization
error``
111
110
101
100
011
010
001
000
Digital
Output
Analog
input
0 2 3 4 5 6 7
1LSB
V
FS
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 26
Non-Linear Data Converters
So far data converter characterisitics studied
are with uniform, binary digital encoding
For some applications to maximize dynamic
range non-linear coding is used e.g. Voice-
band telephony,
Small signals larger # of codes
Large signals smaler # of codes
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 27
Example: Non-Linear A/D Converter
For Voice-Band Telephony Applications
Non-linear ADC and DAC
used in voice-band
CODECs
To maximize dynamic
range without need for
large # of bits
Non-linear Coding
scheme called A-law &
-law is used
Also called companding
Ref: P. R. Gray, et al. "Companded
pulse-code modulation voice codec
using monolithic weighted capacitor
arrays," IEEE Journal of Solid-State
Circuits, vol. 10, pp. 497 - 499,
December 1975.
-V
FS
/2 -V
FS
-V
FS
/4
Coder Input
(ANALOG)
Coder Output
(DIGITAL)
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 28
Data Converter Performance Metrics
Data Converters are typically characterized by static, time-domain,
& frequency domain performance metrics :
Static
Monotonicity
Offset
Full-scale error
Differential nonlinearity (DNL)
Integral nonlinearity (INL)
Dynamic
Delay, settling time
Aperture uncertainty
Distortion- harmonic content
Signal-to-noise ratio (SNR), Signal-to-(noise+distortion) ratio (SNDR)
Idle channel noise
Dynamic range & spurious-free dynamic range (SFDR)
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 29
Typical Sampling Process
CT SD DT
Continuous
Time
Sampled Data
(e.g. T/H signal)
Clock
Discrete Time
time
Physical
Signals
"Memory
Content"
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 30
Discrete Time Signals
A sequence of numbers (or vector) with discrete index
time instants
Intermediate signal values not defined
(not the same as equal to zero!)
Mathematically convenient, non-physical
We will use the term "sampled data" for related signals
that occur in real, physical interface circuits
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 31
Uniform Sampling
Samples spaced T seconds in time
Sampling Period T Sampling Frequency f
s
=1/T
Problem: Multiple continuous time signals can yield
exactly the same discrete time signal (aliasing)
y(kT)=y(k)
t= 1T 2T 3T 4T 5T 6T ...
k= 1 2 3 4 5 6 ...
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 32
Data Converters
ADC/DACs need to sample/reconstruct to
convert from continuous-time to discrete-time
signals and back
Purely mathematical discrete-time signals are
different from "sampled-data signals" that
carry information in actual circuits
Question: How do we ensure that
sampling/reconstruction fully preserve
information?
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 33
Aliasing
The frequencies f
x
and nf
s
f
x
, n integer, are
indistinguishable in the discrete time domain
Undesired frequency interaction and
translation due to sampling is called aliasing
If aliasing occurs, no signal processing
operation downstream of the sampling
process can recover the original continuous
time signal!
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 34
Frequency Domain Interpretation
f
s ..
f
A
m
p
l
i
t
u
d
e
f
in
2f
s
A
m
p
l
i
t
u
d
e
f/f
s
Signal scenario
before sampling
Signal scenario
after sampling DT
Signals @
nf
S
f
max__signal
fold
back into band of
interest
Aliasing
f
s
/2
0.5
Continuous
Time
Discrete
Time
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 35
Brick Wall Anti-Aliasing Filter
Sampling at Nyquist rate (f
s
=2f
signal
) required brick-wall anti-aliasing filters
Continuous
Time
Discrete
Time
0 f
s
2f
s
... f
Amplitude
0 0.5 f/f
s
Filter
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 36
Practical Anti-Aliasing Filter
Practical filter: Nonzero "transition band"
In order to make this work, we need to
sample faster than 2x the signal bandwidth
"Oversampling"
Continuous
Time
0 f
s
2f
s
... f
Amplitude Filter
f
s
/2
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 37
Practical Anti-Aliasing Filter
Continuous
Time
Discrete
Time
0 f
s
... f
Desired
Signal
0 0.5 f/f
s
f
s
/2 B f
s
-B
Parasitic
Tone
B/f
s
Attenuation
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 38
Data Converter
Classification
f
s
> 2f
max
Nyquist Sampling
"Nyquist Converters"
Actually always slightly oversampled (e.g. CODEC f
sig
max
=3.4kHz &
ADC sampling 8kHz f
s
/f
max
=2.35)
Requires anti-aliasing filtering prior to A-to-D conversion
f
s
>> 2f
max
Oversampling
"Oversampled Converters"
Anti-alias filtering is often trivial
Oversampling is also used to reduce quantization noise, see later
in the course...
f
s
< 2f
max
Undersampling (sub-sampling)
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 39
Sub-Sampling
Sub-sampling sampling at a rate less than Nyquist rate aliasing
For signals centered @ an intermediate frequency Not destructive!
Sub-sampling can be exploited to mix a narrowband RF or IF signal down
to lower frequencies
Continuous
Time
Discrete
Time
0 f
s
...
f
Amplitude
0 0.5 f/f
s
BP Filter
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 40
Nyquist Data Converter Topics
Basic operation of data converters
Uniform sampling and reconstruction
Uniform amplitude quantization
Characterization and testing
Common ADC/DAC architectures
Selected topics in converter design
Practical implementations
Compensation & calibration for analog circuit non-idealities
Figures of merit and performance trends
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 41
Where Are We Now?
We now know how to
preserve signal
information in CTDT
transition
How do we go back from
DTCT? Analog
Postprocessing
D/A
Conversion
DSP
A/D
Conversion
Analog
Preprocessing
Analog Input
Analog Output
000
...001...
110
Anti-Aliasing
Filter
?
Sampling
(+Quantization)
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 42
Ideal Reconstruction
Unfortunately not all that practical...

=
=
k
kT t g k x t x ) ( ) ( ) (
Bt
Bt
t g

2
) 2 sin(
) ( =
The DSP books tell us:

x(k) x(t)
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 43
Zero-Order Hold Reconstruction
How about just
creating a staircase,
i.e. hold each discrete
time value until new
information becomes
available?
What does this do to
the frequency content
of the signal?
Let's analyze this in
two steps...
0 10 20 30
-1
-0.6
-0.2
0.2
1
Time [s]
A
m
p
l
i
t
u
d
e
sampled data
after ZOH
0.6
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 44
DTCT: Infinite Zero Padding
DT sequence
Time Domain Frequency Domain
...
...
0.5
Infinite
Zero padded
Interpolation:
CT Signal
...
...
f /f
s
f /f
s
0.5f
s
1.5f
s
2.5f
s
Next step: pass the samples through a sample & hold block (ZOH)
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 45
Hold Pulse T
p
=T
s
Transfer Function
p
p
s
p
fT
fT
T
T
f H

) sin(
| ) ( | =
0 0.5 1 1.5 2 2.5 3
0
0.2
0.4
0.6
0.8
1
f /f
s
a
b
s
(
H
(
f
)
)
s
s
T f
) T f sin(
| ) f ( H |

=
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 46
ZOH Spectral Shaping
Continuous Time
Pulse Train
Spectrum
ZOH Transfer
Function
("Sinc Shaping")
ZOH output,
Spectrum of
Staircase
Approximation
f / f
s
0 0.5 1 1.5 2 2.5 3
0
0.5
1
0 0.5 1 1.5 2 2.5 3
0
0.5
1
0 0.5 1 1.5 2 2.5 3
0
0.5
1
X(k)
ZOH
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 47
Smoothing Filter
Order of the filter
required is a
function of
oversampling ratio
High oversampling
helps reduce filter
order requirement
f / f
s
0 0.5 1 1.5 2 2.5 3
0
0.2
0.4
0.6
0.8
1
Filter out the high
frequency content
associated with
staircase shape of the
signal
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 48
Summary
Sampling theorem f
s
> 2f
max,
usually dictates
anti-aliasing filter
If theorem is met, CT signal can be recovered
from DT without loss of information
ZOH and smoothing filter reconstruct CT
signal from DT vector
Oversampling helps reduce order &
complexity of anti-aliasing & smoothing filters
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 49
Next Topic
Done with "Quantization
in time"
Next: Quantization in
amplitude
Analog
Postprocessing
D/A
Conversion
DSP
A/D
Conversion
Analog
Preprocessing
Analog Input
Analog Output
000
...001...
110
Anti-Aliasing
Filter
Sampling
(+Quantization)
Smoothing
Filter
D/A+ZOH
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 50
Ideal ADC ("Quantizer")
Accepts & analog input &
generates its digital
representation
Quantization step:
(= 1 LSB)
Full-scale input range:
-0.5 (2
N
-0.5)
E.g. N = 3 Bits
V
FS
= -0.5 to 7.5
-1 0 1 2 3 4 5 6 7 8
0
1
2
3
4
5
6
7
D
i
g
i
t
a
l

O
u
t
p
u
t

C
o
d
e
ADC characteristics
Ideal converter with infinite # of bits
ADC Input Voltage [ ]
V
FS
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 51
Quantization Error
Quantization errorDifference between analog input and
output of the ADC converted to analog via an ideal DAC
Called:
Quantization error
Residue
Quantization noise
V
in
ADC
Ideal
DAC

Residue
+
-

q
(V
in
)
.
.
.
.
.
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 52
Quantization Error
For an ideal ADC:
Quantization error is
bounded by /2 +/2
for inputs within full-scale
range
+

q
(V
in
)
V
in
D
out
ADC Model
-1 0 1 2 3 4 5 6 7 8
0
1
2
3
4
5
6
7
D
i
g
i
t
a
l

O
u
t
p
u
t

C
o
d
e
ADC characteristics
ideal converter with infinite bits
-1 0 1 2 3 4 5 6 7 8
-0.5
0
0.5
Q
u
a
n
t
i
z
a
t
i
o
n

e
r
r
o
r


[
L
S
B
]
ADC Input Voltage []
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 53
ADC Dynamic Range
Assuming quantization noise is much larger
compared to circuit generated noise:
Crude assumption: Same peak/rms ratio for signal
and quantization noise!
Question: What is the quantization noise power?
10
20
20 20 2 6 02
Maximum
Maximum
N FS
Full Scale Signal Power
D.R. log
Quantization Noise Power
Peak Full Scale
D.R. log
Peak Quantization Noise
V
log log . N [ dB]
=
=
= = =

EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 54
Quantization Error
0
/2
Quantization
error [LSB]
Let us assume V
in
is a ramp signal with amplitude equal to ADC full-scale
V
in
_Ramp
Time
Time
V
FS
Note: Quantization error waveformperiodic and also ramp
/2
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 55
Quantization Error
Need to find the rms value for quantization error waveform:
Quantization
error
0
/2
Time
/2

q
=k.t
/2k
/2k
( ) ( )
2 2 2
eq
2
2
2
2
eq
eq
T / 2 / 2k
T / 2 / 2k
/ 2k
/ 2k
1
k t dt k t dt
T k
k
t dt
k
12
12

+ +
+

= =

Independent of k
In general above equation applies if:
Input signal much larger than 1LSB
Input signal busy
No signal clipping
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 56
Quantization Error PDF
Probability density function
(PDF) Uniformly distributed from
/2 +/2 provided that:
Busy input
Amplitude is many LSBs
No overload
Not Gaussian!
Zero mean
Variance
Ref: W. R. Bennett, Spectra of quantized
signals, Bell Syst. Tech. J., vol. 27, pp.
446-72, July 1988.
B. Widrow, A study of rough amplitude
quantization by means of Nyquist
sampling theory, IRE Trans. Circuit
Theory, vol. CT-3, pp. 266-76, 1956.
-/2
PDF
error
1/
+/2
2 2
2
/ 2
/ 2
e
e de
12
+

= =

EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 57
Signal-to-Quantization Noise Ratio
If certain conditions the quantization error can be viewed as being
"random", and is often referred to as noise
In this case, we can define a peak signal-to-quantization noise ratio,
SQNR, for sinusoidal inputs:
Real converters do not quite achieve this performance due to other
sources of error:
Electronic noise
Deviations from the ideal quantization levels
2
N
2N
2
1 2
2 2
SQNR 1. 5 2
12
6. 02N 1. 76 dB Accurat e f or N>3




= =

= +
e.g. N SQNR
8 50 dB
12 74 dB
16 98 dB
20 122 dB
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 58
SQNR Measurement
20log(SQNR)
Vin [dB]
0dB
6dB/octave
Realistic
peak
SQNR 6. 02N 1. 76 dB = +
Dynamic Range
Ideal
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 59
Static Ideal Macro Models
ADC
+
D
out
V
in

q
DAC
V
out D
in
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 60
Cascade of Data Converters
ADC
+
V
in

q
DAC
V
out
ADC
+

q
DAC
D
out
D
in
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 61
Static Converter Errors
Deviation of converter characteristics from
ideal:
Offset
Full-scale error
Differential nonlinearity DNL
Integral nonlinearity INL
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 62
Offset Error
ADC DAC
Ref: Understanding Data Converters, Texas Instruments Application Report
SLAA013, Mixed-Signal Products, 1995.
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 63
Full-Scale Error
ADC
DAC
Actual full-scale point
Ideal full-scale
point
Ideal full-scale
point
Full-scale
error
Actual
full-scale
point
Full-scale
error
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 64
Offset and Full-Scale Error
-1 0 1 2 3 4 5 6 7 8
0
1
2
3
4
5
6
7
D
i
g
i
t
a
l

O
u
t
p
u
t

C
o
d
e
ADC Input Voltage [LSB]
ADC characteristics
ideal converter
Offset error
Full-scale
error
Note:
For further
measurements
(DNL, INL)
connecting the
endpoints &
deriving ideal
codes based on
the non-ideal
endpoints
elliminates offset
and full-scale
error
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 65
Offset and Full-Scale Errors
Alternative specification in % Full-Scale = 100% * (#
of LSB value)/ 2
N
Gain error can be extracted from offset & full-scale
error
Non-trivial to build a converter with extremely good
full-scale/offset specs
Typically full-scale/offset is most easily compensated
by the digital pre/post-processor
More critical: Linearity measuresDNL, INL
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 66
0 1 2 3 4 5 6 7 8
0
1
2
3
4
5
6
7
8
ADC Transfer Curve
Real
Ideal
ADC Differential Nonlinearity
DNL = deviation
of code width from
(1LSB)
+0.4 LSB DNL error
-0.4 LSB DNL error
1. Endpoints
connected
2. Ideal
characteristics
derived
elliminating offset
& full-scale error
3. DNL measured
0 LSB DNL error
D
i
g
i
t
a
l

O
u
t
p
u
t

C
o
d
e
ADC Input Voltage []
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 67
ADC Differential Nonlinearity
Ideal ADC transitions point equally spaced by 1LSB
For DNL measurement, offset and full-scale error is
eliminated
DNL [k] (a vector) measures the deviation of each
code from its ideal width
Typically, the vector for the entire code is reported
If only one DNL # is reported that would be the worst
case
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 68
Example
Compute Offset, Full-Scale Error, & DNL
A 3bit ADC is designed to have an ideal:
LSB=0.1V
The measured transitions levels for the end
product is shown in the table below, compute
offset, full-scale, gain error, & DNL
1- Offset: (real transition-ideal)= -0.03V,
in LSB-0.03/0.1=-0.3LSB
2- Full-scale error (real last transition-ideal)
= 0.68-0.65=0.03V
in LSB0.03/0.1=+0.3LSB
3- LSB after correcting for offset & full-scale
error:
LSB=(Last transition-first transition)/(2
N
-2)
LSB=(0.68-0.02)/6=0.11V
0.68 0.65 7
0.5 0.55 6
0.42 0.45 5
0.37 0.35 4
0.2 0.25 3
0.15 0.15 2
0.02 0.05 1
Real
transition
point [V]
Ideal
transition
point [V]
Transition
#
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 69
ADC Differential Nonlinearity
Example
V
FS
= 2
N
.0.11V=0.88V
4-Gain relative to ideal
Gain=0.8/0.88=0.9
Find all code widths
Width[k]=Transition[k+1]-
Transition[k]
-Divide code width by LSBW[k]
5- Find DNL:
DNL[k]=W[k]-LSB
1.64
0.73
0.45
1.55
0.45
1.18
Width
[LSB]
- - 0
- - 7
0.64 0.18 6
-0.27 0.08 5
-0.55 0.05 4
0.55 0.17 3
-0.55 0.05 2
0.18 0.13 1
DNL
[LSB]
Code
Width [V]
Code
#
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 70
ADC Differential Nonlinearity
Example
- 0
- 7
0.64 6
-0.27 5
-0.55 4
0.55 3
-0.55 2
0.18 1
DNL
[LSB]
Code
#
Code #
D
N
L

[
L
S
B
]
0 1 2 3 4 5 6 7
1
0.5
0
-0.5
-1
Max.
DNL
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 71
-1 0 1 2 3 4 5 6 7 8 9
0
1
2
3
4
5
6
7
8
ADC characteristics
ideal converter
ADC Differential Nonlinearity
Examples
-1 0 1 2 3 4 5 6 7 8 9
0
1
2
3
4
5
6
7
8
ADC characteristics
ideal converter
Non-monotonic
(> 1 LSB DNL)
Missing code
(+0.5/-1 LSB DNL)
D
i
g
i
t
a
l

O
u
t
p
u
t

C
o
d
e
ADC Input Voltage []
D
i
g
i
t
a
l

O
u
t
p
u
t

C
o
d
e
ADC Input Voltage []
EECS 247 Lecture 11: S.C. Filter Example/ Introduction to Data Converters 2007 H. K. Page 72
ADC DNL
DNL=-1 implies missing code
For an ADC DNL < -1 not possible undefined
Can show:
For a DAC DNL < -1 possible
al l i
DNL[i ] 0 =

S-ar putea să vă placă și