Micro-Cap v7.1.6 / RM
.PDFIndependent sources (V and I sources)
SPICE format
Syntax for the voltage source
Vname <plus> <minus> [[DC ] value]
+[AC magval [phaseval]]
+[PULSE v1 v2 [td [tr [tf [pw [per]]]]]]
OR [SIN vo va [f0 [td [df [ph]]]]]
OR [EXP v1 v2 [td1 [tc1 [td2 [tc2 ]]]]]
OR [PWL t1 v1 t2 v2 ...[tn , vn]] OR [SFFM vo va f0 [mi [fm]]]
Syntax for the current source
Iname <plus> <minus> [[DC ] value]
+[AC magval [phaseval]]
+[PULSE i1 i2 [td [tr [tf [pw [per]]]]]]
OR [SIN io ia [f0 [td [df [ph]]]]]
OR [EXP i1 i2 [td1 [tc1 [td2 [tc2 ]]]]]
OR [PWL t1 i1 t2 i2 ...[tn , in]] OR [SFFM io ia f0 [mi [fm]]]
The only difference between the voltage and current independent source is the use of V and I for the first character of the name.
Example
V1 10 20 DC 1 PULSE 0 1MA 12ns 8ns 110ns 240ns 500ns
Schematic format
These are the V and I sources from the Analog Primitives / Waveform Sources group of the Component menu.
PART attribute <name>
Example
V1
VALUE attribute
<value> where value is identical to the SPICE format without the name and the plus and minus node numbers.
399
Example
DC 1 PULSE 0 1MA 12ns 8ns 110ns 240ns 500ns
Equations
The equations and sample waveforms that follow are for transient analysis only. AC analysis uses AC magval (volts) and AC phaseval (degrees) to set the amplitude and phase of the small signal stimulus. TSTEP is the print interval. TSTOP is the run time. These values are obtained from the Analysis Limits dialog box. For SPICE files, MC7 obtains these values from the
.TRAN statement and copies them to the Analysis Limits dialog box.
EXP type |
|
|
|
Name |
Description |
Units |
Default |
v1 |
Initialvalue |
V or A |
None |
v2 |
Peak value |
V or A |
None |
td1 |
Rise delay |
S |
0 |
tc1 |
Rise time constant |
S |
TSTEP |
td2 |
Fall delay |
S |
td1+TSTEP |
tc2 |
Fall time constant |
S |
TSTEP |
The waveform value generated by the EXP option is as follows:
Time interval |
Value |
||||
0 to td1 |
v1 |
||||
td1 to td2 |
v1+(v2-v1)•(1-e-(TIME-td1)/tc1) |
||||
td2 to TSTOP |
v1+(v2-v1)•((1-e-(TIME-td1)/tc1)-(1-e-(TIME-td2)/tc2)) |
||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Figure 22-6 Waveform for "EXP 1 2 150n 50n 550n 100n"
400 Chapter 22: Analog Devices
PULSE type |
|
|
|
Name |
Description |
Units |
Default |
v1 |
Initialvalue |
V or A |
None |
v2 |
Pulse value |
V or A |
None |
td |
Delay |
S |
0 |
tr |
Rise time |
S |
TSTEP |
tf |
Fall time |
S |
TSTEP |
pw |
Pulse width |
S |
TSTOP |
per |
Period |
S |
TSTOP |
The waveform value generated by the PULSE option is as follows:
From |
To |
Value |
|
0 |
td |
v1 |
|
td |
td+tr |
v1 |
+((v2-v1)/tr)•(T-td) |
td+tr |
td+tr+pw |
v2 |
|
td+tr+pw |
td+tr+pw+tf v2 |
+((v1-v2)/tf)•(T-td-tr-pw) |
|
td+tr+pw+tf |
per |
v1 |
|
where From and To are T values, and T=TIME mod per. The waveform repeats every per seconds.
Figure 22-7 Waveform for "PULSE .4 1.6 .1u .1u .2u .1u .5u"
401
SIN type |
|
|
|
Name |
Description |
Units |
Default |
vo |
Offset value |
V or A |
None |
va |
Peak amplitude |
V or A |
None |
f 0 |
Frequency |
Hz |
1/TSTOP |
td |
Delay |
s |
0 |
d f |
Damping factor |
s-1 |
0 |
ph |
Phase |
degrees |
0 |
The waveform value generated by the SIN option is as follows:
From |
To |
Value |
|||
0 |
|
td |
vo |
||
td |
TSTOP |
vo+va•sin(2•π •(f0•(T-td)+ph/360))•e-(T-td)•df |
|||
|
|
|
where T = Transient analysis time |
||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Figure 22-9 Waveform for "SIN 1 1 10Meg 100n 5E6 "
403
Inductor
SPICE format
Syntax
L<name> <plus> <minus> [model name] <value> [IC=<initial current>]
Examples
L1 2 3 1U
L2 7 8 110P IC=2
<plus> and <minus> are the positive and negative node numbers. Positive current flows into the plus node and out of the minus node.
Schematic format
PART attribute <name>
Examples
L5
L1
VALUE attribute
<value> [IC=<initial current>]
Examples 1U
110U IC=3 10U*(1+I(L10)/100)
FREQ attribute [fexpr]
Examples 1.2mh+5m*(1+log(F))
MODEL attribute [model name]
Examples
LM
L_MODEL
406 Chapter 22: Analog Devices