21.03.2013 Views

Switched-Capacitor Circuits - University of Toronto

Switched-Capacitor Circuits - University of Toronto

Switched-Capacitor Circuits - University of Toronto

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>Switched</strong>-<strong>Capacitor</strong> <strong>Circuits</strong><br />

<strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

<strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

David Johns and Ken Martin<br />

<strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

(johns@eecg.toronto.edu)<br />

(martin@eecg.toronto.edu)<br />

Basic Building Blocks<br />

Opamps<br />

• Ideal opamps usually assumed.<br />

• Important non-idealities<br />

— dc gain: sets the accuracy <strong>of</strong> charge transfer,<br />

hence, transfer-function accuracy.<br />

— unity-gain freq, phase margin & slew-rate: sets<br />

the max clocking frequency. A general rule is that<br />

unity-gain freq should be 5 times (or more) higher<br />

than the clock-freq.<br />

— dc <strong>of</strong>fset: Can create dc <strong>of</strong>fset at output. Circuit<br />

techniques to combat this which also reduce 1/f<br />

noise.<br />

1 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997<br />

2 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997


Double-Poly <strong>Capacitor</strong>s<br />

C p1<br />

metal<br />

poly2<br />

poly1<br />

<strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

Basic Building Blocks<br />

C 1<br />

C p2<br />

thin oxide<br />

(substrate - ac ground)<br />

cross-section view<br />

thick oxide<br />

metal<br />

bottom plate<br />

C p1<br />

• Substantial parasitics with large bottom plate<br />

capacitance (20 percent <strong>of</strong> )<br />

• Also, metal-metal capacitors are used but have even<br />

larger parasitic capacitances.<br />

Switches<br />

Symbol<br />

p-channel<br />

<br />

v 1<br />

v 1<br />

<strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

C 1<br />

Basic Building Blocks<br />

<br />

<br />

v 2<br />

v 2<br />

C 1<br />

C p2<br />

equivalent circuit<br />

3 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997<br />

<br />

• Mosfet switches are good switches.<br />

— <strong>of</strong>f-resistance near G range<br />

— on-resistance in 100 to 5k<br />

range (depends on<br />

transistor sizing)<br />

• However, have non-linear parasitic capacitances.<br />

<br />

v 1<br />

v 1<br />

<br />

v 2<br />

n-channel<br />

transmission<br />

gate<br />

v 2<br />

4 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997


Non-Overlapping Clocks<br />

1 T<br />

Von V<strong>of</strong>f Von V<strong>of</strong>f n – 2<br />

2 n – 1 n n + 1<br />

n – 3 2n–<br />

1 2n+<br />

1 2<br />

<strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

Basic Building Blocks<br />

t T<br />

tT • Non-overlapping clocks — both clocks are never on<br />

at same time<br />

• Needed to ensure charge is not inadvertently lost.<br />

• Integer values occur at end <strong>of</strong> .<br />

• End <strong>of</strong> is 1/2 <strong>of</strong>f integer value.<br />

2<br />

<strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

f s<br />

1<br />

--<br />

T<br />

<strong>Switched</strong>-<strong>Capacitor</strong> Resistor Equivalent<br />

V 1<br />

1<br />

2<br />

C 1<br />

V 2<br />

Q = C1V1– V2 every clock period<br />

<br />

1<br />

delay<br />

delay<br />

1<br />

2<br />

5 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997<br />

Qx = CxVx (1)<br />

• C1 charged to V1 and then V2 during each clk period.<br />

Q1 = C1V1– V2 (2)<br />

• Find equivalent average current<br />

Iavg =<br />

C1V1– V2 -----------------------------<br />

T<br />

where T<br />

is the clk period.<br />

V 1<br />

R eq<br />

R eq<br />

=<br />

T<br />

-----<br />

C1 V 2<br />

(3)<br />

6 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997


<strong>Switched</strong>-<strong>Capacitor</strong> Resistor Equivalent<br />

• For equivalent resistor circuit<br />

• Equating two, we have<br />

• This equivalence is useful when looking at low-freq<br />

portion <strong>of</strong> a SC-circuit.<br />

• For higher frequencies, discrete-time analysis is<br />

used.<br />

<strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

<strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

I eq<br />

R eq<br />

=<br />

V1 – V2 -----------------<br />

R eq<br />

T<br />

= ----- =<br />

C 1<br />

1<br />

----------<br />

C1fs Resistor Equivalence Example<br />

(4)<br />

(5)<br />

7 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997<br />

• What is the equivalent resistance <strong>of</strong> a 5pF<br />

capacitance sampled at a clock frequency <strong>of</strong> 100kHz.<br />

• Using (5), we have<br />

R eq<br />

1<br />

5 10 12 –<br />

100 10 3<br />

= -------------------------------------------------------- = 2M<br />

<br />

• Note that a very large equivalent resistance <strong>of</strong> 2M<br />

can be realized.<br />

• Requires only 2 transistors, a clock and a relatively<br />

small capacitance.<br />

• In a typical CMOS process, such a large resistor<br />

would normally require a huge amount <strong>of</strong> silicon<br />

area.<br />

8 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997


Parasitic-Sensitive Integrator<br />

vci() t<br />

vi( n)<br />

= vci( nT)<br />

1<br />

vc1() t<br />

• Start by looking at an integrator which IS affected by<br />

parasitic capacitances<br />

• Want to find output voltage at end <strong>of</strong> 1 in relation to<br />

input sampled at end <strong>of</strong> .<br />

vci( nT – T)<br />

<strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

C 1<br />

• At end <strong>of</strong><br />

<strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

vcx() t<br />

C 1<br />

2<br />

1<br />

vc2( nT)<br />

C 2<br />

vco() t<br />

1<br />

vo() n = vco( nT)<br />

Parasitic-Sensitive Integrator<br />

C 2<br />

• But would like to know the output at end <strong>of</strong><br />

• leading to<br />

vco( nT – T)<br />

vci( nT – T 2)<br />

1 on 2 on<br />

2<br />

C 2<br />

9 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997<br />

C1 vco( nT – T 2)<br />

C2vco( nT – T 2)<br />

= C2vco( nT – T)<br />

– C1vci( nT – T)<br />

C2vco( nT)<br />

= C2vco( nT – T 2)<br />

C2vco( nT)<br />

=<br />

C2vco( nT – T)<br />

– C1vci( nT – T)<br />

1<br />

(6)<br />

(7)<br />

(8)<br />

10 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997


Parasitic-Sensitive Integrator<br />

• Modify above to write<br />

and taking z-transform and re-arranging, leads to<br />

• Note that gain-coefficient is determined by a ratio <strong>of</strong><br />

two capacitance values.<br />

• Ratios <strong>of</strong> capacitors can be set VERY accurately on<br />

an integrated circuit (within 0.1 percent)<br />

• Leads to very accurate transfer-functions.<br />

1<br />

2<br />

vci() t<br />

vcx() t<br />

vco() t<br />

<strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

<strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

vo( n)<br />

vo( n – 1)<br />

C1 = – ----- vi( n – 1)<br />

Hz () Vo z ()<br />

-----------<br />

Vi() z<br />

=<br />

C 2<br />

C 1<br />

1<br />

– ----- ----------<br />

z–<br />

1<br />

C 2<br />

Typical Waveforms<br />

(9)<br />

(10)<br />

11 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997<br />

t<br />

t<br />

t<br />

t<br />

t<br />

12 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997


Low Frequency Behavior<br />

• Equation (10) can be re-written as<br />

Hz ()<br />

• To find freq response, recall<br />

<strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

=<br />

C 1<br />

z<br />

----- <br />

<br />

12 / –<br />

z12 / z 12 / –<br />

– ---------------------------<br />

–<br />

C 2<br />

z ejT = = cosT+ jsinT z12 / = T ------- T<br />

cos + jsin-------<br />

<br />

2 2 <br />

z 12 / – = T ------- T<br />

cos – jsin-------<br />

<br />

2 2 <br />

He jT<br />

( ) =<br />

T ------- T<br />

cos – jsin-------<br />

<br />

C1 2 2 <br />

– ----- ---------------------------------------------------<br />

C2 T<br />

j2 sin-------<br />

<br />

2 <br />

Low Frequency Behavior<br />

• Above is exact but when T « 1 (i.e., at low freq)<br />

<strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

He jT<br />

( )<br />

(11)<br />

(12)<br />

(13)<br />

(14)<br />

(15)<br />

13 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997<br />

• Thus, the transfer function is same as a continuoustime<br />

integrator having a gain constant <strong>of</strong><br />

K I<br />

which is a function <strong>of</strong> the integrator capacitor ratio<br />

and clock frequency only.<br />

C 1<br />

1<br />

– ----- ---------<br />

jT<br />

C 1<br />

C 2<br />

----- 1<br />

<br />

--<br />

T<br />

C 2<br />

(16)<br />

(17)<br />

14 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997


Parasitic Capacitance Effects<br />

vi() n<br />

C p1<br />

1<br />

C p3<br />

• Accounting for parasitic capacitances, we have<br />

Hz ()<br />

• Thus, gain coefficient is not well controlled and<br />

partially non-linear (due to being non-linear).<br />

<strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

<strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

C 1<br />

=<br />

2<br />

C p2<br />

C 2<br />

C1+ Cp1 1<br />

– --------------------- ----------<br />

z–<br />

1<br />

C 2<br />

C p1<br />

C p4<br />

vo( n)<br />

Parasitic-Insensitive Integrators<br />

vci() t<br />

vi( n)<br />

= vci( nT)<br />

1<br />

C 1<br />

• By using 2 extra switches, integrator can be made<br />

insensitive to parasitic capacitances<br />

— more accurate transfer-functions<br />

— better linearity (since non-linear capacitances<br />

unimportant)<br />

2<br />

2 1<br />

C 2<br />

1<br />

vco() t<br />

vo() n = vco( nT)<br />

(18)<br />

15 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997<br />

1<br />

16 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997


vci( nT – T)<br />

+<br />

-<br />

Parasitic-Insensitive Integrators<br />

C 2<br />

C1 vco( nT – T)<br />

• Same analysis as before except that C1 is switched<br />

in polarity before discharging into .<br />

• A positive integrator (rather than negative as before)<br />

<strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

vci( nT – T 2)<br />

1 on 2 on<br />

Hz () Vo z ()<br />

-----------<br />

Vi() z<br />

=<br />

C 1<br />

C 2<br />

-<br />

+<br />

1<br />

----- ----------<br />

z–<br />

1<br />

C 2<br />

Parasitic-Insensitive Integrators<br />

<strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

C 1<br />

C 2<br />

vco( nT – T 2)<br />

(19)<br />

17 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997<br />

• has little effect since it is connected to virtual gnd<br />

C p3<br />

• has little effect since it is driven by output<br />

C p4<br />

vi( n)<br />

1<br />

C 1<br />

2<br />

2 1<br />

C p1<br />

C p2<br />

• Cp2 has little effect since it is either connected to<br />

virtual gnd or physical gnd.<br />

C p3<br />

C 2<br />

C p4<br />

vo( n)<br />

1<br />

18 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997


Parasitic-Insensitive Integrators<br />

• Cp1 is continuously being charged to vi( n)<br />

and<br />

discharged to ground.<br />

• 1 on — the fact that Cp1 is also charged to vi( n – 1)<br />

does not affect charge.<br />

C 1<br />

• 2 on — Cp1 is discharged through the 2 switch<br />

attached to its node and does not affect the charge<br />

accumulating on .<br />

C 2<br />

• While the parasitic capacitances may slow down<br />

settling time behavior, they do not affect the discretetime<br />

difference equation<br />

<strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

Parasitic-Insensitive Inverting Integrator<br />

vi( n)<br />

Vi() z<br />

1<br />

<strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

C 1<br />

1<br />

2 2<br />

19 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997<br />

• Present output depends on present input(delay-free)<br />

C 2<br />

vo( n)<br />

Vo() z<br />

C2vco( nT – T 2)<br />

= C2vco( nT – T)<br />

C2vco( nT)<br />

= C2vco( nT – T 2)<br />

– C1vci( nT)<br />

Hz ()<br />

• Delay-free integrator has negative gain while<br />

delaying integrator has positive gain.<br />

Vo z () C1 z<br />

----------- =<br />

– ----- ----------<br />

Vi() z C2z– 1<br />

1<br />

(20)<br />

(21)<br />

(22)<br />

20 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997


V1() z<br />

V2() z<br />

V3() z<br />

Signal-Flow-Graph Analysis<br />

V1() z<br />

V2() z<br />

V3() z<br />

1 C 2<br />

2<br />

1 C 3<br />

2<br />

C 1<br />

C1 1 z 1 – – – <br />

C2z 1 –<br />

– C3 <strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

<strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

2<br />

1<br />

1<br />

2<br />

C A<br />

1<br />

------ 1<br />

1z<br />

1 –<br />

---------------<br />

–<br />

C A<br />

First-Order Filter<br />

Vo() z<br />

1<br />

Vo() z<br />

Vin() s<br />

Vout() s<br />

• Start with an active-RC structure and replace<br />

resistors with SC equivalents.<br />

• Analyze using discrete-time analysis.<br />

21 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997<br />

22 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997


Vi() z<br />

1 C 2<br />

2<br />

<strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

First-Order Filter<br />

C 1<br />

–<br />

C 2<br />

1<br />

2<br />

2<br />

1 C 3<br />

C A<br />

1<br />

------ 1<br />

1z<br />

1 –<br />

---------------<br />

–<br />

C A<br />

1<br />

2<br />

Vo() z<br />

Vi() z<br />

Vo() z<br />

C1 1 z 1 – – – <br />

<strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

– C3 First-Order Filter<br />

CA 1 z 1 – – Vo() z – C3Vo() z – C2Vi() z C1 1 z 1 –<br />

=<br />

– – Vi() z<br />

C 1<br />

C A<br />

C1+ C2 C1 ------------------ z–<br />

------<br />

CA CA 1 C – ----------------------------------------<br />

3<br />

+ ------ z–<br />

1<br />

<br />

C A<br />

C 2<br />

Hz () Vo z ()<br />

<br />

------ 1–<br />

z– 1+<br />

------ <br />

CA CA ----------- 1 z<br />

Vi() z<br />

1 –<br />

– -----------------------------------------------------<br />

C<br />

=<br />

3<br />

– + ------<br />

=<br />

1<br />

23 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997<br />

(23)<br />

(24)<br />

24 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997


<strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

First-Order Filter<br />

• The pole <strong>of</strong> (24) is found by equating the<br />

denominator to zero<br />

z p<br />

C A<br />

-------------------<br />

CA + C3 • For positive capacitance values, this pole is<br />

restricted to the real axis between 0 and 1<br />

— circuit is always stable.<br />

• The zero <strong>of</strong> (24) is found to be given by<br />

z z<br />

• Also restricted to real axis between 0 and 1.<br />

<strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

=<br />

=<br />

C 1<br />

------------------<br />

C1 + C2 First-Order Filter<br />

(25)<br />

(26)<br />

25 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997<br />

The dc gain is found by setting z = 1 which results in<br />

H( 1)<br />

=<br />

– C2 ---------<br />

(27)<br />

• Note that in a fully-differential implementation,<br />

effective negative capacitances for C1, C2 and C3 can<br />

be achieved by simply interchanging the input wires.<br />

• In this way, a zero at z<br />

setting<br />

= – 1 could be realized by<br />

C1 =<br />

– 0.5C2 (28)<br />

C 3<br />

26 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997


<strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

First-Order Example<br />

• Find the capacitance values needed for a first-order<br />

SC-circuit such that its 3dB point is at 10kHz when a<br />

clock frequency <strong>of</strong> 100kHz is used.<br />

• It is also desired that the filter have zero gain at<br />

50kHz (i.e. z = – 1)<br />

and the dc gain be unity.<br />

• Assume = 10pF.<br />

C A<br />

Solution<br />

• Making use <strong>of</strong> the bilinear transform<br />

p = z – 1<br />

z+ 1<br />

the zero at – 1 is mapped to<br />

= .<br />

• The frequency warping maps the -3dB frequency <strong>of</strong><br />

10kHz (or 0.2 rad/sample)<br />

to<br />

<strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

First-Order Example<br />

=<br />

0.2<br />

tan---------- <br />

2 <br />

= 0.3249<br />

• in the continuous-time domain leading to the<br />

continuous-time pole, , required being<br />

p p<br />

• This pole is mapped back to given by<br />

p p<br />

– 0.3249<br />

zp =<br />

1 + pp --------------<br />

1 – pp = 0.5095<br />

• Therefore, Hz () is given by<br />

Hz ()<br />

=<br />

z p<br />

kz + 1<br />

=<br />

-----------------------z<br />

– 0.5095<br />

27 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997<br />

(29)<br />

(30)<br />

(31)<br />

(32)<br />

28 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997


)<br />

<strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

First-Order Example<br />

• where k is determined by setting the dc gain to one<br />

(i.e. H( 1)<br />

= 1)<br />

resulting<br />

Hz ()<br />

• or equivalently,<br />

=<br />

0.24525z+ 1<br />

----------------------------------z<br />

– 0.5095<br />

(33)<br />

Hz () =<br />

0.4814z + 0.4814<br />

-----------------------------------------<br />

1.9627z – 1<br />

(34)<br />

• Equating these coefficients with those <strong>of</strong> (24) (and<br />

assuming = 10pF)<br />

results in<br />

1<br />

2<br />

C A<br />

C 1<br />

C 2<br />

<strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

C 1<br />

C2 C3 = 4.814pF<br />

= – 9.628pF<br />

= 9.628pF<br />

Switch Sharing<br />

1<br />

2<br />

• Share switches that are always connected to the<br />

same potentials.<br />

C 3<br />

1<br />

2<br />

C A<br />

(35)<br />

(36)<br />

(37)<br />

29 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997<br />

Vo() z<br />

30 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997


Fully-Differential Filters<br />

• Most modern SC filters are fully-differential<br />

• Difference between two voltages represents signal<br />

(also balanced around a common-mode voltage).<br />

• Common-mode noise is rejected.<br />

• Even order distortion terms cancel<br />

v 1<br />

– v1<br />

nonlinear<br />

element<br />

nonlinear<br />

element<br />

v p1<br />

v n1<br />

=<br />

=<br />

<strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

<strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

2 3 4<br />

k1v + k<br />

1 2v1 + k3v1 + k4v1 + <br />

+<br />

-<br />

v diff<br />

2<br />

=<br />

3 5<br />

2k1v + 2k<br />

1 3v1 + 2k5v 1 + <br />

– k1v + k<br />

1 2v1 – k3v1 + k4v1 +<br />

Fully-Differential Filters<br />

C 1<br />

2 2<br />

3<br />

CA 2 4 <br />

+<br />

<br />

C2 1<br />

1 +<br />

Vi() z<br />

Vo() z<br />

<br />

1 1<br />

-<br />

-<br />

C2 2<br />

C 1<br />

2<br />

C 3<br />

C 3<br />

C A 2<br />

1<br />

1<br />

31 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997<br />

32 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997


Fully-Differential Filters<br />

• Negative continuous-time input<br />

— equivalent to a negative C1 2 2<br />

<strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

C 1<br />

CA 2 +<br />

<br />

C2 1<br />

1 +<br />

Vi() z<br />

Vo() z<br />

<br />

1 1<br />

-<br />

-<br />

C2 2<br />

C 1<br />

<strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

2<br />

C 3<br />

C 3<br />

C A 2<br />

1<br />

1<br />

Fully-Differential Filters<br />

• Note that fully-differential version is essentially two<br />

copies <strong>of</strong> single-ended version, however ... area<br />

penalty not twice.<br />

• Only one opamp needed (though common-mode<br />

circuit also needed)<br />

• Input and output signal swings have been doubled<br />

so that same dynamic range can be achieved with<br />

half capacitor sizes (from kT <br />

C analysis)<br />

• Switches can be reduced in size since small caps<br />

used.<br />

• However, there is more wiring in fully-differ version<br />

but better noise and distortion performance.<br />

33 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997<br />

34 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997


Vi() z<br />

Vin() s<br />

<strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

Low-Q Biquad Filter<br />

Ha() s<br />

Vout s ()<br />

----------------<br />

Vin() s<br />

o ko 1<br />

C A<br />

<strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

=<br />

1<br />

1 k1 k 2<br />

=<br />

k2s 2<br />

+ k1s + ko s 2<br />

– ---------------------------------------<br />

<br />

o<br />

------ 2<br />

+ s + o<br />

Q <br />

1 o Vc1() s<br />

– 1 o Q o = 1<br />

C B<br />

Low-Q Biquad Filter<br />

C 1<br />

2<br />

1<br />

1<br />

2<br />

1 K1C1 1 K 2<br />

5C2 2<br />

2<br />

2<br />

1<br />

K 2 C 2<br />

K 3 C 2<br />

1<br />

2<br />

2<br />

K 4 C 1<br />

V1() z<br />

1<br />

2<br />

1<br />

K 6 C 2<br />

C 2<br />

Vout() s<br />

1<br />

2<br />

(38)<br />

35 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997<br />

Vo() z<br />

36 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997<br />

1


–<br />

K 1<br />

<strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

Low-Q Biquad Filter<br />

1<br />

1 z 1 –<br />

---------------<br />

–<br />

– K2<br />

– 1 z 1 – – <br />

K 3<br />

V1() z<br />

–<br />

K 4<br />

K5z 1 –<br />

– K6 1<br />

1 z 1 –<br />

---------------<br />

–<br />

Vi() z<br />

Vo() z<br />

Hz () Vo z ()<br />

-----------<br />

Vi() z<br />

=<br />

<strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

K2+ K3z 2<br />

+ K1K5– K2 – 2K3z + K3 1+ K6z 2<br />

– --------------------------------------------------------------------------------------------------<br />

+ K4K5– K6 – 2z+<br />

1<br />

Low-Q Biquad Filter Design<br />

Hz ()<br />

=<br />

a2z 2<br />

+ a1z + a0 b2z 2<br />

– -------------------------------------<br />

+ b1z + 1<br />

• we can equate the individual coefficients <strong>of</strong> “z” in<br />

(39) and (40), resulting in:<br />

K3 = a0 K2 = a2 – a0 K1K5 = a0 + a1 + a2 K6 = b2 – 1<br />

K4K5 = b1 + b2 + 1<br />

• A degree <strong>of</strong> freedom is available here in setting<br />

internal V1() z output<br />

(39)<br />

37 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997<br />

(40)<br />

(41)<br />

(42)<br />

(43)<br />

(44)<br />

(45)<br />

38 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997


Low-Q Biquad Filter Design<br />

• Can do proper dynamic range scaling<br />

• Or let the time-constants <strong>of</strong> 2 integrators be equal by<br />

K4 = K5 = b1 + b2 + 1<br />

(46)<br />

Low-Q Biquad Capacitance Ratio<br />

• Comparing resistor circuit to SC circuit, we have<br />

K4 K5 oT (47)<br />

oT K6 ---------<br />

Q<br />

(48)<br />

• However, the sampling-rate, 1 T,<br />

is typically much<br />

larger that the approximated pole-frequency, ,<br />

<strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

<strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

oT « 1<br />

Low-Q Biquad Capacitance Ratio<br />

• Thus, the largest capacitors determining pole<br />

positions are the integrating capacitors, and .<br />

• If Q 1,<br />

the smallest capacitors are K4C1 and K5C2 resulting in an approximate capacitance spread <strong>of</strong><br />

1 oT. o<br />

(49)<br />

39 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997<br />

• If Q 1,<br />

then from (48) the smallest capacitor would<br />

be K6C2 resulting in an approximate capacitance<br />

spread <strong>of</strong> Q oT — can be quite large for Q »<br />

1<br />

C 1<br />

C 2<br />

40 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997


<strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

High-Q Biquad Filter<br />

• Use a high-Q biquad filter circuit when Q » 1<br />

• Q-damping done with a cap around both integrators<br />

• Active-RC prototype filter<br />

1 o Vin() s<br />

o ko k1 o <strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

C 1<br />

1 Q<br />

= 1 C2 = 1<br />

– 1 o k 2<br />

High-Q Biquad Filter<br />

C 1<br />

• Q-damping now performed by K6C1 Vout() s<br />

41 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997<br />

Vi() z<br />

Vo() z<br />

2<br />

1<br />

2<br />

2<br />

1<br />

1<br />

2<br />

1 K1C 1<br />

1 K<br />

2 5C 2<br />

K 2 C 1<br />

K 3 C 2<br />

2<br />

K 4 C 1<br />

V1() z<br />

1<br />

K 6 C 1<br />

C 2<br />

1<br />

42 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997


<strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

High-Q Biquad Filter<br />

• Input K1C1 : major path for lowpass<br />

• Input K2C1 : major path for band-pass filters<br />

• Input K3C2 : major path for high-pass filters<br />

• General transfer-function is:<br />

Hz () (50)<br />

• If matched to the following general form<br />

Vo z () K3z -----------<br />

Vi() z<br />

2<br />

+ K1K5+ K2K5 – 2K3z + K3– K2K5 <br />

z 2<br />

= – ----------------------------------------------------------------------------------------------------------------<br />

+ K4K5+ K5K6 – 2z+<br />

1– K5K6 <br />

Hz ()<br />

<strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

=<br />

a2z 2<br />

+ a1z + a0 z 2<br />

– -------------------------------------<br />

+ b1z + b0 High-Q Biquad Filter<br />

K1K5 = a0 + a1 + a2 K2K5 = a2 – a0 K3 = a2 K4K5 = 1 + b0 + b1 K5K6 = 1 – b0 • And, as in lowpass case, can set<br />

K4 = K5 = 1 + b0 + b1 • As before, K4 and K5 approx oT « 1 but K6 <br />

1 Q<br />

(51)<br />

43 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997<br />

(52)<br />

(53)<br />

(54)<br />

(55)<br />

(56)<br />

(57)<br />

44 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997


<strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

Charge Injection<br />

• To reduce charge injection (thereby improving<br />

distortion) , turn <strong>of</strong>f certain switches first.<br />

Vi() z<br />

1 C 2<br />

Q 1<br />

2<br />

C 1<br />

Q2Q3 1a<br />

Q4 2a • Advance 1a and 2a so that only their charge<br />

injection affect circuit (result is a dc <strong>of</strong>fset)<br />

<strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

C 3<br />

Q 5<br />

C A<br />

Charge Injection<br />

1 Q6 2<br />

Vo() z<br />

1<br />

45 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997<br />

• Note: 2a connected to ground while 1a connected<br />

to virtual ground, therefore ...<br />

— can use single n-channel transistors<br />

— charge injection NOT signal dependent<br />

QCH = – WLCoxVeff<br />

= – WLCoxVGS<br />

– Vt (58)<br />

• Charge related to VGS and Vt and Vt related to<br />

substrate-source voltage.<br />

• Source <strong>of</strong> Q3 and Q4 remains at 0 volts — amount <strong>of</strong><br />

charge injected by Q3 Q4 is not signal dependent<br />

and can be considered as a dc <strong>of</strong>fset.<br />

46 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997


Charge Injection Example<br />

• Estimate dc <strong>of</strong>fset due to channel-charge injection<br />

when = 0 and C2 = CA = 10C3 = 10pF.<br />

C 1<br />

• Assume switches Q3 Q4 have Vtn = 0.8V,<br />

W = 30m ,<br />

L = 0.8m , Cox 1.9 10 , and power<br />

supplies are .<br />

• Channel-charge <strong>of</strong> (when on) is<br />

3 –<br />

= pF m 2<br />

<br />

2.5V<br />

Q3 Q4 QCH3 = QCH4 = – 300.80.00192.5 – 0.8<br />

– 77.5 10 3 –<br />

= pC<br />

• dc feedback keeps virtual opamp input at zero volts.<br />

<strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

Charge Injection Example<br />

• Charge transfer into given by<br />

• We estimate half channel-charges <strong>of</strong> Q3, Q4 are<br />

injected to the virtual ground leading to<br />

1<br />

--Q 2 CH3 + QCH4 which leads to<br />

= QC3 <strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

Q C3<br />

C 3<br />

=<br />

– C3vout<br />

(59)<br />

47 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997<br />

(60)<br />

(61)<br />

77.5 10<br />

vout (62)<br />

• dc <strong>of</strong>fset affected by the capacitor sizes, switch sizes<br />

and power supply voltage.<br />

3 –<br />

pC<br />

= ------------------------------------ =<br />

78 mV<br />

1pF<br />

48 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997


vin( n)<br />

SC Gain <strong>Circuits</strong> — Parallel RC<br />

R2 K<br />

KC 1<br />

<strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

R 2<br />

C 1<br />

vin vout() t = – Kvin() t<br />

2<br />

1<br />

KC 2<br />

KC 1<br />

1<br />

2<br />

<strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

C 2<br />

1<br />

C 1<br />

2<br />

vout( n)<br />

= – Kvin( n)<br />

SC Gain <strong>Circuits</strong> — Resettable Gain<br />

C 1<br />

vin( n)<br />

vout( n)<br />

2<br />

1<br />

v out<br />

C 2<br />

2<br />

2 1 2 1 <br />

2<br />

1<br />

V <strong>of</strong>f<br />

=<br />

C 1<br />

<br />

– ----- vin(<br />

n)<br />

<br />

C 2<br />

time<br />

49 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997<br />

50 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997


SC Gain <strong>Circuits</strong><br />

Parallel RC Gain Circuit<br />

• circuit amplifies 1/f noise as well as opamp <strong>of</strong>fset<br />

voltage<br />

Resettable Gain Circuit<br />

• performs <strong>of</strong>fset cancellation<br />

• also highpass filters 1/f noise <strong>of</strong> opamp<br />

• However, requires a high slew-rate from opamp<br />

V <strong>of</strong>f<br />

-<br />

+<br />

C1 +<br />

V<strong>of</strong>f -<br />

V <strong>of</strong>f<br />

+ -<br />

C 2<br />

V <strong>of</strong>f<br />

<strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

<strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

V<br />

+ C1vin(<br />

n)<br />

C1 +<br />

V<strong>of</strong>f -<br />

V<br />

- C2+<br />

C 2<br />

=<br />

vout( n)<br />

SC Gain <strong>Circuits</strong> — Capacitive-Reset<br />

• Eliminate slew problem and still cancel <strong>of</strong>fset by<br />

coupling opamp’s output to invertering input<br />

vin( n)<br />

C 1<br />

• is optional de-glitching capacitor<br />

C 4<br />

2 1 1 2<br />

<br />

<br />

2<br />

1<br />

C 4<br />

C 3<br />

C 2<br />

2<br />

1<br />

vout( n)<br />

=<br />

C 1<br />

C 2<br />

C1 -----<br />

C2 <br />

– vin(<br />

n)<br />

<br />

<br />

– ----- vin(<br />

n)<br />

<br />

51 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997<br />

52 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997


+<br />

vin -<br />

vin SC Gain <strong>Circuits</strong> — Capacitive-Reset<br />

V <strong>of</strong>f+<br />

C 1<br />

+<br />

V <strong>of</strong>f<br />

<strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

-<br />

vin( n)<br />

-<br />

C 1<br />

V <strong>of</strong>f<br />

<strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

+<br />

-<br />

V <strong>of</strong>f<br />

+ -<br />

C 2<br />

vout( n – 1)<br />

-<br />

C 3<br />

+<br />

during reset<br />

C 2<br />

C 3<br />

vout( n – 1)<br />

+ V<strong>of</strong>f during valid output<br />

vout( n)<br />

C1 -----<br />

C2 = – v<br />

in( n)<br />

SC Gain <strong>Circuits</strong> — Differential Cap-Reset<br />

1<br />

2 2 C 1<br />

C 1<br />

2a<br />

1 2a<br />

1a C 3<br />

1a<br />

C 2<br />

C 2<br />

C 3<br />

• Accepts differential inputs and partially cancels<br />

switch clock-feedthrough<br />

2<br />

2<br />

1<br />

1<br />

v out<br />

=<br />

C 1<br />

C 2<br />

53 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997<br />

+ -<br />

----- vin<br />

– vin <br />

54 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997


Correlated Double-Sampling (CDS)<br />

• Preceeding SC gain amp is an example <strong>of</strong> CDS<br />

• Minimizes errors due to opamp <strong>of</strong>fset and 1/f noise<br />

• When CDS used, opamps should have low thermal<br />

noise (<strong>of</strong>ten use n-channel input transistors)<br />

• Often use CDS in only a few stages<br />

— input stage for oversampling converter<br />

— some stages in a filter (where low-freq gain high)<br />

• Basic approach:<br />

— Calibration phase: store input <strong>of</strong>fset voltage<br />

— Operation phase: error subtracted from signal<br />

v in<br />

<strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

Better High-Freq CDS Amplifier<br />

C 1<br />

• — C1' C2' used but include errors<br />

2<br />

2<br />

1<br />

1<br />

2<br />

C 1<br />

2<br />

1<br />

• 1 — C1 C2 used but here no <strong>of</strong>fset errors<br />

<strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

C 2<br />

C 2<br />

2<br />

1<br />

1<br />

2<br />

1<br />

55 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997<br />

v out<br />

56 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997


v in<br />

<br />

2<br />

1<br />

<br />

<br />

1<br />

2<br />

<br />

C 1<br />

2<br />

1<br />

<strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

CDS Integrator<br />

• — sample opamp <strong>of</strong>fset on<br />

1<br />

• — C2' placed in series with opamp to reduce error<br />

2<br />

• Offset errors reduced by opamp gain<br />

• Can also apply this technique to gain amps<br />

<strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

1<br />

C 2<br />

C 2<br />

C 2 '<br />

SC Amplitude Modulator<br />

• Square wave modulate by 1 (i.e. Vout = Vin)<br />

A<br />

B<br />

2<br />

C 1<br />

1<br />

C 3<br />

C 2<br />

v in v out<br />

1<br />

2<br />

ca<br />

• Makes use <strong>of</strong> cap-reset gain circuit.<br />

• is the modulating signal<br />

ca<br />

2<br />

A = 2ca + 1ca B = 1ca + 2ca 1<br />

1<br />

v out<br />

57 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997<br />

B<br />

A<br />

58 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997


<strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

SC Full-Wave Rectifier<br />

• Use square wave modulator and comparator to make<br />

• For proper operation, comparator output should<br />

changes synchronously with the sampling instances.<br />

v in<br />

v in<br />

Q 1<br />

<strong>University</strong> <strong>of</strong> <strong>Toronto</strong><br />

Square Wave<br />

Modulator<br />

ca<br />

SC Peak Detector<br />

<br />

comp<br />

C H<br />

v out<br />

v out<br />

• Left circuit can be fast but less accurate<br />

• Right circuit is more accurate due to feedback but<br />

slower due to need for compensation (circuit might<br />

also slew so opamp’s output should be clamped)<br />

v in<br />

opamp<br />

V DD<br />

Q 2<br />

C H<br />

59 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997<br />

v out<br />

60 <strong>of</strong> 60<br />

© D. Johns, K. Martin, 1997

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!