ADC and DAC Convertors
ADC and DAC Convertors
(b)
-fe
(c)
Antialiasing
Filter
fs
(d)
Figure 10.5-2 (a) Continuous time frequency response of the analog input signal.
(b) Sampled-data equivalent frequency response. (c) Case where fa is larger than 0.5/s,
causing aliasing. (d) Use of an antialiasing filter to avoid aliasing.
Fig. 10.5-l to eliminate signals in the incoming analog input that are
shown in Fig. 10.5-2(d). The overlapping of the folded spectra also willabove 0.5fs. This is
occur if the band
width of the analog input signal remains fixed but the sampling
2fg. Even iff,is less than 0.5f as in Fig. 10.5-2(6), as we have frequency decreases below
the antialiasing filter is necessary to eliminate the seen in the previous chaoter
into the baseband which is from 0 tof. aliasing of signals in the upper passbands
In order to maximize the input bandwidth of the
ADC, one
0.5f; aspossible. Unfortunately, this requires a very sharp cutoffdesires to make fa as close to
for the prefilter or antialias
ing filter, which make this filter difficult and complex to
operate in this manner are called Nyquist analog-to-digitalimplement. The types of ADCs that
ADCS that have fa much less than 0.5fs. These ADCs areconverters. Later we will examine
digitalconverters. Table 10.5-1l gives the classification of cal<ed oversampling analog-to
discussed in this chapter. various types of ADCs that willbe
LSB
100
ldeal 3-bit
Chat:wteristic
010
001
of..-.*....*... ........
0.5
00
-0.5
Gain error is illustrated in Fig. 10.5-4(b). Similar to the DAC, gain error cán be measured as
characteristics at
the horizontal difference in LSBs between actual and ideal finite resolution
highest digital code, ie., between 110 and I|lon Fig. 10.5-4(b). In this example. it is as
sumed that al! other erors such as offset and nonlinearity are not present.
The definition for integral nonlinearity (UNL) Ofthe ADC is the maximum difference be
characteristic
tween the actual finite resolution charateristic and theideal finite resolution
measuret vertically in percent or LSBs. With this definition, we find that only integer values
amplitudes. This is not a
art permiticd because the digital output codes correspond to discreteaddition,
probiem as the resolution increases and the LSB becomes small, ln when measuring
to resolve the INL to
the INL if the measurement equipment is sufficiently accurate, it isable
less than a LSB.
10ea
Characleristic -
1o1 Charadierigic 4
100,--f. J00
Actuaj
01] Çhargcterjstic
O10 o10
001 oflet i5LSB
001
000
VREF
000 VRSP
(o) (b)
igure 10.4 Example of offseterror for a 3-bit.ADC. (b) Example of gainerror
for a 3-bit hD
Differential nonlinearity (DNL) of the ADC is defined as a
between adjacent codes measured at each measure of the separation
nonlinearity of an ADC can be written as vertical step in percent or LSBs. The differential
DNL = (D, - 1) LSBs
(10.5-1)
where D.. is the size of the actual vertical step in LSBs.
differential nonlinearity for a 3-bit ADC referenced to theFigure 10.5-5 shows the integral and
digital output code. We see that the
largest and smallest values of INL are +1LSB and -1LSB,
respectively. The largest and
smallest values of DNL are +]LSB and 0LSB, respectively. As compared
of -LSB, which resulted from the case where a step to the DAC, a DNL
should have occurred, does not happen
for the ADC. For example, at an input voltage of on Fig. l0.5-5, the fact that a vertical jump
does not occur cannot be considered as a DNL of - 1LSB.
Nonmonotonicity in an ADC occurswhen a vertical jump is negative. Nonmonotonicity
can oniy be detected by DNL Because output is limited to digital codes, all jumps are inte
gers. Normally, the vertical jump is 12LSB. If the jump is 2LSBs or greater, missing output
codes may occur. If the vertical jump is less than 0LSB, then the ADC is ot monotonic. Fig
ure 10.56 shows a 3-bit ADCcharacteristic that is not monotonic. Nonmonotonicity gener
ally occurs when the MSB does not have sufficient accuracy. The change from 01 111. . to
10000. ...s he most difficult because the MSB must have the accuracy of t0.5LSB o
excessivc DNL will occur.
D= + (10.1-2)
2
Nis the total number of bitsof the digital word and b,- is the ith-bit coefficient and is either
0or 1.herefore, the output of a DAC can be expressed by combining Eqs. (10.I-1) and
(T0.1-2)to get
'our = KVREF +
b + (10.1-3)
2 2
or
Digital Signal
Processing
System
Microprocessors DIGITAL
Compac1 disks ANALOG Filter Amplifier Analog
Read only memory
Random access memory |CONVERTER Ouiput
Digital transmission
Disk outpuLs
Digital sensors
Reference
Figure 10.1-! Digital-analog converter in signal-processing applications.
bo. Sample
b Digital bË-+ Digital and
b Analog roUT b-|Latch
Analog
Hold
-VouT
Converter
:Converter
bN-] bN-|+
Clock
(a) (b)
Figure 10.1-2 (a) Digital-analog converter in signal-processing applications.
(b) Clocked digital-analog converter for synchronous operation. (The asterisk rep
resents a signal that has been sampled und held.)
Gamany cascsthe digital word is synchronously clocked.ynthis case latches must be used
to holdthe word for conversion anda sample-and-hold circuit is needed atthe output, as shown
in Fig. 10.-26). We will examine sample-and-hold circuits in piore detail later in this chapter.
The basic form of a DAC providing an analog output voliage is shown in more detail in
Fig. 10.1-3. lt includes binary switches, a scaling network, and an output amplifier. The
scaling network and binary switches operate on the reference voltage to crcate a voltage that
has been scaled by the digital word. The scaling mechanism may be voltage, current, or
charge scaling. The output amplifier amplifies the scaled voltage signal to a desired level
and provides the ability to source or sink current into a load.
SB = VREF (10.1-5)
Asthe digital word increases by 1-bit,the output of the ideal DAC should iump.up by lLSB)
We note that the output is 0.0625 Vfor the digital input of 000. However, there is no reason
Binary Switches
bobË b bN-1
Figure 10.1-3 Block diagram of a digital-analog converter.
L.000 Figure 10.1-4 ldeal
VREE0.875
input-outpui
characteristics of i 3-bit DÁC
ilnfinite Resolution
to Characterisic
Normalized
0.750
0.625
Value
0.500
Output
ILSB
--
Vertica. Shilied
0.375 koCharacteristic
Analog
0.250
0.125
0.000
000 001 010 011 100 101 110
Digital Input Code
why the characteristic cannot be shifted downward by a half LSB as shown by the dashed
characteristic, which corresponds to 0Vfor the digital input of 000.
Because the resolution of the DAC is finite (3 in the case of Fig. 10.1-4), the maximum
analog output voltage does not equal VREF. This result is characterized by the full scale (FS),
value of the DAC.(The fullscale value is defined as the difference between the analog output
for the largest digital word (11T1.. )and the analog output for the sinallest digital word
(0000. . .). in general, the full scale of a DAC can be expressed as
This definition of FS holds regardless of whether the characteristic h¡s been shifted verticYlly
by 0.5LSB. Inthe case of Fig. 10.1-4,FS is equalto 0.875 VRER Thefull scale range (ENSR)
is defined as
lim
FSR = (10.1-7)
Based on the above discussion, let us define several important quantities that are
porant for DACs. The first is called quantization noise. Quantization noise is the inherent"
imacele
uncertainty in digitizing an analog value with a finite sesolution convererTo understand
this definition, the characteristic for an infinite resolution DAC is plotted on Fig. 10.1-4.
This line represents the limit of the finite DAC characieristic as the number of bits, N,
approaches infsnity The quantization nöise (or error)is cqual to the analog output of the
/nfinite-bit DAC minus the analog outpur of the ftinte-btr DAC:)r We plot the quantization
noise of either of the 3-bit characteristics ín Fig. 10.14, we obtain the result shown n F
10.1-5. The solid and dashed lines correspond to the solid and dashed slaircases, respec
tively, in Fig, 10.1-4.
- iite
Digial a FSRI2N+lThis
Ayincreasing
converter. that (10.1-8) (10.)-9'to found 1-10)
(10. (10.J-11) sinusoida.(10.1-12)
Input
Code having value desig
10.1-4.
Fig. z0.5LSB. difference
be noise
waveform the by scalecan
quantization a
of of reduced as
Within smallest
to accuracy fullnoise assuming
DAC DAC
equivalent thequantization FSR
sawtooth the
3-bit (O be of
the ratio the V2)
the of DAC only of as
is limitthecan FSR
to range LSB
expressed VRErl(2 V6
for a 0.5LSB the For
noise is noise theof that dynamic the
DR(dB)as of noise.
(PSR/2"V12) is
DAC 2
represents the
inaccuracies
(FSR/2") dB =6.02N
defined or
Quantization
10.1-5 a
that
quantization noise of
ratio FSR as value
quantization be MsVoUT for FSR/(2V2)
(FSRI2YV2 FSR/(
the expressed can
note is rms required
Noise
Quantization quantization
theexpress DAC
and DAC
00 to the is LSB The
useful
DACs DAC FSR be the the =
SNR is SNR
the reduce noise.
the Vour
can can of
ILSR 0.5LSB OLSB
-0.5LSB
Figure ihat
=
DR for of in ratio maximumKmu
is of the a We (10.1-8) results
quantization of SNR,
It property
to
of (SNR) square value
10.1-5
ILSB. by (DR) LSB). signal-to-noise
sufficient
masked
range Eq. ratio meanthis rmsthe
Fig.of fundamental an line, ms(quantization Therefore,
value (i.c., decibels, signal-to-noise
the possible
from is is dynamic rootsolid
it decneasc
the resolved
resolution. of the
see
peak-to-peàk
example, the
value the largest
of taking Therefore, waveform.
a
We is furherThe
be
terms rns by
noise
For can Thetheby ted The
In
(10.1-13) (10.1-14) account
output
underdB. N-bits, op from An the in vertically
fullvoltage
617 resolution
include
6N a the andilusrated
monotonicity.
given For deviations
Converters in is resolve
DAC to rmsof errors characteristic
useful dB. noise characteristic
(2) a more60.2whatever
to is
infinite
logio N-bitto the Static-conversion
error
very referenced
dB Any 11 gain
Digital-AnaBog dB necessary is to and Characieristic
I
an
20 1.76 as are
an 1.76DR above due signal.nonlinearity, jumpThis
resolution and
Resolution
lafinite II0
:Characteristic: of
- for ResolutionCode
101luput
Digia) llustration
above include
the be result1ng 3-bit
ldeal
log,o(6)+ theynecessary when resolution
dB range dB could output
DAC. I00
the because 62
of
Characterization
10 6.02N from 1.76 However,
must
amplitude approximately
10-bit
amp.
voltage
erTors. finite
analog
vertical
differential
the Gain ErTor Characteristic
3-bit
Actual
01| (b)
+ defined -nctual6.02
range
required op actual shifüng
finite 010 DAC.
as (2") results static-conversion
unique any
(10.1-12)
o
dB
SNR, the dynamic
converter. voltage.a rmsthe
for at actual 001
3-bit
log 6.02
be above the range Thus, This
of
nonlinearity
the
nonlinearity, by
measured
eliminated 7/8| 6/8 4/8 3/8 000
20 as be a between S/8 a
- can =
ENOB be the VREF Normalized
to Valuc Output Analog in
Bq. o ) dB -(ENOB) The output noise. must DAC.
and the of thought dynamic should
between
error
rewrite 7.78 of DACS. signal of 1|
Introduction SNR summarize the the difference
characteristic iCharacteristic offset
quantization. category integral be Resolution Characieristic
2 4
bits of the of the there could
I10
3-bitResolution
Infinile ldeal
can dB actual of be amplitude the output
to difference 10) of
log1o perfornmance word, Code
Input
Digital Illustration
6.02N of can amplitude,
voltage,due
we
number the to range theerrors,
constanterror 100
10.! decibels 20 important the or digital
into resolution Characieristic
of switches This 3-bit
Actual 011
= is in gain the (a) DAC.
B) SNR#ctual the presence output
present fall a 10.1-6
Figure
(a)
effective dynamic 10.1-6(a). 010
of (d
mas the of signal each is
erors,
10.14
is
terms regardless rms and erroriinite error 6/8--- Offset
5/8-i- 4/8Error 001 3-bit
SNR is standing
where
I analog
the is For ain
error
The Scale amps offset 000
In The for ievel Fig. offset ideal Gain
Fig. 7/8 3/8 2/8 1/8
VREFNomalized
to Value Ouiput Analog
TAL-ANALOG AND ANALOG-DIGITAL CONVERTEKS
the
Figure 10.1-7 also illustrates differential nonlinearity. Note that DNL is a measure of
step size and is totally independent of how far the actual step change may be away from the
infinite resolution characteristic at the jump. The change from 101 to 110 results in a maxi
mum +DNL of 1.5LSBs (V/V, =2.5LSBs). The maximum negative DNL isfound when the
digital input code changes from 011 to 100. The change is -0.5LSB (V/V, = -0.5LSB),
which gives a DNL of - 1.5LSBs. It is of interest to note thae as the digital input code changes
from 100 to 101, no change occurs (point A). Because we know that a change should have
Occurred, we can say that the DNL at point Ais -1LSB.
Flgure 10.1-7 lhustration of INL,
Infinite Resolution Characteristic + DNL, and nonmonotonicity in a
oeu
i )SLSB DNL,
3-bit DAC.
---}.---,-.
Nonmonotonicity
-ILSB INL
INL
--.-1.5;SB DNL
k.ldeal 3-bi Characierisic,.
Acual 3-bitCharacierisic
8 000 001 100 101 I10
Digital Input Code
codeof nonm
its andmonoto-
619 over mater
steD input
increases a
Converters conversion
a
in As
digital
negativeDNL.
be
converter thepooralway
Digital-Analog one
never
between as very
the is behavior will
has negati
to characteristic
decrease DAC
input
of
Characterizatior. nonmonotoni
digital nonmono
more
exhibitsa
transfer or
the is-1L
as
thatneverthe exhibited
and a
Obviously,
means of
Introductionoutput slope that
10.-7-DNL
DAC the
analog
words, 100.
a
in the Figure-
101 Monotonicity
a
to has
other 0l|that
range,
from
converter.
next.Jn DAC
Scate changed
a
fulltheaie fact.