VLSI Switched capacitor not working as planend

Thread Starter

Robin Mitchell

Joined Oct 25, 2009
819
Hi everyone!

Im currently working on an analogue assignment where you take a square wave and convert it into a sine wave. So the method that is suggested and looks nice is to use a sallen-key low pass amplifier.

Now I have it done....if the world was ideal. My circuit works fine if I use resistors but because the second half of the assignemnt is to intergrate this thing into VLSI a 10Mega ohm resistor is not a good idea, unless you use a switched capacitor.

So I have designed and done the math!
R = 1/fC
R = 10 Meg
C = 10fF
Therefore f should be 10Mhz. Thats fine, I made a ring oscillator to do this. So I wire it all up (in S-Edit) and it just goes

It looks like that it has a considerbly lower resistance that it should. I checked the ring oscillator output, its fine. I replaced it with a function generator, nope, still same problem. If I remove the switch capacitors with resistors it works no question. What the darn is going on?

The program uses T-Spice to run (its the same as regular SPICE except it has thyme in it as well).

Here is the filter


Here is the switched capacitor
 

Thread Starter

Robin Mitchell

Joined Oct 25, 2009
819
I think I have an idea on what the problem is.
Assuming that SPICE is taking into account the stray capacitances, the sizes of this capacitance could be comparible to the capacitance of the switched capacitor. I will try a switched capacitor of 200fF and see if it follows the standard equation.
 

Thread Starter

Robin Mitchell

Joined Oct 25, 2009
819
Figured it out >:|

Example:
Wanted R = 2Mohm
Used C = 500fF @ 1Mhz

Results:
R Actual = 1.63Mohm
Calculated C = 611fF
Stray C = 111fF

Now it works fine ;)
I have done other tests taking the 111fF into account and it works fine ^_^

Thank you so much crutschow for your help, i would have never though about stray capacitance!
 
Top