Professional Documents
Culture Documents
CMOS COMPARATORS
F. Maloberti: Design of CMOS Analog Integrated Circuits - CMOS Comparators 6/1
PERFORMANCE CHARACTERISTICS
A comparator detect when its input is larger or smaller than a reference voltage. Its output is a large voltage with an appropriate sign.
vin vref + vout
vref
vin
PERFORMANCE
Voltage gain: is the DC differential gain of the comparator. The output peak-to-peak swing is in the range of 3-5 V. Therefore, for low speed, in order to detect a 1 mV signal a voltage gain of 5000 is sufficient. Input offset: is the voltage that must be applied to the input to get the transition between the low and the high state (same as the op-amp).
8
Response time: is the time interval between the application of a step input and the time when the output reaches the respective logic level. The response time depends on the amplitude of the step input.
6/3
Overdrive recovery time: if the input is driven with a voltage larger than the one required to cause the output saturation, the comparator is over driven. The response time for a given input amplitude, depends on the value of the overdrive voltage at which the comparator was driven.
2 mV vov 50
Response Time [nsec]
6/4
Latching compatibility. A latch command and an unlatch command stores and releases the output logic state. Typically the load set-up time is around 2 nsec. Power supply rejection. Transfer function between the supply rails and the output of the comparator. Power consumption. Power dissipated at DC (static) and during the comparison (dynamic). Hysteresis. The threshold voltage for rising input signals is different from the threshold voltage for falling input signals.
6/5
BASIC CONSIDERATION
A comparator is basically an open loop gain stage. The required DC gain is 80 dB (sometime more). Key points: Gain obtained by the use of complex schemes or by the use of the cascade of simple schemes. How to do Vos cancellation. Power supply rejection. Overdrive recovery. Power consumption
All solution are strongly conditioned by the offset cancellation (Vos 3 - 10 mV).
F. Maloberti: Design of CMOS Analog Integrated Circuits - CMOS Comparators 6/6
Comparator Gain: Due to the finite bandwidth of the circuit, the output voltage reaches AvVin with a delay with respect to the time when the input is applied (response time tr).
1,0 0,8 0,6 0,4 0,2 0,0 0 tr 1 2 time (arbitrary scale) 3 4 Av vin
The same output voltage is get, with the same response time, by the use of stages having different speed but different DC gain.
F. Maloberti: Design of CMOS Analog Integrated Circuits - CMOS Comparators 6/7
V out = g m R L V i ( 1 e
t ( RL CL )
gm -t ) V i -----CL
RL
CL
The speed is increase by increasing gm/CL. typically: gm = 0.5 mA/V CL = 0.5 pF Hence, the gain after a delay of 10 nsec is 10.
gm/CL = 1/nsec
An improvement is get by the use of a chain of identical stages. Under the same assumption:
V out g m n t - ---= V in ----- C L n!
6/8 n
For a given gain, it exists an optimum number of stages which gives the best response time. For example: a very small gain is reached using one only stage with a response time t1 smaller than the one obtained with a chain of n identical gain stages. For a given gain an optimum n results:
(n + 1) A n = ------------------n! CL t n = ( n + 1 ) -----gm
n
n An
4.5
10.6
26
64.8
163
416
1067
2755
6/9
OFFSET CANCELLATION
Autozero technique Autozero in multistage comparators Differential schemes Compensation by auxiliary input stages
AUTOZERO TECHNIQUE
Basic idea:
sample the offset during one phase and sum it to the signal during the measure phase.
vx 2 + + S/H 1 vin + vos v out
6/10
1 t 2 t 0 T
V in ( T ) = V + ( T ) V - ( T ) = V os ( T ) ( V x ( T ) V os ( 0 ) )
Fos(f)
)
1
= 2je
sT 2
sin ( sT 2 )
0 0.0 0.25 0.5
fT 0.75
6/11
During phase 1 the gain stage is in unity gain closed-loop conguration. During phase1 C acts as an output load of the gain stage. During phase 2 the gain stage is in open loop conguration.
F. Maloberti: Design of CMOS Analog Integrated Circuits - CMOS Comparators 6/12
The nite gain Av of the gain stage produces a residual offset error
V os, res Av 1 - = V os --------------= V os V os --------------1 + Av 1 + Av
If the complex gain stages are used it is worth to compensate the stage only during the autozero phase.
S1 S3 Vi 2 1 S2 C + Vos S4 1 Vout 1
CC
6/13
The charge injected by the switch S1 is integrated onto C and the input capacitance of the gain stage. The input signal is attenuated by the factor C/(C + Cin). In order to reduce the attenuation and the equivalent offset [Vos,ck = Qck/(C + Cin)] C must be chosen large and >> Cin
F. Maloberti: Design of CMOS Analog Integrated Circuits - CMOS Comparators 6/14
A = A1A2......An
The offset of the third stage is referred to the input attenuated by the
factor A1A2. Usually its contribution is negligible.
Improved solution (sequential offset and feedthrough cancellation): Drive S1 with 1 and S2, S3 with 1
The charge injected by S1 is collected on C2, the equivalent offset is amplied by A1. Since S2 is still on, the output voltage of A1 is sampled and stored onto C2. An autozero of the effect of Vos,1 results.
The offset becomes:
1 V os = ------ V os, 2 A1
Vos,1 and Vos,2 must be such to not saturate A1 and A2 (gain of A1 and A2 low, suitable values of C1 and C2).
F. Maloberti: Design of CMOS Analog Integrated Circuits - CMOS Comparators 6/16
Implementation:
Each gain stage can be implemented with a CMOS Inverter : (Av = 5 - 20)
M2 in 2 1 C1 1 M1 C2 1 M3 M5 M7 M4 M6 M8 out
Differential schemes:
S1 1 1 V out+ + C 1 1 S2 V out-
The clock feedthrough due to the opening of S1 and S2 gives a common mode signal. Its effect is cancelled. Residual offset is due to the mismatching.
C Vin VR 2 2
6/17
M1 in
Disadvantage:
The capacitance Cgs of the loads M3 and M4 act as load of the output.
I1
6/18
VB2 MA MB
Improved solution:
Minimum capacitive load at
the nodes A and B.
6/19
During phase 1 the inputs of A1 are short circuited. The output of A1 goes to A1Vos,1
A 1 V os, 1 + A 2 ( V os, 2 V o ) = V o A1 A2 -V -V + --------------V o = --------------1 + A 2 os, 1 1 + A 2 os, 2
F. Maloberti: Design of CMOS Analog Integrated Circuits - CMOS Comparators 6/20
The switch at the input of A1, S1 is opened while S2 is closed. The offset, caused by charge injection from S1, is attenuated by (1 + A2). When the switch S2 is opened the charge that it inject is collected onto CAZ and an offset Vos,inj appears. It is amplied by A2 and appears at the output; it is equivalent to an input offset equal to:
A2 V in, os = V os, inj ------ A 1
6/21
VB1
M3
M4 out M2 M7 aux in
M1 in
M6
M8 VB2 M5
+ in _
M1
M2 Out
M5
M6
M7 VB2 M9
aux in M8
6/22
LATCHES
A comparator can be followed by a latch. The input can be differential or
single ended; in the latter case one of the inputs can be replaced by a reference voltage.
M3 VB 1 out in + M1 strobe M7 M5 M6 M2 M4 2 out + in -
During 1 M1, M3 and M2, M4 form two inverters with active load. The
parasitic capacitances incident nodes 1 and 2 are pre-charged to a logic signals.
F. Maloberti: Design of CMOS Analog Integrated Circuits - CMOS Comparators 6/23
M3 out -
M4 out + M2
in +
M1
in -
VB
M5
When 1 comes along, the output voltages will both try to rise. Because
of the difference in input voltages one is faster and starts the regenerative action.
F. Maloberti: Design of CMOS Analog Integrated Circuits - CMOS Comparators 6/24
M10 strobe
out + strobe
in + M1
M2
M3 M4
in -
J Strobed at the drain: carrier mobility faster at zero substrate bias. J Small load capacitance of the ip-op.
F. Maloberti: Design of CMOS Analog Integrated Circuits - CMOS Comparators 6/25
in in +
M7
M7
M6
M7
strobe
M5
M8
strobe
VB1
M9
When the strobe signal is down, the gain stage pre-charge the parasitic capacitances of the latch, when the strobe goes up, starts the regenerative action of the latch.
F. Maloberti: Design of CMOS Analog Integrated Circuits - CMOS Comparators 6/26
Combination gain stage / latch with double regenerative loop and output flip-flop:
M20 Vb
strobe
M3
M4
M10
M11 M12
M13 M14
M15
M1 M2 Vin Vin+
M5 strobe M7
M6 M16 M17
M8
M9
M18
Vout+ Vout
M19
When the latch signal is on, the bias current is switched from the gain stage to the latch.
F. Maloberti: Design of CMOS Analog Integrated Circuits - CMOS Comparators 6/27
POWER CONSUMPTION
Comparator gain including offset compensation and output latch
1 2 Vi 1 Vin
Cin
A1
+
A2 gm, 1 Vin C1
+
gm, 2 Vo C2
Latch
Vo
Vout
6/28
For constant or slowly varying signal at the end of the comparison phase ( / fck) the output voltage Vout is
1 g m, 1 g m, 2 2 - ------ V -----------------------V out = -2 i C 1 C 2 f ck
Theoretical minimum of power consumption MOS transistors in strong inversion ( ID > Ilim )
gm = 2 C ox I D W ---------------------------nL
6/29
If the input voltage of a gain stage exceeds the critical value V crit = nkT q or ( V GS V th ) 2 the output current saturates to the maximum value ID To achieve a given Vout the current in the second stage must be
V out C 2 f ck I D, 2 > ------------------------
for
or
6/30
for
j Theoretical minimum of power consumption In practical cases security margins have to be taken into account
6/31
CONCLUSIONS
Key issues in comparator design j Optimization of the number of stages to achieve the desired
6/32