Académique Documents
Professionnel Documents
Culture Documents
Chapter 6:
A/D And D/A Converters
1
SEE 3263 A/D & D/A CONVERTERS
INTRODUCTION
In real world, most signal processing involves analog
quantity
quantity.
Analog quantity can take on any value over a continuous
range of values and most important its exact value is
significant.
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 on.
Actual value is not important but must falls within the
specified ranges. For example:
0 V to 0.8 V ⇒ logic 0
2 V to 5 V ⇒ logic 1
2
SEE 3263 A/D & D/A CONVERTERS
INTRODUCTION
Digital logic circuits require special interfacing
techniques to input and output analog data data.
Physical quantities with an infinite range of values, such
as temperature,
p p
pressure, fluid flow, velocity,
y
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
g g ((D/A)) conversion is the p
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
SEE 3263 A/D & D/A CONVERTERS
The diagram below shows the elements used in the digital
technique to monitor and control the analog physical
variable.
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.
5
SEE 3263 A/D & D/A CONVERTERS
13
12
Analog Output Volta
11
10
9
8
7
6
5
4
3
2
1
Digital Input
0001
0010
0011
0100
0101
0110
0111
1000
1001
1010
1011
1100
1101
1110
1111
0000
6
SEE 3263 A/D & D/A CONVERTERS
In general,
general
Analog output = R x digital input
If R = 0.25 V,
Then VO = (0.25V) x digital input
7
SEE 3263 A/D & D/A CONVERTERS
A 4-bit DAC produce an output current. For a
di it l input
digital i t off 10102, the
th output
t t currentt is
i
5mA. What is the value of IO for a digital input
01012 ?
IO 5 mA
A
R= = = 0.5 mA
Digital Input 10
00110010 2 = 5010
VO 1V
R= = = 0.02 V
Di it l Input
Digital I t 50
VO = R x digital input
= 0.02 V x 255
= 5.1 V
9
SEE 3263 A/D & D/A CONVERTERS
10
SEE 3263 A/D & D/A CONVERTERS
For the given 4-
4-bit DAC, each digital input depends on
its weight. Therefore the resolution = LSB = 0.5 V
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
40
PERCENTAGE RESOLUTION
Resolution
R l ti can also
l b be d
defined
fi d as th
the
percentage of the full-scale(F.S) output.
step size
% resolution = x 100 %
full scale (F.S)
1
% resolution = x 100 %
total number of steps
12
SEE 3263 A/D & D/A CONVERTERS
An 8-bit DAC has a step size of 10 mV.
Determine the full scale output voltage and
the percentage resolution.
10 mV
% resolution = x 100% = 0.39 %
2.55 V
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
SEE 3263 A/D & D/A CONVERTERS
If weight of AO is 0.2 V, determine the following:
(a) Step size.
(b) Full-Scale output and percentage resolution.
(c) Vout for D1C1B1A1 = 01012 and D0C0B0A0 =
00112.
DIGITAL--TO
DIGITAL TO-- ANALOG CONVERTER
17
SEE 3263 A/D & D/A CONVERTERS
19
SEE 3263 A/D & D/A CONVERTERS
PRECISION REFERENCE
SUPPLY
VRef
CMOS transmission
gate
t
-
Switch closed IO VO
when
h iinputt 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
SEE 3263 A/D & D/A CONVERTERS
(a) n = 4
⎛ V ⎞⎛ 1 ⎞ ⎛ 10 V ⎞⎛ 1 ⎞
resolution = I O ( LSB ) = ⎜ REF ⎟⎜ n ⎟ = ⎜ ⎟⎜ 4 ⎟ = 0.0625 mA
⎝ R ⎠⎝ 2 ⎠ ⎝ 10 kΩ ⎠⎝ 2 ⎠
23
SEE 3263 A/D & D/A CONVERTERS
24
SEE 3263 A/D & D/A CONVERTERS
I out
25
SEE 3263 A/D & D/A CONVERTERS
26
SEE 3263 A/D & D/A CONVERTERS
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
SEE 3263 A/D & D/A CONVERTERS
-15 V +15 V
0.1 F RF
0.1 F 0.1 F
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 ⎞ ⎛ 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
SEE 3263 A/D & D/A CONVERTERS
29
SEE 3263 A/D & D/A CONVERTERS
⎛ VREF ⎞⎛ 1 ⎞ ⎛ 10.24V ⎞⎛ 1 ⎞
Current resolution = ⎜ ⎟⎜ n ⎟ = ⎜ ⎟⎜ 8 ⎟ = 8 µA
⎝ R ⎠⎝ 2 ⎠ ⎝ 5kΩ ⎠⎝ 2 ⎠
VO = (1
(1.016mA
016mA - 1.024mA)x5kΩ
1 024mA)x5kΩ = - 0.04
0 04 V
30
I out
SEE 3263 A/D & D/A CONVERTERS
For bipolar DAC-08 determine Vo for the
f ll i iinputs:
following t
(a) 000000002 (b) 011111112
(c) 100000002 (d) 111111112
Note that the –ve full-scale voltage happen when the input is 0 and
the +ve full
full-scale
scale voltage happen when all inputs are 1
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
SEE 3263 A/D & D/A CONVERTERS
32
SEE 3263 A/D & D/A CONVERTERS
ANALOG-TO
ANALOG-TO--DIGITAL
CONVERTER (ADC)
An ADC ttakes
A k an analogl iinputt voltage
lt andd after
ft a
certain amount of time produces a digital output code
which represents the analog input.
33
SEE 3263 A/D & D/A CONVERTERS
34
SEE 3263 A/D & D/A CONVERTERS
35
SEE 3263 A/D & D/A CONVERTERS
Since VA = 3.728
Si 3 728 V and d VT = 0.1
0 1 mV V
VAX must reach 3.7281 V
This needs 3.7281 V
= 372.81
372 81 = 373 steps
10 mV
37310 = 01011101012
Require 373 steps to complete the conversion, so need
373 clock pulses = 373 µs = tc
resolution = step size = 10 mV
36
SEE 3263 A/D & D/A CONVERTERS
SUCCESSIVE APPROXIMATION
ADC (SAC)
37
SEE 3263 A/D & D/A CONVERTERS
Assume a 4 4-bit
bit
START
L t assume the
Let th Start at
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
SEE 3263 A/D & D/A CONVERTERS
2.17V
No of Steps = = 108.5
20mVV
Step 108 would produce VAX = 2.16 V
Step 109 would produce VAX = 2.18
2 18 V
The SAC always produces a final VAX that is at the
step below VA
Th
Thus, for
f VA = 2.17
2 17 V,
V the
th digital
di it l result
lt would
ld be
b
10810 = 011011002
39
SEE 3263 A/D & D/A CONVERTERS
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.
5V
With 8
8-bits,
bit ththe resolution
l ti iis = = 19.6
19 6 mV
V
255
It has an internal clock generator circuit that produces a
frequency of 1
f=
1.1 RC
C
where R and C are values of externally connected
components.
A typical
t i l clock
l k ffrequency iis 606 kHkHz using
i R = 10 kΩ
and C = 150 pF. If desired, an external clock frequency
can be used byy connecting g it to the CLK IN p
pin.
With 606kHz clock frequency, TC = 13.2µs.
It has separate ground connections for digital and analog
voltages
lt att pin
i 10 and
d pin
i 8 respectively.
ti l
42
SEE 3263 A/D & D/A CONVERTERS
TYPICAL CONNECTION OF
ADC0804
{
43
SEE 3263 A/D & D/A CONVERTERS
APPLICATION EXAMPLE
+ 5V
+ 5V
VIN(+) VCC LED 0
1K
D0
2.5 K VIN(-) 1K LED 1
D1
Vin A.GND 1K LED2
D2
1K LED 3
D3
10 K - Vref/2 1K LED 4
VZ(2.5V) D4
RP + 1K LED 5
CLK R D5
ADC 0804 1K LED6
10 K D6
1K LED7
D7
CLK in
150 pF
CS + 5V
RD WR 10 K
START
D.GND INTR
3.3 F
74HCT14
44
SEE 3263 A/D & D/A CONVERTERS
5 – 6 V
while an 8-bit unit
0 0 0 0 0 1 1 1 0 1
6 – 7 V
requires 255
0 0 0 0 0 0 1 1 1 0
>7 V
comparators
comparators, and1 1 1
0 0 0 0 0 0 0
a 10 10-
bit converter requires
1023 comparators.
47
SEE 3263 A/D & D/A CONVERTERS
THE END
48