Analog To Digital Converter
Analog To Digital Converter
Data taken from a physical system normally appear in electrical analog form.
The need arises for a device that converts analog information into digital form. Analog
to digital converters perform the task of converting the naturally occurring analog
signals into digital form.
Vx
V fs
a 2
i 1
Vx
N
V fs
Vx V fs a1 21 a2 2 2 ... an 2 n
Or
V fs
Vx and
V
N; x
V fs
Vx V fs N
Considering natural binary code and finite no. of bits (say n), then
N a1 21 a2 22 ... an 2 n
Vx ; V fs a1 21 a2 22 ... an 2 n
n
; V fs ai 2 i
i 1
V fs
fs
2n
n
of the ADC is partitioned into 2 segments, each of width
Vx V fs
i.e.
V fs
2n
n
integral multiple of the quantization step i.e. 0, q, 2q,3q, ... , (2 1) q . The maximum
2 N 1
V fs
N
2
Here output changes state at the end of each quantization step (except last
step).
Quantization Error(e) = quantized value Actual value
emax q 1 LSB
e
q
q
V
can be reduced to 2 if an offset voltage of 2 is added to x
Magnitude of max
prior to quantization using truncation.
A large number of Analog to Digital circuits are available. The most commonly
used ADCs are
1. Successive approximation type
2. Integration type (single and dual slope)
3. Counter or servo type
4. Parallel type
ADC/NNS
Page 2
2010
V V
V V
0 and when
x
0 , comparator output
0 is 0.
output 0 is 1 when x
5. 3-bit D/A convertor: Digital to analog convertor, whose output is used to
compare with the analog input.
1
LSB
2
to reduce the quantization error to
1
LSB
2
.
Operation
The conversion of an analog input voltage into digital value uses a high speed
DAC. The analog output of a high-speed DAC is compared against the analog input
signal. The digital result of the comparison is used to control the contents of a digital
buffer that both drives the DAC and provides the digital output word. The successiveapproximation ADC uses fast control logic which requires only n comparisons for an nbit binary result.
The conversion of an analog input voltage x into its corresponding digital value
by using a 3-bit successive approximation ADC requires five clock intervals. During the
first four clock intervals analog output
V0
the analog input x and depending upon the comparators output, the flip flop FF1,
FF2 & FF3 are made set or reset. During the fifth clock interval, digital outputs are
read from FF1, FF2 & FF3 where FF1 gives the LSB and FF3 gives MSB. Sampling of the
unknown voltage x is performed by sample & holds circuit during this fifth clock
periods and the sampled input is held by sample & hold circuit for the next four clock
intervals.
The conversion cycle begins when the output of FFA, i.e.
QA 1
QA 1
. FFA to
QB QC QD QE 0
FFE
Q3 1 and Q2 Q1 0
. This
Q3Q2Q1 100
C0
will be
V0
as its output. If
V fs
V fs
C0 1 if Vx V0
0
ADC/NNS
V0
if Vx V0
Page 3
2010
Thus, at the end of first clock interval, comparators output depends upon the
comparison of
Vx and V0
During
the
QA QC QD QE 0
next
. With
clock
interval,
QB 1
while
QB 1 AND
C 1
,
gate G3 is enabled. If 0
,
C0 0
Vx and V0
C0
, during the beginning of the second clock interval. Thus the MSB
of the digital word has been determined to 1 or 0 and the digital word may be 1XX or
0XX as shown in figure 1.
As
Q3Q2Q1
QB 1
, FF2 will set to logic 1 and during the later half of the clock interval,
voltage
V0' . The comparator compares Vx with V0' and the comparators output will be
C0' 1 if Vx V0
if Vx V0
C0'
'
0
Vx and V .
During the first half of the 3rd clock interval, depending upon the comparators
C'
output 0 , FF2 i.e. MSB-1 bit retains the set value digital 1 or reset to digital 0 and the
digital word may be 01X or 00X when MSB=0 or 11X or 10X for MSB=1. During
the later half of the clock interval,
Q3Q2Q1
Vx
C 1 if Vx V0
''
0
if Vx V0
C0''
''
0
Vx and V .
C ''
During the fourth clock interval, depending upon the comparators output 0 ,
FF3 i.e. MSB-2 bit retains the set value digital 1 or reset to digital 0 and the digital
word may be 000 or 001 when MSB=0 and MSB-1=0 or 010 or 011 for MSB=0
and MSB-1=1 etc.
These sequences of bit testing of successive approximation type ADC is shown
in figure 2.
ADC/NNS
Page 4
2010
GA , GB, and GC
QE 1
Vx
QE 1
and
QA QB QC QD 0
, AND gates
Also, during this clock interval, sample and hold circuit is made enabled by
to sample the input analog voltage. When
QE 0
Both the opamp OP1 and OP2 are unity gain non-inverting voltage
amplifier. Switch S is operated i.e. remains closed when
Example:
Encode an analog voltage
Vx 4.9 volts
V fs
2
full
8
1 volt
23
scale
for N 3
QE 1
voltage
V fs 8 volts
quantization
step,
2 1
7
V fs 8 7 volts
N
8
2
N
corresponds to 0 volts and 111 corresponds to 7 volts and LSB 1 volts . Offset voltage
is 1 2 LSB 0.5 volt .
1st clock interval
Here
QA 1
Therefore,
ADC/NNS
and
QB QC QD QE 0
Q3 1; Q2 0 and Q3 0
Page 5
2010
Q3Q2Q1 100
C0 0; Q Vx V0
2nd clock interval
Here
QB 1
Therefore,
As
QB 1
and
QA QC QD QE 0
Q2 1; Q1 0 and Q3 0
and
C0 0
C 0' 1; Q Vx V0
3rd clock interval
Here
QC 1
Therefore,
As
QC 1
and
QA QB QD QE 0
Q3 1; Q1 0 and Q2 0
and
C 0' 1
Q3Q2Q1 101
C 0'' 0; Q Vx V0
4th clock interval
Here
As
QD 1
QD 1
and
and
QA QB QC QE 0
C 0'' 0
Q3Q2Q1 101
D/A output =
C 0'' 0; Q Vx V0
5th clock interval
Here
QE 1
Therefore,
and
QA QB QC QD 0
GA , GB and GC
Q3Q2 Q1 101
is
available.
ADC/NNS
Page 6
2010
VX
This process utilized the voltage to time conversion technique twice, first by
X
In integrator the unknown voltage
or known precision voltage R are
applied successively (controlled by digital control circuit). The output of the integrator
VX
VX
VR
is applied.
Comparator compares the output of the integrator with the ground voltage and
thus its output goes high as the conversion process started.
Binary up counter counts the no. of clock pulses when the output of the
comparator is is high.
Digital control circuit gives two types of commands (i) Reset and (ii) Convert.
Working Principle
i)
Before conversion begins, the capacitor is discharged and the counter is reset
to zero count.
ii)
The conversion process is initiated by connecting the input switch through the
analog input. Analog input voltage is then integrated by the integrator. If the
input to the converter is taken from a sample & hold circuit then it can be
assumed to be constant and in addition if it is ensured to be negative then the
output of the integrator will be linearly rising ramp.
v0 (t )
iii)
1
V
( VX ) dt X t
RC 0
RC
Immediately after the conversion process starts, the comparator output goes
high which in turn starts up the up counter. When the
becomes 1, say at time
ADC/NNS
t ta
QN
Page 7
2010
VR
reference voltage
given by
v0 (t )
VX
1
ta
(VR ) dt
RC
RC ta
VX VR (t ta )
RC
RC
t t
b,
Thus the output of the integration is decreasing linearly and at time
becomes zero. This in turn changes the output of the comparator to low state.
V (t t )
VX
ta R b a
RC
RC
V (t t )
VX R b a
ta
0
(tb ta )
VX
ta
VR
t
If f frequency of the clock pulse which is fixed, the time a required for the
counter to set the MSB (
constant
which
corresponds to
ta
depends
QN
) to logical 1, is given by
upon
the
clock
frequency
Or
Or
2N
f . Here, ta is
f . 2 N clock pulses
, then
M
(tb ta )
f
VX t a M
VR
f
VX
VR M
.
ta f
VX
VR M
. .f
2n f
Or
Or
(tb ta )
ta
VR
M
2n
VX M
VX
Or
Therefore, the contents of the counter M is directly proportional to the input
voltage X .
Conversion accuracy is not dependent upon resistor and capacitor values and
hence the clock frequency.
ADC/NNS
Page 8
2010