You are on page 1of 46

School of Engineering

Honors project
Switched capacitor filter design for mixed signal applications
Q1 Q2

Q1 Q2 J5 J6 +12V
BC264A BC264A
Q1 Q2
C7 V4
12Vdc
V1 = 0 V2 V1 = 0 V3
V2 = 5 V2 = 5 J3 J4
TD = 0 TD = 500n BC264A BC264A 50p C8
TR = 0 TR = 0 50p
C5
TF = 0 TF = 0
PW = 500n PW = 500n
PER = 1u PER = 1u 0 0 V5
0 0 C6 12Vdc
50p
50p
C1 C2
Q1 Q2 0
-12V
10n 10n
TL084 Q1 Q2 -12V
-12V
VDB

11
2 V- TL084 Q1 Q2
- -12V

VDB
11
J1 J2 1 6 V- TL084 Q1 Q2 Q1 Q2
BC264A BC264A OUT -

VDB
V1 11
1Vac 3 J7 J8 7 9 V-
C3 + 4 BC264A BC264A OUT -
0Vdc V+ J9 J10
U1A 5 8
C9 + 4 BC264A BC264A OUT
50p U1B V+ J15 J16 J17 J18
C4 +12V 10
C11 + 4 BC264A BC264A BC264A BC264A
50p
0 C10 0 +12V U1C V+
0 31.25p
31.25p
C17 C19
C12 0 +12V
Q1 Q2 Q1 Q2 31.25p
31.25p
0 C18 C20
Q1 Q2 50p 50p
50p 50p
0
0 -12V 0
J11 J12 J13 J14
BC264A BC264A BC264A BC264A
J19 J20 TL084

VDB
11
C13 C15 BC264A BC264A V-
13
-
C21
14
C14 C16 OUT
50p 45.5p 12
50p 45.5p + 4
C22
0 50p
50p U1D V+
0 0
0 +12V
0

Switch Capacitor Filter Parallel and Series


0
dB Low-pass
High-pass
-10 Band-pass
Band-reject
-20 -3dB
-52dB
-30

-40

-50

-60

-70

-80

-90

100

110
frequency
1000 10000 100000 1000000 10000000

By
Klaus Jørgensen
Napier No. 04007824
Electronic & Communication Engineering
1 May 2006

Supervisor
Dr. Mohammad Y. Sharif
Page 2 of 46

Abstract
This project report presents the theory of Switch Capacitors (SC) technology and its
advantages, disadvantages and different implementations methods. The report provides a
short review, of three State Variable (SV) SC filters from Maxim, National Semiconductors
and Texas Instruments. The guidelines on how to construct a SV filter with Low-pass,
High-pass, Band-pass and Band-reject filter response are provided. Simulations have
been carried out to clarify the theory.
A SV filter has been implemented using SC method. Simulations have been carried out
using OrCAD software development tool and the results have been compared with filters
from Maxim, National Semiconductors and Texas Instruments.
Page 3 of 46

Table of Contents
1. Introduction...................................................................................................................... 4
2. Theory ............................................................................................................................. 5
2.1 Metal Oxide Semiconductor Capacitors ..................................................................... 5
2.2 Parasitic Capacitors ................................................................................................... 6
2.3 Metal Oxide Semiconductor Field Effect Transistors Switches .................................. 7
2.4 Resistor by Switch Capacitors ................................................................................... 8
2.4.1 Resistor by Switch Capacitors sub conclusion .................................................... 8
2.5 Switch Capacitor setup .............................................................................................. 9
2.5.1 Switch Capacitor setup sub conclusion ............................................................. 10
3. Applications ................................................................................................................... 11
3.1 Texas Instruments UAF42 ....................................................................................... 11
3.2 Maxim MAX7490 and MAX7491 .............................................................................. 12
3.3 National Semiconductor LMF100 ............................................................................. 13
4. State Variable Filter .......................................................................................................14
4.1 Calculations ............................................................................................................. 14
4.2 Simulations .............................................................................................................. 16
4.2.1 Simulations sub conclusion ............................................................................... 19
5. Switch Capacitor Filter................................................................................................... 20
5.1 Test of different programs ........................................................................................ 22
5.1.1 Sub Conclusion ................................................................................................. 23
5.2 Switch Capacitor Filter parallel & Setup of the PSpice model .................................. 24
5.3 Switch Capacitor Filter Series .................................................................................. 26
5.4 Switch Capacitor Filter Parallel and Series .............................................................. 27
5.4.1 Switch Capacitor Filter Parallel and Series sub conclusion ............................... 28
5.5 Switch Capacitor Filter Bilinear ................................................................................ 29
5.6 Negative Switch Capacitor Trans-resistance Realization......................................... 30
5.7 Positive Switch Capacitor Trans-resistance Realization .......................................... 31
5.8 Switch Capacitor Filter Conclusion........................................................................... 32
6. State Variable Filter with Switch Capacitor .................................................................... 33
6.1 State Variable Filter with Parallel or Series Switch Capacitor .................................. 33
6.2 State Variable Filter with Parallel and Series Switch Capacitor ............................... 37
7. Conclusion..................................................................................................................... 39
8. References .................................................................................................................... 40
9. Bibliography................................................................................................................... 40
10. Appendix...................................................................................................................... 41
10.1 Project Proposal..................................................................................................... 41
10.2 Time Plans ............................................................................................................. 42
10.3 Derivation of equation ............................................................................................ 43
10.4 Vpulse in OrCAD.................................................................................................... 44
10.5 State Variable Filter with Parallel or Series Switch Capacitor ................................ 45
10.6 State Variable Filter with Parallel and Series Switch Capacitor ............................. 46
Page 4 of 46

1. Introduction
A SC filter used in an Integrated Circuit (IC) product, and usually implemented by using
Metal Oxide Semiconductor Field Effect Transistors (MOSFET) and capacitors to simulate
the behavior of a resistor, because the resistors are expensive and not easily controlled,
this means that a circuit can be built without the use of resistors, and this is very useful,
many places in the industry today, because that there is build a lot of IC today and a
resistor use a lot of space in a IC. A MOSFET or a capacitor do not use that much room,
also a resistor in a IC is very dependent of the temperature is very stable or else the value
of the resistor will change, the capacitor value in a IC is much more reliable and the value
of a capacitor can be set very accurately, typically around 0,1% accurate and it can be any
value that is required, mostly in a range from 0,1pF to 100pF, and are generally less costly
than resistors. The sampling clock frequency (fS) in a SC filter usually has to be 50 to 100
times bigger then the cut-off frequency at -3dB (fC) to minimize the effects of time-sampling
and charge-sharing, but the frequency area typically in the range from 100kHz to 2MHz,
therefore the SC filter is particularly useful in the voice and audio frequency area, because
that the clock frequency of the switches must be 50 to 100 times bigger then the signal
frequency, and therefore it is very useful in Digital Signal Processor (DSP) technology
which is often used for voice and audio applications. Figure 1.1 shows how a resistor (R) is
replaced with a capacitor (CS) and a switch MOSFET [1].

Cs C
0

0 0

Figure 1.1 [1]


Page 5 of 46

2. Theory
In this chapter the general theory of a SC resistor and the basic ways to construct and
calculate a SC resistor is described along with some of the problems there is by using a
SC resistor.

2.1 Metal Oxide Semiconductor Capacitors


Capacitance voltage measurements of Metal Oxide Semiconductor (MOS) capacitors
provide a wealth of information about the structure, which is of direct interest when one
evaluates an MOS process. Since the MOS structure is simple to fabricate, the technique
is widely used.
To understand capacitance-voltage measurements one must first be familiar with the
frequency dependence of the measurement. This frequency d ependence occurs primarily
in inversion since a certain time is needed to generate the minority carriers in the inversion
layer. Thermal equilibrium is therefore not immediately obtained.
The low frequency or quasi-static measurement maintains thermal equilibrium at all
times. This capacitance is the ratio of the change in charge to the change in gate voltage,
measured while the capacitor is in equilibrium. A typical measurement is performed with
an electrometer, which measures the charge added per unit time as one slowly varies the
applied gate voltage.
The high frequency capacitance is obtained from a small-signal capacitance
measurement at high frequency. The bias voltage on the gate is varied slowly to obtain the
capacitance versus voltage. Under such conditions, one finds that the charge in the
inversion layer does not change from the equilibrium value at the applied dc voltage. The
high frequency capacitance therefore reflects only the charge variation in the depletion
layer and the (rather small) movement of the inversion layer charge [2].

Figure 2.1 [2]


Page 6 of 46

2.2 Parasitic Capacitors


In MOS technology the capacitor CR has unfortunately some disadvantage, and these are
called parasitic capacitances, these appears because of the closeness between the
connecting terminals, and the small dimensions of the device layers. The capacitor Cp
appears from the capacitances mainly between the terminal connecting metal (a, b), and
the substrate (c). The value of this capacitor is usually around 1% of CR. The capacitor Cb
appears from the capacitances between bottom poly-silicon and the substrate (c), this has
usually a value of 10% of the CR [1].

Figure 2.2 [1]


Page 7 of 46

2.3 Metal Oxide Semiconductor Field Effect Transistors Switches


The most basic element in the design of a large scale IC is the transistor. The transistors
are made of semiconductor layers, usually a slice, or wafer, from a single crystal of silicon,
a layer of silicon dioxide and a layer of metal. These layers are patterned in a manner
which permits transistors to be formed in the semiconductor material. Silicon dioxide is a
very good insulator, so a very thin layer, typically only a few hundred molecules thick, is
required. The MOSFET transistor has three areas, labeled the source, the gate and the
drain. The area labeled as the gate region is actually a part of the original substrate
material, which is a single crystal of semiconductor material witch usually are silicon, a thin
insulating layer, usually silicon dioxide, and an upper metal layer. Electrical charge, or
current, can flow from the source to the drain depending on the charge applied to the gate
region. The semiconductor material in the source and drain region are a different type of
material than in the region under the gate, so an NPN or PNP type structure exists
between the source and drain region of a MOSFET. The source and drain regions are
quite similar, and are labeled depending on to what they are connected. The source is the
terminal, or node, which acts as the source of charge carriers; charge carriers leave the
source and travel to the drain. In the case of an N channel MOSFET, the source is the
more negative of the terminals; in the case of a P channel device, it is the more positive of
the terminals. The area under the gate oxide is called the channel. Figure 2.3 shows a
simplified diagram of a MOSFET transistor [1].

Figure 2.3 [1]


Page 8 of 46

2.4 Resistor by Switch Capacitors


In figure 2.4 there is shown a simplified version, on how a capacitor can work as a resistor.
By charting and recharges the capacitor, by using a switch, when CS is connected to
terminal 1, the capacitor is being charged by the voltage sours E1, and when the switch is
connected to terminal 2 the capacitor is recharging on to the voltage sours E2 [1].
E1 - E2 1
R= = (2.1)
I f S × CS
In practice the switch in figure 2.4 is replaced with two MOSFET, the gates of the
MOSFETs are controlled by two clock pulses that doesn’t overlap each outer, as shown in
figure 2.5. In order to switch the MOSFET on, the gate needs to be set “high” (a few volts),
and in the off stage the gate of the MOSFET is “low” (0 volts).

Cs

Figure 2.4 [1]

Cs

Figure 2.5 [1]

2.4.1 Resistor by Switch Capacitors sub conclusion


One of reason construct a switch capacitor resistor is because it requires a very small
silicon area to create a very large resistor value, actually the silicon area decreases as the
resistor value increases, if implement a resistant of 10MΩ, a good value of the capacitor
will be in the range of 1pF to 10pF and a sample frequency around 100kHz [1].
1 1
R= ⇒ = 10MΩ (2.2)
CS × f S 1p × 100k
A capacitor of 1pF requires a silicon area around 0.01mm2, where a resistor at 10MΩ
requires a silicone area there is at least 100 times bigger.
Page 9 of 46
2.5 Switch Capacitor setup
There are six different ways to construct a SC, to make it acts as a resistor, three which
use two switches and three which use four switches.

In the SC parallel setup (figure 2.6) the CS


Q1 Q2
is en parallel with C on the output, and the
Input
size of the equivalent resistor is calculated
Mos A Mos B
in equation 2.3 [1].
Cs C
1
R= (2.3) 628p 10n

CS × f S
0 0

Figure 2.6

In the SC series setup (figure 2.7) Cs is Q1 Q2

placed in series between the MOSFET A Input

gate and source, the equation for the size Mos A Mos B

C
of the equivalent resistor is the same as Cs 10n

628p
the parallel setup in equation 2.3.
0

Figure 2.7

The setup of the SC parallel and series


Q1 Q2
Input
(figure 2.8) is there a capacitor in series
(Cs1) and one in parallel (CS2) these two Mos A Mos B

capacitors make on equivalent resistor. Cs1


C
10n
1 528p

R= (2.4) Cs2

(CS1 + CS 2) × fS 100p
0
0

Figure 2.8

The setup of the SC bilinar (figure 2.9) the


Q1 Q2

CS is placed between 4 MOSFETs this


means that there always will be two Mos A Mos B

MOSFETs ON at the same time (A, D) Input Cs


157p
and (B, C). Q2 Q1 C
10n

1
R= (2.5) 0
4 × CS × f S Mos C Mos D

Figure 2.9
Page 10 of 46
In the negative trans-resistance Q1 Q2

Input
realization SC setup (figure 2.10) uses Cs

628p
four MOSFETs and the CS is placed in Mos A Mos B

C
10n
series. When Q1 is high “1” the CS is
Q2 Q1

being charts and when Q2 is high “1” CS


Mos C Mos D
0

is discharging, the equation for CS is the


0 0
same as in equation 2.3.
Figure 2.10

In the positive trans-resistance realization


SC setup (figure 2.11) uses four Q2 Q2

MOSFETs and the CS is placed in series. Input Cs

628p
When Q2 is high “1” CS transfer the Mos A Mos B

current from the input on to the capacitor Q1 Q1


C
10n
Mos C Mos D
at the output. When Q1 is high “1” CS is
0
connected to ground and it is discharging.
0 0
The equation for CS is the same as in
equation 2.3. Figure 2.11

2.5.1 Switch Capacitor setup sub conclusion


The SC setups there uses two MOSFETs, has its advantage and disadvantages as well
dos the SC setups there uses four MOSFETs. The advantages of only using two
MOSFETs is that it dose not use that much space in the IC, one of the disadvantage is
that is dos not cancel out the parasitic capacitances there will be in an IC. One of the
advantages of using four MOSFETs is, that is eliminating the parasitic capacitances there
will be in an IC. The disadvantage is that this will take up more space in an IC, which can
be a problem in some cases.
Page 11 of 46

3. Applications
There are several electronic companies’s who creates good SV filters in IC, and some of
them are being investigated in this chapter. Some of the company’s who manufacture SV
filters are National Semiconductor, Maxim, Analog, Texas Instruments and Burr-Brown.

3.1 Texas Instruments UAF42


The UAF42 IC is a universal active filter from Texas Instruments, which can be setup in
many different ways with Low-pass, High-pass and Band-pass filters outputs. It uses a
classical state-variable analog architecture with an inverting amplifier and two integrators.
The last opamp in figure 3.1 can be used to make the Band-reject filter with a summing of
the Low-pass and High-pass outputs. The integrators include on-chip 1nF capacitors
trimmed to 0.5%. This solves one of the most difficult problems of active filter design
obtaining tight tolerance, Low-loss capacitors, and the slew rate of the UAF42 is only
10V/ms. the open-loop voltage gain is typical 126dB at a supply voltage of ±10V and a RL
at 2kΩ, the maximum value of Q is 400, the gain bandwidth is 4MHz [3].

Figure 3.1 [3]

Figure 3.2 shows a SV filter with a Low-pass, High-pass and Band-pass filter outputs, the
external resistors can be set by the user to what the demands are for the SV filter, RF1 and
RF2 determine the centre frequency, RG determine the gain of the SV filter, RQ determine
the Q value of the SV filter.

Figure 3.2 [3]


Page 12 of 46
3.2 Maxim MAX7490 and MAX7491
The MAX7490/MAX7491 IC’s from Maxim consist of two equal 2nd-order SC building
blocks, with Rail-to-Rail output. Each of the two filter sections, together with two to four
external resistors, can produce a standard 2nd-order filter functions such as Low-pass,
High-pass, Band-pass, and Band-reject. Three of these functions are simultaneously
available. Fourth-order filters can be obtained by cascading the two 2nd-order filter
sections. In the same way a higher order filters can easily be constructed by cascading
several MAX7490/MAX7491s. There are two ways to make the clock for the IC’s available.
One is an internal clock build in the IC with the use of an external capacitor to determine
the clock frequency, or external clocking for tighter cutoff frequency control. Sampling is
done at twice the clock frequency, further separating the cutoff frequency and Nyquist
frequency. The MAX7490/MAX7491 has an internal rail splitter that establishes an
accurate common voltage needed for single-supply operation. The MAX7490 operates
from a single +5V supply and the MAX7491 operates from a single +3V supply. Both
devices feature a low-power shutdown mode which only use 1μA supply current, and can
operate with a center frequency from 10Hz up to 40kHz, they also has a very high
accuracy for the Q value which is ±0.2% and the Clock-to-Centre Frequency Error is only
±0.2%. Figure 3.3 shows a block diagram of the MAX7490/MAX7491 IC. Figure 3.4 shows
a 2nd-Order state variable filter providing High-pass, Band-pass, and Low-pass outputs
[4].

Figure 3.3 [4]

Figure 3.4 [4]


Page 13 of 46
3.3 National Semiconductor LMF100
The LMF100 IC from National Semiconductor contains two independent SV filters with
high performance SC. With an external clock and 2 to 4 resistors, a wide range of second-
order and first-order filtering functions can be carried out by each filter block. Each block
has 3 outputs. One output can be setup to perform a High-pass, or Band-reject filter
function. The other two filter outputs makes a Band-pass and Low-pass filter functions.
The center frequency of each filter function is setup by using an external clock or a
combination of a clock and resistor ratio. A higher order of the filters can be implemented
by cascading more LMF100 IC’s, and all the classical filters, such as Butterworth, Bessel,
Elliptic, and Chebyshev, can be realized. The LMF100 IC has a very low offset, a wide
supply range from ±4V to ±15 but it can also operate with a single supply from 4V to 15V.
It can operate up to 100 kHz, the offset voltage is typically from ±5 mV to ±15 mV is hat a
very low crosstalk witch is in the range of −60dB the clock to center frequency ratio
accuracy is typically in the range of ±0.2%. Figure 3.5 shows a block diagram of the
LMF100 IC. Figure 3.6 shows LMF100 IC setup for a SV filter with a High-pass, Band-
pass, Low-pass and Band-reject filter with the use of an external operational amplifier [5].

Figure 3.5 [5]

Figure 3.6 [5]


Page 14 of 46

4. State Variable Filter


A SV filter is a filter there contains all filter types implanted in to one circuit, i.e. Low-pass,
High-pass, Band-pass and Band-reject filter in one circuit (figure 4.1), the outputs of the
filters is accessible at the same time. To create a SV filter circuit there are required four
operational amplifiers, two of the amplifiers performs as summing function, the two outer
performs as integrators. The passive component values is chosen by the designer, but
must be consistent with the amplifier operating range and input signal [6, 7].

4.1 Calculations
R1 = R2 = R3 (4.1) 1 R3
fC = × (4.7)
R4 = R5 (4.2) 2× π R2 × R4 × R5 × C1× C2
R8 = R9 (4.3) R6 + R7
BandpassGain = (4.8)
C1 = C2 (4.4) ⎛ 1 1 1 ⎞
R1× R7× ⎜ + + ⎟
⎝ R1 R2 R3 ⎠
R2
Lowpass Gain = (4.5) ⎛ ⎞
R1 ⎜ ⎟
Q=
R6 + R7 ⎜
×
1
×
R4× C1 ⎟ (4.9)
R3 R7 ⎜⎛ 1 1 1 ⎞ R2× R3× R5× C2 ⎟
Highpass Gain = (4.6) ⎜⎜ + + ⎟ ⎟
R1 ⎝ ⎝ R1 R2 R3 ⎠ ⎠

To calculate the value of R4 and R5 the program MathCAD where used to drive the
formula for R4 and R5, R5 is typed as R4 in equation 4.10, so MathCAD can drive a
formula for R4 shown in equation 4.11.

1 R3
fc ⋅ (4.10)
2π R2⋅ R4⋅ R4⋅ C1⋅ C2

⎡ 1⎤
⎢ ⎥
⎢ 1 (R2⋅ C1⋅ C2⋅ R3) 2 ⎥
⎢ 2⋅ π⋅ R ⋅ C ⋅ C ⋅ fc ⎥
⎢ 2 1 2 ⎥
R4 := (4.11)
⎢ 1⎥
⎢ ⎥
⎢ −1 (R2⋅ C1⋅ C2⋅ R3) 2 ⎥
⎢ 2⋅ π⋅ R ⋅ C ⋅ C ⋅ fc ⎥
⎣ 2 1 2 ⎦
Page 15 of 46
To be able to calculate the values for the resistors in the SV filter some of them have to be
chosen before it is possible [6, 7].
R1 = R2 = R3 = 10kΩ (4.12) Gain = 1 v (4.16)
v
R7 = 10kΩ (4.13)
Q = 0.707 (4.17)
R8 = R9 = 10kΩ (4.14)
f C = 10kHz (4.18)
C1 = C2 = 1nF (4.15)

When this values is been chosen it is possible to calculate the value of R4 and R5

⎛ 1 ⎞ ⎛⎜ (R2 × R3 × C1× C2) ⎞⎟


R4 = ⎜ ⎟×
⎝ 2 × π × R2 × C1 × C2 ⎠ ⎜⎝ fC ⎟⇒

(4.19)
⎛ 1 ⎞ ⎛⎜ (10k × 10k × 1n × 1n ) ⎞⎟
R4 = ⎜ ⎟× ⎟ = 15.9kΩ
⎝ 2 × π × 10k × 1n × 1n ⎠ ⎜⎝ 10k ⎠
The relations between R6 and R7 defines the value of Q, the bigger R6 is then R7 the
bigger the value of Q will be, the value of R7 and Q has been chosen so now the value of
R6 can be calculated (equation 4.20). In appendix 10.3 the whole derivation of equation
4.20 is shown.
⎛ ⎞
⎜ ⎟
Q=
R6 + R7 ⎜
×
1
×
R4× C1 ⎟ ⇒ R6 = (Q × R7) − R7
R7 ⎜ ⎛ 1 1 1 ⎞ R2× R3× R5× C2 ⎟ 1 ⎛ R4× C1 ⎞
⎜⎜ + + ⎟ ⎟ × ⎜ ⎟
⎝ ⎝ R1 R2 R3 ⎠ ⎠ ⎛ 1 1 1 ⎞ R2× R3× R5× C2 ⎠ (4.20)
⎜ + + ⎟ ⎝
⎝ R1 R2 R3 ⎠
R6 =
(0.707×10k)
− 10k = 11.21kΩ
1 ⎛ ⎛ 15.9k ×1n ⎞ ⎞
×⎜ ⎜ ⎟⎟
⎛ 1 1 1 ⎞ ⎜⎝ ⎝ 10k ×10k ×15.9k×1n ⎠ ⎟⎠
⎜ + + ⎟
⎝ 10k 10k 10k ⎠

R10 is chosen to 10kΩ like R8 and R9, because the gain is chosen to be 1v/v. The signals
from the High-pass and Low-pass filter is added together to produce the Band-reject
output, and the gain of the Band-reject filter is 1v/v. Therefore all the resistors of the Band-
reject filter have to bee the same value (R8, R9 and R10).
Page 16 of 46

4.2 Simulations
Figure 4.1 shows the SV filter circuit with all four types of filters, High-pass (U1A), Low-
pass (U1C), Band-pass (U1B) and Band-reject (U1D), and the output signals from the
filters is shown in figure 4.2 U1A and U1D performs as summing function, and U1B and
U1C performs as integrators. One of the advantages of a SV filter is that by changing the
value of only a few components the parameters for the whole circuit is changed. If the
value of R1 is changed the gain is changed, the ratio between R4 and R5 determined
where the fC should bee, and the ratio between R6 and R7 specifics the value of Q.
R2

10k
+12V
R3

C1 V1
10k
12V
C2
-12V 1n

-12V 1n
11

TL084 V2
VDB

R1
2 -12V 0 12V
11
V-

- TL084

VDB
R4
10k
1 6

11
V-

OUT - TL084

VDB
V3 R5
16k
1Vac 3 7 9

V-
+ 4 OUT - -12V
0Vdc V+ 16k
U1A 5 8
+ 4 OUT
U1B V+ 10
+12V + 4 R8
U1C V+
10k
0 R10
0 +12V
R6 0
10k
+12V
11k -12V
R7
10k

11
R9 TL084
13

V-
-
0 14
10k OUT
12
+ 4 VDB
U1D V+

0 +12V

Figure 4.1 [7]

State Variable Filter


dB Low-pass
0 High-pass
Band-pass
Band-reject
-10
-3db
-40dB
-20

-30

-40

-50

-60

-70

-80

-90

frequency
1000 10000 100000 1000000 10000000
Figure 4.2
Page 17 of 46
R1 controls the gain for all four filters but the 20
dB
State Variable Filter (All gain of 20dB)
Low-pass
High-pass

filters losses some of there sharpness. In figure


10 Band-pass
Band-reject
0

4.3 R1 has been change to 1kΩ, which give a -10

-20

gain of 20dB, which is equal to a gain 10 times. -30

-40

⎛ dB ⎞ 20
Av = Log10 ⎜ ⎟ ⇒ Log10 = 10
-50
(4.21)
⎝ 20 ⎠ 20 -60

-70

-80

-90
frequency
1000 10000 100000 1000000 10000000

Figure 4.3

State Variable Filter (Low-pass gain of 20dB)


R2 controls the gain of the Low-pass filter, in 20
dB Low-pass
High-pass
10 Band-pass
figure 4.4 R2 is changes to 100kΩ which gives 0
Band-reject

a gain of 20dB which is equal to 10 times


-10

-20

(equation 4.21) -30

-40

-50

-60

-70

-80

-90
frequency
1000 10000 100000 1000000 10000000

Figure 4.4

State Variable Filter (High-pass gain of 20dB)


20
dB Low-pass
High-pass
R3 controls the gain of the High-pass filter, in 10 Band-pass
Band-reject
0

figure 4.5 R3 is changes to 100kΩ which gives -10

-20
a gain of 20dB which is equal to 10 times -30

(equation 4.21) -40

-50

-60

-70

-80

-90
frequency
1000 10000 100000 1000000 10000000

Figure 4.5

State Variable Filter (Band-pass gain of 20dB)


20
dB Low-pass
High-pass
R10 controls the gain of the Band-reject filter, 10 Band-pass
Band-reject
0

in figure 4.6 R10 is changes to 100kΩ which -10

-20
gives a gain of 20dB which is equal to 10 times -30

(equation 4.21) -40

-50

-60

-70

-80

-90
frequency
1000 10000 100000 1000000 10000000

Figure 4.6
Page 18 of 46
The relationship between R6 and R7 20
dB
State Variable Filter (All Q of 4)
Low-pass
High-pass

determinant the Q value for all four filters, in 10

0
Band-pass
Band-reject

figure 4.7 R7 has been changes to 1kΩ, this -10

-20

gives a Q of 4, see equation 4.22 [7]. -30

-40

⎛ ⎞
⎜ ⎟
-50

11k + 1k ⎜ 1 16k × 1n ⎟=4 -60


Q= × ×
1k ⎜⎛ 1 1 1 ⎞ 10k × 10k × 16k × 1n ⎟ -70

⎜⎜ + + ⎟ ⎟
⎝ ⎝ 10k 10k 10k ⎠
-80

-90
(4.22) frequency
1000 10000 100000 1000000 10000000

Figure 4.7
State Variable Filter (R4 at 6kohm)

R4 and R5 have an equal influence on the fC 20


dB Low-pass
High-pass
10 Band-pass

frequency, in figure 4.8 R4 has been changes 0


Band-reject

-10
to 6kΩ which gives an fC of 16,24kHz if -20

-30
equation 4.7 on page 14 is used. -40

-50
1 10k
fC = × = 16.24kHz -60

2× π 10k × 6k × 16k × 1n × 1n -70

-80

(4.23) -90
frequency
1000 10000 100000 1000000 10000000

Figure 4.8

R4 and R5 have an equal influence on the fC 20


dB
State Variable Filter (R4 at 26kohm)
Low-pass
High-pass

frequency, in figure 9 R4 has been changes to 10 Band-pass


Band-reject
0

26kΩ which gives an fC of 7,8kHz if equation -10

-20

4.7 on page 14 is used. -30

-40

1 10k
fC = × = 7,8kHz
-50

2 × π 10k × 26k ×16k ×1n ×1n -60

-70
(4.24) -80

-90
frequency
1000 10000 100000 1000000 10000000

Figure 4.9
State Variable Filter (R6 at 6kohm)
20
dB Low-pass
High-pass
R4 and R5 have an equal influence on the fC 10 Band-pass
Band-reject
0
frequency, in figure 10 R5 has been changes -10

to 6kΩ which gives an fC of 16,24kHz if


-20

-30

equation 4.7 on page 14 is used. -40

-50

1 10k -60

fC = × = 16.24kHz -70

2 × π 10k ×16k × 6k ×1n ×1n -80

(4.25) -90
frequency
1000 10000 100000 1000000 10000000

Figure 4.10
Page 19 of 46
R4 and R5 have an equal influence on the fC State Variable Filter (R6 at 26kohm)
20
dB Low-pass

frequency, in figure 11 R5 has been changes to


High-pass
10 Band-pass
Band-reject
0
26kΩ which gives an fC of 7,8kHz if equation -10

4.7 on page 14 is used. -20

-30

-40
1 10k
fC = × = 7,8kHz -50

2× π 10k × 16k × 26k × 1n × 1n -60

(4.26) -70

-80

-90
frequency
1000 10000 100000 1000000 10000000

Figure 4.11

To find out how good performance the SV filter have, the value of Q is going to be tester
for the Low-pass filter section, the test values of Q is chosen to 0.5, 5, 10, 50 and 200 to
se how the filter will handle these values. To calculate R6 equation 4.20 on page 15 is
going to be used. Table 4.1 shows the values of R6. Figure 4.12 shows the result of
simulated values of Q. State Variable Filter (Q from 0.5 to 200)
dB Q = 0.5
Value of Q. Value of R6 50
40
Q=5
Q = 10
Q = 50
30
0.5 5kΩ 20
Q = 200

10
5 140kΩ 0
-10

10 290kΩ -20
-30

50 1.49MΩ -40
-50

200 5.99MΩ -60


-70
-80
Table 4.1 -90
frequency
1000 10000 100000 1000000 10000000

Figure 4.12

4.2.1 Simulations sub conclusion


The reason that SV filter response for the High-pass and Band-reject, begins to go down
at roughly 2MHz is that there is used a TL084 [8] opamp from Texas Instrument in the
simulations which have a bandwidth of 3MHZ, this is don because nothing is ideal in this
world, so it was chosen to use the TL084 opamp in steed off a ideal opamp, that will give a
impossible result to achieve in reel life.
Page 20 of 46

5. Switch Capacitor Filter


There is created a passive Low-pass filter, there is used as a reference to how the filter
response for the SC filter should lock like. The center frequency for the Low-pass filter is
chosen to be 10kHz, this frequency is going to be used for all the simulations in this
chapter.
Chosen values, fC = 10kHz, C = 10nF
1
fC = (5.1)
2× π× R × C

1 1
R= ⇒ = 1,592kΩ (5.2)
2 × π × fC × C 2 × π × 10k × 10n

On figure 5.1 and 5.2 the results of equation 5.2 are shown, the circuit on figure 5.1 is
converted into a SC filter (figure 5.3).

1.592k
V1 VDB
1Vac C
0Vdc 10n

0 0

Figure 5.1

Switch Capacitor
dB gain Low-pass
0 -3dB

-10

-20

-30

-40

-50

frequency
1000 10000 100000 1000000 10000000
Figure 5.2
Page 21 of 46
To calculate the value of CS in the SC filter, equation 5.3 has to be rewritten, so that the
value of CS can be found, fS >> fC, fs has to be 50 to 100 times bigger then fC to avoid anti-
aliasing in the SC filter.
f S × CS
fC = (5.3)
2× π×C
f S = f C ×100 ⇒ 10k × 100 = 1MHz (5.4)

f S × CS
fC = ⇒
2× π× C
(5.5)
10k × 2 × π × 10n
CS = = 628,3pF
1M
The whole divagation of equation 5.5 is shown in appendix 10.3
1 1
R= ⇒ = 1,592k Ω (5.6)
CS × fS 628,3p × 1M
Figure 5.3 shows the SC filter circuit and figure 5.4 shows the frequency response, as it is
shows the fC is at 45.8kHz and not at 10kHz as it should be, the reason for this is mainly
that the capacitors inside the MOSFET has not been taken in to considering for this circuit.
The setup of switching pulses V2 and V3 are shown in appendix 10.4
V1 = 0 V2 V1 = 0 V3
V2 = 5 V2 = 5
TD = 0 TD = 500n
TR = 0 TR = 0
TF = 0 TF = 0
PW = 500n PW = 500n
PER = 1u PER = 1u
0 0
VDB

J1 J2
V1
1Vac BC264A BC264A
0Vdc Cs C
628p 10n

0 0 0

Figure 5.3

Switch Capacitor Filter responce


dB filter responce
0 -3dB

-5

-10

-15

-20

-25

-30

-35

-40

-45

-50

-55
frequency
1000 10000 100000 1000000

Figure 5.4
Page 22 of 46
5.1 Test of different programs
In steed of using MOSFET transistors, where there is small capacitance inside, there has
to be taken into considerations. And since there is no ideal MOSFET transistors in OrCAD
10.0 there was tried to use ideal switches in steed off (figure 5.5), but it is was not possible
to generate a correct frequency response with ideal switches as shown on figure 5.6.

VDB
0 0
1 2 1 2
U1 U2
V4
1Vac
0Vdc Cs1 C1
628p 10n

0 0 0

Figure 5.5

Switch Capacitor Filter response with switches


0
dB filter responce

-10

-20

-30

-40

-50

-60

-70

-80

-90

100

110
frequency
1000 10000 100000 1000000

Figure 5.6

The program Tina Pro was tried, except there is no ideal MOSFET in Tina Pro either. The
output from the circuit in figure 5.7 is shown in figure 5.8 with a frequency at 10kHz at the
input. It is only possible to do this simulation at one frequency and not over a wide range to
create a frequency response. Figure 5.8 showns which affect the switches has on the
output signal. The input has the value of 1Volt peek to peek and the frequency is set to
10kHz which means that the output signal has to have a value of 0.707 Volt peek to peek,
because 10kHz is at the -3dB point (equation 5.7).
⎛ dB ⎞ ⎛ -3⎞
− 3dB = anti Log⎜ ⎟ ⇒ anti Log⎜ ⎟ = 0.707 (5.7)
⎝ 20 ⎠ ⎝ 20 ⎠

SW1 SW2 Output


t t
C2 628p
+

C1 10n

Input
-

Figure 5.7
Page 23 of 46
T
1.00
Input
Input Output

Output
500.00m

0.749
Voltage (V)

0.00

-500.00m

-0.693

-1.00

0.00 50.00u 100.00u 150.00u 200.00u


Time (s)

Figure 5.8

Also the program Multisim 7 from Electronics Workbench was used to simulate a switch.
However that did not give a very good result, figure 5.9 shows two of the diagrams there
was tried to simulade in Multisim 7.
V2
V4
1 V 1 V
0.5usec 1usec 5 V 5 V
0.5usec 1usec

J2
J1 R3 1mV 0mV
R2 1 V 0mV
1kOhm
1kOhm

V1 R1
12 V 1kOhm V3 R4
12 V 1kOhm

Figure 5.9

5.1.1 Sub Conclusion


None of the three programs gave a relay good result, the one there presented the best
result was OrCAD 10.0. Therefore is was decided to try to fix the problem in that program,
and because that was the program there is used most until now.
Page 24 of 46

5.2 Switch Capacitor Filter parallel & Setup of the PSpice model
In the SC parallel Low-pass filter circuit in figure 5.10 the C1 is en parallel with C on the
output and the size of the C1 to make the equivalent resistor is calculated in equation 5.8.
2 × π × fC × C 2 × π × 10k × 10n
C1 = ⇒ = 628,3pF (5.8)
fS 1M
The filter response is shown on figure 5.11 with the cutoff frequency at -3dB, at 45.8kHz
and not at 10kHz as it should be the main reason for this is all the values there are in the
PSpice model of the BC246A MOSFET, these values are shown in figure 5.12. These
values can be adjusted to make a more ideal MOSFET, and to obtain a better frequency
response.

V1 = 0 V2 V1 = 0 V3
V2 = 5 V2 = 5
TD = 0 TD = 500n
TR = 0 TR = 0
TF = 0 TF = 0
PW = 500n PW = 500n
PER = 1u PER = 1u
0 0

VDB
J1 J2
BC264A BC264A

V1 C2
1Vac C1 10n
0Vdc 628p

0 0 0

Figure 5.10

Switch Capacitor Filter responce


dB filter responce
0 -3dB

-5

-10

-15

-20

-25

-30

-35

-40

-45

-50

-55
frequency
1000 10000 100000 1000000
Figure 5.11
Page 25 of 46

BC264A PSpice model


.model BC264A NJF(Beta=2m Betatce=-.5 Rd=1 Rs=1
+ Lambda=2.667m Vto=-1.249 Vtotc=-2.5m Is=33.57f
+ Isr =322.4f N=1 Nr=2 Xti=3Alpha=311.7u Vk=243.6
+ Cgd=3.35p M=.3622 Pb=1 Fc=.5 Cgs=3.598p
+ Kf=14.38E-18 Af=1)
Figure 5.12

After the PSpise model figure 5.12, hade been adjusted to the best possible (figure 5.14) a
new frequency response is created as shown in figure 5.13, this frequency response is not
ideal, but it was not possible to obtain a better frequency response. Therefore a decision
was made, to use this PSpice model (figure 5.14) for the rest of the simulations in this
paper.
Switch Capacitor Filter response with ideal MOSFET
dB filter responce
0
-3dB

-10

-20

-30

-40

-50

-60

-70

-80

-90

frequency
1000 10000 100000 1000000
Figure 5.13

New BC264 PSpice model


.model BC264A NJF(Beta=0.285m Betatce=-1.5 Rd=1
+ Rs=1 Lambda=1p Vto=-2.249 Vtotc=0 Is=0.1f
+ Isr=0.1f N=1 Nr=2 Xti=0 Alpha=0p Vk=0 Cgd=0 M=0
+ Pb=1 Fc=0 Cgs=0 Kf=0 Af=0)
Figure 5.14
Page 26 of 46

5.3 Switch Capacitor Filter Series


In the SC series circuit figure 5.15, the C1 is placed in series between the MOSFET J1’s
gate and source, the equation for the size of the equivalent resistor is the same as for the
parallel setup in equation 5.2 (1.592kΩ) the size of C1 is calculated in equation 5.9 and
equation 5.10 [6] is a control equation. The filter response in figure 5.16 is not ideal
because of the MOSFET is not ideal, because of the PSpice model in figure 5.14 has been
modified.
2 × π × fC × C2 2 × π × 10k × 10n
CS = ⇒ = 628,3pF (5.9)
fS 1M

1 1
R= ⇒ = 1.592kΩ (5.10)
CS × f S 628.3p × 1M

V1 = 0 V2 V1 = 0 V3
V2 = 5 V2 = 5
TD = 0 TD = 500n
TR = 0 TR = 0
TF = 0 TF = 0
PW = 500n PW = 500n
PER = 1u PER = 1u
0 0

VDB
J1 J2
BC264A BC264A
C1
V1 C2
1Vac 10n
0Vdc
628p

0 0

Figure 5.15

Switch Capacitor Filter Series


dB filter response
0 -3dB

-5

-10

-15

-20

-25

-30

-35

-40

-45

-50

-55
frequency
1000 10000 100000 1000000
Figure 5.16
Page 27 of 46

5.4 Switch Capacitor Filter Parallel and Series


The circuit of the SC parallel and series 5.17, is one capacitor placed in series (C1) and
one in parallel (C2) these two capacitors creates one equivalent resistor. The equation for
the size of the equivalent resistor is the equal to equation 5.2 (1.592kΩ) used in the
parallel circuit. The size of C1 and C2 together, is calculated in equation 5.11 [6]. The value
of C1 and C2 can be any size, as long as the total value produce a capacitor size of
628.3pF (equation 5.11) and equation 5.12 [6] is a control equation. In figure 5.18 C1 =
528pF and C2 = 100pF. In figure 5.19 C1 = 100pF and C2 = 528pF. In figure 5.20 C1 =
314pF and C2 = 314pF.
2 × π × fC × C2 2 × π × 10k × 10n
CS = ⇒ = 628,3pF (5.11)
fS 1M

1 1
R= ⇒ = 1.592kΩ (5.12)
(C1 + C 2 ) × fS (528 p + 100 p ) × 1M

V1 = 0 V2 V1 = 0 V3
V2 = 5 V2 = 5
TD = 0 TD = 500n
TR = 0 TR = 0
TF = 0 TF = 0
PW = 500n PW = 500n
PER = 1u PER = 1u
0 0

VDB
J1 J2
BC264A BC264A
V1
1Vac C1
0Vdc
C3
528p
10n
C2
100p
0
0
0

Figure 5.17
Switch Capacitor Filter Parallel and Series
dB filter response
0 -3dB
-5

-10

-15

-20

-25

-30

-35

-40

-45

-50

-55

-60

-65
frequency
1000 10000 100000 1000000
Figure 5.18
Page 28 of 46
Switch Capacitor Filter Parallel and Series
dB filter response
0 -3dB
-5

-10

-15

-20

-25

-30

-35

-40

-45

-50

-55

-60

-65
frequency
1000 10000 100000 1000000
Figure 5.19

Switch Capacitor Filter Parallel and Series


dB filter response
0 -3dB

-5

-10

-15

-20

-25

-30

-35

-40

-45

-50

-55

-60

-65
frequency
1000 10000 100000 1000000
Figure 5.20

5.4.1 Switch Capacitor Filter Parallel and Series sub conclusion


Figure 5.18 and 5.19 don’t show an ideal filter response, the two filter responses in figure
5.18 and 5.19 is opposite each other. That is because C1 and C2 have different values in
each case, if C1 and C2 have the same value as in figure 5.20 the two capacitors cancel
each other out and generate and perfect filter response as shown in figure 5.20. But
another reason that the filter response in figure 5.18 and 5.19 is not ideal could be
because of the MOSFET is not ideal, because of the PSpice model in figure 5.14 has been
modified.
Page 29 of 46

5.5 Switch Capacitor Filter Bilinear


In the SC bilinear circuit the capacitor C1 is placed between four MOSFETs, in figure 5.21,
this means that there always will be two MOSFETs ON at the same time (J1, J4) and (J2,
J3). This will eliminate the effect from parasite capacitors in the circuit. The equation for
the size of the equivalent resistor is the same as for the parallel circuit in equation 5.2
(1.592kΩ) and with C2 at 10nF the -3dB point should be at 10kHz but it is at 20kHz in
figure 5.22. If the sample frequency fS is changes to 2MHz the value of C1 becomes
78.5pF and the result of this gives a -3dB point at 20kHz. If the same test is don with a
sample frequency fS of 500kHz the value of C1 becomes 314pF and the result of this gives
a -3dB point at 20kHz. If the original PSpice file (figure 5.12) is used the -3dB point moves
up to 94kHz [6].
1 1 1
R= ⇒ CS = ⇒ = 157pF (5.13)
4 × CS × f S 4 × R × fS 4 × 1.592k × 1M
Q1 Q2

V1 = 0 V2 V1 = 0 V3
V2 = 5 V2 = 5
TD = 0 TD = 500n
TR = 0 TR = 0
TF = 0 TF = 0
PW = 500n PW = 500n
PER = 1u PER = 1u
0 0

VDB
J1 J2
BC264A BC264A

V1 C2
1Vac C1 10n
0Vdc Q2 157p Q1

0 0
J3 J4
BC264A BC264A

Figure 5.21

Switch Capacitor Filter Bilinear


dB filter response
0 -3dB
-5

-10

-15

-20

-25

-30

-35

-40

-45

-50

-55

-60

-65
frequency
1000 10000 100000 1000000
Figure 5.22
Page 30 of 46

5.6 Negative Switch Capacitor Trans-resistance Realization


In the negative trans-resistance realization SC circuit, figure 5.23 there is uses four
MOSFETs and the C1 is placed in series between the sours of J1 and the drain of J2.
When Q1 is high “1” the C1 is being charts and when Q2 is high “1” C1 is discharging on to
C2, the equation for C1 is the same as for the SC in parallel in equation 5.2. But as the filter
response on figure 5.24 shows, dos the SC circuit on figure 5.23 not make a Low-pass
filter response but a Band-pass response, with the -3dB points from max -36.5dB at
9.5kHz and 347kHz. If the cutoff frequency fC is changes to 100kHz then C1 becomes
6.28nF and the -3dB points from max -19.5dB moves to 6kHz and 54kHz. Then if the
cutoff frequency fC is decreased to 1kHz then C1 becomes 62.8pF and the -3dB points
from max -56dB moves to 10kHz and 3.28MHz. If the original PSpise file figure 5.12, is
used, the -3dB points from the max -36.5dB moves to 44kHz and 1.59MHz [6].
2 × π × fC × C 2 × π × 10k × 10n
C1 = ⇒ = 628,3pF (5.14)
fS 1M

V1 = 0 V2 V1 = 0 V3
V2 = 5 V2 = 5
TD = 0 TD = 500n
TR = 0 TR = 0
TF = 0 TF = 0
PW = 500n PW = 500n
PER = 1u PER = 1u 0
0
VDB

C1

J1 J2
BC264A 628p BC264A
V1 C2
1Vac 10n
0Vdc
J4
BC264A 0
J3 BC264A
0

Figure 5.23

Negative Switch Capacitor Transresistance Realization


dB filter response
Max -36.5dB
-35 -3dB

-40

-45

-50

-55

-60

-65

-70

-75

frequency
1000 10000 100000 1000000
Figure 5.24
Page 31 of 46

5.7 Positive Switch Capacitor Trans-resistance Realization


In the positive trans-resistance realization SC circuit figure 5.25 there is uses four
MOSFETs, as well as in the negative trans-resistance realization SC circuit and the C1 is
placed in the same way, the difference is that when V1 is high “1” the C1 is being
discharge and when V2 is high “1” C1 is transferring the signal on to C2, the equation for C1
is the same as for the negative trans-resistance realization equation 5.15. And the filter
response in figure 5.26 shows the same result as the negative trans-resistance realization
SC circuit in figure 5.24. The same test has been made on the positive SC trans-
resistance realization as on the negative and gave exactly the same results as on page 30.
2 × π × fC × C 2 × π × 10k × 10n
C1 = ⇒ = 628,3pF (5.15)
fS 1M

V1 = 0 V1 V1 = 0 V2
V2 = 5 V2 = 5
TD = 0 TD = 500n
TR = 0 TR = 0
TF = 0 TF = 0
PW = 500n PW = 500n
PER = 1u PER = 1u
0 0

VDB
C1 J2

J1 628p
BC264A
BC264A

V3
1Vac C2
J4
0Vdc 10n
BC264A
J3
BC264A
0
0

Figure 5.25

Positive Switch Capacitor Transresistance Realization


dB filter response
Max -36.5dB
-35 -3dB

-40

-45

-50

-55

-60

-65

-70

-75

frequency
1000 10000 100000 1000000
Figure 5.26
Page 32 of 46
5.8 Switch Capacitor Filter Conclusion
The Low-pass filter response figure 5.2 from the passive filter in figure 5.1 page 20 is used
as reference for all the SC filter simulations in this chapter. The first simulation of the
parallel SC filter figure 5.3 on page 21 did not provide the expected result, one of the
reasons for this, were that there is not used a ideal MOSFET transistor for the simulations,
and since that there is no ideal MOSFET transistor in OrCAD 10.0, some other programs
were tested, however non of them produced a ideal result either, as concluded in the 5.1.1
sub conclusion on page 23. The use of the modified PSpice file figure 5.14 on page 25 for
these simulations will have a small effect on the results. The simulation of the parallel SC
filter figure 5.13 has a small error, because the filter response does not produce a linear
response as it should. This error can be an error created by the modified PSpice model.
The simulation of the series SC filter figure 5.16 page 26 also generate a small error but
not as bad as the parallel SC filter. The simulation of the parallel and series SC filter also
generate a small error if the two SC don’t have the same size. If they have the same size
the filter response of the filter is perfect, as it is concluded in 5.4.1 sub conclusion. In the
simulation of the bilinear SC filter figure 5.22 page 29 the filter response -3dB point is
placed at 20kHz which is 10kHz above the calculated point. This error can be explained by
the modified PSpice model, it can furthermore be explained by the fact that a capacitor act
different, when it is used in a circuit where there is used high frequency as the switching
frequency there are used on the MOSFETs. The frequency response of the bilinear on
figure 5.22, shows that there are no parasitic capacitances, because the response is very
linear. That is exactly what the use of four MOSFET transistors should prevent. The
simulations of the negative and positive trans-resistance realization SC filters produce the
same results and are very fare from the expected result, which is the filter response from
figure 5.2. The reason for this is again that a capacitor act very different at high
frequencies. This concludes that the easiest and most ideal SC setup is the parallel and
series setup figure 5.17. Although the parallel SC setup figure 5.10 and the series SC
setup figure 5.15, can also be used with the knowledge of that they give a small error.
Page 33 of 46

6. State Variable Filter with Switch Capacitor


The SV filter there are constructed in chapter 4, figure 4.1 is being converted into a SV
filter using the SC technology, there was found most use full in chapter 5 which is the
parallel (figure 5.10) or series (figure 5.15) and the parallel and series (figure 5.17) SC
technologies.

6.1 State Variable Filter with Parallel or Series Switch Capacitor


In figure 6.1 all the resistors except R4 and R5 has been converted in to a SC resistor
using only the parallel or the series technology, the result of this is shown in figure 6.2
which is very close to the result from the SV filter figure 4.2, which is used as the final
result. The clock frequency for the MOSFETs are chosen to be 1MHz, because of the
choice of resistors in the SV filter (figure 4.1), many of the capacitors in the SV SC filter is
going to have the same value, even if it is used in parallel or a series SC technology. C1
and C2 was chosen to be 1nF in the SV filter, this are not change, and since the equation
for the size of the SC is the same for the parallel or the series technology there is only on
equation (equation 6.1) [7].
1 1
R= ⇒ CS = (6.1)
CS × f S R × fS
There are seven resistors there have a size of 10kΩ (R1, R2, R3, R7, R8, R9 and R10) in the
SV filter in figure 4.1, this will produce the same capacitor size which is calculated in
equation 6.2, this is the size of C3, C4, C5, C6, C7, C8, C9.
1 1
C3 = ⇒ = 100pF (6.2)
R × fS 10k × 1M
R6 has been calculated to provide a resistor size of 11kΩ in equation 4.20. The size of the
capacitor C10 is calculated to 91pF in equation 6.3 [7].
1 1
C10 = ⇒ = 91pF (6.3)
R × fS 11k × 1M
Page 34 of 46
Q1 Q2

+12Vcc
Q1 Q2
V2
V1 = 0 V4 V1 = 0 V5
12Vdc V2 = 5 V2 = 5 Q1 Q2 J1 J2
TD = 0 TD = 500n BC264A BC264A
TR = 0 TR = 0
C3
TF = 0 TF = 0
PW = 500n PW = 500n
0 V3 PER = 1u PER = 1u
0 0 J3 J4
12Vdc BC264A BC264A 100p

C4
-12Vcc
C1
Q1 Q2 -12Vcc C2
100p
1n
1n

11
TL084 -12Vcc

VDB
2 -12Vcc

11
V-
J5 J6 - TL084

VDB
R4
V1 BC264A BC264A 1 6

11
V-
OUT - TL084

VDB
1Vac C5 R5
16k
0Vdc 100p 3 7 9

V-
+ OUT -

4
U1A 16k
5 8

V+
0 + OUT

4
U1B 10

V+
0 +

4
Q1 Q2 +12Vcc Q1 Q2 0 U1C Q1 Q2 Q1 Q2

V+
+12Vcc
0
+12Vcc

J17 J18 J19 J20 J11 J12 J15 J16


BC264A BC264A BC264A BC264A BC264A BC264A BC264A BC264A
C9 C10 C7
100p 91p 100p C8
100p

0 0
0
0
Q1 Q2 -12Vcc

11
TL084

VDB
13

V-
-
J7 J8 14
BC264A BC264A OUT
C6 12
+

4
100p
U1D

V+
0 0
+12Vcc

Figure 6.1
When the outputs of the SV SC filter on figure 6.1 is compared with the outputs of the SV
figure 4.2 page 16, they are very alike, however there is a very little difference. Tthe Low-
pass response goes down to roughly -70dB at 600kHz witch is -10dB lower then in figure
4.2. The Band-pass and Band-reject responses is more sharp then in figure 4.2, this is
because both the High-pass and Low-pass responses has a bigger damping in the end of
the response roughly around -70dB where in figure they ends ad roughly -50dB.
State Variable with Switch Capacitors
dB Low-pass
0
High-pass
Band-pass
-10 Band-reject
-3dB
-20 -40dB

-30

-40

-50

-60

-70

-80

-90

frequency
1000 10000 100000 1000000 10000000
Figure 6.2
Page 35 of 46
In figure 6.3 R4 and R5 is converted in to SC resistors using the series technology
although the parallel theory is just as good and will produce the same result. The problem
by converting these two resistors to SC resistors is that they are placed next to C1 and C2
as have the value of 1nF each, and this moves the center frequency one decade up from
10kHz to 100kHz, as shown on figure 6.4. By increasing the value of C1 and C2 to 10nF
each the centre frequency is moved back to 10kHz, as shown in figure 6.6. R4 and R5
have been calculated to give 16kΩ in equation 4.19. The size of capacitor C11 and C12 is
calculated to 62.5pF in equation 6.3 [7].
1 1
C11 = ⇒ = 62.5pF (6.4)
R × fS 16k × 1M
Q1 Q2

+12Vcc
Q1 Q2
V2
V1 = 0 V4 V1 = 0 V5
12Vdc V2 = 5 V2 = 5 Q1 Q2 J1 J2
TD = 0 TD = 500n BC264A BC264A
TR = 0 TR = 0
C3
TF = 0 TF = 0
PW = 500n PW = 500n
0 V3 PER = 1u PER = 1u
0 0 J3 J4
12Vdc BC264A BC264A 100p

C4
-12Vcc
C1
Q1 Q2 -12Vcc C2
100p
1n
1n
Q1 Q2
11

TL084 -12Vcc
VDB

2 Q1 Q2 -12Vcc
11
V-

J5 J6 - TL084
VDB

V1 BC264A BC264A 1 6

11
V-

OUT - TL084

VDB
1Vac C5
3 J21 J22 7 9
0Vdc 100p

V-
+ OUT -
4

BC264A C11 BC264A


U1A 5 J23 J24 8
62.5p
V+

0 + OUT
4

BC264A BC264A
U1B C12 10
V+

0 +

4
62.5p
Q1 Q2 +12Vcc Q1 Q2 0 U1C Q1 Q2 Q1 Q2

V+
+12Vcc
0
+12Vcc

J17 J18 J19 J20 J11 J12 J15 J16


BC264A BC264A BC264A BC264A BC264A BC264A BC264A BC264A
C9 C10 C7
100p 91p 100p C8
100p

0 0
0
0
Q1 Q2 -12Vcc

11
TL084

VDB
13

V-
-
J7 J8 14
BC264A BC264A OUT
C6 12
+

4
100p
U1D

V+
0 0
+12Vcc

Figure 6.3
Switch Capacitor Filter Parallel and Series
0
dB Low-pass
High-pass
-10 Band-pass
Band-reject
-20
-3dB
-30 -47dB

-40

-50

-60

-70

-80

-90

100

110

120
frequency
1000 10000 100000 1000000 10000000
Figure 6.4
Page 36 of 46
Figure 6.6 shows the final test of the SV SC filter with parallel or series technology. A
larger diagram of figure 6.5 with the final values of C1 and C2 can be found in appendix
10.5.
Q1 Q2

+12Vcc
Q1 Q2
V2
V1 = 0 V4 V1 = 0 V5
12Vdc V2 = 5 V2 = 5 Q1 Q2 J1 J2
TD = 0 TD = 500n BC264A BC264A
TR = 0 TR = 0
C3
TF = 0 TF = 0
PW = 500n PW = 500n
0 V3 PER = 1u PER = 1u
0 0 J3 J4
12Vdc BC264A BC264A 100p

C4
-12Vcc
C1
Q1 Q2 -12Vcc C2
100p
10n
10n
Q1 Q2

11
TL084 -12Vcc

VDB
2 Q1 Q2 -12Vcc

11
V-
J5 J6 - TL084

VDB
V1 BC264A BC264A 1 6

11
V-
OUT - TL084

VDB
1Vac C5
3 J21 J22 7 9
0Vdc 100p

V-
+ OUT -
4

BC264A C11 BC264A


U1A 5 J23 J24 8
62.5p
V+

0 + OUT

4
BC264A BC264A
U1B C12 10

V+
0 +

4
62.5p
Q1 Q2 +12Vcc Q1 Q2 0 U1C Q1 Q2 Q1 Q2

V+
+12Vcc
0
+12Vcc

J17 J18 J19 J20 J11 J12 J15 J16


BC264A BC264A BC264A BC264A BC264A BC264A BC264A BC264A
C9 C10 C7
100p 91p 100p C8
100p

0 0
0
0
Q1 Q2 -12Vcc

11
TL084

VDB
13

V-
-
J7 J8 14
BC264A BC264A OUT
C6 12
+

4
100p
U1D

V+
0 0
+12Vcc

Figure 6.5

Switch Capacitor Filter Parallel and Series


0
dB Low-pass
High-pass
-10 Band-pass
Band-reject
-20
-3dB
-30 -40dB

-40

-50

-60

-70

-80

-90

100

110

120
frequency
1000 10000 100000 1000000 10000000
Figure 6.6
Page 37 of 46

6.2 State Variable Filter with Parallel and Series Switch Capacitor
The SV SC filter in figure 6.7 is created only by using the SC parallel and series
technology, which was concluded in chapter 5 to be the best way to produce an SC
resistor. All the capacitors in figure 6.5 is divided by two to make two equal capacitors to
the parallel and series technology, as used in figure 6.7 C3 to C8, C13, C14 and C17 to C22 is
calculated to be 50pF (equation 6.5), and C9 to C12 is calculated to be 31.25pF (equation
6.6), and C15and C16 is calculated to be 45.5pF (equation 6.7) [7].
⎛ 1 ⎞ ⎛ 1 ⎞
⎜⎜ ⎟⎟ ⎜ ⎟
⎝ R × fS ⎠ ⎝ 10k × 1M ⎠
C3 = ⇒ = 50pF (6.5)
2 2
⎛ 1 ⎞ ⎛ 1 ⎞
⎜⎜ ⎟⎟ ⎜ ⎟
R × f 16k × 1M ⎠
C9 = ⎝ S ⎠
⇒⎝ = 31.25pF (6.6)
2 2
⎛ 1 ⎞ ⎛ 1 ⎞
⎜⎜ ⎟⎟ ⎜ ⎟
⎝ R × fS ⎠ ⎝ 11k × 1M ⎠
C15 = ⇒ = 45.5pF (6.7)
2 2
In appendix 10.6 is there a larger diagram of figure 6.7 which is the final diagram. And the
filter response is shown on figure 6.8.
Q1 Q2

Q1 Q2 J5 J6 +12V
BC264A BC264A
Q1 Q2
C7 V4
12Vdc
V1 = 0 V2 V1 = 0 V3
V2 = 5 V2 = 5 J3 J4
TD = 0 TD = 500n BC264A BC264A 50p C8
TR = 0 TR = 0 50p
C5
TF = 0 TF = 0
PW = 500n PW = 500n
PER = 1u PER = 1u 0 0 V5
0 0 C6 12Vdc
50p
50p
C1 C2
Q1 Q2 0
-12V
10n 10n
TL084 Q1 Q2 -12V
-12V
VDB

11
2 V- TL084 Q1 Q2
- -12V
VDB

11
J1 J2 1 6 V- TL084 Q1 Q2 Q1 Q2
BC264A BC264A OUT -
VDB

V1 11
1Vac 3 J7 J8 7 9 V-
C3 + 4 BC264A BC264A OUT -
0Vdc V+ J9 J10
U1A 5 8
C9 + 4 BC264A BC264A OUT
50p U1B V+ J15 J16 J17 J18
C4 +12V 10
C11 + 4 BC264A BC264A BC264A BC264A
50p
0 C10 0 +12V U1C V+
0 31.25p
31.25p
C17 C19
C12 0 +12V
Q1 Q2 Q1 Q2 31.25p
31.25p
0 C18 C20
Q1 Q2 50p 50p
50p 50p
0
0 -12V 0
J11 J12 J13 J14
BC264A BC264A BC264A BC264A
J19 J20 TL084
VDB

11
C13 C15 BC264A BC264A V-
13
-
C21
14
C14 C16 OUT
50p 45.5p 12
50p 45.5p + 4
C22
0 50p
50p U1D V+
0 0
0 +12V
0

Figure 6.7
Page 38 of 46
Figure 6.8 shows the filter response of figure 6.7, the filter response on figure 6.8 is almost
identical to the filter response from the SV filter in figure 4.2 page 16, which is used as
result reference for the SV SC filter response. One of the larger differences between the
two filter responses is that the Band-reject on figure 6.8 goes down to -52dB, but this is not
a major error because it is the Band-reject response, and because in the Band-reject
response a larger damping is in most cases a good thing. The important part is that the -
3dB point is exactly on the place it have to be.
Switch Capacitor Filter Parallel and Series
0
dB Low-pass
High-pass
-10 Band-pass
Band-reject
-20 -3dB
-52dB
-30

-40

-50

-60

-70

-80

-90

100

110
frequency
1000 10000 100000 1000000 10000000
Figure 6.8
Page 39 of 46

7. Conclusion
The SV filter in chapter 4 figure 4.1 is constructed with a TL084 opamp and this creates
some limitations of the SV filter operation area. The bandwidth of the TL084 is only 3MHz
and this means that the fC frequency of the filter roughly can go up to 100kHz which is
more than enough for the filter to be used for audio applications. The Q value of the filter
was tested up to 200, this produce a value of R6 in figure 4.1 of 5.99MΩ, which is a very
large resistor. However it will be a very small capacitor of 0.17pF with a clock frequency of
1MHz, which is achievable in a SC filter. In chapter 5 it was found out that the parasitic
capacitors in the MOSFET has a very large influence on the filter response and to avoid
this the PSpice model in figure 5.12 was modified to produce a more accurate filter
response. The PSpice model used is provided in figure 5.14 on page 25. With the new
PSpice model all the SC circuits was tested, and the result of this is that the SC parallel
and series in figure 5.17 provides the best result with two equal capacitors, as concluded
in 5.8 SC filter conclusion on page 32. In chapter 6 the SV filter from chapter 4 figure 4.1 is
converted in to a SV filter using SC resistors, the first filter figure 6.5 uses parallel or series
technology and the result is shown in figure 6.6 the second SV SC filter uses the parallel
and series technology and the result is shown in figure 6.8 and is very similar to figure 6.6
but the second filter figure 6.7, is a little better then the first one figure 6.5. There was also
tried to simulate a SV filter using only the SC bilinear technology but this was not possible
to archive a result from OrCAD 10.0 and the same happened when the negative and
positive SC trans-resistance realization was tried. The SV filter in figure 4.1 uses the
TL084 opamp which has its disadvantages, it only has a bandwidth of 3MH and is has to
use ±12V, but it can easily be replaced with another opamp that has a bigger bandwidth
and a lot smaller supply voltage, and a mush better slew rate which is typically 13V/µs in
the TL084 opamp. If the SV filter is to be build in practice. The SV SC filter is almost
impossible to build in practice, because of all the MOSFET, if it was to be build in practice
it will use a lot of space and the MOSFET has to have some very similar parameters
before it will work, the only reasonable way to construct a SV SC filter is to do it in a IC i.e.
a DSP, PIC or FPGA. In appendix 10.2 there is provided two timetables one from befor the
project began and on after the project was finished, and the two timetables is very similar,
some of the dates have been changes but all in all the timetable have been followed to
satisfaction.

_________________________________
23/04/2006 Klaus Jorgensen
Page 40 of 46

8. References
[1]. Analog Filters 5th edition 1996, by. Kendall L. Su
ISBN: 0-412-63840-1
[2]. http://www.mtmi.vu.lt
[3]. http://focus.ti.com/lit/ds/symlink/uaf42.pdf
[4]. http://pdfserv.maxim-ic.com/en/ds/MAX7490-MAX7491.pdf
[5]. http://cache.national.com/ds/LM/LMF100.pdf
[6]. Operational Amplifiers 5th edition, by. George Clayton & Steve Winder
ISBN: 07506-5914-9
[7]. Mixed-Signals Design Seminar, by. Analog Devices
ISBN: 0-916550-08-7
[8]. http://www.datasheetarchive.com/search.php?search=TL084&sType=part

9. Bibliography
• Allen/Holberg: Chapter 9 (12/19/97)
http://www.ece.utexas.edu/~holberg/lecture_notes/bk9.pdf
• Analog Filters 5th edition 1996, by. Kendall L. Su
ISBN: 0-412-63840-1
• Analog MOS integrated circuits, by. Paul R. Gray, David A. Hodges and Robert W.
Brodersen.
ISBN: 0-87942-142-8
• Mixed-Signals Design Seminar, by. Analog Devices
ISBN: 0-916550-08-7
• Operational Amplifiers 5th edition, by. George Clayton & Steve Winder
ISBN: 07506-5914-9
Page 41 of 46

10. Appendix

10.1 Project Proposal


Page 42 of 46

10.2 Time Plans


Time plan from the 20 of October 2005

Final time plane from the 1 of May 2006


Page 43 of 46

10.3 Derivation of equation


Derivation of equation 4.20
⎛ ⎞
⎜ ⎟
R6 + R7 ⎜ 1 R4 × C1 ⎟⇒
Q= × ×
R7 ⎜⎛ 1 1 1 ⎞ R2 × R3 × R5 × C2 ⎟
⎜⎜ + + ⎟ ⎟
⎝ ⎝ R1 R2 R3 ⎠ ⎠
R7 1 ⎛ R4 × C1 ⎞
Q× = × ⎜ ⎟⇒
R6 + R7 ⎛ 1 1 1 ⎞ ⎝ R2 × R3 × R5 × C2 ⎠
⎜ + + ⎟
⎝ R1 R2 R3 ⎠
1 ⎛ R4 × C1 ⎞
× ⎜ ⎟
⎛ 1 1 1 ⎞ ⎝ R2 × R3 × R5 × C2 ⎠
⎜ + + ⎟
R7 R1 R2 R3 ⎠
=⎝ ⇒
R6 + R7 Q
1 ⎛ R4 × C1 ⎞
× ⎜ ⎟
⎛ 1 1 1 ⎞ ⎝ R2 × R3 × R5 × C2 ⎠
⎜ + + ⎟
1 ⎝ R1 R2 R3 ⎠
= ⇒
R6 + R7 (Q × R7 )
R6 + R7 =
(Q × R7 ) ⇒
1 ⎛ R4 × C1 ⎞
× ⎜ ⎟
⎛ 1
+
1
+
1 ⎞ ⎝ R2 × R3 × R5 × C2 ⎠
⎜ ⎟
⎝ R1 R2 R3 ⎠
R6 =
(Q × R7 ) − R7
1 ⎛ R4 × C1 ⎞
× ⎜ ⎟
⎛ 1
+
1
+
1 ⎞ ⎝ R2 × R3 × R5 × C2 ⎠
⎜ ⎟
⎝ R1 R2 R3 ⎠

Derivation of equation 5.5


f S × CS
fC = ⇒
2× π×C
f C × 2 × π × C = f S × CS ⇒
fC × 2 × π × C
= CS
fS
Page 44 of 46

10.4 Vpulse in OrCAD


Setting the part parameters of the Vpulse in OrCAD

Double click on the resistance or capacitor, and the corresponding value of a resistance or
a capacitance can be changed. Double click on the pulse voltage source. Set the
following parameters for the source.

V1: The minimum voltage of the pulse


V2: The maximum voltage of the pulse
TD: The delay from time zero of the first rising edge
TR: Rise time
TF: Fall time
PW: Pulse width
PER: Period time
Q1 Q2

+12Vcc
Q1 Q2
V2
V1 = 0 V4 V1 = 0 V5
12Vdc V2 = 5 V2 = 5 Q1 Q2 J1 J2
TD = 0 TD = 500n BC264A BC264A
TR = 0 TR = 0
C3
TF = 0 TF = 0
PW = 500n PW = 500n
0 V3 PER = 1u PER = 1u
0 0 J3 J4
12Vdc BC264A BC264A 100p

C4
-12Vcc
C1
Q1 Q2 -12Vcc C2
100p
10n
10n
Q1 Q2

11
TL084 -12Vcc

VDB
2 Q1 Q2 -12Vcc

11

V-
J5 J6 - TL084

VDB
V1 BC264A BC264A 1 6

11

V-
1Vac C5 OUT - TL084
VDB

3 J21 J22 7 9
0Vdc 100p

4
V-
+ BC264A C11 BC264A OUT -
U1A 5 J23 J24 8
62.5p

V+
0 + BC264A BC264A OUT
U1B C12 10
4

V+
0 +
0 62.5p
Q1 Q2 +12Vcc Q1 Q2 U1C Q1 Q2 Q1 Q2
V+

+12Vcc
0
+12Vcc

J17 J18 J19 J20 J11 J12 J15 J16


BC264A BC264A BC264A BC264A BC264A BC264A BC264A BC264A
C9 C10 C7
100p 91p 100p C8
100p

0 0
0
0
Q1 Q2 -12Vcc
11

TL084
VDB

13
V-

-
J7 J8 14
BC264A BC264A OUT
C6 12
4

+
100p
U1D
10.5 State Variable Filter with Parallel or Series Switch Capacitor

V+

0 0
+12Vcc
Page 45 of 46
Q1 Q2

Q1 Q2 J5 J6 +12V
BC264A BC264A
Q1 Q2
C7 V4
12Vdc
V1 = 0 V2 V1 = 0 V3
V2 = 5 V2 = 5 J3 J4
TD = 0 TD = 500n BC264A BC264A 50p C8
TR = 0 TR = 0 50p
C5
TF = 0 TF = 0
PW = 500n PW = 500n
PER = 1u PER = 1u 0 0 V5
0 0 C6 12Vdc
50p
50p
C1 C2
Q1 Q2 0
-12V
10n 10n
TL084 Q1 Q2 -12V
11 -12V

VDB
2 V- TL084 Q1 Q2
- 11 -12V

VDB
J1 J2 1 6 V- TL084 Q1 Q2 Q1 Q2
BC264A BC264A OUT - 11
V1
VDB

1Vac 3 J7 J8 7 9 V-
C3 + 4 BC264A BC264A OUT -
0Vdc V+ J9 J10
U1A 5 8
C9 + 4 BC264A BC264A OUT
50p U1B V+ J15 J16 J17 J18
C4 +12V 10
C11 + 4 BC264A BC264A BC264A BC264A
50p V+
0 C10 0 +12V U1C
0 31.25p C17 C19
31.25p
C12 0 +12V
Q1 Q2 Q1 Q2 31.25p
31.25p
0 C18 C20
Q1 Q2 50p 50p
50p 50p
0
0 -12V 0
J11 J12 J13 J14
BC264A BC264A BC264A BC264A
J19 J20 TL084 11
VDB

C13 C15 BC264A BC264A V-


13
-
C21
14
C14 C16 OUT
50p 45.5p 12
50p 45.5p
C22 + 4
10.6 State Variable Filter with Parallel and Series Switch Capacitor

0 50p U1D V+
50p
0 0
0 +12V
0
Page 46 of 46

You might also like