We are now ready to begin working in layout to proceed with our design. The first thing we need to do is create a library of footprints to be used in our PCB
layout. Footprints are a representation of the physical area that a part occupies on a PCB.
Footprints are also sometimes referred to as shapes or land patterns.
I cannot overemphasize this point. IT IS ABSOLUTELY CRUCIAL THAT YOUR FOOTPRINTS ARE CORRECT. Double-check
them, triple-check them. It is sometimes possible to live with an error in a schematic symbol, but a footprint error can often sink your entire design. Please be
VERY CAREFUL.
Start Layout Engineer’s Edition to begin working with footprints. Libraries for Footprints are very similar to libraries for schematic parts. Layout has a
separate tool for working with footprint libraries, though. To start this tool, select Tools-->Library Manager. You will get a new window that
looks like this.
There are two versions of Layout: Engineer’s Edition and Plus. They are identical with the exception that Plus has an autorouter. We will not use
this feature.
You will notice that there are already several libraries available for use. OrCAD has many existing footprints that you can use in your own design. As with
the schematic symbols, be very careful to check that these footprints for correctness before using them. Often, you will have to make footprints for parts
that don’t already have one. Most datasheets for parts will contain the mechanical information necessary to make a correct footprint. However, before
making a footprint it is necessary to understand a little bit about how PCBs are constructed.
Let’s take a look at a padstack definition for an existing part. In the Library Manager, select the library DIP100T and highlight the first part
DIP.100/14/W.300/L.700. You will see the part footprint in the Library Manager.
Layout uses a series of spreadsheets to store information about your design. Padstacks are stored in the padstack spreadsheet. To access this spreadsheet,
click the View Spreadsheet icon and choose Padstacks. This footprint is composed of two padstacks, one for pin 1, which is
square, and another padstack for the other pins. When you open the spreadsheet, you will first see a padstack called T1. Padstacks T1
to T7 are default padstacks and can be modified for your own use. The padstacks we want to look at are at the bottom of the list;
scroll down until you see DIP100T.llb_pad1 or DIP100T.llb_pad2. These are the two padstacks for this footprint. You will
notice that there are numbers on some of the layers that define how the padstack looks physically on that particular layer. We will come back to this in a
minute.
Close the padstack spreadsheet and open up the footprints spreadsheet. The name is confusing; it should really be called something like the pins
spreadsheet because this spreadsheet defines the locations of the pins and also which padstack they use. You will see each pin for the part in this
spreadsheet, its x and y locations, and the padstack used for each pin. Notice that pin 1 uses the square padstack, while the others use the round one.
Now let’s create a new footprint from scratch for your design. We will make the footprint for the pushbutton (Panasonic part EVQ-PAG04M). The
mechanical diagram from the datasheet gives us all the information we need to know.
In the Library Manager, click Create New Footprint. This will bring up the following dialog box.
Name the footprint PB, and keep English for the Units. Even though the dimensions for the part are
given in metric, most PCB fabrication measurements are still done in inches (or mils, 1/1000 of an inch). We can switch between the two systems
fairly easily in OrCAD. Click OK to create the part. You will now see a new part with just one pin in the Library Manager.
Since this is a metric part, we need to change the systems settings to use metric instead of English. Select Options-->System Settings
to bring up the following dialog. Change the systems settings as shown.
Click OK when you have made the changes. Now you are working in a metric system. The switch has 4 pins total, but we only need to
define one padstack since the pins are all the same physically (not electrically). Open the padstacks spreadsheet. We will edit the padstack T1
, which is already being used by pin1. First, let’s start from scratch and fill in information for only the layers that we care about. In the spreadsheet,
double-click the padstack name T1. This brings up the Edit Padstack dialog for all layers in the padstack.
First, change the name of the padstack to something more useful like PB (the name of our footprint). Doing this will make this padstack
easier to find in Layout when there are 100s of padstacks to choose from. Next, select the Undefined radio button. This will reset the
padstack definitions on every layer. Click OK to continue. In the spreadsheet you should now see a padstack called PB
with no layers defined.
We will now set each layer individually. You can also select multiple layers at a time by holding down the CTRL key when you click
the layer name. First, let’s define the size of the drill used for this part. The datasheet tells us that we need a drill of 1 mm for this part. Select the layers
DRLDWG and DRILL. When you have multiple layers selected, you will need to right-click and choose Properties
to bring up the Edit Padstack dialog. Choose the Round radio button and give the width and height a value of 1.
Click OK when done. The changes you made should now be reflected in the spreadsheet.
Now we will define the amount of metal on the routing layers beyond the size of the drill. This is called the annular ring. Each board shop will have
requirements on the minimum annular ring size based on the drill diameter. In most cases 20 mils (1 mil = 1/1000 inch) is a safe bet. 1 mm is approximately
40 mils, so 20 mils is about 0.5 mm. Select the following layers and bring up the Edit Padstack dialog: TOP, BOTTOM, INNER.
Even though we have no inner routing layers, it is good practice to go ahead and define them. Make the pads round and put the value of 1.5 in the height
and width fields.
Next, we need to define the clearance on the plane layers. The middle layers of our circuit board are solid pieces of copper that are used for power and
ground. To prevent short circuits, we need to define a clearance around our drill. Most board houses will also have requirements for this, but 35 mils
beyond the drill size is usually a good start. In our case, we will do a little rounding and just use 2 mm. Select the PLANE layer and define
a round pad with a height and width of 2 mm.
The last thing we need to define is the solder mask. This is usually defined as slightly larger (about 5 mils) than the annular rings on the top and bottom
layers. Select SMTOP and SMBOT and make them round pads with height and width of 1.625 mm.
You have finished defining your padstack for this part. You can close the spreadsheet and you will see that pin 1 should now look a little different based
on the changes you just made.
You probably noticed that you don’t need to define all of the layers. As a guide, here are the layers that you need to define for thru-hole and surface mount parts.
- Thru-Hole - TOP, BOTTOM, INNER, PLANCE, SMTOP, SMBOT, DRLDWG, DRILL
- Surface Mount - TOP, SMTOP, SPTOP
As far as padstacks are concerned, surface mount parts are a lot easier to work with.
Library Manager can be a bit flaky sometimes, so it is best to save your changes to footprints often. Go ahead and click Save As.
You have not yet created a footprint library, so you will need to click the Create New Library button. Browse to your lib
directory and name the library Elec424Tutorial.
Let’s now clean up a few things before adding the rest of the pins. You will see a lot of text on your screen. Most of it is on the layer ASSYTOP, which
we will not use. This text is safe to delete. Open the text spreadsheet and you will see five text items. Select all the text on the ASSYTOP layer and delete
them. This will clean up your footprint a bit. You can leave the reference designator text on the SSTOP layer. We will need it.
We can add pins to the footprint in a number of ways, but the easiest way to do this is to use the footprints spreadsheet. Open the spreadsheet and you will see just
pin 1 with an x,y location of 0,0.
ALWAYS PLACE PIN 1 AT 0,0.
For this part we have to take note of a few things. Our schematic symbol has pins 1 to 4, while the datasheet for the part labels the pins A, A', B and B'. We will make
pin 1 = A', pin 2 = A, pin 3 = B and pin 4 = B'. To create a new pin, just highlight pin 1 in the spreadsheet and type CTRL-C. This will create open the
following Add Pad dialog.
This dialog allows you to give the pad a name (OrCAD autoincrements, so 2 is already given as the name), adjust the x and y coordinates of the pin, and choose
which padstack you want to use for the pin. In most cases, you will leave the other settings as they are by default. Set the x and y coordinates as they are shown
above and click OK. Add the remaining two pads as shown on the mechanical drawing for the pushbutton. When you close the footprint spreadsheet,
your footprint should look like this.
You are not quite done with the footprint even though all the pins are placed. There are just a few things left to do. First, we need to define a place outline. A place
outline is a mechanical boundary that Layout uses to keep parts from hitting each other once assembled. In this case, the part outline is easy to draw. The physical
switch does not extend beyond the square defined by the pads, so we will just draw a box around them. To do this we use the Obstacle Tool.
Click the tool icon to switch to the obstacle tool and then right-click in the workspace. Select
New from the context menu. Right-click again and select
Properties. The following dialog box will appear.
Give the obstacle a meaningful name. Select Place Outline as the Obstacle Type. The width in this case is arbitrary. The layer is very
important. This part is a thru-hole part, so in this case we want to make sure that surface mount parts on the bottom side of the board will not interfere with this part.
By choosing Global Layer, the place outline will extend through every layer of the board. If this were a surface mount part, we could put the place outline
on the top layer only. Click OK when you are done making changes. Now you need to draw the outline. Left-click to place each corner. When you have
drawn at least 3 corners, you can press ‘F’ to have OrCAD finish the outline for you. It should look like this.
There is just one last thing you need to do to make your footprint complete. It is often nice to have an outline of the part on the silkscreen layer. This is not necessary,
but it is a nice touch and makes things a bit easier during assembly of your board. We can easily make this outline by copying the place outline in the obstacles
spreadsheet. Open the obstacle spreadsheet and copy the place outline by highlighting it and pressing CTRL-C just like you did for copying a pin.
Double-click the new obstacle to bring up the Edit Obstacle dialog. Give the obstacle a meaningful new name, change the type to Detail,
and change the layer to SSTOP.
Congratulations! You have created your first footprint.
I have provided a library of the remaining footprints for use in this design. Use the Add… button to add the library to the list of available libraries.
Use the Save As button to copy each footprint into your own library. You can find this library on Owlnet at:
/home/jpfrantz/elec424/tutorial/lib/tutorial.llb
Copy all of the parts from this library into your library.