Microcap 9 Basic-Analog Simulation Summary
Microcap 9 Basic-Analog Simulation Summary
VERSION 9.0.1.0
August 27 , 2007
COMPATIBLE WITH:
Tom Dragon
TOPICS RELATED TO THIS SUMMARY
PURPOSE OF SUMMARY:
To expose students to the power of Electrical Circuit Simulation S/W and make the
learning effort rather minimal
This summary does not cover all the features of the program but does cover the basics
as well as selected advanced features. It is a limited consolidation of the 600+ page
Reference Manual and 200+ page User’s Manual.
WHY MICROCAP ?
The primary reason Microcap was chosen is that the program is intuitive and user
friendly. Secondly, every version from Version 4 to the current Version 9 yielded a noticeable
improvement to the user. This is a good track record which most probably will continue.
Finally, this is a Professional S/W Simulation Package in that major Companies use
this program to simulate their Electrical Designs. Who knows, the student’s first Company
just might use this program as their Simulation Package.
DEMO LIMITATIONS:
The Professional Microcap Program costs about $4000. The Demo version which is
free certainly cannot equal the fully featured program. The Demo Version is the same
program as the Professional Version but is crippled to limit the size of the circuit being
simulated and the amount of component models available. Also some of the advanced
features are not functional on the Demo S/W.
These limitations will not detract from the students learning and using the Program in
our environment.
STRUCTURE OF THE SUMMARY:
The summary is written is such a form that the student can go thru the topics by
themselves. Load the Program and go through the summary line by line on the PC. When
topics are not clear they can be tagged and resolved later with the help of a peer or an
Instructor.
The summary focuses on the Analog Capabilities of the Simulation S/W, since this
was developed for the Circuits and Electronic Classes. Microcap is very capable of simulating
Digital Circuits as well. With the basics learned from the summary, the digital simulation
would be relatively easy to pick up.
MORE HELP:
The Help feature goes thru several topics. It would be advisable to go thru the Help
topics GENERAL DEMO, ANALYSIS DEMO, AND TRANSFER FUNCTION DEMO. The
pause key is the letter p …. pressing any key resumes.
Might try the ANALOG AND DIGITAL DEMO …… shows an impressive simulation of
a circuit with Analog and Digital circuits together. PROBE DEMO is also a good digital
related demo.
1-0
MICROCAP 9 BASIC – ANALOG SIMULATION SUMMARY
INSTALL THE FREE MICROCAP DEMO PROGRAM:
• Get to site www.spectrum – soft.com
• Double click on Download the free evaluation version
• Enter your e-mail address then click on submit
• Creates an e-mail that has a link to download the program
INITIAL DISPLAY:
Upon opening the Program, the panel option may be invoked. This displays a listing of
all the available components, sources and libraries in tabular form. Since this tutorial will use
Icons to perform the necessary functions, the panel should be turned off.
Click on OPTIONS then uncheck PANELS.
LOADING A FILE:
• Click on FILE then SAVE AS ........ type the new file name and/or directory then OK
1-1
TO STRUCTURE THE DISPLAYED TOOLBAR AND ESTABLISH DEFAULT FONTS:
• Click OPTIONS - PREFERENCES
Click on General, Analysis, and Circuits under Options and select the indicated parameters
GENERAL ANALYSIS CIRCUIT
* Sound * Floating Nodes Check * Node snap
* Show Full Paths * DC path to ground check * Node highlight
* File list size 10 * Convergence Assistance * Component cursor
* Warning Time 3 * Add DC Path to Ground * Rubberbanding
* Component List Size 10 * Analysis Progress Bar * Element Info
* Select Mode * Automatically add
* Select Curve Color op amp power supplies
* Select Mode
⊗ ⊗ ⊗⊗
⊗ ⊗⊗ ⊗ ⊗
⊗ ⊗⊗ ⊗
⊗ ⊗
⊗ ⊗
⊗ ⊗ ⊗
⊗
⊗
⊗
After completing the selections, click OK …… 23 Icons displayed on the Main Tool Bar (top)
1-2
Continue structuring the displayed tool bar buttons
• Click OPTIONS – Default Properties For New Circuits – Schematics – Tool Bar
• Click on All off ………………..… deselects all buttons and removes checkmarks
• Click on File under Tool Bar
• For selection, check (÷) the “ buttons” per the listed tool bars were an “X” appears
No selections in FILE, OPTIONS, ANALYSIS or BOX
EDIT WINDOWS MODE VIEW
⊗ ⊗ ⊗⊗
⊗ ⊗ ⊗
⊗ ⊗
⊗ ⊗⊗
⊗ ⊗
⊗ ⊗
⊗ ⊗⊗
• Click Analysis Plots – Tool Bar
• Click on All off ………………… deselects all buttons and removes checkmarks
• Click on Edit under Tool Bar
• Check ( √ ) the “show button” per listed tool bars were an “X” appears ….…… this
selects the Analysis Icons for new circuits.
EDIT WINDOWS ANALYSIS MODE SCOPE CURSOR
⊗ ⊗ ⊗ ⊗ ⊗ ⊗
⊗ ⊗ ⊗
⊗
⊗
⊗ ⊗
⊗
⊗
After completing the selections, click OK
Click on FILE – NEW –SCHEMATIC then OK …………..………… icons selected are
displayed
As a verification, there should be 23 icons on the top row and 19 icons on the bottom
row of the toolbar.
The icons selected will be displayed on the tool bar and saved with all new circuits created.
Tip 2: To move groupings of the toolbar, press and hold the left button at the bottom left edge
of the tool bar grouping and drag to the desired location.
1-3
CONTINUING SETTING DEFAULT PARAMETERS FOR NEW CIRCUITS:
• Use DIFFAMP as the example ……………… open DIFFAMP.cir in the DATA Directory
• Press F10 ……………………………………….……… Color / Font dialog box displayed
• Under Objects click on Default Grid Text ...… select Comic Sans MS – 14 - bold –
blue
• Click on Node Number .………………………….………… select Arial – 14 – bold – blue
• Click OK …………………………………….……….. these new defaults are now in effect
• The fonts of existing text will not change. New text added uses the new defaults
1-4
SCHEMATIC EDITING
Use DIFFAMP as the example ..... Open DIFFAMP.cir in the DATA Directory
IDENTIFY NODES: ..................................................... ........ identifies nodes on the schematic
DELETE COMPONENTS/LINES:
• Select the color (GREEN) then OK then click on the screen ….….. text is green
1-5
TO EDIT TEXT:
• Double click on the THIS IS MY TEXT
• Click on Text Tab …………………………………… edit by adding MODIFIED then OK
• Click anywhere on the screen …………………………………..… modified text appears
TO CHANGE VALUE OR PARAMETER OF A COMPONENT/ SOURCE:
• Click FILE - NEW or click on then SCHEMATIC then OK ........... clears screen
1-6
BUILDING A SCHEMATIC
The Schematic to be built:
TIP 3: To move text, components, or wires hold the left button down over the subject and
drag to the desired location.
TIP 4: To duplicate a component or source, hold down the CTRL key then drag the desired
component / source using the left mouse
TIP 5 : To help align / space components /sources and wires click on to display a grid
DC CURRENT SOURCE:
• Per TIP 5, click on and select "Grid Bold 6" ........ height of a component / source
1-7
BATTERIES: .......................................................................... applies DC voltage to the circuit
• Click on icon ......... will display a battery. The LONG line is the + terminal
• Hold down the LEFT button and rotate with the RIGHT button for propper orientation
• Release the LEFT button when the desired position and orientation is achieved
• Enter 15V in the VALUE box then OK
RESISTORS:
In the preferences, Node Snap was selected. This feature eases the wiring of the circuit
h Place the mouse at any large dot point and drag the wire to the desired end point. If
the mouse button is released one small division before the end point, the wire will
“snap” to the end point.
h “Wire-up” the circuit per the schematic …. use the SPACEBAR to switch modes
h The Node Snap feature can be toggled on/off using the hot keys CTRL+ALT+N
1-8
GROUND: …………………….…..………….. all circuits must have a ground in the circuit
RUBBERBANDING:
In the preferences, Rubberbanding was selected. Using this feature can move components and
sources to help create a more presentable schematic.
• The is the icon for rubberbanding .... it should already be selected via the preferences
h Hold down the left mouse button on the 5K resistor. Drag the resistor (left/right) to center the
resistor. Also, drag the resistor (up/down) to obtain desired spacing.
h Experiment with the rubberbanding feature for the other components in the circuit.
h Click on FILE – SAVE AS …… save the file in the ELECTRONICS directory as TESTDC
• To select other components and sources not on the toolbar, Press CTRL-1. This
displays a listing that is a toggle i.e. pressing CTRL-1 again removes the listing.°
• Press CTRL-1 to display the components. Select NPN and move the cursor to the
screen
• Click on the NPN transistor then select the 2N2222 model then OK.
• Pressing CTRL-2, CTRL-3, and CTRL-4 displays other components two of which are
related to digital use. Pressing CTRL -1,CTRL-2, CTRL-3, and CTRL-4 removes the
component displays.
h Click on the NPN transistor then press delete….. transistor is deleted from the screen
1-9
ANALYSIS
SHORT CUTS: Pressing F3 returns to the Schematic
Pressing F9 returns from the Waveform to the Analysis Limits Screen
• Click on icon and select "No Grids" ............................... removes the grid pattern
A B C D P X EXPRESSION Y EXPRESSION
1 T I(I1)
2 T V(3)
1-10
WAVEFORM ENHANCEMENTS:
• Click on icon or press F8 ..... enables cursor feature and displays value of I (I1)
• Click on the V(2) screen ….. selects V2 waveform and displays value of V2 = 5V
Note: When in the cursor mode, holding down the left button and dragging the marker
gives the value and time on the screen. The same affect occurs with the right button.
• Click on icon ................. displays the power dissipation in each component /source
1-11
IMPORTING COMPONENTS INTO THE MAIN LIBRARY:
1-12
TEST FOR IMPORTED COMPONENTS IN THE LIBRARY
When the components are on the screen, practice orienting them by holding down the left
mouse button and rotating the orientation by clicking the right mouse button.
• Click on FILE - NEW - SCHEMATIC then OK
• Press CTRL-1 ........................................... displays component/source selection chart
• Click NPN on the selection chart then move cursor to the Draw area
• Click again and the model dialog box is shown
• Scroll down and select QN. Check show box to show QN on the schematic then OK
• Click PNP on the selection chart then move cursor to the Draw area
• Click again and the model dialog box is shown
• Scroll down and select QP. Check show box to show QP on the schematic then OK
• Click DIODE on the selection chart then move cursor to the Draw area
• Click again and the model dialog box is shown
• Scroll down and select D. Check the show box to show D on the schematic then OK
• Click Opamp on the selection chart then move cursor to the Draw area
• Click again and the model dialog box is shown
• Scroll down and select OP. Check show box to show OP on the schematic then OK
• Press CRTL-1 ................................................ removes the component selection chart
• Click FILE - NEW - SCHEMATIC or click on then OK ................ clears the screen
1-13
CREATE VARIOUS TYPES OF DYNAMIC VOLTAGE SOURCES
SINE WAVE:
• Click on the voltage source icon then click anywhere on the screen.
• Click on the sin (sine wave) tab
- VO is the offset voltage …………………………..…………… set to zero
- VA is the zero to peak voltage ………………………….……. set to 1 (V)
- FO is the frequency ………………………………………set to 1000 (HZ)
- TD, DF, and PH parameters to be set to zero
h Click on the Save Settings button and then select typical
h Enter SIN 1-1000 in the Enter Button Name box then OK …. SIN 1-1000 is displayed
h Click OK….. a sine wave having a 1V o/p amplitude with a frequency of 1000 HZ
has been created and is now available for use as a sine wave voltage source.
PULSE:
• Click on the voltage source icon then click anywhere on the screen.
• Click on Pulse (next to the sin button)
• The pulse structure is as follows:
• Enter 05 PULSE in the Enter Button Name box then OK ….. 05 PULSE is
displayed
• Click OK….. a pulse having a 0 to 5 volt amplitude with a 1 usec pulse width and a
frequency of 200 KHz ( 5 usec period) has been created and is now available for
use as a pulse source voltage.
1-14
SQUARE WAVE:
• Click on the voltage source icon then click anywhere on the screen.
• Click on Pulse (next to the none button) then click on SQUARE
• The square wave structure is as follows:
TRIANGULAR WAVE:
I
• Click on the voltage source ○ icon then click anywhere on the screen
I
• Click on Pulse (next to the none button) then click on TRIANGLE.
• The triangular wave structure is as follows :
1-15
TRANSIENT ANALYSIS
Transient Analysis is the simulation of circuit performance in the time domain
HOTKEYS: ………………………..…………short cut keys for the Transient Analysis Operation
I
• Click on the voltage source ○ icon then click anywhere on the screen.
I
• Click sin then sin1-1000 then OK...... selects the 1volt o/p sine wave with a frequency of 1Khz
• Click on value then check the show box then OK
• After building the circuit, click on icon and position the cursor under the schematic
• Type : THIS IS A TEST CIRCUIT FOR AC then OK
LABEL NODES:
1-16
The input voltage source for this circuit (SIN 1-1000) is a 1V o/p sIne wave having a
frequency of 1Khz that has been installed into the main library. The parameters of this sine
wave can readily be changed for a specific circuit.
In this case, SIN 1-1000 shall be changed to have an amplitude of 2V o/p and a
frequency of 2Khz. This change will only be valid for this circuit and will not change the
sine wave parameters in the library.
P column ....... determines the waveform display location Choose: 1 for all
rows
X expression ............................………. the time axis ................ enter T for all rows
Y expression ............................................... specifies the expression for the Y axis
Example displays: V(1) .................... voltage at node #1 Enter:
V(1,2) ….. voltage between node #1 and #2 V(IN)
V(R1) .………..... voltage across R1 V(OUT)
I(R1) .................. current flow in R1 V(3)
X range ................................................... usually matches the TIME RANGE limit
Format: High, low .......low default is zero for no entry
Y range ................................................ scales the voltage, current, power display
1-17
AUTO SCALE RANGES: ................. when selected, automatically establishes the X and Y
scale to utilize the entire screen. Select this feature
• Click on the icon ..................displays tabulated numeric output of V(IN) data points
• Scroll down with the mouse or arrow keys to view the waveform value for each step
• Each step value = Time Range (1000us)/ number of Points (100) = 10 usec
• Press F2 or click on RUN …..………………………………………3 waveforms displayed
• Press F9 ..................................……......... back to the Transient Analysis Limit window
• Type a 2 (replace 1) in the first row under the P column ................ will split the display
• Press F2 or click on RUN...........................waveforms V(IN) split from V(OUT) and V(3)
• Press F9 . back to the Transient Analysis Limit window - change Time Range to 5m
• Press F2 or click on RUN ….............................. ten cycles of the waveform displayed
• Press F9 ................................................... back to the Transient Analysis Limit Window
• Change Time Range to 1m then press F2 …...… two cycles of the waveform displayed
• Click on icon and position the cursor to the desired location on the screen
• Type "THIS IS MY WAVEFORM"
• Click on Font Tab and select Arial - 12 - bold then OK ............... text on waveform
• Drag text to desired location
1-18
TO CHANGE COLOR OF TEXT:
• Click on text ............................................................................................. text gets red
• Click on icon and select the desired color (PINK) then OK
• Click the left button away from the text ............................................. text color is pink
TO DELETE TEXT:
• Click on text, then Press delete …………………………………………..…..text deleted
USING THE CURSOR MODE:
• Click the desired waveform i.e. V(IN) ......................... will be underlined after selection
• Click on icon or press F8.........................................enables the cursor feature
• Press/Hold the left button and move the cursor to the desired position on the
waveform
- The marker will be on the selected waveform and measurements displayed
• Release the left button
• Press/Hold the right button and move the cursor to the desired position
• Release the right button
- The amplitude and time values as well as the differences (DELTA) between
the selected cursor position will be displayed for all three waveforms.
• Another waveform [V(OUT) or V(3)] can be selected and the cursors moved to the
desired points on the waveform to display the voltage/time measurements of the
selected waveform.
• Note the display , V(OUT) V and , V(3) V that appear below the waveform. The
selected waveform will have a B in the block.
• Clicking in the open box will create a R or L to appear indicating the right or left
mouse button is active for the selected waveform.
• The result is that the cursor is on both waveforms and the numeric displays show the
voltage/time values and delta between the two waveforms. Move the right and left
cursors and note the time/amplitude changes.
1-19
MAGNIFICATION OF THE WAVEFORM:
Display: Step What Click on down arrow and select V1 (sine wave input)
From 0.2
To 1.0
Steps 0.2 .......... results in 5 steps with each amplitude changing by 0.20V/step
Step It YES …………….. all other selections are defaults for the DEMO program
• Click OK
• Press F2 .......................................................…. results in 5 steps for V(3) and V(OUT)
• Click on V(OUT) ……………………………….………………. V(OUT) will be underlined
• Click on icon or press F8 .......................................... enables the cursor feature
• Move the left cursor near the peak then release the button
• Move marker with up/down keys
• The values of V(OUT), V(IN), and V(3) are displayed at each position
• Press F11 ...................………………………………….. change step It to NO then OK
• Press F2 ....................……………………………………... single waveforms displayed
1-21
PROBE OPTION:
1-22
AC ANALYSIS
1. Frequency Range: This is the frequency range over which the simulation will be run.
- Format: 10KHz,10 ... displays response from 10 Hz to 10 KHz
- Format: 10KHz ............................ displays response at 10 KHz
Enter: 20KHz,10
2. Frequency Range: Select log
3. Number of Points: Enter 5001 ……. will yield a fine resolution for the waveform plot
4. Temperature: 27 (°C) is the default
5. Maximum change %: only valid if auto was chosen instead of log in step 2 above
6. Select Auto Scale Ranges ………………..…automatically sets the vertical axis scale
A column ......................................................... toggles the linear/log scale for the x axis
Select: log scale for both rows
B column ......................................................... toggles the linear/log scale for the y axis
Select: linear scale for both rows
C column .................................................. determines the color of plot on the waveform
Select: 1ST row red --- 2ND row blue
D column .................….......….................... places the waveform in a numeric output file
Select: disable both rows (black color)
E column select rectangular --when selected the X expression block is white (not gray)
Leave Page column blank
P column ............................….... determines the display were the variable will be plotted
Enter 1 in both rows
1-23
X expression .......………………………... select F which defines the x axis as frequency
Y expression ............................................ selected waveform or values to be displayed
Example displays: db(V(1)) ................................voltage at node #1 expressed in db
db(V(2)) ............................... voltage at node #2 expressed in db
V(1) .......................….. voltage at node #1 expressed in volts
RE(V(1)) ................................. real part of V1 expressed in volts
I(R1) ............................ current flow in R1 expressed in amps
ph(V(1)) ….......................... phase of V1 expressed in degrees
Select: db(V(OUT)) ……………. 1ST row
db(V(3)) ………..…….... 2ND row
• Click on icon ......enables the right / left arrow keys for fine moving of the cursor
• Click on db (V(3)) to select this frequency plot ……. db(V(3)) will be underlined
• Hold down the left mouse button and move close to 1Khz then release
• Using the right / left arrow keys precisely select 1Khz
• Hold down the right mouse button and move close to 10Khz then release
• Hold down the SHIFT key, use the right / left arrow keys to precisely select 10Khz.
• Measure gain differences (DELTA) between 1Khz and 10Khz for V(3)…........ 3.22 db
• Note V(OUT) gain differences are also displayed …....................................... -2.15 db
• Press F9 …......................................................................... back to AC Analysis Limits
• In the Y expression change db(V(OUT)) to ph(V(OUT)) and db(V(3)) to ph(V(3))
• Press F2 or click on RUN ……………...……… phases of V(OUT) and V3 displayed
1-24
ADVANCED FUNCTIONS OF MICROCAP
1-25
CREATING SINE WAVE AND PULSE CURRENT SOURCES:
SINE WAVE:
− − 1 ma
-−-−- -−-2
− V2V
−1 ma
-1 ma - - -− − −
−2V − − − −
1-26
PULSE:
1-27
TO VIEW A WAVEFORM THAT SUPPRESSES
THE INITIAL TRANSIENT BUILDUP
Circuits that contain storage type components (Capacitors and Inductors) have an initial
transient build up that eventually settle to a steady state response. The time it takes to reach
this steady state response depends upon the input waveform and the time constant of the
circuit. Many times it is desirable to view only the steady state response.
This is a procedure on the circuit below which will allow displaying of the steady state
response, while suppressing the initial transient buildup from the displayed waveform.
\
• Click on Analysis then Transient
Settings in Transient Analysis Limits Window :
• Time Range ..........16 ms *
• Max time step ...... 1us
• Select Auto Scale range
• Select 1 for both in the P column
• Enter T in both X expressions
• Enter V(IN) in row1 and V(OUT) in row2
• Press F2 or click on Run
The resulting waveforms are per Figure 1 ……...… note the transient buildup for approx 8 ms
*This time must be long enough for the steady state condition to be established.
With this example the Time Range selected must be > 8 ms
The following is the procedure for suppressing the transient condition i.e the first 8 ms
h The desired waveform for showing the transient buildup must be displayed
h Click on Transient then State Variable Editor or Press F12
h Click on write then click on save
h Click on close then press F9 …………… Transient Analysis Window displayed
h Operating point deselected
h State Variable …………………………….. choose read then click on RUN
The resulting waveforms are per Figure 2 …note the suppression of the initial transient buildup
After the suppression, the time range in the Transient Analysis Limits Window can be changed
to any value and the initial transient buildup will remained suppressed.
To terminate the Initial Transient suppression, press F9 then change the State Variables in the
Transient Analysis Limits Window to zero. Then click on Run …. Figure 1 will be displayed
1-28
Output waveform without transient suppression
VIN
↓
← VO
1-29
Output waveform with transient suppression
VIN
↓
← VO
1-30
PROCEDURE FOR PRINTING SCHEMATICS
AND WAVEFORMS ON ONE SHEET
• Select Auto Tile ……… splits & displays the schematic and waveform on the same sheet
• Click on Print
• Click on close to get back to the waveform
When the schematic and waveforms are on the same sheet , and the schematic has the node
numbers or (better) signal names displayed, the presentation of the Microcap simulation is
complete and concise.
The next page is a sample print illustrating the effect of the above procedures.
1-31
1-32