Aswitched capacitor (SC) is anelectronic circuit that implements afunction by movingcharges into and out ofcapacitors whenelectronic switches are opened and closed. Usually, non-overlappingclock signals are used to control the switches, so that not all switches are closed simultaneously.Filters implemented with these elements are termedswitched-capacitor filters, which depend only on the ratios between capacitances and the switching frequency, and not on preciseresistors. This makes them much more suitable for use withinintegrated circuits, where accurately specified resistors and capacitors are not economical to construct, but accurate clocks and accuraterelative ratios of capacitances are economical.[1]
SC circuits are typically implemented usingmetal–oxide–semiconductor (MOS) technology, withMOS capacitors andMOS field-effect transistor (MOSFET) switches, and they are commonlyfabricated using thecomplementary MOS (CMOS) process. Common applications of MOS SC circuits includemixed-signal integrated circuits,digital-to-analog converter (DAC) chips,analog-to-digital converter (ADC) chips,pulse-code modulation (PCM) codec-filters, and PCMdigital telephony.[2]

The simplest switched-capacitor (SC) circuit is made of one capacitor and two switchesS1 andS2 which alternatively connect the capacitor to eitherin orout at a switching frequency of.
Recall thatOhm's law can express the relationship between voltage, current, and resistance as:
The following equivalent resistance calculation will show how during each switching cycle, this switched-capacitor circuit transfers an amount of charge fromin toout such that it behaves according to a similarlinearcurrent–voltage relationship with
By definition, the charge on any capacitor with a voltage between its plates is:
Therefore, whenS1 is closed whileS2 is open, the charge stored in the capacitor will be:
assuming is anideal voltage source.
WhenS2 is closed (S1 is open - they are never both closed at the same time), some of that charge is transferred out of the capacitor. Exactly how much charge gets transferred can't be determined without knowing what load is attached to the output. However, by definition, the charge remaining on capacitor can be expressed in terms of the unknown variable:
Thus, the charge transferred fromin toout during one switching cycle is:
This charge is transferred at a rate of. So the averageelectric current (rate of transfer of charge per unit time) fromin toout is:
The voltage difference fromin toout can be written as:
Finally, the current–voltage relationship fromin toout can be expressed with the same form as Ohm's law, to show that this switched-capacitor circuit simulates a resistor with an equivalent resistance of:
This circuit is called aparallel resistor simulation becausein andout are connected in parallel and not directly coupled. Other types of SC simulated resistor circuits arebilinear resistor simulation,series resistor simulation,series-parallel resistor simulation, andparasitic-insensitive resistor simulation.
Charge is transferred fromin toout as discrete pulses, not continuously. This transfer approximates the equivalent continuous transfer of charge of a resistor when the switching frequency is sufficiently higher (≥100x) than thebandlimit of the inputsignal.
The SC circuit modeled here using ideal switches with zero resistance does not suffer from theohmic heating energy loss of a regular resistor, and so ideally could be called aloss free resistor. However real switches have some small resistance in their channel orp–n junctions, so power is still dissipated. The capacitors are not ideal either and dissipate power as well.
Because the resistance inside electric switches is typically much smaller than the resistances in circuits relying on regular resistors, SC circuits can have substantially lowerJohnson–Nyquist noise. However,harmonics of the switching frequency may be manifested as high frequencynoise that may need to be attenuated with alow-pass filter.
SC simulated resistors also have the benefit that their equivalent resistance can be adjusted by changing the switching frequency (i.e., it is a programmable resistance) with a resolution limited by the resolution of the switching period. Thusonline orruntime adjustment can be done by controlling the oscillation of the switches (e.g. using an configurable clock output signal from amicrocontroller).
SC simulated resistors are used as a replacement for real resistors inintegrated circuits because it is easier to fabricate reliably with a wide range of values and can take up much less silicon area.
This same circuit can be used indiscrete time systems (such as ADCs) as asample and hold circuit. During the appropriate clock phase, the capacitor samples the analog voltage through switchS1 and in the second phase presents this held sampled value through switchS2 to an electronic circuit for processing.
Electronic filters consisting of resistors and capacitors can have their resistors replaced with equivalent switched-capacitor simulated resistors, allowing the filter to be manufactured using only switches and capacitors without relying on real resistors.

Switched-capacitor simulated resistors can replace the input resistor in anop amp integrator to provide accurate voltage gain and integration.
One of the earliest of these circuits is the parasitic-sensitive integrator developed by the Czech engineer Bedrich Hosticka.[3]
Denote by the switching period. In capacitors,
Then, whenS1 opens andS2 closes (they are never both closed at the same time), we have the following:
1) Because has just charged:
2) Because the feedback cap,, is suddenly charged with that much charge (by the op amp, which seeks a virtual short circuit between its inputs):
Now dividing 2) by:
And inserting 1):
This last equation represents what is going on in - it increases (or decreases) its voltage each cycle according to the charge that is being "pumped" from (due to the op-amp).
However, there is a more elegant way to formulate this fact if is very short. Let us introduce and and rewrite the last equation divided by dt:
Therefore, the op-amp output voltage takes the form:
This is the same formula as the op ampinverting integrator where the resistance is replaced by a SC simulated resistor with an equivalent resistance of:
This switched-capacitor circuit is called "parasitic-sensitive" because its behavior is significantly affected byparasitic capacitances, which will cause errors when parasitic capacitances can't be controlled. "Parasitic insensitive" circuits try to overcome this.
The delaying parasitic insensitive integrator[clarification needed] has a wide use in discrete time electronic circuits such asbiquad filters, anti-alias structures, anddelta-sigma data converters. This circuit implements the following z-domain function:

One useful characteristic of switched-capacitor circuits is that they can be used to perform many circuit tasks at the same time, which is difficult with non-discrete time components (i.e. analog electronics).[clarification needed] The multiplying digital to analog converter (MDAC) is an example as it can take an analog input, add a digital value to it, and multiply this by some factor based on the capacitor ratios. The output of the MDAC is given by the following:
The MDAC is a common component in modern pipeline analog to digital converters as well as other precision analog electronics and was first created in the form above by Stephen Lewis and others at Bell Laboratories.[4]
Switched-capacitor circuits are analysed by writing down charge conservation equations, as in this article, and solving them with a computer algebra tool. For hand analysis and for getting more insight into the circuits, it is also possible to do aSignal-flow graph analysis, with a method that is very similar for switched-capacitor and continuous-time circuits.[5]