Professional Documents
Culture Documents
CIRCUITS
DAC
Nyquist
Oversampling
Rate
( −1 −2
Vo u t = Vref b1 2 + b2 2 + + bN 2 −N
)=V ref Bin
3/4
1/2
0
LSB changes 00 01 10 11 100
Vref
VLS B = N
2
Note that maximum -N
© Burak Kelleci - 2023 ADC and DAC value of Vout is Vref(1-2 ) 6
IDEAL DAC
○Bin=2-1+2-3+2-4=0.6875
○Vout=VrefBin= 3.4375V
○VLSB=Vref/2N= Vref/24= 0.3125V
Nyquist
Oversampling
Rate
Higher-Order Low-Pass
Flash ADC
Single-Bit Modulator
First-Order Low-Pass
Two-Step ADC
Multi-Bit Modulator
Second-Order Low-Pass
Interpolating ADC
Multi-Bit Modulator
Higher-Order Low-Pass
Folding ADC
Multi-Bit Modulator
Time-Interleaved
ADC
01
○ Digitized data needs to be sent from ADC to digital system or from digital
system to DAC.
○ Depending on the data rate requirement, there are various data
communication standards
○ SPI (Serial Peripheral Interface Bus):
● SPI does not have a formal standard, so each device defines its own
protocol.
● Full Duplex communication
● Faster than I2C
● Usually clock frequencies are below 20MHz.
● Since it is a serial communication, increasing number of bits slows
down sample rate.
● For example, 20 MHz clock and 16-bit data limits sample rate to
1.25MSamples
○I2C/Serial 2-Wire
● Also called Inter-Integrated Circuit is invented by Philips and used
to communicate with peripherals at low speed.
● Speed
○ 10 kbit/s: Low-speed mode
○ 100kbit/s: Standard mode
○ 400 kbit/s: Fast mode
○ 1Mbit/s: Fast mode plus
○ 3.4 Mbit/s: High Speed mode (Defined in version 3.0)
○CMOS (Parallel)
● Data is sent in parallel.
● Number of data outputs is equal to number of bits used in ADC or
DAC.
● For example, a 16-bit ADC requires 16 outputs.
● This parallel interface is used below 200MSample/s rates.
● Since digital data is sent in parallel, timing closure on the PCB is
important.
○ The response of a DAC is defined as the level of analog output for each
digital input signal.
○ Similarly, the response of an ADC is defined as the midpoints of the
quantization intervals for each digital word output.
○ Resolution
● Defined as the number of distinct levels.
● N-bit resolution means that there are 2N distinct analog levels.
● Resolution is not an indication of accuracy, but it is used to refer the
number of bits of the digital word.
● For example, a 16-bit ADC may be accurate only the same as the 12-
bit ideal ADC. This means, although the output is 16-bit, first 12-bits
are meaningful, last 4-bits are buried under noise and other errors.
○Offset Error:
● In DAC, offset error Eoff is defined as the output that produces
zero output.
Vo u t
Eo ff ( D / A ) =
VLS B 00
V00 1 1
Eo ff ( A / D ) = − LSB
VLS B 2
Vo u t
Eg a in( D / A) =
VLS B
−
V
V
o u t − 2N −1
( )
11 LS B 00
○In ADC, the equivalent gain error is defined in LSBs
V11 V00
E g a in( A / D ) = − (
− 2 N − 2 )
VLS B VLS B
3/4
1/4
Offset Error
0
00 01 10 11
© Burak Kelleci - 2023 ADC and DAC 20
OFFSET AND GAIN ERROR
○Example
● In a 3-bit DAC with Vref=5V, following voltages are measured
● 0.02 : 0.626 : 1.26 : 1.875 : 2.45 : 3.13 : 3.85 : 4.374
● Find the offset and gain errors
○Solution:
● 1 LSB = 5V / 23 = 0.625
● Offset Error Vo u t 0.02
Eo ff ( D / A) = = = 0.032 LSB
VLS B 00 0.625
● Gain Error
Vo u t
Eg a in( D / A) = −
Vo u t
( − 2 N − 1 = 4.374 − 0.02 − 23 − 1 = −0.0336 LSB
) ( )
VLS B VLS B 00 0.625
11
Ideal Curve
Gain Error
11
10
01
00 Vin
0 1/4 1/2 3/4 1
Vref
Offset Error
© Burak Kelleci - 2023 ADC and DAC 22
OFFSET AND GAIN ERROR
○Example
● In a 3-bit ADC with Vref=5V, at the following voltages the output
word is changed
● 0.34 : 0.94 : 1.58 : 2.2 : 2.85 : 3.55 : 4.25
● Find the offset and gain errors
○Solution:
● 1 LSB = 5V / 23 = 0.625
● Offset Error V00 1 1 0.34 1
Eo ff ( A/ D ) = − LSB = − = 0.044 LSB
VLS B 2 0.625 2
● Gain Error
V V
( ) 4.25 0.34
E g a in( A / D ) = 11 − 00 − 2 N − 2 = − ( )
− 2 − 2 = 0.256 LSB
3
V out
Ideal Straight
V ref
Ideal Straight Line
1 Line Ideal
Response
3/4 Actual 11
Response
1/2 10
Actual
1/4 01 Response
0 00
00 01 10 11 100 0 1/4 1/2 3/4 1 Vin
Vref
○Example
● In a 3-bit DAC with Vref=5V, following voltages are measured
● 0.02 : 0.626 : 1.26 : 1.875 : 2.45 : 3.13 : 3.85 : 4.374
● Determine INL and DNL errors (in units of LSBs)
○To calculate INL and DNL errors, offset and gain errors
should be removed.
● The offset error is calculated as 0.032 LSB
● The gain error is calculated as -0.0336 LSB
● The offset error is removed by subtracting 0.032LSB from each
value and the gain error is removed by scaling the values.
ith value i
− offset error − gain error
LSB Level Numberof Levels- 1
○Although it is easy to give all INL and DNL values for data
converters with low number of bits, it is not practical for high
number of levels.
○For example an 8-bit data converter has 256 levels.
○Therefore, INL and DNL is given either given as the maximum
value or a graphic which shows all possible cases.
0.2 0.25
0.15 0.2
0.1 0.15
0.05
0.1
INL
DNL
0
0.05
-0.05
0
-0.1
-0.05
-0.15
-0.1
-0.2 0 2 4 6 8
0 1 2 3 4 5 6 Code
Code
○ Absolute accuracy
● Difference between expected and actual responses
● Includes effect of offset, gain and linearity errors
○ Relative accuracy
● Accuracy after offset and gain errors are removed.
○ Accuracy is expressed as a percentage error of full-scale value as
effective number of bits or fraction of an LSB.
○ For example, 12-bit accuracy indicates that the error is less than full scale
value divided by 212.
○ For example, a data converter may have 10-bit resolution with only 8-bit
accuracy. Another converter may have 8-bit resolution but 10-bit
accurate. First data converter’s last 2-bit is buried under noise and is not
reliable. On the other hand, second data converter’s response is close to
ideal 8-bit converter response due to 10-bit accuracy.
○Example
● In a 3-bit DAC with Vref=5V, following voltages are measured
● 0.02 : 0.626 : 1.26 : 1.875 : 2.45 : 3.13 : 3.85 : 4.374
● Calculate absolute and relative accuracy.
5V 0.1V
N eff
= 0.1V N eff = 5.64 bits = 16% LSB
2 0.625V
○Example
● In a 3-bit ADC with Vref=5V, at the following voltages the output
word is changed
● 0.34 : 0.94 : 1.58 : 2.2 : 2.85 : 3.55 : 4.25
● Find the INL, DNL and ENOB using absolute and relative accuracy.
○Solution:
● The offset error is calculated as 0.044 LSB
● The gain error is calculated as 0.256 LSB
● Offset and gain error is removed in a similar way like removing
from DAC response
0.94 1
− 0.044 − 0.256 = 1.4173
0.625 6
0.06
-0.02
0.04
-0.04
0.02
-0.06
0
DNL
INL
-0.08
-0.02
-0.1
-0.04
-0.12 -0.06
-0.14 -0.08
-0.16 -0.1
0 1 2 3 4 5 6 0 1 2 3 4 5
Code Code
○Monotonicity
● In a monotonic DAC, the output always increases as the input
increases.
● If maximum INL error of a DAC is less than 0.5 LSB, it is
guaranteed to be monotonic.
○Missing Code
● In an ADC, it is guaranteed not to have any missing codes if the
maximum DNL error is less than 1 LSB or the maximum INL error is
less than 0.5 LSB.
○ADC and DAC are clocked circuits and actual clock signal has
also noise and uncertainty.
○Clock edges, at where the sampling occurs, is not precisely
defined as in an ideal clock source. This uncertainty creates
noise at the output of ADC or DAC.
○The sampling time uncertainty also knows as aperture jitter is
usually characterized for full scale sinusoidal signal.
Vref
Vin = sin (2f in t )
2
○Latency
● Time required the signal at the input changes the output signal.
● High sampling rate does not always mean low latency.
● For example, a pipelined ADC may have 2µs conversion time but
24µs latency.
○Sampling Rate
● The rate at which samples can be continuously converted.
● Sampling rate is equal or lower than the inverse of settling time,
○In ideal ADC and DAC, the only noise is quantization noise.
○However, actual converters have also various analog circuits
which generate noise, such as thermal, flicker
○To quantify all noise sources together, a sinusoidal signal is
applied to the converter and signal power and noise power is
determined at its output.
○Usually, due to the nonlinearity of circuits elements, there is
also harmonics of the input signal. To determine the noise
power, these harmonics should also be removed.
-20 Signal
-40
Amplitude (dB)
-60
Noise
-80
-100
-120
0 100 200 300 400 500
Frequency (KHz)
Fundamental
-20
Second Third
Harmonic Harmonic
Amplitude (dB)
-40
Noise
-60
-80
-100
-120
0 100 200 300 400 500
Frequency (KHz)
0
f1 f2
Fundamental
Intermodulation
-20 Product
Second
Third
Harmonic
-40 Harmonic
f2-f1 f1+f2
Noise
Amplitude (dB)
2f1-f2 2f1+f2
2f2+f1
2f2-f1
-80
-100
-120
0 100 200 300 400 500
Frequency (KHz)
○Decoder-Based Converter
● A N-bit DAC can be realized by creating 2N reference signals and
connecting appropriate signal to the output.
● 2N reference signals can be generated by resistor string network.
● The generated voltage is connected in a tree-like decoder.
● In order to prevent any loading of the DAC due to the output
capacitance a buffer is utilized.
Vref
R b3
b3 b2
R
R b3
R b3 b2 b1
2N Vout
Resistors
R b3
Analog
b3 b2
Buffer
R
R b3
R b3 b2 b1
○Advantages
● Simple to build.
● Does not require extra logic for decoding
● No DC current flowing through switches, so small size switches
can be used
○Disadvantages
● Even there is no digital activity, there is static current through
resistors
● Since each switch brings an extra node, which introduces extra
parasitic capacitance.
● These capacitances are charged and discharged through switches
and resistors on the resistor string
● Increasing switch sizes reduces switches on resistance but
increases parasitic capacitance
© Burak Kelleci - 2023 ADC and DAC 52
DECODER-BASED CONVERTER
Vref
R b3
Cpar b3 b2
R
Cpar b3 Cpar
R
Cpar b3 b2 b1
R
2N Vout
Resistors Cpar b3 Cpar Cpar
R
Analog
Cpar b3 b2
Buffer
R
Cpar b3 Cpar
R
Cpar b3 b2 b1
R
○Example:
● How many switches are required for N-bit decoded based DAC?
○Solution:
● 2N+2N-1+…+22+21= 2N+1-2
Decoder
Cpar
R
2N b2
capacitance is reduced in Resistors Cpar
R
the expense of increased
b1
digital circuit complexity. R
Cpar
Cpar
R
Decoder
2N
Resistors with
structure is introduced. b2
equal sizes
○Total number of
transistor junctions at
the output is 2sqrt(2N)
Vout
Analog
Decoder Buffer
b3 b4
Analog
Vref
Buffer R b1
Decoder
R
b3
Decoder
R b0
R
b2
R
R
R
Vout
Analog Analog
Buffer Buffer
© Burak Kelleci - 2023 ADC and DAC 57
BINARY SCALED CONVERTERS
b b b b R V
Vo u t = − RF VREF − 1 − 2 − 3 − 4 = F REF Bin
2 R 4 R 8R 16 R R
The resistor and
Bin = b1 2 −1 + b2 2 − 2 + b3 2 −3 + b4 2 − 4
current ratios are on
RF the order of 2N, which
results in large switch
sizes in order to equal
Vout
the voltage drop on
the resistors.
2R 4R 8R 16R
-Vref
Vout
2R 4R 2R 4R
-Vref/4
3R
-Vref R 4R
R1 R2 R3 R4 R4 = 2 R || 2 R = R
Vref R R R 2R
R3 = 2 R || (R + R4 ) = R
2R 2R 2R 2R R2 = 2 R || (R + R3 ) = R
R1 = 2 R || (R + R2 ) = R
RF
Vout
2R 2R 2R 2R
-Vref R R R 2R
RF
R 2R 2R
R R R
Vout
I I I I
Vout
1 C2
Vref 2a
2
○Thermometer-Code Converter
● Another method is to recode the digital input value to a
thermometer code.
● Thermometer code has 2N-1 digital inputs to represent 2N different
digital values.
Decimal Binary Thermometer Code
b1 b2 b3 d1 d2 d3 d4 d5 d6 d7
0 0 0 0 0 0 0 0 0 0 0
1 0 0 1 0 0 0 0 0 0 1
2 0 1 0 0 0 0 0 0 1 1
3 0 1 1 0 0 0 0 1 1 1
4 1 0 0 0 0 0 1 1 1 1
5 1 0 1 0 0 1 1 1 1 1
6 1 1 0 0 1 1 1 1 1 1
7 1 1 1 1 1 1 1 1 1 1
○Thermometer-Code Converter
● Thermometer code based converters’ circuit complexity is higher
than binary code based converter.
● It has advantages over its binary counterpart
○ Low DNL errors
○ Guaranteed monotonicity
○ Reduced glitching noise.
d1 d2 d3 d4 d5 d6 d7
Vout
R R R R R R R
-Vref
○If resistor areas are larger than switch areas, the size of
resistor based thermometer coded DAC is not increased
compared to binary-weighted DAC.
○To built R, 2R and 4R, 7R resistors are needed.
d1 d2 d3 d4 d5 d6 d7
Vout
I I I I I I I
RF
Iref d1 d2 d3 d4 d5 d6 d7
Vout
VDD/2
I I I I I I I
d1 d2 d3 d4 d5 d6 d7
VOUT
RL
I ROUT
B IEQ
RON
dN
REQ = ROUT + RON
REQ/B RL
RL
○INL is in LSBs
INL(k ) =
k 1 + (2n − 1)
−k k = 0,,2n − 1
1 + k
REQ RL 2n −2
Iref
Iref
Calibration Iout Iout
Current Source
Phase
Mode
S2 S2
S1 M1
S1 M1
CGS CGS
Binary-to-Thermometer Decoder RF
d1 d2 d3 d4 d5 d6 d7
d1 d2 d3 d4 d5 d6 d7 b4 b5 b6
Vout
kI C
VOUT = Input Comp Clk/2n
C fS I
Count
k is the digital code
Clk
© Burak Kelleci - 2023 ADC and DAC 81
RAMP CONVERTER
C
InputMSB-M Comp IM
InputREST Comp I
Clk/2n-M
Count Count
Clk Clk
Input Comp
Count
Clk
○Suitable for
● High accuracy
● Very slow moving signals
● Measurement of low frequency close to DC voltage or current
○Advantages
● Very low offset and gain errors
● Highly Linear
● Low area requirement
S2
C1
S1
S2
-Vin S1 R1 Comparator
Vref Vx
Control Bout
Counter
logic
Clock
fclk=1/Tclk
○Phase I
● fixed time interval of length T1 and determined by running counter
2N clock cycles
T1 = 2 Tclk
N
○Phase II
● Occurs for variable of time.
● At the beginning of this phase counter is reset and S1 is connected
to Vref, resulting in constant slope for decaying voltage at Vx.
● To obtain a digital value, counter counts until Vx is below zero, at
which point that count value is the digitized value of the input
signal Vin.
● Assuming that the digital output count is normalized so that largest
count is unity, Bout is defined as
○Phase II
● Therefore T2 is equal to
( )
T2 = 2N BoutTclk = b1 2N −1 + b2 2N −2 + + bN −112 + bN Tclk
● Let’s calculate value of Vx during phase II
t
Vref
Vx (t ) = − d + Vx (T1 )
T1
R1C1
− Vref Vin T1
= (t − T1 ) +
R1C1 R1C1
○Phase II
● Since Vx equals to zero when t=T1+T2
− Vref T2 Vin T1
0= +
R1C1 R1C1
● Therefore the relationship between T2 and T1 is
Vin
T2 = T1
V
ref
Vin
N
2 Bo u tTclk = 2 Tclk
N Bo u t = Vin
V Vref
ref
sin (fT1 )
H( f ) =
fT1
-5
-10
H (dB)
-15
-20
-25
-30
1 2 3
10 10 10
Frequency (Hz)
○Example:
○Design a 16-bit two-slope integrating ADC with the following
specifications
● Max Input Voltage = 3V
● Max Voltage at the integrator output = 4V
● Reject 50Hz supply noise
● Calculate the required RC time constant and clock rate
● Find the attenuation for noise signals at 220Hz.
○Example:
○Since 50Hz and harmonics will be rejected
1
= 20ms T1 =
50
○Therefore, the clock frequency is
1 21 6
f clk = = = 3.28MHz
Tclk T1
○Example:
○To find the attenuation at 220Hz, we need to evaluate
sin (fT1 )
H( f ) =
fT1
sin ( 220 20ms)
H (220) = = −23dB
220 20ms
Sample
Vin SAR Register and
Hold
control logic
Bout
DAC Vref
Start
○Flow graph for
SAR Converter Sample Vin, VDAC=VREF/2-VLSB/2, i=1
no
Vin > VDAC
yes
bi=1 bi=0
İ=i+1
no
İ > N-1
yes
Stop
cap circuits
● Since this algorithm requires
İ=i+1
representation by yes
subtracting (Vref/2-VLSB/2) Stop
S2
Vx=0
16C 8C 4C 2C C C SAR
b1 b2 b3 b4 b5
S3
S1
Vin Vref
S2
Vx=-Vin
16C 8C 4C 2C C C SAR
b1 b2 b3 b4 b5
S3
S1
Vin Vref
S1
Vin Vref
(− Vin ) = −0.984V
32
Vx =
32 + 8
representation by subtracting
(Vref/2-VLSB/2) no
İ>N
yes
Stop
Vref/4
Sample
X2
Hold
-Vref/4
○Multiply-by-two Circuit
● The basic idea of this gain circuit is to sample the input signal twice
using the same capacitor.
● Phase I: Sample error voltage on C1 and remove any charge on C2.
C2
C1
Verr
Comparator
Q1
○Multiply-by-two Circuit
● Phase II: Transfer the charge of C1 to C2.
C2
Q1
C1
Verr
Comparator
Q1
○Multiply-by-two Circuit
● Phase III: Resample error voltage on C1.
● Keep the charge on C2.
C2
Q1
C1
Verr
Comparator
Q2
○Multiply-by-two Circuit
● Phase IV: Sum the charge on C2 with the charge on C1.
C2
C1
Verr
Comparator
Q1+Q2
Vout=2Verr
○Example
● Consider the multiply-by-two circuit in the previous slide.
● Assume opamp has an input offset designated by Voff.
● Find the values of VC1, VC2 and Vout
○Solution
● Phase I: The opamp output is connected to the negative opamp
input
Vo u t = Vo ff
VC1 = Verr − Vo ff
VC 2 = 0 − Vo ff = −Vo ff
○Solution (cont.)
● Phase II: At the end of this phase
C1
Vo u t = Verr
C2
VC1 = 0 − Vo ff = −Vo ff
C1
VC 2 = −Vo ff + Verr
C2
QC1 = C1 (Verr − Vo ff − (− Vo ff )) = C1Verr
○Solution (cont.)
● Phase III: At the end of this phase, VC2 is unchanged since one side
of C2 is open.
Vo u t = Vo ff
VC1 = Verr − Vo ff
C1
VC 2 = −Vo ff + Verr
C2
○Solution (cont.)
● Phase IV: At the end of this C2 is discharged to the same value in
phase I.
Vo u t = 2Verr
VC1 = 2Verr − Vo ff
VC 2 = −Vo ff
C1
QC 2 = C 2 Verr = C1Verr
C2
Encoder
to the number of R
Digital
Outputs
comparators.
R
○Due to the mismatch
among resistors, maximum R
to 8-10 bits.
R/2
input NANDs. R
Encoder
Digital
transition point. R
Outputs
R
R/2
○Flashback
● When the comparator is clocked, there is a glitch at the inputs to
the latch.
● If positive and negative side impedances of the comparator is not
matched, this glitch creates voltage difference and causes errors.
Error Correction
8 Bits
R
Latch
correct points. R
Latch
Latch
Encoder
to be made equal
Latch
R
Latch
R
Latch
R
Input Amplifier Output
Latch
R
R
V2 Latch
R
V1
Latch
Latch Threshold R
R Input Latch
Amplifiers R
V2a V2c Latch
R
V2b Latch
R
Latch
Comparators
Vin
I1 I2a I2b I2
9 3 3 3 3 3 3 9
Folding Rate : 4
Latch Threshold
Vin
© Burak Kelleci - 2023 ADC and DAC 135
FOLDING ADC
○ Each sub block contains a sample and hold circuit in order to store
the analog waveform coming from previous stage.
○ The analog signal at the output of sample and hold is compared to
reference voltage and the bit value is determined.
○ Depending on the comparator result, Vref/4 is added or subtracted
from input voltage and the result is multiplied by two and passed
to
preceding stage.
2
fs / 2
S (f )= Se ( f ) =
1
2
e
− fs / 2
12 12 fs
f0 2 2
2 f
( ) 1
− f S e f = 12 f s = 12 OSR
2 0
○The first term is due to N-bit quantizer and the last term is
due to SNR improvement due to oversampling.
f s = 230 2 f 0 = 54000GHz
○To realize first order noise shaping, NTF should have zero at
DC, so than quantization noise is high-pass filtered.
○Since the zeros of NTF is equal to poles of H(z), first order
noise shaping can be obtained using discrete-time integrator.
z −1
H (z ) =
1
=
z − 1 1 − z −1
Y (z ) 1 / ( z − 1)
S TF ( z ) = = = z −1
U ( z ) 1 + 1 / ( z − 1)
Y (z )
N TF ( z ) = =
1
E ( z ) 1 + 1 / ( z − 1)
(
= 1 − z −1 )
○To find the magnitude of the noise transfer function, let
z=ejwT.
e jf / f s − e − jf / f s
N TF ( f ) = 1 − e − j 2f / f s = 2 j e − jf / f s
2j
f
= sin 2 j e − jf / f s
fs
f
N TF ( f ) = 2 sin
fs
3
2 2
2 f0
Pe =
12 3 fs
Ps 3 3 3
SNR = 10log10 = 10log10 22 N + 10log10 2 ( OSR )
Pe 2
= 6.02 N + 1.76 − 5.17 + 30log10 ( OSR )
○Doubling the OSR improves SNR by 9dB or equivalently
1.5bits.
○Compared to oversampling without noise shaping an extra
1bit/octave improvement is achieved using noise shaping.
○Example
○96dB SNR needs to be obtained for f0=25KHZ using 1-bit
ADC and first order noise shaping. What is the required
oversampling ratio (OSR)
○96dB SNR needs to be obtained by oversampling.
○Since OSR improvement is 9dB per octave, sampling rate
must be at least 11 octave above 2f0.
f s = 211 2 f 0 = 102.4MHz
○102MHz sampling rate is practical with current technology.
S TF (z ) = z −1
(
N TF (z ) = 1 − z )
−1 2
2
f
N TF (z ) = 2 sin
fs
Pe =
60 OSR
○SNR for sinusoidal signal is
Ps 3 2N 5
SNR = 10 log 1 0 = 10 log 1 0 2 + 10 log 1 0 4 (OSR)
5
Pe 2
= 6.02 N + 1.76 − 12.9 + 50 log 1 0 (OSR)
○Doubling the OSR improves SNR by 15dB or equivalently
2.5bits.
○Example
○96dB SNR needs to be obtained for f0=25KHZ using 1-bit
ADC and second order noise shaping. What is the required
oversampling ratio (OSR)
○102dB SNR needs to be obtained by oversampling.
○Since OSR improvement is 15dB per octave, sampling rate
must be at least 7 octave above 2f0.
f s = 27 2 f 0 = 6.4MHz
○Sample and Hold circuits are used to sample and store its
value for limited time.
○Often sample and hold circuits are called as track-and-hold
circuits.
○Track and hold circuits tracks the input signal at one phase of
the clock signal and keep its output constant at the other
clock phase.
○The main advantage of sample and hold circuits is to
minimize errors due to the delay of operation of internal
circuits of the converter.
○Performance metrics
○Sampling pedestal (hold step):
● When sample and hold goes from sample mode to hold mode, a
small error voltage is introduced. That makes the voltage at hold
mode differs from the voltage at the sampling instance.
● This error must be as small as possible.
● It should be independent of the signal, otherwise it will generate
nonlinear distortion.
○Speed
● How well the sample and hold tracks the input signal during
sample mode.
● 3-dB bandwidth and slew rate limits the maximum speed of the
sample and hold.
● For high speed operation, 3-dB bandwidth and slew rate must be
maximized.
○Droop Rate:
● This error is the slow change of output waveform at hold mode.
● This effects is usually due to the leakage current.
○Example:
● A sample hold circuit has the following parameters
● Chld=1pF
● Cox=1.92 fF/(µm)2
● VTH=0.8V
● W/L=5µm/0.8µm
● Power supply voltage is ±2.5V
● Input signal peak-to-peak amplitude is 1V
● Find the hold step voltage when input is 1V
● Find the hold step voltage when input is -1V
○Example:
○At Vin=1V
○At Vin=-1V
○ The input impedance of the sample and hold can be increased using an
opamp
○ During the sampling phase this circuit operates in unity gain feedback
configuration.
○ The feedback reduces the speed of the overall circuit
○ During hold mode the opamp will be in open loop configuration and its
output will go one of the supply rails. Therefore, it takes more time to
track the input signal when it switches to sampling mode.
○Is pan the saturation current and also has strong dependence
on temperature.
kT J 2
VBE = VBE , 2 − VBE ,1 = ln
q J1
○Example:
○Calculate the difference of base-emitter voltages of two
transistors biased at a current density ratio of 10 at T=300K
kT J 2 1.38 10 −2 3 300
VBE = ln = −1 9
ln (10) = 59.5mV
q J1 1.602 10
kT0 J 2 kT0
Vref = VBE 0, 2 +K ln = VG 0 + (m − 1)
q J1 q
kT T0
Vref = VG 0 + (m − 1) 1 + ln
q T
Vref k T0
= (m − 1) ln
T q T
○Example:
○Calculate the temperature dependence at 0C for a bandgap
voltage reference that was designed to have zero
temperature dependence at 20C
○0C corresponds to 273K and 20C corresponds 293K
Vref k T0
= (m − 1) ln
T q T
1.38 10 −2 3 293
= (2.3 − 1) −1 9
ln = 8mV / K
1.6 10 273
○Following voltage
reference is proposed
by Brokaw and basis
for many bipolar
bandgap references.
○Both transistors have
the same collector
currents, but Q2
current density is 8
times of Q1 current
J2
density. =8
J1
2 R1
Vref = V BE 2 + V BE
R2
R1 1 1.24 − 0.65
= = 5.5
R2 2 0.0258 ln (8)
KR kT KR
Vref = KI 2 R = VBE1 + ln (MNR )
Ra q Ra
○M, N, Ra and Rb values are chosen so that the reference
voltage is independent of temperature at a reference
temperature.
○This circuit allows supply voltages as low as 0.8V.
○Comparators suffer
● Input offset
● Charge injection error
○ Input Offset:
● The input voltage at which its output changes from one logic to the
other.
● In an ideal comparator this will be at zero for dual supply and half of
the supply voltage for single supply.
○ Noise:
● Noise can cause the output of comparator to change even its input is
kept constant.
○ Hysteresis
● Most comparators have tendency to remain in their past state.
● This memory effect is due to the internal capacitances of the
comparator.
● Generally, hysteresis is unwanted in comparators and should be
minimized.
○Example:
● A 0.2mV signal must be resolved using opamp based comparator.
The positive supply voltage is 2V. Calculate the maximum clocking
rate if opamp’s unity gain frequency is 10MHz.
● Assume 6 time constants is required for settling.
○Solution
● For 2V output and 0.2mV input, the opamp gain must be at least
10000 V/V
● The 3-dB frequency is
ft
f 3d B = = 1kHz
A0
○Solution
● During the comparison phase, the output of the opamp will show a
transient response similar to first order system
1
= = 0.16ms
2f 3d B
● For 6 time constants, the settling time will be approximately 1ms.
● Assuming reset phase also requires the same amount of settling
time as the comparison phase, maximum clocking rate will be
500Hz.