Orcad Tutorial Italian
Orcad Tutorial Italian
The use of the Capture package is rather intuitive if only the basic tools are
used and I will therefore limit myself to a brief overview. The in-depth
Capture description would require another tutorial, which I will perhaps
write one day.
A tip is to use the Capture Layout library instead of Device for generic
devices as it creates fewer problems in the next step due to the exact
correspondence in the pin nomenclature. Generally the other libraries (eg
TTL, CMOS, various analogs) have no problems. It is then appropriate and
often necessary to create your own libraries with the most used
components, even if it is not always easy for beginners.
To draw the components select Place> Part , choosing the device you want
in the libraries. Each component is identified by a Part Reference and
a Value : the use of the second identifier is intuitive (eg resistance value)
and, if necessary, it can be modified. The Part Reference is appropriate not
to be changed manually or even deleted as this could create problems in the
next steps.
For the electrical connections it is necessary to use the Place> Wire tool (be
careful to exactly connect the wires to the pins of the components, an
operation greatly facilitated by the use of the grid, activated by definition
and which I strongly advise against deactivation. In the case of connection
of three wires or pins it is necessary to use the Place> Junction tool (in
obvious cases the point indicating the connection is automatically placed.) It
is convenient and appropriate (but not mandatory) to name the links, at
least to the most important ones, with the command Place> Net Alias .
When saving the file containing the schema (.dsn) remember to specify the
directory (Capture proposes the last one used but this is often not a rational
choice) and possibly even a meaningful name.
The tools
Before continuing, assign the PartReference of each component, ie the
progressive numbering of each component (for example R1, R2, R3 ...). Can
I proceed manually, replacing the font? present by default in the Part
Reference with a progressive number but I strongly recommend the use of
the Tools> Update Part Reference command .
If new components are added, this command can be used again, leaving the
number of components already updated unchanged. If you have already
started routing the circuit, I do not recommend using the Tools> Update Part
Reference command to remove the numbering and the subsequent re-
numbering because the operation destroys any PCBs already created by the
same scheme.
A second very useful tool is Tools> Design Rules Check which allows to verify
the existence of formal errors (pins or unconnected wires, short circuits,
duplicated components ...). When asked which errors to verify, I
recommend you to select all the boxes except the one related to
OrCad_SDT_IV (unless of course you also use this old DOS program). I also
advise you to activate the report, a text file that is worth consulting
because at times it shows devious errors such as the presence of several
masses with different names and therefore not connected to each other.
It is necessary to choose the Layout folder (the generated file has the
extension .mnl) and highlight the Run Eco To Layout options (it is used to
signal Layout any modifications to the schema so that it automatically
reloads the netlist) and User Properties Are In Inch (unless the unlikely event
of actually working in millimeters, the unit of measurement "absurdly" by
default).
Obviously, to start a new drawing, click on File> New . Two files are
needed:
The name of the .max file that will contain the printed circuit is then
requested.
Another type of file that is used is the one that contains the footprints (with
the .llb extension), that is the mechanical description of the various types of
components. The quantity of such files that comes with Layout is really
impressive but ... when needed, something is always missing. And you will
also find that often too much information is a stumbling block. Finally, most
libraries are not very suitable for the production of homemade circuits
which, necessarily, are built with a poor mechanical precision, without
solder-mask and, above all, with non-metallic holes. For this the last section
of this tutorial is dedicated to creating custom libraries .
At this point the operation begins which, above all the first few times, is
certainly the longest and the source of errors: the merger between the
information contained in the three files mentioned.
For each type of component, you are asked which footprint should be used,
with a window similar to the one shown (it does not refer to any of the
components of the example diagram).
The first few times this operation is rather long and boring but, fortunately,
the choices made are stored in the User.prt file and automatically reused
later: being a text file, it can be edited with any text editor even if the
more appropriate is to simply delete lines that are no longer needed or
contain errors. There is also the System.prt file , supplied with the program
and of identical structure and use, but I do not recommend its modification
as it contains standard assignments.
Electrical package xxx for comp xxx has at least one pin which has no
corresponding pin on footprint xxx.
This error occurs when the name of a pin of a component on the diagram
does not match the one present in the footprint library (for example the
anode of a diode indicated as A in one library and ANODO in another, or the
pin 15 of an integrated pin that has only 14). The simplest solution is to
choose another footprint. Alternatively you need to modify or create a
library in Capture (operation not described in this tutorial) or in Layout .
The dimensions and the number of sides of the card can be changed at any
time, simply by clicking on the border and dragging it where needed.
With the same tool it is possible to create mounting holes and other
mechanical objects without electrical functions.
To modify a property, select a row or a group of lines (also the whole table)
and then click with the right mouse button and choose Modify .
The size of the tracks is predefined but it might be appropriate to set it for
example to 15 or 20 mils (and maybe 50 for mass and 35 for power
supplies). I do not recommend to go below 8 mils, unless you have an
excellent photoengraving system. The system requires three measures
(minimum, default and maximum), generally equal to each other. If they
are different, the auto-route chooses the default one but manually you can
change the setting (for example to make the track pass in a particularly
narrow point).
The last dimension to be set is that of the grid used for routing the tracks
and the positioning of the vias (the holes that connect the various layers to
each other) and the components. To do this, select Option> Grid from the
main menu . Values normally used are 50 mils (even 100 for the components
is a good value). It is important (although not strictly necessary) that these
values are a whole sub-multiple of the distance between the pins of the
components (so generally 50, 25, 12.5, 6 ¼ mils are good if DIP integrated
circuits are used).
If the grid is too small in relation to the dimensions of the printout, a dotted
white rectangle is highlighted on the printout itself: it is only possible to
unravel it. This rectangle automatically moves between the various areas of
the printout and therefore there are no problems except a certain
inconvenience for the routing of long runs. Furthermore, there is sometimes
a certain slowness in the unraveling.
Grids that are too large sometimes make the unraveling of a circuit
impossible.
Spreadsheets
In the previous paragraph two spreadsheets have already been introduced
(the one for the definition of the isolations and the one for the definition of
the dimensions of the slopes) but as it is possible to see observing the menus
there are many others. These tools allow you to have all the parameters of
the design under control, they are initialized by uploading technology files
or strategies and can be modified manually. Frequent checking of the
information present in these sheets makes it possible to find and solve
numerous apparently problem-free problems
The other spreadsheets are as intuitive to use but in my opinion less useful
for making a direct change.
The components can be rotated and moved at will without obviously leaving
the edges and mutual overlaps.
the DRC is the icon that allows a continuous monitoring of the work
done and the immediate identification of any errors such as a
component placed outside the board or insulations not respected. To
activate it, click on the corresponding icon, which remains highlighted
in red. It is generally advisable to activate this option only when the
arrangement of the components is semi-definitive as it causes too
many error messages when the board is still far from the final
appearance. Once the DRC is activated, there are few occasions when
it should be deactivated.
The second command ( Auto> Board_space_check ) performs an
overall check on the board. It is appropriate to use this command
every now and then as the DRC sometimes misses something and the
sooner it becomes clearer the better.
The Plus version of Layout is also available with automatic component
placement but personally I found it very ineffective for single-sided circuits
and therefore I do not recommend it if not for a test run or in the case of
circuits with many small ones components similar to each other as external
dimensions. The only time I needed was to place a hundred components to
create a passive quadraphonic audio filter.
Manual_route is the least assisted tool and for this purpose they are in
the most complex cases (for example to create a zigzag track). The
program limits itself to preventing the violation of the rules (for
example, crossing with other tracks already present) and to signal the
point of arrival with a straight line. To activate this method, click on
the relative icon and then on the track you want to untangle. A little
help is obtained with a double click when the conclusion of the path is
"obvious". Note that if you want to make a manually created track no
longer editable, you must lock it (click with the right mouse button
and then Lock).
Manual_route_with_shove is similar to the previous one with the
possibility of moving any tracks (or even components if the
Option option> Grid> Shove_components is activated ). This method is
powerful enough to create tracks from the predefined route in an area
where there are already previously tracked tracks, to be moved
slightly to make room for new ones.
Auto_path is, among the manual ones, the one that leaves the most
control to the program. In many cases not too complex it is sufficient
to double-click on a connection of the ratsnest to see the track
complete by itself, moving any already present tracks and inserting
jumpers if necessary. In general, however, it is a better choice to
"accompany" the development of the track along the path that is
considered to be the best. It should be noted that, as long as the track
is not defined, what the program considers the best choice is outlined.
Using each of the three previous methods it is possible to introduce via (ie,
metallized holes between two layers or holes for the insertion of jumpers or
"bridges"). To do this, simply press the V key or press the 1 key to switch to
Layer_top or 2 to switch to the Layer_Bot. The routes are introduced
automatically using Auto_Path, if needed but sometimes even when it's
useless. Generally the size of the pitches by the way is a bit small than
necessary but can be changed using spreadsheet> padstack .
Some advice
Although the unraveling work is essentially based on experience, here are
some tips, in no particular order.
Before starting the rigging, print the circuit ( File> Print , selecting
Scaled_plot) to make a careful 1: 1 scale evaluation of the circuit and
the component footprint. Unfortunately, sometimes the monitor
"cheats" on the actual dimensions and the results that will be obtained
are not the expected ones
Manually untangle at least the most important tracks (for example
mass and power supply). In single-sided prints, the manual routing is
often faster and qualitatively better
When moving components or tracks into an already partially untangled
circuit, always check that the DRC is active. In general, once the
components are roughly positioned, it is useless to disable the DRC
You often use the command Auto> Board_space_check (and also Auto>
Board_design_check ) to search for violations of the drawing
rules. Don't wait for the program to make mistakes to find out how
useful and faster it is to use this command frequently
If you find that a track creates a short in several places (for example
after a change of minimum insulation on the fly) it is often faster to
remove the track than to correct the error. To remove a track, totally
or partially, click with the right mouse button on the track when using
the Manual_route_with_shove or Manual_route tools and
choose Remove or use the spreadsheet in a similar way
If you have to pass a bundle of tracks in a small space (even if
sufficient) it is better to use the Manual_route_with_shove tool . You
can also try reducing the grid to very low values or activate the Tools>
Gridless_tool tool
It is advisable and strongly advised to create your
own footprint libraries , as described in the last chapter of the tutorial
If you are designing a double-sided circuit, never use standard libraries
as they require metallised holes (unless of course you know how to do
them)
If you decide to change the width of a track, remember to delete
it first to make the changes effective
If you find difficulty in routing a track, press the X key on the
keyboard to invert the starting and ending point of the ratsnest: it
often simplifies things
To avoid the passage of tracks at a certain point, insert a rectangle or
a copper line or cover the space between the tracks with a ground
plane, insert the appropriate obstacles
(respectively Anti_copper , Copper_area , Free_track , Copper_pour )
with the same method already described for inserting the edges of the
print. All these objects can be electrically isolated or connected to a
track (for example GND)
Remember that with a 75 mils pitch the hole should be as low as 0.8
mm. With 60 mils pitches, the hole must be 0.6mm (sufficient for an
integrated DIP but not for a ¼ W resistance), with 100 mils pitches,
1.3 mm. A useful table can be found here
Layout provides some tools to identify and resolve errors after
executing Board_space_check: after selecting the Error_tool icon ,
with the Q key a text window opens with the description of the error
and with in the N key we can move between the various errors,
highlighted by a circle. The explanation given is not very effective,
especially at the beginning, but it helps
To verify the effective completion of the routing, use
the Spreadsheet> Statistic tool as sometimes microscopic sections
remain unconnected and difficult to identify until the test is
printed. If it is not possible to identify the nets not yet connected, it
is often useful to activate the automatic routing and let him complete
the job
If you have automatically untangled a card and made some changes,
remember before resuming the routing to reload the strategy
(or Spreadsheet> Route_pass , select all the lines, press the right
button and then Modify and uncheck Done)
On many occasions it is advisable to simplify the fraud by reversing
between them two pins of an integrated (for example the inputs of a
logic door). To do this, select the Pin_tool icon, then right-click and
select Swap. If the exchange does not appear to be correct from the
electrical point of view to the program (for example the attempt to
exchange an input with an output), a warning is issued and a
confirmation is requested. To update the schematic with this change,
use the Tools File> Reports> Orcad_backannotation in Layout
and Tool> Gate_and_pin_swap in Capture, in order to create and use,
respectively, a .swp file
Similarly it is possible to exchange two identical integrated doors. You
select Tool> Gate and, after using the right mouse button, Swap
As an alternative to the previous method, to simplify a routing,
a direct intervention on the schematic is possible , keeping Capture
and Layout open at the same time: in this case the libraries do not
need to support the swap and it is also possible to do little "orthodox"
operations such as the exchange of pins on the outputs of a
microcontroller
Before making radical changes to a circuit, save a copy of the work up
to that point. However, the program autonomously manages these
backups (all files have a .max extension: backupX.max, SweepX.max,
PlaceX.max)
Add writings to indicate the polarities of the components and above
all to identify the correct direction with which the transparencies will
be used (remembering that a writing that must be read correctly on
the solder side must be seen mirrored on the monitor during the
schematic project)
Layout likes to insert jumpers and away because in the industrial
production these are not a problem (they are instead for that makes
holes and welds by hand). To improve things you can use Option>
Manual_route and set a "cost" greater than 70 or 80 on the way: it is
obviously not advisable to overdo it. Similarly an intervention is
possible in the case of automatic routing ( Spreadsheet> Route_pass )
but even here it is better not to exaggerate for the secondary effects
that it could have on the entire strategy.
The press of the master
In order to make the circuit it is necessary to print the various layers of the
circuit separately. To do this, first use the Post_processing icon >
Set_up_batch .
After having selected one of the lines (bottom_layer in the example shown
here), clicked with the right mouse button and chosen modify, the window
that allows you to set the various parameters appears:
the type of output required (in practice, the hobbyist will always
choose Print_manager since it is unlikely to have a Gerber
photoplotter). The output on the printer is adequate for the
production of master for photoengraving
The option to keep the holes open (it is strongly recommended to
activate it). It is not possible to decide on its size but the one
obtained is adequate for manual drilling
The possible possibility of moving or rotating the image that will be
printed
The scale, obviously to leave 1: 1 if you print on acetate or on another
support for photoengraving
The possibility of Mirror. Personally I leave this option off for the
Bottom layer and active for the Top one as this allows you to use the
sheet that will be printed in the way I consider the best (ie with the
printing ink facing the copper). Be careful not to make mistakes
The option to enable or disable layer printing. Normally it is active
only for the Bottom, Top (if provided) and assembly layers. A separate
sheet is printed for each layer. It may also be useful to print the
drilling plan
The holes at one hundred of the pitches do not appear open even if
the appropriate option has been activated. In reality the print will be
correct, it is only an "oversight" of the programmers
The tracks often appear in various colors (usually blue). This thing,
apart from aesthetic considerations, poses a big problem: with a black
and white printer (in particular with lasers, the best for this use) the
tracks will appear netted, producing very bad results when going to
photoengraving. To solve the problem you need to take the following
steps (be scrupulous ...)
Below are four example circuit views chosen from the many available, not
printed to scale. In the order:
1. The window with the printout at the end of the routing operations
2. The printing of the weld side. Note that the color has been correctly
forced to black and that the print is symmetrical with respect to what
you will have to see on the printout if viewed from the weld side
3. The arrangement of the components (in the classic dark blue color)
4. The drilling plan (normally useless for the hobbyist) .
The use of libraries
In the course of the tutorial I have repeatedly mentioned the fact that it is
important to use own footprint libraries. The main reasons for this choice
are:
To create a new library, use the Tools> Library_manager command from the
main Layout window . A list of libraries is opened, by clicking on which the
list of the components they contain is shown. The same command is present
between the icons in the main Layout window and can also be used during
the routing of a circuit.
On the icon bar of the Library manager there are some tools to modify the
footprint, practically coinciding with those present in the Layout routing
window; the use is rather intuitive if you have already used the Layout
tools, especially if you start from a component already done (which I
strongly recommend, and not just the first few times).
The padstacks of those components that must not have welds on the upper
layer deserve special treatment (for double-sided circuits but obviously the
same component can be used in single-sided circuits). In this case it is
advisable that on the top layer the pitch diameter is much smaller (say 30
mils, practically the size of the hole), of an annular shape and above all
reported as No_connection and Non_plated . It is not advisable to
completely remove the pads from the top layer as, during the routing, you
could have the passage of a track in correspondence with the hole, with
obvious negative results and difficult to identify