Escolar Documentos
Profissional Documentos
Cultura Documentos
search tips
advanced search
search
site search by freefind
HOME
SPICE
EDUCATION
NEWS
Welcome to Spiceguy.net.
Today is: Sunday July 20, 2014
Measuring Capacitance
This page shows how to measure input capacitance on an inverter, first using AC Analysis frequency
response and then again using transient analysis for comparison.
1/5
7/20/2014
*
* #####################################################################
* ################ Start AC Analysis for net: "A"
##############
* ################ >> Can only run one net at a time <<
##############
* #####################################################################
*
* Net "A" voltage source has vdd/2 DC bias and 1mV RMS AC bias:
*
VINAC_A A VSS DC 'pvdd2' AC 1mV
*
* .NET starts the AC Network Analysis (VINAC.. is input voltage source) :
* ------------------------------------------------------------------* Syntax for 1-port : .net VINAC <--- using this one and measuring ZIN.
* Syntax for 2-ports: .net v(out_node) VINAC
* -----------------------------------------*
.NET VINAC_A
*
* These are the real (ZR_A) and imaginary parts (ZI_A) of input impedance (ZIN) :
*
*measure ac ZR_A FIND ZIN(R) AT = 'pfreq' (commented out/see below for "res_A")
.measure ac ZI_A FIND ZIN(I) AT = 'pfreq'
*
* General Impedance: ZIN = ZR + j x ZI (where j = sqrt(-1)
*
* so we have: j x ZI = 1/(j x omega x Cin) --> ZI = -1/(omega x Cin)
*
* ---> Cin = abs (1/(omega x ZI_A)), where omega = 2 x pi x f and abs is absolute value.
* ---> Cin = abs (1/(2 x pi x f x ZI_A))
*
.measure ac c_comp_A param ='abs(1.0/(2.0*pi*pfreq*ZI_A))'
.measure ac res_A
FIND ZIN(R) AT = 'pfreq'
*
*
********===============================================================********
**************** Output Signals
****************
********===============================================================********
*
.probe ac ZIN(R) ZIN(I)
*
********===============================================================********
2/5
7/20/2014
op point 0.00 1 7
ac analysis 0.00 61 61
readin 0.11
errchk 0.03
setup 0.01
output 0.00
total cpu time 0.15 seconds
job started at 11:53:10 05/19/2007
job ended at 11:53:13 05/19/2007
3/5
7/20/2014
4/5
7/20/2014
readin 0.11
errchk 0.04
setup 0.00
output 0.00
total cpu time 0.16 seconds
job started at 14:28:16 05/19/2007
job ended at 14:28:23 05/19/2007
[Back to Top]
Send email to Doran@Spiceguy.net with questions or comments about this web site. Copyright 2011 by Spiceguy.net. Last modified: 12/09/
http://spiceguy.net/CapacitanceMeasurement.htm
5/5