Created by Created May 11, 2012 Last modified May 11, 2012 Tags

### Summary

Another version of a behavioural capacitor where the capacitance is programmable
by the voltage on the 'capacitance' net.
A 1uF capacitor is shown for reference.

### Description

Another version of a behavioural capacitor where the capacitance is programmable by the voltage on the 'capacitance' net. A 1uF capacitor is shown for reference.

Changing the expression to V(a)*(I(R2.nA) would allow the capacitance to be programmed by the current in R2.

The expression can be scaled. For example:

V(a)*1u*V(capacitance)


would produce a 1uF capacitor with a V(capacitance) of 1V rather than 1uV.

BEWARE! A negative value of control parameter will produce a negative capacitance. Adding an ABS() function will prevent this:

V(a)*ABS(V(capacitance))