Professional Documents
Culture Documents
Acknowledgement:
Materials in this lecture are courtesy of the following sources and are used with permission.
Dave Wentzloff
Rin
a vid
Rout
vout
Vout = a ( f ) Vin
LM741 Pinout
a(f)
+10 to +15V
10 5
-20dB/
decade
Reprinted with
permission of
National
Semiconductor
Corporation.
-10 to -15V
Reprinted with permission of National Semiconductor Corporation.
10Hz
f
2
Differential
Input Stage
Output Stage
Output devices
provides large
drive current
Bipolar version
has small input
Bias current
MOS OpAmps
have ~ 0 input
current
i+ ~ 0
+
vid +
i- ~ 0
+
vout
-VCC
Linear Mode
vid
= 100V
Negative Saturation
+
+
-
-100V
vid
-VCC = -10V
Reasonable
approximation
VCC = 10V
vout
avid vout
-
vid
+
-
Positive Saturation
-VCC vout
-
vid
vid < -
+
-
+
-
+VCC vout
-
vid >
+
-
R1
R2
vout
vin
R2
-
+
-
v
vid = out
a
R2 a
vout
R2
=
(if
(1 + a )R1 + R2
vin
R1
vid
vin
vout
=
R1
a
+
-
avid vout
-
1
a
1
+
+
R1 R2 R2
a >> 1)
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
vin +
vout
R + R2
vout 1
vin
R1
vout vin
Differential Input
Integrator
vout
L10: 6.111 Spring 2006
R2
v vin1
R1 in 2
vout 1
RC
in dt
11
Analog Output
Binary Output
A/D Conversion
10
01
00
Vref
4
Vref
2
3Vref
4
Vref
Analog Input
3Vref
4
Vref
2
Vref
4
0
00 01 10 11
Binary code
digital
code
vin
A/D
D/A
Quantization
noise
vnoise
LSB
Vref
4
Vref
2
3Vref
4
Vref
v in
8
Offset
error
Ideal
Analog
Analog
Binary code
Gain
error
Ideal
Binary code
Integral Nonlinearity maximum deviation from Differential nonlinearity the largest increment
the ideal analog output voltage
in analog output for a 1-bit change
Ideal
Analog
Analog
Integral
nonlinearity
Ideal
Nonmonoticity
Binary code
L10: 6.111 Spring 2006
Binary code
Introductory Digital Systems Laboratory
-1
10
8-bit DAC
Settling time 1s
11
LATCH
CE
CS
12
Convert data to
Offset binary
L10: 6.111 Spring 2006
13
b3
I
I
2
b2
I
4
b1
I
8
b0
vout
Switch binary-weighted
currents
vout = IR(b3 + 12 b2 + 14 b1 + 18 b0 )
Additional current
division performed by
750 resistor between
the two banks
AD9768
14
Binary
Thermometer
vout
011 100
I
t
L10: 6.111 Spring 2006
T0
I
T1
T2
vout
vout = IR(T0 + T1 + T2 )
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
L10: 6.111 Spring 2006
16
Successive-Approximation A/D
Data
D/A
Converter
Successive
Approximation
Generator
Done
vin
Sample/
Hold
Control
Go
17
Successive-Approximation A/D
(AD670)
Unipolar (BPO =0)
18
R/W
Write
CE, CS
Read
tDC
Status
Data
tc
Valid
tDT
tTD
Data Valid
19
clk
CS
CE
r_w_b
reset
sample
FSM
status
R/W
AD670
STATUS
Data[7:0]
dataavail
Q D
Status should be
synchronized: why?
Courtesy of James Oey and
Cemal Akcaba
L10: 6.111 Spring 2006
20
// A-D Interface
input status;
reg status_d1, status_d2;
output r_wbar, cs_bar;
output [3:0] state;
// internal state
reg [3:0] state;
reg [3:0] nextstate;
reg r_wbar_int, r_wbar;
reg cs_bar_int, cs_bar;
reg dataavail;
// State declarations.
parameter IDLE = 0;
parameter CONV0 = 1;
parameter CONV1 = 2;
parameter CONV2 = 3;
parameter WAITSTATUSHIGH = 4;
parameter WAITSTATUSLOW = 5;
parameter READDELAY0 = 6;
parameter READDELAY1 = 7;
parameter READCYCLE = 8;
1/5
Introductory Digital Systems Laboratory
2/5
21
CONV0:
begin
r_wbar_int = 0;
cs_bar_int = 0;
nextstate = CONV1;
end
WAITSTATUSLOW:
begin
cs_bar_int = 0;
if (!status_d2) nextstate = READDELAY0;
else nextstate = WAITSTATUSLOW;
end
CONV1:
begin
r_wbar_int = 0;
cs_bar_int = 0;
nextstate = CONV2;
end
3/5
L10: 6.111 Spring 2006
4/5
22
5/5
L10: 6.111 Spring 2006
23
Simulation
On reset, present state goes to 0
24
C
C
C
Vref vin
b0
b1
Comparators
25
26
A/D
Converter
D/A
Converter
1-bit
Amplifier
2
Sample/
Hold
A/D
Converter
D/A
Converter
Amplifier
2
[ISSCC 2003],
Poulton et. al.
DLL
1MByte SRAM
8 Mem Controllers
80 Slice Decimator
80 Radix Converters
CMOS
Buffer Chip
80 ADC Slices
Gen
Clock
2 muxes
0.18-
20Gsample/sec,
8-bit ADC
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.
27
Solution: Comparator
based analog Design
28
etc.)
29