l10 analog


L10: Analog Building Blocks
L10: Analog Building Blocks
(OpAmps, A/D, D/A)
(OpAmps, A/D, D/A)
Acknowledgement:
Materials in this lecture are courtesy of the following sources and are used with permission.
Dave Wentzloff
L10: 6.111 Spring 2006 Introductory Digital Systems Laboratory 1
Introduction to Operational Amplifiers
Introduction to Operational Amplifiers
DC Model
Typically very high input
resistance ~ 300K&!
High DC gain (~105)
+
Rin a "vid Rout
vid
vout Output resistance ~75&!
-
Vout = a( f )"Vin
a(f)
LM741 Pinout
+10 to +15V
105
-20dB/
Reprinted with
permission of
National
decade
Semiconductor
Corporation.
f
-10 to -15V
Reprinted with permission of National Semiconductor Corporation.
10Hz
L10: 6.111 Spring 2006 Introductory Digital Systems Laboratory 2
The Inside of a 741 OpAmp
The Inside of a 741 OpAmp
Reprinted with
Current Source
Additional
permission of
Differential
National
Output Stage
for biasing
Semiconductor Gain Stage
Input Stage
Corporation.
Output devices
provides large
drive current
Bipolar version
has small input
Bias current
MOS OpAmps
have ~ 0 input
current
Gain is Sensitive to Operating Condition
(e.g., Device, Temperature, Power supply voltage, etc.)
Reprinted with permission of National Semiconductor Corporation.
L10: 6.111 Spring 2006 Introductory Digital Systems Laboratory 3
Simple Model for an OpAmp
Simple Model for an OpAmp
VCC
vout VCC = 10V
i+ ~ 0
+
vid +
-100źV
+
-
vid
-
vout
 = 100źV
i- ~ 0
-
-VCC
-VCC = -10V
Reasonable
approximation
Linear Mode Positive Saturation
Negative Saturation
+
+
+ +
+
+
+
+
+
vid vout vid +VCC
vout
vid vout
- -VCC
-
avid
-
-
-
- -
-
-
If -VCC < vout < VCC vid < - 
vid > 
Small input range for  Open loop Configuration
L10: 6.111 Spring 2006 Introductory Digital Systems Laboratory 4
The Power of (Negative) Feedback
The Power of (Negative) Feedback
R1
R1 R2
R2
-
-
vout +
vin +
+
vin -
+
+
-
vid vout
avid
-
-
+
v + v v + v
Ą# ń#
vin vout 1 a 1
vout
in id out id
= - + +
+ = 0 vid =
ó#
R1 a R1 R2 R2 Ą#
a
R R Ł# Ś#
1 2
R a
vout R2
2
= - H" - (if a >>1)
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
Basic OpAmp Circuits
Non-inverting
Voltage Follower (buffer)
+
vin +
-
vout
-
R1 + R2
vout H" vin
R1
H"
vout vin
Differential Input
Integrator
t
R2
1
vout H" - vindt
vout H" (vin2 - vin1)
RC
R1 +"
-"
L10: 6.111 Spring 2006 Introductory Digital Systems Laboratory 6
Use With Open Loop
Use With Open Loop
Analog Comparator:
Is V+ > V- ?
The Output is a DIGITAL signal
LM311 is a single supply
comparator
L10: 6.111 Spring 2006 Introductory Digital Systems Laboratory 7
Data Conversion: Quantization Noise
Data Conversion: Quantization Noise
A/D Conversion
D/A Conversion
3Vref
11
4
Vref
10
2
Vref
01
4
00
0
Vref Vref 3Vref
0
Vref
4 2 4 00 01 10 11
Analog Input
Binary code
digital
code
vin A/D D/A
vnoise
+
Quantization
noise
-
LSB
Quantization noise exists even with
vin
ideal A/D and D/A converters
Vref Vref 3Vref
Vref
4 2 4
L10: 6.111 Spring 2006 Introductory Digital Systems Laboratory 8
Binary Output
Analog Output
Non-idealities in Data Conversion
Non-idealities in Data Conversion
Offset  a constant voltage offset that appears Gain error  deviation of slope from ideal value
at the output when the digital input is 0 of 1
Offset
Gain
error
error
Ideal
Ideal
Binary code
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
Integral
nonlinearity
Ideal
Ideal
Non-
monoticity
Binary code
Binary code
L10: 6.111 Spring 2006 Introductory Digital Systems Laboratory 9
Analog
Analog
Analog
Analog
R-2R Ladder DAC Architecture
R-2R Ladder DAC Architecture
-1
Note that the driving point impedance (resistance) is the same
for each cell.
R-2R Ladder achieves large current division ratios with only
two resistor values
L10: 6.111 Spring 2006 Introductory Digital Systems Laboratory 10
DAC (AD 558) Specs
DAC (AD 558) Specs
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
Image courtesy of Analog Devices. Used with permission.
L10: 6.111 Spring 2006 Introductory Digital Systems Laboratory 11
Chip Architecture and Interface
Chip Architecture and Interface
LATCH
D[7:0]
CE CS
Outputs are noisy
when input bits settles,
so it is best to have inputs
stable before latching
the input data
Image courtesy of Analog Devices. Used with permission.
L10: 6.111 Spring 2006 Introductory Digital Systems Laboratory 12
Setting the Voltage Range
Setting the Voltage Range
Very similar to a
non-inverting amp
Strap output for
different voltage
ranges
Image courtesy of Analog Devices. Used with permission.
Convert data to
Offset binary
L10: 6.111 Spring 2006 Introductory Digital Systems Laboratory 13
Another Approach: Binary-Weighted DAC
Another Approach: Binary-Weighted DAC
R
Switch binary-weighted
currents
-
vout
MSB to LSB current ratio is 2N
b b
b b
+
3 0
2 1
I
I I
I
8
2 4
1 1 1
AD9768
= - ( + + + )
v IR b b b b
2 4 8
out 3 2 1 0
Analog Devices AD9768
uses two banks of
ratioed currents
Additional current
division performed by
750 &! resistor between
the two banks
Image courtesy of Analog Devices. Used with permission.
Reference current source
L10: 6.111 Spring 2006 Introductory Digital Systems Laboratory 14
Glitching and Thermometer D/A
Glitching and Thermometer D/A
Glitching is caused when
switching times in a D/A are not
synchronized Binary Thermometer
00000
Example: Output changes from
011 to 100  MSB switch is
01001
delayed
10011
Filtering reduces glitch but
11111
increases the D/A settling time
One solution is a thermometer
R
code D/A  requires 2N  1
switches but no ratioed
currents
vout
T0 T1 T2
vout
011100
I I I
t
vout = -IR(T0 + T1 + T2)
L10: 6.111 Spring 2006 Introductory Digital Systems Laboratory 15
Successive-Approximation A/D
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
Successive-Approximation A/D
Data
Successive
D/A
Approximation
N
Converter
Generator
Done
-
vin
Control
Sample/
+
Go
Hold
Serial conversion takes a time equal to N(tD/A + tcomp)
L10: 6.111 Spring 2006 Introductory Digital Systems Laboratory 17
Successive-Approximation A/D
Successive-Approximation A/D
(AD670)
(AD670)
Unipolar (BPO =0)
~10źs conversion time
Bipolar (BPO =1)
Image courtesy of Analog Devices. Used with permission.
L10: 6.111 Spring 2006 Introductory Digital Systems Laboratory 18
Single Write, Single Read Operation
Single Write, Single Read Operation
(see data sheet for other modes)
(see data sheet for other modes)
tw
R/W
Write
CE, CS
Read
tDC
Status
tDT
tc
tTD
Valid
Data Data Valid
tw (write/start pulse width) = 300ns (min)
tDC (delay to start conversion) = 700ns (max)
tc (conversion time) = 10źs (max)
tTD (Bus Access Time) = 250 (max)
tDT (Output Float Delay) = 150 (max)
Control bits CE and CS can be wired to ground if A/D is the only chip driving the bus
Suggestion: tie CE and CS pins together and hardwire BPO and Format
L10: 6.111 Spring 2006 Introductory Digital Systems Laboratory 19
Simple A/D Interface FSM
Simple A/D Interface FSM
CS
cs_b
clk
CE
r_w_b
reset
R/W
AD670
FSM
status
sample
STATUS
Data[7:0]
dataavail
Q D
Status should be
synchronized: why?
Courtesy of James Oey and
Cemal Akcaba
Figure by MIT OpenCourseWare.
L10: 6.111 Spring 2006 Introductory Digital Systems Laboratory 20
Example A/D Verilog Interface
Example A/D Verilog Interface
module AD670 (clk, reset, sample, dataavail,
// State declarations.
r_wbar, cs_bar, status, state);
parameter IDLE = 0;
parameter CONV0 = 1;
// System Clk
parameter CONV1 = 2;
input clk;
parameter CONV2 = 3;
// Global Reset signal, assume it is synchronized
parameter WAITSTATUSHIGH = 4;
parameter WAITSTATUSLOW = 5;
input reset;
parameter READDELAY0 = 6;
parameter READDELAY1 = 7;
// User Interface
parameter READCYCLE = 8;
input sample;
output dataavail;
always @ (posedge clk or negedge reset)
begin
// A-D Interface
if (!reset) state <=IDLE;
input status;
else state <=nextstate;
reg status_d1, status_d2;
output r_wbar, cs_bar;
status_d1 <= status;
output [3:0] state;
status_d2 <= status_d1;
// internal state
r_wbar <= r_wbar_int;
reg [3:0] state;
cs_bar <=cs_bar_int;
reg [3:0] nextstate;
reg r_wbar_int, r_wbar;
end
reg cs_bar_int, cs_bar;
2/5
1/5
reg dataavail;
L10: 6.111 Spring 2006 Introductory Digital Systems Laboratory 21
Example A/D Verilog Interface (cont.)
Example A/D Verilog Interface (cont.)
CONV2:
always @ (state or status_d2 or sample) begin
begin
// defaults
r_wbar_int = 1; cs_bar_int = 1; dataavail = 0; r_wbar_int = 0;
cs_bar_int = 0;
case (state) nextstate = WAITSTATUSHIGH;
end
IDLE: begin WAITSTATUSHIGH:
if(sample) nextstate = CONV0; begin
else nextstate = IDLE; cs_bar_int = 0;
end if (status_d2) nextstate = WAITSTATUSLOW;
CONV0: else nextstate = WAITSTATUSHIGH;
begin end
r_wbar_int = 0;
cs_bar_int = 0; WAITSTATUSLOW:
nextstate = CONV1; begin
end cs_bar_int = 0;
if (!status_d2) nextstate = READDELAY0;
CONV1: else nextstate = WAITSTATUSLOW;
begin end
r_wbar_int = 0;
cs_bar_int = 0;
nextstate = CONV2;
end
3/5
4/5
L10: 6.111 Spring 2006 Introductory Digital Systems Laboratory 22
Example A/D Verilog Interface(cont.)
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
default: nextstate = IDLE;
endcase // case(state)
end // always @ (state or status_d2 or sample)
endmodule // adcInterface
5/5
L10: 6.111 Spring 2006 Introductory Digital Systems Laboratory 23
Simulation
Simulation
On reset, present state goes to 0
r_w_b must stay low for at least 3 cycles (@ 100ns period)
Enable read flip-flop
Status is synchronized  two register delays
Wait for ~10źs for status to go low
Notice a one cycle delay since A/D
Sample pulse initiates
control signal delayed through a register
data conversion
L10: 6.111 Spring 2006 Introductory Digital Systems Laboratory 24
Flash A/D Converter
Flash A/D Converter
Brute-force A/D conversion
Vref vin
Simultaneously compare the
+
R
analog value with every
C
-
possible reference value
R
+
b0 Fastest method of A/D
C
conversion
b1
-
Size scales exponentially
+
R
C
with precision
-
(requires 2N comparators)
Comparators
R
Can be implemented as OpAmp in open loop
L10: 6.111 Spring 2006 Introductory Digital Systems Laboratory 25
Thermometer to binary
AD 775  Flash Data Converter
AD 775  Flash Data Converter
Image courtesy of Analog Devices. Used with permission.
L10: 6.111 Spring 2006 Introductory Digital Systems Laboratory 26
High Performance Converters:
High Performance Converters:
Use Pipelining and Parallelism!
Use Pipelining and Parallelism!
Pipelining (used in video rate, RF basestations, etc.)
1-bit 1-bit
Amplifier Amplifier
- -
Sample/ A/D D/A Sample/ A/D D/A
&
2 2
Hold Converter Converter Hold Converter Converter
+ +
Parallelism (use many slower A/D s in parallel to build very
high speed A/D converters)
1 GHz
[ISSCC 2003],
DLL
Clock
Poulton et. al.
Clock
Gen
20Gsample/sec,
CMOS
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.
L10: 6.111 Spring 2006 Introductory Digital Systems Laboratory 27
80 Radix Converters
80 T/Hs and V/Is
80 Slice Decimator
80 ADC Slices
8 Mem Controllers
1MByte SRAM
New Trend: Eliminate OpAmps!
New Trend: Eliminate OpAmps!
(Use Comparators, more digital& )
(Use Comparators, more digital& )
Op amps must achieve high
open-loop gain and fast
settling time under
feedback.
High gain becomes
increasingly difficult
achieve due to low device
gain.
Solution: Comparator
based analog Design
Dramatic power savings
possible
Courtesy of Prof. Harry Lee, ISSCC 2006. Used with permission.
L10: 6.111 Spring 2006 Introductory Digital Systems Laboratory 28
Summary of Analog Blocks
Summary of Analog Blocks
Analog blocks are integral components of any
system. Need data converters (analog to digital
and digital to analog), analog processing
(OpAmps circuits, switched capacitors filters,
etc.), power converters (e.g., DC-DC
conversion), etc.
We looked at example interfaces for A/D and
D/A converters
Make sure you register critical signals (enables, R/W,
etc.)
Analog design incorporate digital principles
Glitch free operation using coding
Parallelism and Pipelining!
More advanced concepts such as calibration
L10: 6.111 Spring 2006 Introductory Digital Systems Laboratory 29


Wyszukiwarka

Podobne podstrony:
Analog 12 72 Vinge, Vernor Original Sin v1 0
Analogia
analogi dla ZIELONEGO
TECHNIKA ANALOG ID 4
cwiczenia analogie dod ODP
Magazine Analog Science Fiction and Fact 2004 Issue 12 December (v1 0) [txt]
staniec, planowanie sieci radiokomunikacyjnych, Radiofonia analogowa
Analog 05 1972 v1 0
ANALOG (3)
Mikser analogowy Allen & Heath ZED10FX
06 Przetwarzanie i rejestrowanie sygnału audio analogowego
Moje usługi dodatkowe DLA TELEFONII ANALOGOWEI OFEROWANE W SYSTEMIE CENTRAL CYFROWYCH
AnalogReference
AnalogReference
Analog 1974 07 v1 0
Analog 1971 07 v1 0

więcej podobnych podstron