Documente Academic
Documente Profesional
Documente Cultură
Chapter 6:
A/D And D/A Converters
INTRODUCTION
In real world, most signal processing involves analog
quantity.
A l quantity
Analog tit can take
t k on any value
l over a continuous
ti
range of values and most important its exact value is
significant.
A digital quantity will have a value that is specified as
one of two possibilities such as 0 or 1, LOW or HIGH,
TRUE or FALSE and so on.
Actual value is not important but must falls within the
specified ranges
ranges. For example:
0 V to 0.8 V ⇒ logic 0
2 V to 5 V ⇒ logic 1
1
10/28/2008
INTRODUCTION
Digital logic circuits require special interfacing
techniques to input and output analog data.
Physical quantities with an infinite range of values, such
as temperature, pressure, fluid flow, velocity,
acceleration and voltage are analog quantities.
Analog-to-digital (A/D) conversion is the process of
converting analog values to digital codes representing
the analog value.
Digital-to-analog (D/A) conversion is the process of
converting digital codes to proportional analog values.
Digital audio, digital sampling and music synthesis
equipment are some exciting examples of A/D and D/A
applications.
3
2
10/28/2008
Digital--To
Digital To--Analog Conversion
Is the process of taking a
value represented in digital
code (such as straight binary
or BCD) and converting it to
a voltage or current which is
proportional to the digital
value.
13
12
11
10
9
8
7
6
5
4
3
2
Digital Input
0001
0010
0011
0100
0101
0110
0111
1000
1001
1010
1011
1100
1101
1110
1111
0000
3
10/28/2008
In general,
Analog output = R x digital input
If R = 0.25 V,
Then VO = (0(0.25V)
25V) x digital input
IO 5 mA
R= = = 0.5 mA
Digital Input 10
For a digital
g input
p of 01012 = 510
IO = R x digital input
= 0.5mA x 5
= 2.5mA
8
4
10/28/2008
00110010 2 = 5010
VO 1V
R= = = 0.02 V
Digital Input 50
For di
digital
i l input
i off 111111112 = 255
2 10
VO = R x digital input
= 0.02 V x 255
= 5.1 V
9
10
5
10/28/2008
D C B A VO(V)
0 0 0 1 0.5
0 0 1 0 1
0 1 0 0 2.0
1 0 0 0 4.0
PERCENTAGE RESOLUTION
1
% resolution = x 100 %
total number of steps
12
6
10/28/2008
10 mV
% resolution = x 100% = 0.39 %
2 55 V
2.55
7
10/28/2008
D1 80
BCD for C1 40
MSD B1 20
A1 10 DAC Vout 100 possible values since input
ranges from 00 to 99
D0 8
BCD for C0 4
LSD B0 2
A0 1 Step size = weight of A0
15
8
10/28/2008
DIGITAL--TO
DIGITAL TO-- ANALOG CONVERTER
17
9
10/28/2008
19
PRECISION REFERENCE
SUPPLY
VRef
CMOS transmission
gate
-
Switch closed IO VO
when input bit = 1 +
B3 B2 B1 B0
MSB LSB
IO I I
I O = B3 × I O + B 2 × + B1 × O + B0 × O
2 4 8
VREF
Where IO =
R 20
10
10/28/2008
VO = -IIoutRF = -(current
( t LSB) x RF x D
⎛ VREF ⎞⎛ 1 ⎞
Voltage Resolution = voltage LSB =⎜ ⎟⎜ n ⎟ RF
⎝ R ⎠⎝ 2 ⎠
Therefore VO = -(voltage resolution) x D
22
11
10/28/2008
(a) n = 4
⎛ V ⎞⎛ 1 ⎞ ⎛ 10 V ⎞⎛ 1 ⎞
l i = I O ( LSB ) = ⎜ REF ⎜ n = ⎜
resolution ⎜ 4 = 0.0625
0 0625 mA
A
⎝ R ⎠⎝ 2 ⎠ ⎝ 10 kΩ ⎠⎝ 2 ⎠
23
24
12
10/28/2008
I out
25
26
13
10/28/2008
5K
Rref IOUT
3 16 13 +15 V
Iref 14 4
2
-
5K
DAC -08 Vo= IoutRF
I out 3
6
Vref
+10 V
15 MSB LSB 2 +
5 6 7 8 9 10 11 12 1
-15 V
5K
D7 D6 D5 D4 D3 D2 D1 D0
⎛ V ⎞⎛ 1 ⎞
Voltage resolution = ⎜ REF ⎟⎜ n ⎟ × R F
⎝ R ⎠⎝ 2 ⎠
VO = voltage resulotion × D
27
5K
Rref IOUT
3 16 13 +15 V
Iref 14 4
2
-
5K
DAC -08 Vo= IoutRF
I out 3
6
Vref
+10 V
15 MSB LSB 2 +
5 6 7 8 9 10 11 12 1
-15
15 V
5K
D7 D6 D5 D4 D3 D2 D1 D0
⎛V ⎞⎛ 1 ⎞ ⎛ 10 V ⎞ ⎛ 1 ⎞
V LSB = ⎜ REF ⎟ ⎜ n ⎟ × R F = ⎜ ⎟ ⎜ 8 ⎟ × 5 k Ω = 39 mV
⎝ R ⎠⎝ 2 ⎠ ⎝ 5 k Ω ⎠⎝ 2 ⎠
(a) VO = VLSB x D = 39 mV x 1 = 39 mV
(b) VO = VLSB x D = 39 mV x 255 = 9.961 V 28
14
10/28/2008
29
⎛ V ⎞⎛ 1 ⎞ ⎛ 10.24V ⎞⎛ 1 ⎞
Current resolution = ⎜ REF ⎟⎜ n ⎟ = ⎜ ⎟⎜ 8 ⎟ = 8 µA
⎝ R ⎠⎝ 2 ⎠ ⎝ 5kΩ ⎠⎝ 2 ⎠
15
10/28/2008
I out
SEE 3263 A/D & D/A CONVERTERS
For bipolar DAC-08 determine Vo for the
following inputs:
(a) 000000002 (b) 011111112
(c) 100000002 (d) 111111112
N t that
Note th t the
th –ve full-scale
f ll l voltage
lt h
happen when
h ththe iinputt iis 0 and
d
the +ve full-scale voltage happen when all inputs are 1.
Digital Input Analog Output
D7 D6 D5 D4 D3 D2 D1 D0 Iout(mA) I out (mA) Vo(V)
-ve full-scale 0 0 0 0 0 0 0 0 0 2.04 -10.2
Negative zero 0 1 1 1 1 1 1 1 1.016 1.024 -0.040
Positive zero 1 0 0 0 0 0 0 0 1.024 1.016 0.040
+ve full-scale 1 1 1 1 1 1 1 1 2.04 0 10.2
31
32
16
10/28/2008
ANALOG-TO
ANALOG-TO--DIGITAL
CONVERTER (ADC)
An ADC takes an analog input voltage and after a
certain
t i amountt off ti
time produces
d a di
digital
it l output
t t code
d
which represents the analog input.
33
34
17
10/28/2008
35
37310 = 01011101012
Require 373 steps to complete the conversion, so need
373 clock pulses = 373 µs = tc
resolution = step size = 10 mV
36
18
10/28/2008
SUCCESSIVE APPROXIMATION
ADC (SAC)
37
Assume a 4-bit
START
analog
l input,
i t MSB
VA=10.4V
Set bit = 1
No
No Have
Go to next all bits been
lowest bit checked?
Yes
Conversion
is complete
and result is
in REGISTER
END
38
19
10/28/2008
2.17V
No of Steps = = 108.5
20mV
Step 108 would produce VAX = 2.16 V
Step 109 would produce VAX = 2.18 V
The SAC always produces a final VAX that is at the
step below VA
Thus, for VA = 2.17 V, the digital result would be
10810 = 011011002
39
CONVERSION TIME
TC for SAC = N x 1 clock cycle.
This conversion time will be the same regardless of the
value of VA because the control logic has to process
each bit to see whether a 1 is needed or not.
20
10/28/2008
5V
With 8-bits, the resolution is = = 19.6 mV
255
It has an internal clock generator circuit that produces a
frequency of 1
f=
1.1 RC
where R and C are values of externally connected
components.
A typical clock frequency is 606 kHz using R = 10 kΩ
and C = 150 pF. If desired, an external clock frequency
can be used by connecting it to the CLK IN pin.
With 606kHz clock frequency, TC = 13.2µs.
It has separate ground connections for digital and analog
voltages at pin 10 and pin 8 respectively.
42
21
10/28/2008
TYPICAL CONNECTION OF
ADC0804
{
}
43
APPLICATION EXAMPLE
+ 5V
+ 5V
RD WR 10 K
START
D.GND INTR
3.3 F
74HCT14
44
22
10/28/2008
23
10/28/2008
4 – 5 V
analog comparators,
0 0 0 0 1 1 1 1 0 0
5 – 6 V
while an 8-bit unit1 0 1
0 0 0 0 0 1 1
6 – 7 V
requires 255
0 0 0 0 0 0 1 1 1 0
>7 V
comparators, and1 1 1
0 0 0 0 0 0 0
a 10-
bit converter requires
1023 comparators.
47
THE END
48
24