Rules | Recent posts | topic RSS | Search | Register  | Log in

simulating switch capacitor resistor

 
Post new topic  Reply to topic    EDAboard.com Forum Index -> Analog Circuit Design
Author Message
Usman Hai



Joined: 08 Apr 2004
Posts: 109
Helped: 1
Location: Canada


Post10 May 2008 22:27   simulating switch capacitor resistor

Hi. I am simulating the switch capacitor circuit to realize a resistor (say). The operation is as follows: On phase phi1, V1 is sampled across capacitor C. The next overlapping phase phi2, V2 gets sampled. The difference of these voltages causes the current flow. Its all quite simple.
When I simulate with all the ideal components in spectre, I get current spikes at the switching time instants. In books it is said that average current will flow between V1 and V2. Now my question is how to find this average current. There are just spikes of current (these spikes, I assume, are perfectly fine).
My actual aim is to use this switched cap resistor inside a continuous time circuit to say bias point of something. So that when switching frequency increases I will get higher current.
Regards,
Back to top
LvW



Joined: 07 May 2008
Posts: 356
Helped: 63
Location: Germany


Post11 May 2008 14:24   Re: simulating switch capacitor resistor

The average current is determined by the spikes; however it is hard to measure resp. simulate it. You can, for instance, increase the resistance of the switch with the result of broader spikes.

But the best and most illustrative way is to simulate the SC part within the whole circuit. In most cases the voltage V2 is identical with the inverting terminal of an opamp (virtual ground) - resulting in a charge transfer from the switched C to the feedback hold capacitor.
LvW
Back to top
Usman Hai



Joined: 08 Apr 2004
Posts: 109
Helped: 1
Location: Canada


Post12 May 2008 15:30   Re: simulating switch capacitor resistor

@LvW
Thanks. But i still have some questions. For example I want to use this switched cap resistor to set up the bias current in the current mirror. Is it possible to do this?
My aim is to get the bias current based on the value of the capacitor.
I know there are many experts in this forum, please please help.
Regards,
/Noman Hai
Back to top
LvW



Joined: 07 May 2008
Posts: 356
Helped: 63
Location: Germany


Post12 May 2008 16:55   Re: simulating switch capacitor resistor

Well, its not so easy since this seems to be a quite new design.
At first, the following idea has come to my mind:

The current mirror has to be biased by a current source.
An OTA is a rather good current source with a current which can be controlled by a resistor setting the transconductance gm.
Thus, with a fixed input voltage and a variable SC-resistor as a gm control unit an OTA could perhaps be used to bias your mirror.
Hope I understood the task well.

LvW

One final remark: Donīt forget that S/C-resistors are not continuous time units. Therefore, filtering/smoothing is necessary. And, as a result, the bias current will never reach the accuracy of DC.
Back to top
Post new topic  Reply to topic    EDAboard.com Forum Index -> Analog Circuit Design
Page 1 of 1 All times are GMT + 2 Hours


Abuse
Administrator
Moderators
topic RSS 
sitemap