pspice coding demo
TRANSCRIPT
![Page 1: Pspice Coding Demo](https://reader034.vdocuments.mx/reader034/viewer/2022042515/546a98b3b4af9fe9268b4786/html5/thumbnails/1.jpg)
PSPICE CODING –HOW TO ENTER AND RUN: A BASIC DEMONSTRATION
This demonstration explains how to enter a PSpice coding and it’s run in PSpice A/D through a number
of screen shots and through a simple example.
STEP 1: To open the PSpice A/D follow the steps shown,
![Page 2: Pspice Coding Demo](https://reader034.vdocuments.mx/reader034/viewer/2022042515/546a98b3b4af9fe9268b4786/html5/thumbnails/2.jpg)
You will get the following window as shown
STEP 2: Open a new text file to enter the coding for the simple voltage divider circuit shown. It is
desirable to find the nodal voltages at node 1 and at node 2 with respect to ground through DC bias
point analysis.
0
V13V
R11Ohm
R22Ohm
1
2
0
Nodes
Ground Node
![Page 3: Pspice Coding Demo](https://reader034.vdocuments.mx/reader034/viewer/2022042515/546a98b3b4af9fe9268b4786/html5/thumbnails/3.jpg)
Open a new text file to enter the coding as shown.
STEP 3: In the empty text file enter the coding as shown. The .PROBE command is optional.
![Page 4: Pspice Coding Demo](https://reader034.vdocuments.mx/reader034/viewer/2022042515/546a98b3b4af9fe9268b4786/html5/thumbnails/4.jpg)
STEP 4: Next save the text file as shown. You have to save the file in capital letters in a desired location
with the file extension .CIR; here I saved the file as DEMO.CIR
![Page 5: Pspice Coding Demo](https://reader034.vdocuments.mx/reader034/viewer/2022042515/546a98b3b4af9fe9268b4786/html5/thumbnails/5.jpg)
The file got saved as a text file first as shown.
![Page 6: Pspice Coding Demo](https://reader034.vdocuments.mx/reader034/viewer/2022042515/546a98b3b4af9fe9268b4786/html5/thumbnails/6.jpg)
Next close the text file as shown
This leads to a blank window as shown
![Page 7: Pspice Coding Demo](https://reader034.vdocuments.mx/reader034/viewer/2022042515/546a98b3b4af9fe9268b4786/html5/thumbnails/7.jpg)
STEP 5: Again open the saved circuit file, this time as an active file to run the simulation as shown.
Next run the simulation as illustrated.
![Page 8: Pspice Coding Demo](https://reader034.vdocuments.mx/reader034/viewer/2022042515/546a98b3b4af9fe9268b4786/html5/thumbnails/8.jpg)
After the simulation run you will get the message in the lower left window. Next view the output file to
see the result of DC bias point analysis as shown in the following screen shot.
![Page 9: Pspice Coding Demo](https://reader034.vdocuments.mx/reader034/viewer/2022042515/546a98b3b4af9fe9268b4786/html5/thumbnails/9.jpg)
The output window appears as shown. Scroll down this window to view the desired output as indicated
on the next illustration. You can see that the node 1 voltage is 3v while the node 2 voltage is 2V as
expected from the application of the voltage divider rule.
![Page 10: Pspice Coding Demo](https://reader034.vdocuments.mx/reader034/viewer/2022042515/546a98b3b4af9fe9268b4786/html5/thumbnails/10.jpg)
This concludes the PSpice coding demonstration. Thank you for your Patience reading .Hope you will
explore further on this base and thank me for the preparation of this simple demonstration guide.
HAPPY PSpicing!!!!!!!