Escolar Documentos
Profissional Documentos
Cultura Documentos
Wakerly, Copyright 2000, and are used by permission. NO permission is given to re-use or publish these figures, in either original or modified form, in printed, electronic or any other format.
Digital-to-analog conversion
Vout
x0 2 x1 2 x2 2 K xn 1 2 ! k 2n
0 1 2
n 1
reference voltage in multiplying DAC i.e., 00...0 => 0 volts; 11....1 => k volts (slightly less) k / 2n = step size
Thevenin equivalent
x3 (V V ) (1 x3 )V x3V V ! 2 2 2 x (V ' V ) (1 x2 )V x2V ' V ! I2 ! 2 4R 4R 4R x1 (V ' V ) (1 x1 )V x1V ' V ! I1 ! 8R 8R 8R x0 (V ' V ) (1 x0 )V x0V ' V ! I0 ! 16 R 16 R 16 R I3 !
V ' V ! (8 x3 4 x2 2 x1 x0 ) 16
x3V ' x2V ' x1V ' x0V ' I SC ! 2R 4R 8 R 16 R V' (8 x3 4 x2 2 x1 x0 ) I SC ! 16 R Req ! R
V' V ! (8 x3 4 x2 2 x1 x0 ) 16 Req ! R
Vout
n 1 i xi 2 V RL i !0 RL ! R R Veq ! R R 2n L L
For current-based analysis Thevenin is for voltage-based analysis Replaces linear circuit with current generator and parallel resistance linear circuit is one with only resistances and voltage sources Current source is short-circuit current Equivalent resistance is open-circuit voltage divided by short-circuit current Equivalent resistance can be found by shorting all voltage sources
1 Req ! !R 1 1 1 1 1 16 R 16 R 8R 4 R 2 R
Have short-circuit current from Thevenin analysis
I SC
V' ! (8 x3 4 x2 2 x1 x0 ) 16 R
Current divides proportionally output voltage is then constant times digital input
xi 2i n 2
1-p p
Some problems with this weighted resistor solution Resistor values span a wide range
n-bit DAC ==> resistors from 2R to 2nR 8-bit DAC ==> 2R to 512R, e.g., 2K to 512K Difficult to fabricate wide ranges of resistance in semiconductor processes.
Claim: same Norton and Thevenin equivalents Uses only two resistor values, R and 2R
y y
Thevenin?
y y
open-circuit voltage?
x0Vref 2
equivalent resistance? set voltage sources to zero
x0Vre Veq ! 2
xV x1Vre 0 re 2 (2 R ) 4R
xV xV Veq ! 1 re 0 re 2 4
Req !
1 1 1 2R 2R
!R
and so on...
RLoad
V out
R L o a d V re f ! (8 x 3 4 x 2 2 x 1 x 0 ) R Load R 1 6 R L o a dV re f ! R Load R
V out
xi 2 i
2n
same equation as weighted resistor network but uses only two resistor sizes: R and 2R
Analog-to-digital conversion
Analog comparator = 1-bit A-to-D
Combinational A-to-D
RESULT
Counter-ramp A-to-D
Initialize result register to 0 Keep incrementing result register until the DAC produces a voltage greater than Vin. Maximum of 2n steps for n-bit conversion. ABEL code:
state IDLE: if START then LOOK with result := 0; else IDLE with result := result; state LOOK: if (COMP == 1) then DONE with result := result; else if (result == MAX) then DONE with result := result; else LOOK with result := result + 1; state DONE: if START then DONE with result := result; else IDLE with result := result;
Successive-approximation A-to-D
Like a binary search in software -- n steps to search 2n possible results (n-bit result). First step -- determine MSB of result:
Set result to 10000. Is COMP 1 or 0? COMP=1 ==> MSB = 1; else MSB = 0.