LTspice-Creating new Schematic symbol

In this article, we will explain in detail how to create schematic symbols.

If you can not use LTspice standard schematic symbols, you must create the schematic symbols yourself.

TOC

What if you can not use LTspice standard schematic symbols?

When adding a SPICE model (device model or subcircuit model) to LTspice, it is basically easy to use the LTspice standard schematic symbol.
(Although there are few cases, parts manufacturers may provide schematic symbols with the SPICE model.)

However, when it comes to a manufacturer's unique schematic symbol such as IC, it is almost impossible to cope with the LTspice standard schematic symbol.

In such cases, it is almost impossible to find free schematic symbols on the Internet, so you need to create your own schematic symbols.

Sub-circuit model getting

In this article, we will obtain the Analog Devices Quad SPST Switch "ADG1411" for the explanation.

1

Click the link below to go to the page where you can download SPICE models from the Analog Devices website.

Analog Devices

When moving from the top page of the Analog Devices website, you can move in the order of DESIGN CENTER–>Simulation Models–>SPICE Models.

2

A list of SPICE models that can be downloaded is displayed as shown below.

LTspice XVII Search ADG1411

Enter “ADG1411” in “Search”.

3
LTspice XVII ADG1411 SPICE Macro Model

Click “ADG1411 SPICE Macro Model”.

4
LTspice XVII License Spice Models

The "License agreement for Spice Models" screen is displayed. Click "I Accept" to start downloading.

Automatic creation of schematic symbols

LTspice has a function to automatically generate schematic symbols, and it is possible to easily generate schematic symbols with one click.

1
LTspice XVII Save adg1411.cir

Save the downloaded "adg1411.cir" in "C:\Users\USER\Documents\LTspiceXVII\lib\sub\Analog_Devices".

※The folder "Analog_Devices" is created to make it easy to manage the subcircuit model in the following article.

2
LTspice XVII Open

Start LTspice and click "Open".

3
LTspice XVII Open adg1411.cir

Select the file type "All Files" and open "adg1411.cir".

4

"adg1411.cir" opens as follows.

LTspice XVII adg1411.cir
5
LTspice XVII Create Symbol

Right-click with mouse the .SUBCKT syntax described in "adg1411.cir" and click "Create Symbol".

6
LTspice XVII Automatically Create

You will be asked if you want to create a schematic symbol of "adg 1411.cir" automatically, click "Yes".

7

A schematic symbol of "adg1411.cir" is automatically created as follows.

LTspice XVII adg1411.cir Automatically Created
8

In addition, the schematic symbol "ADG1411.asy" is automatically saved in "C:\Users\USER\Documents\LTspiceXVII\lib\sym\AutoGenerated" as shown below.

LTspice XVII Copy ADG1411.asy

You should move "ADG 1411.asy" to any folder that is easy to manage.

9
LTspice XVII Save ADG1411.asy

Save the copied "ADG1411.asy" in "C:\Users\USER\Documents\LTspiceXVII\lib\sym\Analog_Devices".

※The folder "Analog_Devices" is created in the following article to make it easy to manage schematic symbols.

10

However, there are problems with automatically created schematic symbols.

LTspice XVII Schematic symbol/pin layout

It is different from the schematic symbol of the data sheet because it just arranges the number pins automatically from the syntax of .SUBCKT. it is often very troublesome to wire on the schematic.

Therefore, it is better to correct the automatically created schematic symbols or create the schematic symbols manually from the beginning.

Manual creation of schematic symbols

Let's firmly remember how to create schematic symbols manually here.

Understanding how to create schematic symbols manually is also useful for correcting automatically created schematic symbols.

Symbol creation

1
LTspice XVII New Symbol

Start LTspice and click "File-New Symbol".

2
LTspice XVII Schematic Symbol Editor

The schematic symbol editor is displayed. The circle and cross marks serve as reference points when moving parts when creating a schematic.

3
LTspice XVII Rect

Select "Draw-Rect" and draw an outline of the schematic symbol with a square.

4
LTspice XVII Square

As you start from left click with the mouse on the schematic symbol editor, move the mouse diagonally to draw a rectangle.

If you left click with the mouse again, you can end it and complete the rectangle.

This time, I made a square so that the reference point(circle and cross mark) is almost centered.

5
LTspice XVII Add Pin/Port

Select "Edit-Add Pin/Port" to edit the pin number.

6
LTspice XVII Pin/Port Properties
NameExplanation
LabelPin name
Netlist OrderNode number
TOP/
LEFT/
RIGHT/
BOTTOM/
NONE(Not Visable)
Pin name position
Vertical TextMake the pin name vertical
OffsetPin and pin name offset
7
LTspice XVII Set Pin Name Node Number

If you look at the .SUBCKT syntax of ADG1411, the pin numbers and node numbers of ADG1411 real parts are the same.

Therefore, let's set the pin name and node number as it is from the pin arrangement of the data sheet of ADG1411.

LabelNetlist OrderTOP/
LEFT/
RIGHT/
BOTTOM/
NONE(Not Visable)
IN11LEFT
D12RIGHT
S13RIGHT
VSS4LEFT
GND5RIGHT
S46RIGHT
D47RIGHT
IN48LEFT
IN39LEFT
D310RIGHT
S311RIGHT
NC12RIGHT
VDD13LEFT
S214RIGHT
D215RIGHT
IN216LEFT
8
LTspice XVII Pin Arrangement

We will arrange the pins referring to the functional blocks of the ADG1411 data sheet.

Editing symbol attributes and saving the symbol

1
LTspice XVII Edit Attributes

Open "Edit-Attributes-Edit Attributes" to edit symbol attributes.

2
LTspice XVII Symbol Attribute Editor

Set "Prefix:X, Value:ADG1411, Model File:Analog_Devices\adg1411.cir".

AttributesExplanation
PrefixSchematic symbol prefix
Resistance: R
Capacitor: C
Inductor: L
Sub-circuit model: X
※ If it is a sub-circuit model, resistance, capacitor, and inductor become "X".
Spice Model
ValueName defined in the sub-circuit model file
Example: ".SUBCKT AD8610" --> "AD8610"
Value2
Spice LineParameters other than Value
Spice Line2
DescriptionSchematic symbol description
(Displayed on the symbol)
Model fileSub-circuit model path
3
LTspice XVII Attribute Window

Open "Edit-Attributes-Attribute Window" to set the symbol information.

4
LTspice XVII Symbol Information

You can select the symbol information you want to display and click OK to place it.

In this article, we will place InstName(U1, U2, U3 …) and Value respectively.

5
LTspice XVII Save Symbol

Now that you have done all of the manual creation of the schematic symbols, click "Save".

6
LTspice XVII Save ADG1411.asy

Save the renamed "ADG1411" to "C: \ Users \ USER \ Documents \ LTspiceXVII \ lib \ sym \ Analog_Devices".

※The folder "Analog_Devices" is created in the following article to make it easy to manage schematic symbols.

Confirm symbol

1
LTspice XVII Component

Open a new schematic editor in LTspice and click "Component".

2
LTspice XVII Check ADG1411

We were able to confirm "ADG1411" from "Select Component Symbol".

As a precaution, select "ADG1411" and click "OK" to place it on the schematic.

3
LTspice XVII Place ADG1411

As with other parts, the "ADG1411" can be placed without any problem.

Correction of automatically created schematic symbols

I have created the schematic symbols for ADG1411 from the beginning, but it is easier to create schematic symbols automatically and then fix them.

If you remember the schematic symbols manually, you won't have to bother with corrections from automatic creation.

Let's share this post !
TOC