C2 · Lesson 22 · Switched capacitors
Resistors from capacitors, charge pumps and sample-and-hold
Inside a chip, a precise 1 MΩ resistor would be enormous, but a 10 pF capacitor flipped back and forth by a pair of switches 100,000 times a second carries charge exactly as a 1 MΩ resistor would, and its value is set by a clock and a capacitor ratio that chips make very accurately. Switches and capacitors also double voltages without inductors, as in the charge pumps that make the ±10 V for an RS-232 port from 3.3 V, and they freeze a changing voltage for an analog-to-digital converter to read. All of this comes from moving packets of charge.
- A charge-pump voltage doubler: a "flying" capacitor charges to , then switches on top of to charge the output. The line is the output voltage against load current.
- With no load the output is . Each milliamp of load costs volts per amp: the pump behaves like a source with that output resistance.
- Raise the switching frequency or the capacitor to stiffen it. The efficiency readout shows the cost of a heavy load.
Predict
A 10 pF capacitor is switched between two nodes 100,000 times a second. What resistance does it imitate?
1 MΩ. Each cycle carries a charge from one node to the other, so the average current is , proportional to the voltage difference: a resistance of MΩ. Change the clock and the resistance changes with it.
Name it
The switched-capacitor resistor
A capacitor alternately connected to node 1 (at ) and node 2 (at ), times a second, picks up charge and drops it at , carrying per cycle. The average current is
Switched-capacitor filters on chips use this: time constants become ratios of capacitors times the clock period, which are accurate to a fraction of a percent, unlike on-chip resistors.
Charge pumps
A doubler charges a flying capacitor to , then stacks it on top of to charge the output capacitor toward . Under a load , each cycle tops up the charge the load drew, and the output sags:
The input supplies twice the output current, so the efficiency is : the shortfall is the charge-sharing loss of lesson 3. Swapping the switching order makes an inverter, .
Sample-and-hold
A switch charges a capacitor to the input voltage, then opens and holds it while a converter reads it.
- Acquisition: the capacitor charges through the switch's resistance, so the switch must stay closed for several RC time constants.
- Droop: leakage current drains the held voltage at volts per second.
- Noise: opening the switch freezes in a random thermal voltage of RMS size , about 64 µV for 1 pF at room temperature, which sets a floor on how small the capacitor can be.
Worked example
A 3.3 V doubler uses a 1 µF flying capacitor at 100 kHz and supplies 5 mA. What does it output, and how efficiently?
Show the solution
- Output resistance.
- Output voltage.
- Efficiency.
- At a heavier load. At 100 mA it would sag to 5.6 V and only 85%.
Answer it outputs 6.55 V at 99.2% efficiency.
Worked example
A sample-and-hold uses 100 pF with 1 nA of leakage and holds for 1 ms. How much does it droop?
Show the solution
- Droop.
- Compare with the converter. That's too much for a 12-bit converter on a 3.3 V scale (an LSB is 0.8 mV): a larger capacitor or a shorter hold is needed.
Answer it droops 10 mV, too much for a 12-bit converter on a 3.3 V scale.
Worked example
A 1 pF capacitor is switched between two nodes at 1 MHz. What resistance does it act like, and what corner frequency does it make with a 10 pF integrating capacitor?
Show the solution
- Average current. Each cycle it carries a charge CΔV from one node to the other, so the average current is .
- Equivalent resistance.
- Corner frequency. With a 10 pF integrator the time constant is a corner of 15.9 kHz.
- Why chips use it. The corner depends on a capacitor ratio and the clock, both easy to control on a chip, where a precise 1 MΩ resistor would be huge and drift with temperature.
Answer it acts like 1 MΩ, and with the 10 pF integrating capacitor it makes a corner at 15.9 kHz.
Check
A 1 pF capacitor is switched at 100 kHz. What resistance does it imitate?
Write units the way you normally would: 1.5 MΩ, 1500 kΩ and 0.0015 GΩ are the same answer.
Check
A 2 pF capacitor ferries charge between nodes 3 V apart at 50 kHz. What average current flows?
Write units the way you normally would: 1.5 µA, 1500 nA and 0.0015 mA are the same answer.
Check
A doubler from 3.3 V switches a 1 µF flying capacitor at 100 kHz and supplies 10 mA. What is its output?
Write units the way you normally would: 1.5 V, 1500 mV and 0.0015 kV are the same answer.
Check
A doubler from 3.3 V delivers its load current at 5.5 V. What is its efficiency?
Check
A hold capacitor of 10 pF with 1 nA of leakage holds for 1000 µs. How much does it droop?
Write units the way you normally would: 1.5 mV, 1500 µV and 0.0015 V are the same answer.
Check
What RMS noise voltage does sampling onto 1 pF freeze in at 300 K?
Write units the way you normally would: 1.5 µV, 1500 nV and 0.0015 mV are the same answer.
Check
A 1 pF capacitor is switched at 0.1 MHz and feeds an integrating capacitor 20 times larger.
(a)
What resistance does it act like?
Write units the way you normally would: 1.5 MΩ, 1500 kΩ and 0.0015 GΩ are the same answer.
(b)
What corner frequency does the integrator have?
Check
A capacitor C is switched at f between nodes differing by V.
Step 1
How much charge does it move each cycle?
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's the average current?
Step 3
What resistance does that look like?
Explain why
Why do chip designers build filters from switched capacitors instead of resistors and capacitors?
An integrated resistor's value can be off by 20% or more and drifts with temperature, so an on-chip RC time constant is imprecise. A switched-capacitor circuit replaces each resistor with a capacitor toggled by a clock, so every time constant becomes a ratio of two capacitors times the clock period. Capacitors made side by side on one chip match each other to a fraction of a percent, and the clock can be crystal-accurate, so the filter's frequencies come out precise. Changing the clock also retunes the whole 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.