S239 of 55
0 XP
  1. Hook
  2. Play
  3. Predict
  4. Name it
  5. Check
  6. Explain

S2 · Lesson 39 · Switched-capacitor circuits

Capacitors and clocks in place of resistors, and the errors switches bring

On a chip, resistors and capacitors are each accurate to only about 20%, so an RC time constant can't be trusted. But two capacitors drawn side by side match to 0.1%, and a clock frequency is as accurate as its crystal. Switched-capacitor circuits build filters, integrators and gain stages whose behavior depends only on capacitor ratios and the clock. A capacitor switched between two nodes at a frequency fs moves charge like a resistor of 1/fsC. The catch is that the switches are transistors, which inject charge when they turn off and leak clock edges through their overlap capacitance, and the amplifier must settle within half a clock period.

  • A switched-capacitor integrator, one output sample per clock (stems), with its input samples (the smaller stems). The output steps by −C1C2 times each input sample: a discrete-time integrator.
  • The capacitor ratio sets the gain per step, and the input frequency relative to the clock sets how many steps make a cycle. At low input frequencies it behaves like a continuous integrator with unity-gain frequency fsC12πC2.
  • Push the input frequency up toward a tenth of the clock and the sampled nature shows: the output lags by half a sample and deviates from the ideal integrator.

Predict

A 1 pF capacitor is switched back and forth at 1 MHz between two nodes. What resistance does it imitate?

Name it

The switched-capacitor resistor

A capacitor C switched between two nodes at fs transfers charge CΔV per cycle:

Req=1fsC

valid when the signals change slowly compared with fs.

The integrator

An op amp with C2 in feedback and a switched C1 at the input: each clock cycle the charge C1vin is dumped onto C2, so

vout[n]=vout[n−1]−C1C2vin[n−1]

At frequencies well below fs this is a continuous integrator with unity-gain frequency ωu=fsC1C2. Time constants are set by a capacitor ratio and the clock, both accurate. The parasitic-insensitive form switches both plates of C1 so stray capacitance to the substrate is charged from low-impedance nodes and doesn't change the transfer.

Switch errors

  • Charge injection: when a MOS switch turns off, its channel charge Qch=WLCox(VGS−VT) leaves through source and drain, roughly half each way. Onto a sampling capacitor Cs that's an error of about Qch2Cs, signal-dependent through VGS. Bottom-plate sampling (opening a switch at a fixed potential first) and differential circuits cancel most of it.
  • Clock feedthrough: the gate's overlap capacitance couples the clock edge onto Cs: ΔV=CovCov+CsΔVclk.
  • On-resistance: varies with the signal level, which distorts at high frequency; bootstrapped switches hold VGS constant.

Settling

The op amp must settle each charge transfer within about half a clock period. With a single-pole response of time constant τ the error after time t is e−t/τ; reaching half an LSB at N bits needs t≥τln⁡2N+1, about 7.6τ for 10 bits.

Worked example

A switched-capacitor integrator uses C1 = 1 pF, C2 = 10 pF and a 1 MHz clock. What's its unity-gain frequency, and what continuous resistor would C1 replace?

Show the solution
  1. Unity-gain frequency. fu=fsC12πC2=1062π×10Hz=15.9kHz
  2. Equivalent resistor. C1 acts as 1fsC1=1MΩ and 1 MΩ with 10 pF gives the same 15.9 kHz.
  3. Tuning. Changing the clock to 2 MHz doubles it, which is how switched-capacitor filters are tuned.

Answer the unity-gain frequency is 15.9 kHz, and C1 replaces a 1 MΩ resistor.

Worked example

A sampling switch W/L = 10/0.18 µm with Cox = 8.6 fF/µm² turns off at 1 V of overdrive onto 1 pF. How big is the charge-injection error? And what op-amp time constant settles to 10 bits in a 10 ns half-period?

Show the solution
  1. Channel charge. Qch=10×0.18×8.6fF×1V=15.5fC
  2. Error on the capacitor. Half of it lands on 1 pF: Qch/21pF=7.7mV about 16 LSBs of a 1 V, 11-bit converter, so it must be cancelled (bottom-plate sampling, a differential layout).
  3. Settling to 10 bits. That needs 7.6 time constants in 10 ns: τ≤10ns7.6=1.3ns
  4. Bandwidth. That calls for an op amp with a closed-loop bandwidth above about 120 MHz.

Answer the charge-injection error is 7.7 mV, about 16 LSBs; settling to 10 bits needs τ ≤ 1.3 ns, a closed-loop bandwidth above about 120 MHz.

Worked example

A switch's charge injection puts a 5 mV error on its hold capacitor. A half-size dummy switch clocked the opposite way is added. Why does that help, and what limits it?

Show the solution
  1. Where the charge goes. When the main switch opens, about half its channel charge goes to the capacitor.
  2. What the dummy does. The dummy, half its size, closes at the same moment and absorbs that same amount.
  3. What limits it. Cancellation depends on the charge really splitting evenly, which needs equal impedances on both sides, so in practice the error falls by about a factor of 5 to 10 and never to zero.

Answer the dummy absorbs the charge the main switch dumps on the capacitor; uneven charge splitting limits the cancellation to about a factor of 5 to 10.

Check

A 0.2 pF capacitor is switched at 1 MHz. What resistance does it emulate?

Write units the way you normally would: 1.5 kΩ, 1500 Ω and 0.0015 MΩ are the same answer.

Check

A switched-capacitor integrator has C1 = 0.5 pF, C2 = 20 pF and a 2 MHz clock. What's its unity-gain frequency?

Write units the way you normally would: 1.5 kHz, 1500 Hz and 0.0015 MHz are the same answer.

Check

A switch W/L = 10/0.1 µm with Cox = 15 fF/µm² turns off at 1 V of overdrive onto 0.5 pF. Roughly how much charge-injection error does it leave?

Write units the way you normally would: 1.5 mV, 1500 µV and 0.0015 V are the same answer.

Check

A switch's gate overlaps its sampling node by 0.5 fF, the sampling capacitor is 0.2 pF, and the clock swings 3.3 V. How much clock feedthrough is there?

Write units the way you normally would: 1.5 mV, 1500 µV and 0.0015 V are the same answer.

Check

An amplifier settles for 5 time constants. What fraction of the step is still left?

Check

How many time constants must an amplifier settle to reach half an LSB at 12 bits?

Check

A switched-capacitor integrator uses C1 = 1 pF, C2 = 5 pF and a 10 MHz clock.

(a)

What is its unity-gain frequency?

Write units the way you normally would: 1.5 kHz, 1500 Hz and 0.0015 MHz are the same answer.

(b)

What resistor does C1 emulate?

Check

A switch of width W and length L, with Cox = c (F/m²), turns off at overdrive v onto capacitor C; half its channel charge lands on C.

Step 1

How much channel charge does it hold?

Type it the way you would write it, like 3sin(2πft) or 3*sin(2*pi*f*t). Angles can be in radians or carry a degree sign, like 45°.

Explain why

Why can a switched-capacitor filter be more accurate than an on-chip RC filter?

Practice

Keep practicing

10 kinds of problem on this topic, dealt one at a time with new numbers every time, for as long as you like.