Voltage dependent capacitor model

Hi,
I am trying to make a Voltage dependent capacitor model but I have some troubles and I was wondering if someone could help.

The idea is to vary the capacitance of this capacitor depending on the voltage across its terminals. This can emulate then a MOSFET output capacitance.

My model is actually trying to implement something similar to this.

The problem is probably the wrong syntax of G source.

Here is the model I have done.
VD_CAP.qsch (6.1 KB)

@toms

The issue causing the error is the last comma on the last table pair. Remove it and the error is gone.

You might have other issues but get rid of this one, you can move forward.

Len

1 Like

Hi @lpoma ,
Shortly after I posted the issue, I have found it and fixed it. It now works as expected.
For anyone who might be interested here it is. Run the VD_CAP_test.

VD_CAP.qsch (7.0 KB)
VD_CAP_test.pfg (192 Bytes)
VD_CAP_test.qsch (3.6 KB)

1 Like