Tim said:
Is there any such thing as a box you can put on a node to measure its
capacitance? XSPICE (or some variants thereof) at least comes with a
"CMETER" entity, but it only appears to measure passives, not dynamic
(semiconductor junction or synthesized) capacitances. How useless.
There's always the old charge-it-with-a-waveform (usually CCS to make a
voltage ramp, or voltage ramp to make current), then C = I / (dV/dt), but
that obviously doesn't work if there's bias or leakage current.
Tim
I've been hashing a little with LTspice lately with making a model or
sort of for an SCR.
I've succeeded in making a sub circuit connectable in a block using the
primitive functions of spice, current sources, voltages sources etc..
but would like to get a better understanding of the model code itself.
It seems that finding the resources needed for the actual event
variables that you need to access in your model code and label variables
for C, R, L on inputs and outputs etc are hard to locate..
I do programming in various languages so I have a good idea on how
this should all work. I have looked at various models already and have
gotten many of my questions answered how ever, It would be nice if there
was a plain document on the step by step of the primitive variables that
are involved and the names of them you need to know in the model code.
Set sizes , cycle count and things of that sort, so that one can
quickly put together a working step circuit.. if you get my drift.
The help file, as good as it is, offers you all the math functions and
the like but it seems to come in short when it wants you to understand
the under layer of what is to be taken place.
For example, I saw in one example the use of ro, lo, co, ri, ci, li to
indicate the basic elements R,L,C in the input or output which makes
perfect sense how ever, If that is to be primitive variables of spice, I
can't find that documented? Or, what I saw isn't what it is.
Years ago in college I didn't use anything like spice, we did it all
on paper and slide rules. Then I got my first TI si calculator and that
was a big jump for me
Jamie