This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TINA/Spice/LM211: TINA/Spice/LM211

Part Number: LM211
Other Parts Discussed in Thread: TINA-TI,

Tool/software: TINA-TI or Spice Models

Dear Somen, sorry for my insistence

I uploaded LM211 spice model - file "slcj005.zip". I unpacked this file then and got "LM211.301" file. For using this file in TINA, I need to made some actions with this file, but  file must have 

extensions: "cir", "lib", "mod". Please, explain, what is the "301" extension and what to do with it?

TIA

Sincerely

Vladimir Naumenkov

www.agat.by

  • Hi Vladimir,

    All of these a simple text files. You can change the file name yourself.

    Thanks,
    JC
  • Thank you
    I changed the "LM211.301" file in "LM211.TSC" file. But this "LM211.TSC" file doesn't open in TINA.

    This is the text file. I see, that there is 6 pins, but in the LM211 datasheet another pin assignment is given. The data of this file does not correspond to the LM211 datasheet (in the part of the pin assignment).

    * LM211 VOLTAGE COMPARATOR "MACROMODEL" SUBCIRCUIT
    * CREATED USING PARTS VERSION 4.03 ON 03/07/90 AT 12:28
    * REV (N/A)
    * CONNECTIONS: NON-INVERTING INPUT
    * | INVERTING INPUT
    * | | POSITIVE POWER SUPPLY
    * | | | NEGATIVE POWER SUPPLY
    * | | | | OPEN COLLECTOR OUTPUT
    * | | | | | OUTPUT GROUND
    * | | | | | |
    .SUBCKT LM211 1 2 3 4 5 6
    *
    F1 9 3 V1 1
    IEE 3 7 DC 100.0E-6
    VI1 21 1 DC .45
    VI2 22 2 DC .45
    Q1 9 21 7 QIN
    Q2 8 22 7 QIN
    Q3 9 8 4 QMO
    Q4 8 8 4 QMI
    .MODEL QIN PNP(IS=800.0E-18 BF=666.7)
    .MODEL QMI NPN(IS=800.0E-18 BF=1002)
    .MODEL QMO NPN(IS=800.0E-18 BF=1000 CJC=1E-15 TR=102.5E-9)
    E1 10 6 9 4 1
    V1 10 11 DC 0
    Q5 5 11 6 QOC
    .MODEL QOC NPN(IS=800.0E-18 BF=103.5E3 CJC=1E-15 TF=11.60E-12 TR=48.19E-9)
    DP 4 3 DX
    RP 3 4 6.667E3
    .MODEL DX D(IS=800.0E-18)
    *
    .ENDS


    Sincerely
    Vladimir Naumenkov
    www.agat.by

    LM211.TSC

  • Vladimir,

    The TSC file is not ASCII text file, it is a format used by TINA-TI to store a design schematic drawing and associated models, analysis settings, etc.

    What you downloaded is a text file describing the LM211, it can be used with SPICE simulators, similar to a .lib.

    If TINA-TI is your design/simulation tool, you will need to import the downloaded file and create a "macro" whihc embeds the model text into a symbol you can drop into your schematic.

    you can watch the TINA-TI training video 1.9 here:

    Regards,

    JC

  • Dear JC, thank you

    I watched training video 1.9. 

    1) If I understand right, I need to renane "LM211.301" file into "LM211.lib" and create a "macro" in TINA?

    2) In "LM211.301" file pins of LM211 designated:

     NON-INVERTING INPUT - 1

     INVERTING INPUT --------  2

    POSITIVE POWER SUPPLY - 3

    NEGATIVE POWER SUPPLY - 4

    OPEN COLLECTOR OUTPUT - 5

    OUTPUT GROUND - 6

    But this does not correspond to pin assignments is indicated in the LM211 datasheet

    TIA

    Sincerely,

    Vladimir Naumenkov

    www.agat.by

  • Vladimi,

    1. Yes.

    2. You were asking about the pin order on the subckt definition. This has nothing to do with the pin number in the datasheet, which depends on the package type.

      The pin order is used for SPICE to connect the instance correctly in your circuit when using inplicit netlisting, meaning the netlist does not explicitly tell SPICE which pin should be connected to which net.

      When creating the symbol, TINA (and any other schematic capture tool) will ask you the pin order, make sure it matches the subckt definition in the model file you plan to use with the symbol you are creating. When the netlist is created, the subckt call (X...) will list the nets connected to it in the order you give during the symbol generation. Since it matches the subckt definition in the model file, it will give you the correct connection.

    Thanks,
    JC

  • Dear JC

    Thank you

    Sincerely,

    Vladimir Naumenkov

    www.agat.by