SPICE Problem: .probe card ignored

Discussion in 'Programmer's Corner' started by Alliraph, Apr 12, 2009.

  1. Alliraph

    Thread Starter New Member

    Apr 12, 2009
    3
    0
    Hi, I'm new to SPICE. I'm using MacSpice to simulate a TL072 amplifier circuit. The following is my code:

    OPAMP AMPLIFIER
    *
    VS 1 0 AC 1 SIN (0 1 40Hz)
    *
    R2 2 0 430
    R1 2 5 15K
    C1 2 5 1n
    XOP 1 2 3 4 5 TL072
    VPOS 3 0 5
    VNEG 0 4 5
    *
    * TL072 OPERATIONAL AMPLIFIER "MACROMODEL" SUBCIRCUIT
    * CREATED USING PARTS RELEASE 4.01 ON 06/16/89 AT 13:08
    * (REV N/A) SUPPLY VOLTAGE: +/-15V
    * CONNECTIONS: NON-INVERTING INPUT
    * | INVERTING INPUT
    * | | POSITIVE POWER SUPPLY
    * | | | NEGATIVE POWER SUPPLY
    * | | | | OUTPUT
    * | | | | |
    .SUBCKT TL072 1 2 3 4 5
    *
    C1 11 12 3.498E-12
    C2 6 7 15.00E-12
    DC 5 53 DX
    DE 54 5 DX
    DLP 90 91 DX
    DLN 92 90 DX
    DP 4 3 DX
    EGND 99 0 POLY(2) (3,0) (4,0) 0 .5 .5
    FB 7 99 POLY(5) VB VC VE VLP VLN 0 4.715E6 -5E6 5E6 5E6 -5E6
    GA 6 0 11 12 282.8E-6
    GCM 0 6 10 99 8.942E-9
    ISS 3 10 DC 195.0E-6
    HLIM 90 0 VLIM 1K
    J1 11 2 10 JX
    J2 12 1 10 JX
    R2 6 9 100.0E3
    RD1 4 11 3.536E3
    RD2 4 12 3.536E3
    RO1 8 5 150
    RO2 7 99 150
    RP 3 4 2.143E3
    RSS 10 99 1.026E6
    VB 9 0 DC 0
    VC 3 53 DC 2.200
    VE 54 4 DC 2.200
    VLIM 7 8 DC 0
    VLP 91 0 DC 25
    VLN 0 92 DC 25
    .MODEL DX D(IS=800.0E-18)
    .MODEL JX PJF(IS=15.00E-12 BETA=270.1E-6 VTO=-1)
    .ENDS
    *
    * ANALYSIS
    .AC DEC 100 1 100K
    .PROBE
    .END
    *************************************
    As I simulated it, it prompt this message:

    Circuit: OPAMP AMPLIFIER
    Note: MacSpice converts spice2 'polys' to spice3 'B' sources, use 'listing physical expand' to inspect the result(s).
    Note: Spice2 'poly' source translated at line 30.
    Note: Spice2 'poly' source translated at line 31.
    On line 52: .model op:jx pjf(is=15.00e-12 beta=270.1e-6 vto=-1)
    Missing level parameter - using level=1
    On line 57: .probe
    Warning: .probe control card ignored.

    I wonder what's wrong with the .probe? Do I miss something? And what does it mean "Missing level parameter - using level=1"? Can anyone please shed some light on these problems? Thanks in advance.

    Btw, I got the TL072 model from Internet.
     
  2. Alliraph

    Thread Starter New Member

    Apr 12, 2009
    3
    0
    Hi,

    I just found that .Probe is a PSPICE command, and MacSpice does not recognize it. So I change to this:

    .PLOT dB(V(5))

    And I've also added the level parameter (level=1) to the model. But nothing was generated other than this message:

    Note: MacSpice converts spice2 'polys' to spice3 'B' sources,
    use 'listing physical expand' to inspect the result(s).
    Note: Spice2 'poly' source translated at line 30.
    Note: Spice2 'poly' source translated at line 31.

    So I typed "listing physical expand", and got these:

    OPAMP AMPLIFIER

    1 : OPAMP AMPLIFIER
    3 : vs 1 0 ac 1 sin(0 1 40hz)
    5 : r2 2 0 430
    6 : r1 2 5 15k
    7 : c1 2 5 1n
    23 : c:eek:p:1 op:11 op:12 3.498e-12
    24 : c:eek:p:2 op:6 op:7 15.00e-12
    25 : d:eek:p:c 5 op:53 op:dx
    26 : d:eek:p:e op:54 5 op:dx
    27 : d:eek:p:lp op:90 op:91 op:dx
    28 : d:eek:p:ln op:92 op:90 op:dx
    29 : d:eek:p:p 4 3 op:dx
    30 : * egnd 99 0 poly(2) (3,0) (4,0) 0 .5 .5
    30 : b:eek:p:sp2_egnd op:99 0 v=(0+v(3)*.5+v(4)*.5)
    31 : * fb 7 99 poly(5) vb vc ve vlp vln 0 4.715e6 -5e6 5e6 5e6 -5e6
    31 : b:eek:p:sp2_fb op:7 op:99 i=(0+i(v:eek:p:b)*4.715e6+i(v:eek:p:c)*(-5e6)+i(v:eek:p:e)*5e6+i(v:eek:p:lp)*5e6+i(v:eek:p:ln)*(-5e6))
    32 : g:eek:p:a op:6 0 op:11 op:12 282.8e-6
    33 : g:eek:p:cm 0 op:6 op:10 op:99 8.942e-9
    34 : i:eek:p:ss 3 op:10 dc 195.0e-6
    -- hit return for more, ? for help --
    35 : h:eek:p:lim op:90 0 v:eek:p:lim 1k
    36 : j:eek:p:1 op:11 2 op:10 op:jx
    37 : j:eek:p:2 op:12 1 op:10 op:jx
    38 : r:eek:p:2 op:6 op:9 100.0e3
    39 : r:eek:p:d1 4 op:11 3.536e3
    40 : r:eek:p:d2 4 op:12 3.536e3
    41 : r:eek:p:eek:1 op:8 5 150
    42 : r:eek:p:eek:2 op:7 op:99 150
    43 : r:eek:p:p 3 4 2.143e3
    44 : r:eek:p:ss op:10 op:99 1.026e6
    45 : v:eek:p:b op:9 0 dc 0
    46 : v:eek:p:c 3 op:53 dc 2.200
    47 : v:eek:p:e op:54 4 dc 2.200
    48 : v:eek:p:lim op:7 op:8 dc 0
    49 : v:eek:p:lp op:91 0 dc 25
    50 : v:eek:p:ln 0 op:92 dc 25
    51 : .model op:dx d(is=800.0e-18)
    52 : .model op:jx pjf(is=15.00e-12 beta=270.1e-6 vto=-1 level=1)
    9 : vpos 3 0 5
    10 : vneg 0 4 5
    56 : .ac dec 100 1 100k

    The problem is, I have no idea where and what to figure out in the codes. How can I plot the frequency response for the circuit?

    Thanks.
     
  3. Alliraph

    Thread Starter New Member

    Apr 12, 2009
    3
    0
    Can someone please help? :(
     
Loading...