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 moves charge like a resistor of . 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 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 .
- 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?
= 1 MΩ. Each cycle the capacitor carries CΔV from one node to the other, so the average current is . A 1 MΩ polysilicon resistor would take far more area and be accurate only to tens of percent; the switched capacitor's value depends on a capacitance and a clock, and in a filter only on capacitor ratios.
Name it
The switched-capacitor resistor
A capacitor C switched between two nodes at transfers charge per cycle:
valid when the signals change slowly compared with .
The integrator
An op amp with in feedback and a switched at the input: each clock cycle the charge is dumped onto , so
At frequencies well below this is a continuous integrator with unity-gain frequency . Time constants are set by a capacitor ratio and the clock, both accurate. The parasitic-insensitive form switches both plates of 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 leaves through source and drain, roughly half each way. Onto a sampling capacitor that's an error of about , signal-dependent through . 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 : .
- On-resistance: varies with the signal level, which distorts at high frequency; bootstrapped switches hold 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 ; reaching half an LSB at N bits needs , about 7.6τ for 10 bits.
Worked example
A switched-capacitor integrator uses = 1 pF, = 10 pF and a 1 MHz clock. What's its unity-gain frequency, and what continuous resistor would replace?
Show the solution
- Unity-gain frequency.
- Equivalent resistor. acts as and 1 MΩ with 10 pF gives the same 15.9 kHz.
- 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 replaces a 1 MΩ resistor.
Worked example
A sampling switch W/L = 10/0.18 µm with = 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
- Channel charge.
- Error on the capacitor. Half of it lands on 1 pF: about 16 LSBs of a 1 V, 11-bit converter, so it must be cancelled (bottom-plate sampling, a differential layout).
- Settling to 10 bits. That needs 7.6 time constants in 10 ns:
- 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
- Where the charge goes. When the main switch opens, about half its channel charge goes to the capacitor.
- What the dummy does. The dummy, half its size, closes at the same moment and absorbs that same amount.
- 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 = 0.5 pF, = 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 = 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 = 1 pF, = 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 emulate?
Check
A switch of width W and length L, with = 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°.
Step 2
What voltage error does injection cause?
Explain why
Why can a switched-capacitor filter be more accurate than an on-chip RC filter?
An RC filter's corner depends on the absolute values of a resistor and a capacitor, and on a chip each varies by 10 to 20% from wafer to wafer and drifts with temperature, so the product can be off by 30% or more. A switched-capacitor filter replaces each resistor with a capacitor switched at the clock frequency, so its time constants become ratios of capacitances divided by the clock frequency. Two capacitors laid out side by side, made of the same layers at the same time, track each other to about 0.1% even though their absolute values vary, and the clock comes from a crystal. The filter's response is therefore set by things the process controls very well, instead of things it controls poorly.
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.