Switched Capacitor Concepts & Circuits
Total Page:16
File Type:pdf, Size:1020Kb
Switched Capacitor Concepts & Circuits Outline • Why Switched Capacitor circuits? – Historical Perspective – Basic Building Blocks • Switched Capacitors as Resistors • Switched Capacitor Integrators – Discrete time & charge transfer concepts – Parasitic insensitive circuits • Signal Flow Graphs • Switched Capacitor Filters – Comparison to Active RC filters – Advantages of Fully Differential filters • Switched Capacitor Gain Circuits • Reducing the Effects of Charge Injection • Tradeoff between Speed and Charge Injection Why Switched Capacitor Circuits? • Historical Perspective – As MOS processes came to the forefront in the late 1970s and early 1980s, the advantages of integrating analog blocks such as active filters on the same chip with digital logic became a driving force for inovation. – Integrating active filters using resistors and capacitors to acturately set time constants has always been difficult, because of large process variations (> +/- 30%) and the fact that resistors and capacitors don’t naturally match each other. – So, analog engineers turned to the building blocks native to MOS processes to build their circuits, switches & capacitors. Since time constants can be set by the ratio of capacitors, very accurate filter responses became possible using switched capacitor techniques Æ Mixed-Signal Design was born! Switched Capacitor Building Blocks • Capacitors: poly-poly, MiM, metal sandwich & finger caps • Switches: NMOS, PMOS, T-gate • Op Amps: at first all NMOS designs, now CMOS Non-Overlapping Clocks • Non-overlapping clocks are used to insure that one set of switches turns off before the next set turns on, so that charge only flows where intended. (“break before make”) • Note the notation used to indicate time based on clock periods: ... (n-1)T, (n-½)T, nT, (n+½)T, (n+1)T ... Switched Capacitors as Resistors I = dq/dt = ∆q/∆t = C1(V1 –V2)/T where T = clock period compare this to: I = (V1 –V2)/Req Æ Req = T/C1 or Req = 1/fs C1 Switched Capacitors as Resistors (cont.) Switched Capacitor Integrator • The resistor input of a traditional op amp integrator is replaced by a switched capacitor resistor • This SC integrator operates in discrete time increments, first sampling the input signal onto C1, and then switching C1 to transfer this charge onto C2 : Q1(n-1) = C1·Vi(n-1) and Q2(n-½) = Q2(n-1) - Q1(n-1) Æ Vo(n) = Vo(n-½) = Q2(n-½)/C2 = Vo(n-1) - (C1/C2)·Vi(n-1) -1 -1 Æ Vo(z) = z ·Vo(z) - (C1/C2) z ·Vi(z) Æ H(z) = -(C1/C2)/(z-1) Switched Capacitor Integrator (cont.) Effect of Parasitic Capacitors •Cp2 and Cp3 cause no errors because they are in parallel with ground and virtual ground, respectively, and so remain uncharged. •Cp4 does increase the load capacitance that the op amp must drive, but causes no errors. •Cp1, the parasitic cap associated with the top plate of C1,appears directly in parallel with C1 and changes the transfer function to : ⎛ C1 + Cp1 ⎞⎛ 1 ⎞ H(z) = −⎜ ⎟⎜ ⎟ ⎝ C2 ⎠⎝ z −1⎠ Parasitic Insensitive Integrators • During clock phase 1, C1 is charged to the input voltage • During clock phase 2, this charge is transferred to C2 However, since the + side of C1 is tied to ground, this results in a non-inverting transfer function : ⎛ C1 ⎞⎛ 1 ⎞ H(z) = ⎜ ⎟⎜ ⎟ ⎝ C2 ⎠⎝ z −1⎠ Parasitic Insensitive Integrators (cont.) •Cp2, Cp3 are in parallel with ground or virtual ground and Cp4 is in parallel with the output, so they cause no errors. • In this circuit, Cp1 is once again charged to the input voltage on clock phase 1. However, this time Cp1 is discharged to ground on clock phase 2. Since no error charge is transferred to C2, the transfer function is insensitive to this parasitic cap and remains unchanged. Parasitic Insensitive Integrators (cont.) • Similar to the previous circuit, just the clock phases changed C2VO ()n = C2VO (n −1)− C1Vi (n) C1 VO ()n = VO (n −1)− Vi ()n C2 −1 C1 VO ()z = z VO ()z − Vi ()z C2 VO ()z C1 ⎛ 1 ⎞ C1 ⎛ z ⎞ ⇒ H()z = = − ⎜ −1 ⎟ = − ⎜ ⎟ Vi ()z C2 ⎝1− z ⎠ C2 ⎝ z −1⎠ Signal Flow Graphs • Can be used to show a function symbolically • Sometimes easier than keeping track of charge movement for a complicated circuit (e.g., SC filters) • The example shown is just a superposition of our previous 2 cases, plus a non-switched capacitor input Switched Capacitor Filters • Take an active RC filter and replace the R’s with SC equivalents ⎛ C1 + C2 ⎞ C1 ⎜ ⎟z − ⎝ CA ⎠ CA H()z = − ⎛ C3 ⎞ ⎜1+ ⎟z −1 ⎝ CA ⎠ substituting z = ejωT = cos(ωT) + jsin(ωT) into H(z) and solving assuming ωT << 1 C − 3 C ⇒ jω T = A eq. 10.42 p C 1+ 3 2CA • For cases where we can’t assume that ωT << 1, we have to “pre-warp” the pole/zero frequencies to convert from the s-domain to z-domain using Ω = tan(ω/2) • This makes use of the bilinear transform p = (z – 1)/(z + 1) where p = σp + jΩ • Note that this maps the unit circle in the z-domain onto the jω-axis Switched Capacitor Filters (cont.) • This circuit is identical to the previous one, except the switches on the left side of C3 are now being shared with the switches on the right side of C2 to reduce area and wiring complexity Fully Differential SC Filters Key Advantages of fully differential circuits : • Noise appears as a common-mode signal • Even-order distortion terms cancel Switched Capacitor Gain Circuits V (z) H(z) = out = −K Vin ()z SC Gain Circuits with Reset • Voltage gain = - C1/C2 • Output is reset every clock period during Φ2 • Cancels offset by storing Vos on C1 and C2 during reset But, the op amp must : • Be able to slew fast • Be stable for unity gain SC Gain Circuits with Reset (cont.) • Very similar to previous circuit, with Vos cancellation and gain = - C1/C2 , except •Vout is stored on C3, which is used during reset to keep the output voltage from needing to slew down to 0V •C4 is an optional “deglitching” cap sometimes used to provide feedback during the clock’s non-overlap time Quazi-Differential SC Circuits • By including a “replica” of all caps and switches on the op amp’s + input, a single-ended circuit can be made to appear “quazi-differential”, thus making charge injection errors look common-mode (max improvement ~ 20dB) • Also provides differential to single-ended conversion Reducing the Effects of Charge Injection • Charge injection errors can be greatly reduced by the used of “advanced” clocks, which switch just slightly earlier than the main clocks •Once Q3,4 above turn off, one side of C2,3 is an open circuit Æ the charge injected by the other switches can’t change the charge stored on these caps! • Still have charge injection from Q3,4 , but since these are tied to a virtual ground this just looks like an offset Tradeoff between Speed & Charge Injection • For high speed, we need to use large switches to settle fast, but this means more charge injection! T 1 > 5R ONC ⇒ fCLK < 2 10R ONC 1 R = ON W µC V OX L ON Q WLC V V = CH = OX ON ERR 2C 2C substituting ⇒ µV f < ERR CLK 5L2 Tradeoff between Speed & Charge Injection • Note that this result is independent of cap size and supply voltage, and is proportional to 1/L2 Æ Big improvements as we scale to smaller processes!.