L11 f08
L11 f08
L11 f08
Lecture 11
• Data converters
– Areas of application
– Data converter transfer characteristics
– Sampling, aliasing, reconstruction
– Amplitude quantization
– Static converter error sources
• Offset
• Full-scale error
• Differential non-linearity (DNL)
• Integral non-linearity (INL)
D/A Conversion
Data Converters
Embedded Converters
Example: Typical Cell Phone
Contains in integrated form:
• 4 Rx filters
• 4 Tx filters
Dual Standard, I/Q
• 4 Rx ADCs
• 4 Tx DACs
Audio, Tx/Rx power
• 3 Auxiliary ADCs
control, Battery charge
• 8 Auxiliary DACs control, display, ...
Total: Filters Æ 8
ADCs Æ 7
DACs Æ 12
…….…
– Accepts digital inputs D/A
b1-bn
bN
– Produces either an LSB
analog output voltage
or current Nomenclature:
– Assumption (will be N = # o f b it s
revisited) VF S = fu ll sc a l e o ut p ut
• Uniform, binary digital Δ = min . step size → 1LS B
encoding VF S
Δ=
• Unipolar output 2N
V
ranging from 0 to VFS o r N = lo g2 F S → re so lu t io n
Δ
VFS = f u l l s cal e o u t p u t
D/A
Δ = m i n . st ep s i z e → 1L S B
bN
VFS LSB
Δ=
2N
N bi
V0 = VFS ∑
i =1 2
i
N ot e : D ( bi = 1,all i )
→ Vomax = VFS − Δ
N ⎛ 1 ⎞
→ Vomax = VFS ⎜ 1 −
= Δ × ∑ b i × 2 N −i , b i = 0 or 1 ⎝ 2N ⎠
⎟
i =1
binary-weighted
V0 = Δ ( b1 × 22 + b2 × 21 + b3 × 20 )
D/A
The n : Δ =VFS / 23 = 0. 1V
→ V0 = 0 .1V (1 × 22 + 0 × 21 + 1 × 20 ) =
→ V0 = 0.5V V0
N
Not e : M SB → VFS / 2 & LSB → VFS / 2
• One-to-one
mapping
from input to VFS /2
output Step Height (1LSB =Δ)
VFS /8
Digital Input
000 001 010 011 100 101 110 111
Code
…….…
– Accepts analog input in the
form of either voltage or
Vin A/D
current
bN LSB
– Produces digital output either
in serial or parallel form N = # of bits
VFS = f ull sc ale output
– Assumption (will be revisited)
• Unipolar input ranging from 0 Δ = min. re solv able input → 1LSB
to VFS
VFS
• Uniform, binary digital Δ=
encoding 2N
V
or N = log2 FS → re solution
Δ
Clock
"Memory
Discrete Time
Content"
Uniform Sampling
y(kT)=y(k)
t= 1T 2T 3T 4T 5T 6T ...
k= 1 2 3 4 5 6 ...
Aliasing
• The frequencies fx and nfs ± fx, n integer, are
indistinguishable in the discrete time domain
Amplitude
Continuous
Time
Signal scenario
before sampling
fin fs /2 fs 2fs …….. f
Discrete
Signal scenario Amplitude Time
after sampling Æ DT
0.5 f/fs
Continuous
Time
0 fs 2fs ... f
Discrete
Time
0 0.5 f/fs
Continuous Attenuation
Time
Discrete
Time
Data Converter
Classification
• fs > 2fmax Nyquist Sampling
– "Nyquist Converters"
– Actually always slightly oversampled (e.g. CODEC fsigmax =3.4kHz &
ADC sampling 8kHz Æ fs /fmax=2.35)
– Requires anti-aliasing filtering prior to A-to-D conversion
0 fs ... f
Discrete
Time
0 0.5 f/fs
• 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
EECS 247 Lecture 11: Introduction to Data Converters © 2008 H. K. Page 27
Analog Output
Ideal Reconstruction
x(k) x(t)
⇒
0 10 20 30
Time [μs]
• Let's analyze this in
two steps...
Infinite
Zero padded ... ... f /fs
Interpolation:
0.5fs 1.5fs 2.5fs
CT Signal
Next step: pass the samples through a sample & hold stage (ZOH)
sin(Tπ fsin(
Ts )πfT )
| H ( f ) |= p p
0.8 | H ( f ) |= π f Ts
abs(H(f)) Ts πfT p
0.6
0.4
0.2
0
0 0.5 1 1.5 2 2.5 3
f /fs
0.2
0
0 0.5 1 1.5 2 2.5 3
f / fs
EECS 247 Lecture 11: Introduction to Data Converters © 2008 H. K. Page 35
Summary
Analog Output
7
• Quantization step: 6
5
Δ (= 1 LSB) 4
3
• Full-scale input range: 2
1
-0.5Δ … (2N-0.5)Δ 0
-1 0 1 2 3 4 5 6 7 8
VFS
• E.g. N = 3 Bits ADC Input Voltage [ Δ]
Quantization Error
7 ideal converter with infinite bits
Quantization error [LSB] Digital Output Code
6 ADC characteristics
• For an ideal ADC: 5
4
• Quantization error is 3
2
bounded by –Δ/2 … +Δ/2 1
for inputs within full-scale 0
-1 0 1 2 3 4 5 6 7 8
range
0.5
ADC Model 0
Vin Dout -0.5
+
εq (Vin ) -1 0 1 2 3 4 5 6 7 8
ADC Input Voltage [Δ]
Quantization Error
Assume Vin is a slow ramp signal with amplitude equal to ADC full-scale
Vin_Ramp
VFS
Quantization
Time
error [LSB]
Δ/2
Time
0
−Δ/2
Note: Ideal ADC quantization error waveformÆ periodic and also ramp
Δ/2k
Δ2
→ ε eq2 = Æ Independent of k −Δ/2k 0 Time
12
Δ −Δ/2
→ ε eq =
12
In general above equation applies if:
• Input signal much larger than 1LSB
• Input signal busy
• No signal clipping
PDF 1/Δ
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
-Δ/2 +Δ/2 error Theory, vol. CT-3, pp. 266-76, 1956.
ADC
SNR Measurement
Realistic
6dB/octave
0dB
Vin [dB]
Dynamic Range
DAC
Din Vout
ADC
Vin Dout Æ +-0.5LSB ambiguity
+ε
q
DAC ADC
Din
Dout
+
εq
– Full-scale error
Offset Error
ADC DAC
Full-scale
error
Full-scale
error
Actual
full-scale
point
measurements 6
Full-scale
(DNL, INL) error
5
connecting the
endpoints & 4
deriving ideal 3
codes based on
2
the non-ideal
endpoints 1
Offset error
eliminates 0
offset and full-
scale error -1 0 1 2 3 4 5 6 7 8
ADC Input Voltage [LSB]
1. Endpoints 5
connected
4
3
2. Ideal
characteristics 2 0 LSB DNL error
derived
eliminating offset 1
+0.4 LSB DNL error
& full-scale error 0
0 1 2 3 4 5 6 7 8
3. DNL measured
ADC Input Voltage [Δ]
EECS 247 Lecture 11: Introduction to Data Converters © 2008 H. K. Page 54
ADC Differential Nonlinearity
• Ideal ADC transitions point equally spaced by 1LSB
Example
Offset, Full-Scale Error, Gain,& DNL
A 3bit ADC is designed to have an ideal: Ideal Real
LSB=0.1V Æ VFS=0.8V Transition
transition transition
#
The measured transitions levels for the end point [V] point [V]
product is shown in the table, compute offset, full-
scale, gain error, & DNL 1 0.05 0.02
1- Offset: (real transition-ideal)= -0.03V, 2 0.15 0.15
in LSBÆ -0.03/0.1= -0.3LSB
2- Full-scale error (real last transition-ideal) 3 0.25 0.2
= 0.68-0.65=0.03V
in LSBÆ 0.03/0.1=+0.3LSB 4 0.35 0.37
3- LSB after correcting for offset & full-scale 5 0.45 0.42
error:
LSB= (Last transition-first transition)/(2N-2) 6 0.55 0.5
LSB= (0.68-0.02)/6=0.11V
7 0.65 0.68
0 2 -0.55
3 0.55
-0.5 4 -0.55
5 -0.27
-1
0 1 2 3 4 5 6 7 6 0.64
Code # 7 -
5 5
4 4
3 3
2 Missing code 2
(+0.5/-1 LSB DNL) Non-monotonic
1 1 (> 1 LSB DNL)
0 0
-1 0 1 2 3 4 5 6 7 8 9 -1 0 1 2 3 4 5 6 7 8 9
ADC Input Voltage [Δ] ADC Input Voltage [Δ]
ADC DNL
• DNL=-1 implies missing code
• For an ADC DNL < -1 not possible Æ undefined
• Can show:
al l i
∑ DN L[i ] = 0