L10: Analog Building Blocks (Opamps, A/D, D/A)
L10: Analog Building Blocks (Opamps, A/D, D/A)
L10: Analog Building Blocks (Opamps, A/D, D/A)
Acknowledgement:
Materials in this lecture are courtesy of the following sources and are used with permission.
Dave Wentzloff
10 5 -20dB/
Reprinted with
permission of
National
Semiconductor
decade
Corporation.
-10 to -15V f
Reprinted with permission of National Semiconductor Corporation. 10Hz
L10: 6.111 Spring 2006 Introductory Digital Systems Laboratory 2
The Inside of a 741 OpAmp
Reprinted with
permission of Differential Current Source Additional
National
for biasing Gain Stage Output Stage
Semiconductor
Corporation. Input Stage
Output devices
provides large
drive current
Bipolar version
has small input
Bias current
MOS OpAmps
have ~ 0 input
current
+ + + + + +
vid + +
vid +
- avid vout - -VCC vout vid - +VCC vout
- - - - - -
R1 R2 R1 R2
-
vout - +
vin +
+ vin + vid +
- - - avid vout
+ -
R2 a
≈ − (if a >> 1)
vout R2
=−
vin (1 + a )R1 + R2 R1
Overall (closed loop) gain does not depend on open loop gain
Trade gain for robustness
Easier analysis approach: “virtual short circuit approach”
v+ = v- = 0 if OpAmp is linear
L10: 6.111 Spring 2006 Introductory Digital Systems Laboratory 5
Basic OpAmp Circuits
+
vin +
vout −
-
R + R2
vout ≈ 1 vin
vout ≈ vin
R1
Differential Input
Integrator
t
( ) vout ≈ − 1
∫v
R2
vout ≈ v − vin1 in dt
R1 in 2 RC
−∞
Analog Comparator:
Is V+ > V- ?
The Output is a DIGITAL signal
Analog Output
4
Binary Output
10
Vref
2
01 Vref
4
00 0
0 Vref
4
Vref
2
3Vref
4
Vref 00 01 10 11
Analog Input Binary code
digital
code
vin A/D D/A
+ vnoise
Quantization
− noise
LSB
Quantization noise exists even with
ideal A/D and D/A converters Vref Vref 3Vref
v in
4 2 4
Vref
Offset
Analog
Gain
error error
Ideal Ideal
Integral
nonlinearity
Ideal
Analog
Ideal
Analog
Non-
monoticity
Binary code Binary code
L10: 6.111 Spring 2006 Introductory Digital Systems Laboratory 9
R-2R Ladder DAC Architecture
-1
8-bit DAC
Single Supply Operation: 5V to 15V
Integrates required references
(bandgap voltage reference)
Uses a R-2R resistor ladder
Settling time 1μs
Programmable output range from
0V to 2.56V or 0V to 10V
Simple Latch based interface
D[7:0] LATCH
CE CS
Very similar to a
non-inverting amp
Convert data to
Offset binary
L10: 6.111 Spring 2006 Introductory Digital Systems Laboratory 13
Another Approach: Binary-Weighted DAC
R
Switch binary-weighted
currents
- vout
b3 b2 b1 b0 + MSB to LSB current ratio is 2N
I I I
I 2 4 8
t vout = − IR(T0 + T1 + T2 )
L10: 6.111 Spring 2006 Introductory Digital Systems Laboratory 15
Successive-Approximation A/D
D/A converters are typically compact and easier to design. Why not A/D convert
using a D/A converter and a comparator?
D to A generates analog voltage which is compared to the input voltage
If D to A voltage > input voltage then set that bit; otherwise, reset that bit
This type of A to D takes a fixed amount of time proportional to the bit length
Vin code
D/A
+ −
C
Comparator
out
Example: 3-bit A/D conversion, 2 LSB < Vin < 3 LSB
L10: 6.111 Spring 2006 Introductory Digital Systems Laboratory 16
Successive-Approximation A/D
Data
Successive
D/A Approximation
N
Converter Generator
- Done
vin Sample/ Control
+
Hold Go
R/W tw
Write
CE, CS Read
tDC
Status tDT
tc tTD
Data Valid Data Valid
clk cs_b CS
CE
reset r_w_b
R/W AD670
FSM
sample status
STATUS
Data[7:0]
dataavail
Q D
Status should be
synchronized: why?
3/5 4/5
L10: 6.111 Spring 2006 Introductory Digital Systems Laboratory 22
Example A/D Verilog Interface(cont.)
READDELAY0:
begin
cs_bar_int = 0;
nextstate = READDELAY1;
end
READDELAY1:
begin
cs_bar_int = 0;
nextstate = READCYCLE;
end
READCYCLE:
begin
cs_bar_int = 0;
dataavail = 1;
nextstate = IDLE;
end
5/5
L10: 6.111 Spring 2006 Introductory Digital Systems Laboratory 23
Simulation
On reset, present state goes to 0 r_w_b must stay low for at least 3 cycles (@ 100ns period)
+
Simultaneously compare the
R
C analog value with every
The rmom eter to binary
− possible reference value
R + b0 Fastest method of A/D
C
− b1 conversion
R + Size scales exponentially
C with precision
−
(requires 2N comparators)
Comparators
R
80 Slice Decimator
80 ADC Slices
Clock
8 Mem Controllers
1MByte SRAM
CMOS
Gen
20Gsample/sec,
Buffer Chip
2 muxes
8-bit ADC
0.18- CMOS ADC Chip from Agilent Labs
Figure by MIT OpenCourseWare. Adapted from Poulten, Ken, et al. "A 20 GS/s 8b ADC with a 1MB Memory in 0.18um CMOS."
IEEE International Solid-State Circuits Conference Paper 18.1, 2003.