Triangular/Square-Wave VCO with LM13600 PSpice netlist

Discussion in 'The Projects Forum' started by bjes, Apr 29, 2013.

  1. bjes

    Thread Starter New Member

    Apr 29, 2013
    9
    0
    Hello,
    i've been trying to write a PSpice netlist for the schematic provided but have been unable so far to get it working.

    Could anyone help me with the netlist ?

    Thank you very much.
     
  2. t06afre

    AAC Fanatic!

    May 11, 2009
    5,939
    1,222
    Given that this is not some homework assignment using Spice. Would it not be more easy to download the free version of LTspice http://www.linear.com/designtools/software/ Draw the schematic, and let the software do the rest
     
  3. bjes

    Thread Starter New Member

    Apr 29, 2013
    9
    0
    This is my netlist input (LM13600 and transistor models omitted)
    ******************************************************
    *Triangular/Square Wave VCO

    *
    * Amplifier Bias Input
    * | Diode Bias
    * | | Positive Input
    * | | | Negative Input
    * | | | | Output
    * | | | | | Negative power supply
    * | | | | | | Buffer Input
    * | | | | | | | Buffer Output
    * | | | | | | | | Positive power supply
    * | | | | | | | | |
    X1 1 2 3 4 5 6 7 8 11 LM13600/NS

    X2 1 2 3 4 5 6 7 8 11 LM13600/NS
    **********ZDROJE*****************
    VpL1 0 4 15V
    VpL2 0 9 15V
    VpL3 0 14 15V
    Vmi1 0 5 -15V
    Vmi2 0 17 -15V
    Vmi3 0 16 -15V
    Vc 0 7 4V
    **********PASIVNE****************
    R1 7 6 30k
    R2 6 0 1T
    R3 12 3 51k
    RA 1 0 5.1k
    R5 15 16 10k
    C 6 0 200p
    ********TRANZISTORY**************
    Q1 9 6 8 Q2N2222
    Q2 9 8 10 Q2N2222
    Q3 14 3 13 Q2N2222
    Q4 14 13 15 Q2N2222
    *********************************

    And a scheme with node notation included.
     
  4. bjes

    Thread Starter New Member

    Apr 29, 2013
    9
    0
    Yeah i guess it would be easier but there's no LM13600 in LTspice :/
     
  5. bertus

    Administrator

    Apr 5, 2008
    15,648
    2,347
  6. t06afre

    AAC Fanatic!

    May 11, 2009
    5,939
    1,222
    You can add your own spice models in LT spice that is no problem at all. I am sure you can find some tutorial. Just use Google
     
  7. bjes

    Thread Starter New Member

    Apr 29, 2013
    9
    0
    Hello again,

    i've been trying to get it working but so far no luck.Here's what i've come up with.
    Complete PSpice .cir file with LM13600 model included and a schematic with node numbers.
    But i still wasn't able to get the corresponding triangle/square outputs and i'm not sure why.

    *VCO triangle/square
    ------------------EXCERPT FROM MODEL FOR BETTER REFERENCE-----------------------------------------
    * -------------------- Amplifier Bias Input
    * -------------------- | Diode Bias
    * -------------------- | | Positive Input
    * -------------------- | | | Negative Input
    * -------------------- | | | | Output
    * -------------------- | | | | | Negative power suply
    * -------------------- | | | | | | Buffer Input
    * -------------------- | | | | | | | Buffer Output
    * -------------------- | | | | | | | | Positive supply
    * -------------------- | | | | | | | | |
    *.SUBCKT LM13600/NS 1 2 3 4 5 6 7 8 11
    --------------------------------------------------------------------------------------------------
    X1 16 15 5 0 12 6 12 9 11 LM13600/NS
    X2 1 2 5 9 5 6 5 8 11 LM13600/NS

    *

    Vpos 11 0 15V
    Vcon 17 0 sin 10mV 4
    Vplu 18 0 15V
    Vneg 6 0 -15V

    *

    R1 17 16 27k
    R2 0 9 10k
    R3 18 1 47k
    R4 8 6 10k
    RA 0 5 4.7k
    Rx 0 15 1T
    Ry 0 2 1T
    C 0 12 390p

    *
    -----------------------LM13600 MODEL--------------------------------------------------------------
    *
    *//////////////////////////////////////////////////////////////////////
    * (C) National Semiconductor, Inc.
    * Models developed and under copyright by:
    * National Semiconductor, Inc.

    */////////////////////////////////////////////////////////////////////
    * Legal Notice: This material is intended for free software support.
    * The file may be copied, and distributed; however, reselling the
    * material is illegal

    *////////////////////////////////////////////////////////////////////
    * For ordering or technical information on these models, contact:
    * National Semiconductor's Customer Response Center
    * 7:00 A.M.--7:00 P.M. U.S. Central Time
    * (800) 272-9959
    * For Applications support, contact the Internet address:
    * amps-apps@galaxy.nsc.com

    * \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
    * LM13600 Dual Operational Transconductance Amplifier
    * \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
    *
    * Amplifier Bias Input
    * | Diode Bias
    * | | Positive Input
    * | | | Negative Input
    * | | | | Output
    * | | | | | Negative power supply
    * | | | | | | Buffer Input
    * | | | | | | | Buffer Output
    * | | | | | | | | Positive power supply
    * | | | | | | | | |
    .SUBCKT LM13600/NS 1 2 3 4 5 6 7 8 11
    *
    * Features:
    * gm adjustable over 6 decades.
    * Excellent gm linearity.
    * Linearizing diodes.
    * Controlled impedance buffers.
    * Wide supply range of +/-2V to +/-22V.
    *
    * Note: This model is single-pole in nature and over-estimates
    * AC bandwidth and phase margin (stability) by over 2X.
    * Although refinement may be possible in the future, please
    * use benchtesting to finalize AC circuit design.
    *
    * Note: Model is for single device only and simulated
    * supply current is 1/2 of total device current.
    *
    ******************************************************
    *
    C1 6 4 4.8P
    C2 3 6 4.8P
    * Output capacitor
    C3 5 6 6.26P
    D1 2 4 DX
    D2 2 3 DX
    D3 11 21 DX
    D4 21 22 DX
    D5 1 26 DX
    D6 26 27 DX
    D7 5 29 DX
    D8 28 5 DX
    D10 31 25 DX
    * Clamp for -CMR
    D11 28 25 DX
    * Ios source
    F1 4 3 POLY(1) V6 1E-10 5.129E-2 -1.189E4 1.123E9
    F2 11 5 V2 1.022
    F3 25 6 V3 1.0
    F4 5 6 V1 1.022
    F5 30 6 V3 1.0
    * Output impedance
    F6 5 0 POLY(2) V3 V7 0 0 0 0 1
    G1 0 33 5 0 .55E-3
    I1 11 6 300U
    Q1 24 32 31 QX1
    Q2 23 3 31 QX2
    Q3 11 7 30 QX1
    Q4 11 30 8 QY
    V1 22 24 0V
    V2 22 23 0V
    V3 27 6 0V
    V4 11 29 1.4
    V5 28 6 1.2
    V6 4 32 0V
    V7 33 0 0V
    .MODEL QX1 NPN (IS=5E-16 BF=200 NE=1.15 ISE=.63E-16 IKF=1E-2)
    .MODEL QX2 NPN (IS=5.125E-16 BF=200 NE=1.15 ISE=.63E-16 IKF=1E-2)
    .MODEL QY NPN (IS=6E-15 BF=140)
    .MODEL DX D (IS=5E-16)
    .ENDS
    *$
    --------------------------------------------------------------------------------------------------------
    .tran 1 10
    .probe

    .end

    Thanks again for your time and consideration.
     
  8. crutschow

    Expert

    Mar 14, 2008
    13,028
    3,237
    Post your simulation results.
     
  9. bjes

    Thread Starter New Member

    Apr 29, 2013
    9
    0
    Actually, i've changed my netlist a little.Here's my new .cir file:

    *triangle/square VCO with LM13600


    X1 16 15 14 13 12 6 12 9 11 LM13600/NS
    X2 1 2 14 9 14 6 14 8 11 LM13600/NS

    Vpos 11 0 15V
    Vcon 17 0 SIN(0V 4V 416.6666667Hz 0ms 0Hz 0)
    Vneg 0 6 15V
    Vbia 18 0 15V

    R1 17 16 27k
    R2 9 6 10k
    R3 18 1 51k
    R4 8 6 10k
    RA 14 0 5.1k
    Rx 15 0 1T
    Ry 2 0 1T
    C 12 0 200p


    *
    *---------------------Amplifier Bias Input
    *---------------------| Diode Bias
    *---------------------| | Positive Input
    *---------------------| | | Negative Input
    *---------------------| | | | Output
    *---------------------| | | | | Negative power supply
    *---------------------| | | | | | Buffer Input
    *---------------------| | | | | | | Buffer Output
    *---------------------| | | | | | | | Positive power supply
    *---------------------| | | | | | | | |
    .SUBCKT LM13600/NS 1 2 3 4 5 6 7 8 11
    *
    * Features:
    * gm adjustable over 6 decades.
    * Excellent gm linearity.
    * Linearizing diodes.
    * Controlled impedance buffers.
    * Wide supply range of +/-2V to +/-22V.
    *
    * Note: This model is single-pole in nature and over-estimates
    * AC bandwidth and phase margin (stability) by over 2X.
    * Although refinement may be possible in the future, please
    * use benchtesting to finalize AC circuit design.
    *
    * Note: Model is for single device only and simulated
    * supply current is 1/2 of total device current.
    *
    ******************************************************
    *
    C1 6 4 4.8P
    C2 3 6 4.8P
    * Output capacitor
    C3 5 6 6.26P
    D1 2 4 DX
    D2 2 3 DX
    D3 11 21 DX
    D4 21 22 DX
    D5 1 26 DX
    D6 26 27 DX
    D7 5 29 DX
    D8 28 5 DX
    D10 31 25 DX
    * Clamp for -CMR
    D11 28 25 DX
    * Ios source
    F1 4 3 POLY(1) V6 1E-10 5.129E-2 -1.189E4 1.123E9
    F2 11 5 V2 1.022
    F3 25 6 V3 1.0
    F4 5 6 V1 1.022
    F5 30 6 V3 1.0
    * Output impedance
    F6 5 0 POLY(2) V3 V7 0 0 0 0 1
    G1 0 33 5 0 .55E-3
    I1 11 6 300U
    Q1 24 32 31 QX1
    Q2 23 3 31 QX2
    Q3 11 7 30 QX1
    Q4 11 30 8 QY
    V1 22 24 0V
    V2 22 23 0V
    V3 27 6 0V
    V4 11 29 1.4
    V5 28 6 1.2
    V6 4 32 0V
    V7 33 0 0V
    .MODEL QX1 NPN (IS=5E-16 BF=200 NE=1.15 ISE=.63E-16 IKF=1E-2)
    .MODEL QX2 NPN (IS=5.125E-16 BF=200 NE=1.15 ISE=.63E-16 IKF=1E-2)
    .MODEL QY NPN (IS=6E-15 BF=140)
    .MODEL DX D (IS=5E-16)
    .ENDS
    *$





    .TRAN 100us 1s 0s 10us UIC
    .probe

    .end

    ---------------------------------------------------------
    I'll post the results in a minute.
     
  10. bjes

    Thread Starter New Member

    Apr 29, 2013
    9
    0
    And the results (probe screenshot included):


    X1.DX X2.DX
    IS 500.000000E-18 500.000000E-18


    **** 05/05/13 19:04:19 ****** PSpice Lite (October 2012) ****** ID# 10813 ****

    *triangle/square VCO with LM13600


    **** BJT MODEL PARAMETERS







    X1.QX1 X1.QX2 X1.QY X2.QX1
    NPN NPN NPN NPN
    LEVEL 1 1 1 1
    IS 500.000000E-18 512.500000E-18 6.000000E-15 500.000000E-18
    BF 200 200 140 200
    NF 1 1 1 1
    IKF .01 .01 .01
    ISE 63.000000E-18 63.000000E-18 63.000000E-18
    NE 1.15 1.15 1.15
    BR 1 1 1 1
    NR 1 1 1 1
    ISS 0 0 0 0
    RE 0 0 0 0
    RC 0 0 0 0
    CJE 0 0 0 0
    VJE .75 .75 .75 .75
    CJC 0 0 0 0
    VJC .75 .75 .75 .75
    MJC .33 .33 .33 .33
    XCJC 1 1 1 1
    CJS 0 0 0 0
    VJS .75 .75 .75 .75
    KF 0 0 0 0
    AF 1 1 1 1
    CN 2.42 2.42 2.42 2.42
    D .87 .87 .87 .87


    X2.QX2 X2.QY
    NPN NPN
    LEVEL 1 1
    IS 512.500000E-18 6.000000E-15
    BF 200 140
    NF 1 1
    IKF .01
    ISE 63.000000E-18
    NE 1.15
    BR 1 1
    NR 1 1
    ISS 0 0
    RE 0 0
    RC 0 0
    CJE 0 0
    VJE .75 .75
    CJC 0 0
    VJC .75 .75
    MJC .33 .33
    XCJC 1 1
    CJS 0 0
    VJS .75 .75
    KF 0 0
    AF 1 1
    CN 2.42 2.42
    D .87 .87


    **** 05/05/13 19:04:19 ****** PSpice Lite (October 2012) ****** ID# 10813 ****

    *triangle/square VCO with LM13600


    **** SMALL SIGNAL BIAS SOLUTION TEMPERATURE = 27.000 DEG C






    NODE VOLTAGE NODE VOLTAGE NODE VOLTAGE NODE VOLTAGE


    ( 1) -13.5650 ( 2) -2.6649 ( 6) -15.0000 ( 8) -4.3252

    ( 9) 12.9030 ( 11) 15.0000 ( 12) 14.3150 ( 13) -22.7310

    ( 14) -2.9362 ( 15) -22.4380 ( 16) -13.5700 ( 17) 0.0000

    ( 18) 15.0000 (X1.21) 14.2850 (X1.22) 13.5710 (X1.23) 13.5710

    (X1.24) 13.5710 (X1.25) -4.3662 (X1.26) -14.2850 (X1.27) -15.0000

    (X1.28) -13.8000 (X1.29) 13.6000 (X1.30) 13.5980 (X1.31) -3.6514

    (X1.32) -22.7310 (X1.33) 0.0000 (X2.21) 14.2830 (X2.22) 13.5650

    (X2.23) 13.5650 (X2.24) 13.5650 (X2.25) 11.4670 (X2.26) -14.2820

    (X2.27) -15.0000 (X2.28) -13.8000 (X2.29) 13.6000 (X2.30) -3.6554

    (X2.31) 12.1840 (X2.32) 12.9030 (X2.33) 0.0000




    VOLTAGE SOURCE CURRENTS
    NAME CURRENT

    Vpos -6.578E-03
    Vcon -5.026E-04
    Vneg -8.213E-03
    Vbia -5.601E-04
    X1.V1 5.352E-11
    X1.V2 4.982E-04
    X1.V3 5.026E-04
    X1.V4 -5.007E-04
    X1.V5 3.755E-11
    X1.V6 -3.640E-11
    X1.V7 7.873E-03
    X2.V1 5.552E-04
    X2.V2 1.788E-11
    X2.V3 5.601E-04
    X2.V4 1.654E-11
    X2.V5 3.613E-11
    X2.V6 4.898E-06
    X2.V7 -1.615E-03

    TOTAL POWER DISSIPATION 2.31E-01 WATTS


    **** 05/05/13 19:04:19 ****** PSpice Lite (October 2012) ****** ID# 10813 ****

    *triangle/square VCO with LM13600


    **** OPERATING POINT INFORMATION TEMPERATURE = 27.000 DEG C
     
  11. bjes

    Thread Starter New Member

    Apr 29, 2013
    9
    0
    And the second part:


    **** VOLTAGE-CONTROLLED CURRENT SOURCES


    NAME X1.G1 X2.G1
    I-SOURCE 7.873E-03 -1.615E-03


    **** CURRENT-CONTROLLED CURRENT SOURCES


    NAME X1.F1 X1.F2 X1.F3 X1.F4 X1.F5
    I-SOURCE 9.813E-11 5.092E-04 5.026E-04 5.470E-11 5.026E-04

    NAME X1.F6 X2.F1 X2.F2 X2.F3 X2.F4
    I-SOURCE 3.957E-06 9.804E-08 1.828E-11 5.601E-04 5.674E-04

    NAME X2.F5 X2.F6
    I-SOURCE 5.601E-04 -9.045E-07


    **** DIODES


    NAME X1.D1 X1.D2 X1.D3 X1.D4 X1.D5
    MODEL X1.DX X1.DX X1.DX X1.DX X1.DX
    ID 4.19E-11 -1.95E-11 4.98E-04 4.98E-04 5.03E-04
    VD 2.93E-01 -1.95E+01 7.15E-01 7.15E-01 7.15E-01
    REQ 6.21E+08 1.00E+12 5.19E+01 5.19E+01 5.15E+01
    CAP 0.00E+00 0.00E+00 0.00E+00 0.00E+00 0.00E+00

    NAME X1.D6 X1.D7 X1.D8 X1.D10 X1.D11
    MODEL X1.DX X1.DX X1.DX X1.DX X1.DX
    ID 5.03E-04 5.01E-04 -2.81E-11 5.03E-04 -9.43E-12
    VD 7.15E-01 7.15E-01 -2.81E+01 7.15E-01 -9.43E+00
    REQ 5.15E+01 5.17E+01 1.00E+12 5.15E+01 1.00E+12
    CAP 0.00E+00 0.00E+00 0.00E+00 0.00E+00 0.00E+00

    NAME X2.D1 X2.D2 X2.D3 X2.D4 X2.D5
    MODEL X2.DX X2.DX X2.DX X2.DX X2.DX
    ID -1.56E-11 1.82E-11 5.55E-04 5.55E-04 5.60E-04
    VD -1.56E+01 2.71E-01 7.17E-01 7.17E-01 7.18E-01
    REQ 1.00E+12 1.44E+09 4.66E+01 4.66E+01 4.62E+01
    CAP 0.00E+00 0.00E+00 0.00E+00 0.00E+00 0.00E+00

    NAME X2.D6 X2.D7 X2.D8 X2.D10 X2.D11
    MODEL X2.DX X2.DX X2.DX X2.DX X2.DX
    ID 5.60E-04 -1.65E-11 -1.09E-11 5.60E-04 -2.53E-11
    VD 7.18E-01 -1.65E+01 -1.09E+01 7.18E-01 -2.53E+01
    REQ 4.62E+01 1.00E+12 1.00E+12 4.62E+01 1.00E+12
    CAP 0.00E+00 0.00E+00 0.00E+00 0.00E+00 0.00E+00


    **** BIPOLAR JUNCTION TRANSISTORS


    NAME X1.Q1 X1.Q2 X1.Q3 X1.Q4 X2.Q1
    MODEL X1.QX1 X1.QX2 X1.QX1 X1.QY X2.QX1
    IB -3.64E-11 4.36E-06 4.57E-06 1.98E-05 4.90E-06
    IC 5.35E-11 4.98E-04 5.18E-04 2.78E-03 5.55E-04
    VBE -1.91E+01 7.15E-01 7.17E-01 6.95E-01 7.19E-01
    VBC -3.63E+01 -1.65E+01 -6.85E-01 -1.40E+00 -6.62E-01
    VCE 1.72E+01 1.72E+01 1.40E+00 2.10E+00 1.38E+00
    BETADC -1.47E+00 1.14E+02 1.13E+02 1.40E+02 1.13E+02
    GM -1.72E-21 1.84E-02 1.91E-02 1.07E-01 2.04E-02
    RPI 2.00E+14 6.26E+03 5.97E+03 1.30E+03 5.57E+03
    RX 0.00E+00 0.00E+00 0.00E+00 0.00E+00 0.00E+00
    RO 1.00E+12 1.05E+12 1.05E+12 1.00E+12 1.06E+12
    CBE 0.00E+00 0.00E+00 0.00E+00 0.00E+00 0.00E+00
    CBC 0.00E+00 0.00E+00 0.00E+00 0.00E+00 0.00E+00
    CJS 0.00E+00 0.00E+00 0.00E+00 0.00E+00 0.00E+00
    BETAAC -3.44E-07 1.15E+02 1.14E+02 1.40E+02 1.14E+02
    CBX/CBX2 0.00E+00 0.00E+00 0.00E+00 0.00E+00 0.00E+00
    FT/FT2 -2.74E-02 2.93E+17 3.04E+17 1.71E+18 3.25E+17



    NAME X2.Q2 X2.Q3 X2.Q4
    MODEL X2.QX2 X2.QX1 X2.QY
    IB -1.66E-11 4.96E-06 7.57E-06
    IC 1.79E-11 5.63E-04 1.06E-03
    VBE -1.51E+01 7.19E-01 6.70E-01
    VBC -1.65E+01 -1.79E+01 -1.87E+01
    VCE 1.38E+00 1.87E+01 1.93E+01
    BETADC -1.08E+00 1.13E+02 1.40E+02
    GM -1.38E-22 2.07E-02 4.10E-02
    RPI 2.00E+14 5.50E+03 3.42E+03
    RX 0.00E+00 0.00E+00 0.00E+00
    RO 1.00E+12 1.06E+12 1.00E+12
    CBE 0.00E+00 0.00E+00 0.00E+00
    CBC 0.00E+00 0.00E+00 0.00E+00
    CJS 0.00E+00 0.00E+00 0.00E+00
    BETAAC -2.76E-08 1.14E+02 1.40E+02
    CBX/CBX2 0.00E+00 0.00E+00 0.00E+00
    FT/FT2 -2.20E-03 3.29E+17 6.52E+17



    JOB CONCLUDED

    **** 05/05/13 19:04:19 ****** PSpice Lite (October 2012) ****** ID# 10813 ****

    *triangle/square VCO with LM13600


    **** JOB STATISTICS SUMMARY






    Total job time (using Solver 1) = 14.66
     
  12. bjes

    Thread Starter New Member

    Apr 29, 2013
    9
    0
    hmm now that i look at it... is there a way to post the output file instead of copy/paste -ing it ?
     
  13. t06afre

    AAC Fanatic!

    May 11, 2009
    5,939
    1,222
    You could create a zip file, and then post that:)
     
  14. bjes

    Thread Starter New Member

    Apr 29, 2013
    9
    0
    Well, here's the zip then : )
     
Loading...