EMA Academy

Quick How-Tos

Home > EMA Academy > How-Tos > How to Create Schematic Symbols for PSpice Models

How to Create Schematic Symbols for PSpice Models

Many times, manufacturers provide simulation models to realistically analyze circuit behavior; however, the corresponding schematic symbol isn’t always provided. To ensure clear and efficient communication of the components in the design, sometimes schematic symbols need to be created. Easily create schematic symbols and link SPICE models in OrCAD.

This how-to will provide step-by-step instructions to import simulation models and create schematic symbols in PSpice Designer.

To follow along with this tutorial, download the provided files above the table of contents.

How-To Video

GWGLc1AKBirXCbG575AuYY

Renaming a Model File

Step 1: Right-click on the MCP6547.txt file from the provided files and select Rename.

Note: May manufacturers often provide models in .txt format. This process can be completed for any simulation model in text format.

CustomSymbol Step2 edited
Changing the Model File Extension

Step 2: Change the extension to .lib.

Note: The extension must be written in lowercase letters to be able to run in PSpice. PSpice will not recognize .LIB.

Creating a New Library

Step 3: Open the provided design, SineAmp2.dsn, in OrCAD PSpice Designer.

CustomSymbol Step4
Creating a New Schematic Library in OrCAD

Step 4: Select File > New > Library from the menu.

CustomSymbol Step5
Saving a Library in OrCAD

Step 5: A new library has been added under Library in the project hierarchy. Right-click and select Save As.

Step 6: Browse to a location to save the library. Save the library as MCP6546.OLB.

Create Schematic Symbols

Step 7: Right-click on the library and select New Part.

CustomSymbol Step8
Defining New Part Properties in OrCAD

Step 8: Name the part MCP6546. Set the PCB footprint to SOT-23-5.

Step 9: Leave all other settings as the defaults and click OK.

CustomSymbol Step10
Adjusting a Part Bounding Box in OrCAD Capture

Step 10: Adjust the size of the bounding box to be 4 units wide and 4 units tall by dragging the corners of the box.

CustomSymbol Step11

Step 11: Select Place > Polyline from the menu or click the Place Polyline button on the toolbar.

CustomSymbol Step12
Drawing a Schematic Symbol in OrCAD

Step 12: Click to begin a line and click to end the line to draw the triangular shape as shown above. Right-click and select End Mode when finished.

Note: Hold down the Shift key on the keyboard to draw a diagonal line.

Step 13: Select Place > Line from the menu or click the Place Line button on the toolbar.

CustomSymbol Step14

Step 14: Draw two lines for voltage supply extending from the triangle midpoints. Right-click and select End Mode when finished.

Step 15: Select Place > Pin from the menu or click the Place Pin button on the toolbar.

CustomSymbol Step16
Placing Pins on a Schematic Symbol in OrCAD

Step 16: Set the name to V+ and number to 1. Set the shape to Short. Click OK.

CustomSymbol Step17
Placing Input Pins on a Schematic Symbol in OrCAD

Step 17: Click to place a pin at the top-left of the triangle and another at the bottom-left.

Step 18: Click to place the positive and negative supply pins at the top and bottom.

CustomSymbol Step19
Placing an Output Pin on a Schematic Symbol in OrCAD

Step 19: Click to place the output pin. Right-click and select End Mode.

CustomSymbol Step20
Editing Schematic Symbol Pins in OrCAD

Step 20: Select the Edit Pins button from the sidebar. The Edit Pins window will open.

Step 21: Set the pin names to match the following table:

CustomSymbol Step21Table

Step 22: Click OK.

CustomSymbol Step23
Creating Schematic Symbols in OrCAD

Step 23: On the part canvas, click and drag the VDD, VSS, U?, and <Value> labels away from the component for better visibility. Rotate as needed with R on the keyboard.

Step 24: Select File > Save to save the part.

Linking a PSpice Model

CustomSymbol Step25
Associating a PSpice Model to a Schematic Symbol in OrCAD

Step 25: Select Associate PSpice Model.

CustomSymbol Step26
Using the Model Import Wizard in PSpice

Step 26: Under Select library to pick matching models, select the ellipsis. Browse to the location of the MCP6547.lib file and select Open.

Step 27: Select Next.

CustomSymbol Step28
Mapping Pins and Functions in OrCAD

Step 28: Set the symbol pins to match the model terminals in the table.

Step 29: Click Finish.

Step 30: Select File > Save to save the part and close the tab.

Creating the Schematic

CustomSymbol Step31

Step 31: Select Place > Part from the menu or click the Place Part button on the toolbar.

CustomSymbol Step32
Adding Part Libraries in OrCAD

Step 32: In the Libraries table, select MCP6546. The newly created part will appear in the Part List.

Step 33: Select the existing op-amp, U2, and press Delete on the keyboard.

CustomSymbol Step34
Placing Parts in OrCAD

Step 34: In the Place Part Window, select the part and click Place Part.

CustomSymbol Step35
Place Parts in the Schematic in OrCAD Capture

Step 35: Click to place the part in the schematic canvas. Right-click and select End Mode.

CustomSymbol Step36
Wiring in OrCAD

Step 36: Select Place > Wire from the menu, the Wire button on the toolbar, or press W on the keyboard.

CustomSymbol Step37
Wiring a Schematic in OrCAD

Step 37: Wire the connections to each pin of the comparator. Press Escape on the keyboard when finished.

Performing a Simulation

CustomSymbol Step38
Measuring Voltage in PSpice

Step 38: Select the Voltage/Level Marker button from the toolbar.

CustomSymbol Step39
Placing Voltage Probes in PSpice

Step 39: Click to place a probe on the SQUARE_OUT net. Right-click and select End Mode.

CustomSymbol Step40
Editing a Simulation Profile in PSpice

Step 40: Select PSpice > Edit Simulation Profile from the menu.

Step 41: Select Configuration Files from the sidebar.

CustomSymbol Step42
Adding Model Libraries to a Simulation in PSpice

Step 42: Select Library under Category.

Step 43: Select Browse. Navigate to the MCP6547.lib file, select it and click Open.

CustomSymbol Step44

Step 44: Select Add to Design.

Note: If libraries are not configured, the simulation will not run. Select Add to Global to configure the file for all future simulations.

Step 45: Click OK to save the simulation settings and close the window.

Step 46: Select PSpice > Run from the menu.

CustomSymbol Step47
Viewing Simulation Results in PSpice

Step 47: View the simulation results.

Wrap up & Next Steps

Easily create schematic symbols and associate manufacturer’s simulation models to clearly communicate design intent with OrCAD PSpice. See how PSpice can validate and optimize your circuit functionality with a free trial.

Follow Along, Download the Pre-Packaged Design Files

Current Offers

Get access to the latest and greatest CAD tools today.

Table of Contents

How To was created with:
Share:
LinkedIn
Email
EMA Design Automation