PCB Artist Library Tutorial
PCB Artist Library Tutorial
Copyright Notice
Copyright WestDev Ltd. 1997-2008 PCB Artist is a Trademark of Advanced Circuits. All rights reserved. E&OE Copyright in the whole and every part of this software and manual belongs to WestDev Ltd. and may not be used, sold, transferred, copied or reproduced in whole or in part in any manner or in any media to any person, without the prior written consent of WestDev Ltd. If you use this manual you do so at your own risk and on the understanding that neither WestDev Ltd. nor associated companies shall be liable for any loss or damage of any kind. WestDev Ltd. does not warrant that the software package will function properly in every hardware software environment. Although WestDev Ltd. has tested the software and reviewed the documentation, WestDev Ltd. makes no warranty or representation, either express or implied, with respect to this software or documentation, their quality, performance, merchantability, or fitness for a particular purpose. This software and documentation are licensed 'as is', and you the licensee, by making use thereof, are assuming the entire risk as to their quality and performance. In no event will WestDev Ltd. be liable for direct, indirect, special, incidental, or consequential damage arising out of the use or inability to use the software or documentation, even if advised of the possibility of such damages. WestDev Ltd. reserves the right to alter, modify, correct and upgrade our software programs and publications without notice and without incurring liability. Microsoft, Windows, Windows NT and Intellimouse are either registered trademarks or trademarks of Microsoft Corporation. All other trademarks are acknowledged to their respective owners. Number One Systems & PCB Artist are trademarks of Westdev Ltd and Advanced Circuits respectively. Issue date: 19/09/08 iss 2 Advanced Circuits Inc. 21101 East 32nd Parkway Aurora, CO 80011 Toll free: 800-979-4PCB (4722) 1-303-576-6610 Fax: 1-888-224-3291
Contents
CONTENTS ......................................................................................................3 CHAPTER 1. LIBRARY CREATION ..............................................................................5
Introduction ..........................................................................................................5 Understanding PCB Artist Libraries ...........................................................................5 Schematic and PCB Symbol Libraries........................................................................8 Component Libraries .............................................................................................. 8 Library Manager Overview ...................................................................................... 9
Component libraries These normally use the manufacturers proper component names like: SN7400 SN74LS10 PIC18C242 CA3450 Only the names from this library is used in both Schematic design and PCB layout.
Schematic Symbol library Symbols are often called Gates. These have generic names like: NAND, Buffer, OPAMP, Res, Cap.
PCB Symbol library These have generic names like: DIP14, SOIC14, QFP44
The benefits of separate Schematic symbols, PCB symbols and Component libraries
In electronic design we have Schematics symbols and we have PCB symbols (or footprints). Commonly, integrated circuits and other components use the same physical footprint on the PCB, but have completely different technical specifications and internal digital or analogue circuitry. For example, take the standard 14-pin DIP footprint:
The 14-pin DIP (Dual Inline Package) is used on 1,000s of different components. For efficiency, we only want to store the 14-pin DIP PCB footprint once and then use it repeatedly to build different Parts or components that specify a 14-pin DIP footprint. By the same token we only want to store a schematic symbol once and use it repeatedly in various configurations to produce different components. Hence, we have a PCB symbol library to store our 14-pin DIP footprint plus any other footprints and a Schematic symbol library for our 2-input NAND gate plus any other Schematic symbols. These can then be used on their own or brought together (Schematic symbol & PCB symbol) in many different permutations to create a Component Library. We also have multiple Component libraries in PCB Artist to make the categorization of components clearer, these can be categorized by manufacturer, type, functionality etc. Key Point: In PCB Artist, it is only the component name taken from the Component library that is used in the Schematic design and PCB layout. As an example, heres how we go about creating a simple 7400 component to use in the Schematic design and the PCB layout: We can create a new 7400 component by selecting 4x 2-input NAND gates from the Schematic symbol library and a 14-pin DIP package from the PCB symbol library. By combining these in the component editor and inserting the correct pin mapping as per the databook specification, we produce an SN7400 Component. This is then stored with a unique component name (SN7400 in this example) in the Component Library ready to use in our designs.
4x gates
1x PCB symbol
Component
Question: Can I create a Schematic symbol in PCB Artist and then select it for use in the Schematic design without creating a PCB symbol?
You can create a new Schematic symbol and store it in the Schematic symbol library. But before you can use it in a design you have to create a Component for the symbol and store this in the Component library for use in your designs. Typically, this is how power and ground symbols would be defined for example.
Why is there this added step of creating a Component - why cant I just use the symbol immediately?
Working this way, any Schematic Symbols you produce are stored with an appropriate name in the Schematic symbol library. It can then be reused multiple times to create different components using the manufacturers component name. Most components you produce will have the complete Schematic symbol and PCB symbol.
Is this the same for PCB symbols? Can I create a PCB symbol without a Schematic symbol?
This is exactly the same for PCB symbols as with Schematic symbols. Before you can use your new PCB symbol in a design you have to produce a component even though this component may not have a Schematic symbol associated with it. A PCB only symbol could be added to the design as a drawing blank or a test-pad probe point for example. Once a PCB only or Schematic only component has been created, the missing opposite symbol type can be added to make it available to both design editors.
On the following pages is a tutorial that goes through the steps of creating Schematic symbols, PCB symbols and a component to tie them together. Note: Standards for symbols vary from company to company. The tutorial is presented only as a means to understand the process of design and management and how to use the tools available.
Component Libraries
Component libraries can be identified with the file extension .cml. Each component in a library is aware of the symbol name and library name of its constituent symbols. The components can contain several Schematic symbol gates in each component, and a number of PCB footprints, each with its own symbol. For example, a component might have assigned to it 3x NAND gates and a power gate for use in the Schematic design, a DIL and an SMD footprint for use in PCB. The diagram below shows how the Component will access both the Schematic symbol library and the PCB symbol library as required in the relevant design editor.
PCB Editor
Program
Libraries
Component Library (.CML) Name: 74LS00
Packages.txt (PackageType) DIL SM QFP etc.
Schematic Symbol
PCB Symbol
For this tutorial, we will create a new library for each symbol/component type. You could of course, add your new symbols to an existing library. The Symbol Editor will take a set of default design settings, such as Styles, Colours, Grids, Units etc. These are taken from a selected Technology file. Once you become familiar with PCB Artist, you can customize these files using your own selections. If you click on the Tech Files button on this dialog, you will see how to choose this Technology file. For now we will leave the defaults set to the ones supplied in the standard technology file.
In the File name: box, type in the name Tutorial. This will be the name of your new library. Click Save to save this file name and exit the dialog. The new Tutorial library is selected and is ready to have new symbols saved into it. You need to create a new Schematic symbol so open the Symbol Editor using the New Item button.
The Symbol Editor opens. You will notice this looks very similar to the Schematic design editor used in the design tutorial. It is similar in its use and its interaction, the way in which items move and feel. For this tutorial exercise, we are going to create an op-amp component. The component will contain two symbols, both different. It will use a op-amp gate plus a power gate, we will do this to demonstrate using multiple gates for one component.
Ensure the grid Step Size is to 50 mil steps and click OK.
Notice the Symbol origin point S at the top left of the shape. We will move this later on to a more relevant location. This is always added to the original of the first symbol item added during creation. In order to get the triangle shape, you will need to take the editing mode out of Orthogonal and switch it into Free hand editing. You could of course just simply use the Add Triangle option but this would be too easy! To change to Free hand mode, click once to add a corner, 500 mil down (10 grid points) from the start point and then right click to display the shortcut menu.
Now you can move the floating second segment right 500 mil and up 250 mil to give you the point on the triangle. Because the grid is set to 50 mil steps you will be able to snap to 250 mils exactly.
To create an arc
This example doesnt require an arc but if yours does in future, they are easy to create. To add an arc, select a shape segment and right click. In the example below we have add an additional box shape to demonstrate this on. From the shortcut menu choose Arc> and then Angle 180. The segment becomes an arc.
If your arc is the wrong way (faces inwards no out), right click on the arc shape again and choose Arc> from the shortcut menu and Flip Arc. This will swap it the other way round.
Select a start point 100 mils down from the symbol origin S on the vertical segment (2 grid points), drag a line 100 mils (2 grid points) to the left. Like this:
Use a single click to finish. Add the additional lines required by selecting the line you have just inserted and clicking <Ctrl-C> to copy and <Ctrl-V> to paste. Do this twice. Of course you can always simply draw them in using the Add Shape Line tool as well.
Position the two additional lines as shown above. At this stage PCB Artist does not recognize these lines as electrical connect points or pins, we are now going to insert these.
Adding pins
Pins need to be added to the Symbol to give PCB Artist real electrical points on which to make connections. This gives PCB Artist its unique true electrical connectivity at all times. On the Schematic Symbol toolbar, select Add Pad.
A pin will be available on the end of your cursor shown in the highlight color.
Position each pin on the end of the lines so that it looks like the example below. As each pin is positioned, the next one in the sequence is available on the end of your cursor.
You will see that these are auto-numbered as you proceed. After the last pin has been added, click the <Esc> key to cancel. These pins must be sequential but the numbering sequence on the Symbol doesnt matter, they are there for reference only. They must also be unique and with no gaps in the sequence. Click the <A> key to position the symbol to fit the window.
The Pin name position marker (N3) will only be populated once the Component is used in the Schematic design, until then you only see the name position marker. This
You may also see the symbol origin S character on Pin 1 if this pin was the first item to be added to the symbol (before the symbol shape). The Pin Number is the automatically numbered. This can represent the actual terminal number if required but can be renumbered in the Component definition. The number is shown in the position it will appear in when used in the design. This can be moved in the Symbol editor but cannot be moved once placed in the design. Tip: When adding pins, if you have moved the sequence number and the location or alignment of the pad name text, if you wish to use this on subsequent terminals, select it first and then select Add Pad. This will take the style of the selected terminal and add the next one in exactly the same way.
You can change the text alignment that will be used once the symbol is placed in the design and if a pin name has been used, you can opt to align it Left or Right, that is the direction it will read from. For our example, select the Right alignment and click OK on the dialog. The symbol will update to reflect this change. The pin name direction is now left most of the pin maker indicating it will be justified from right to left.
When the Symbol is used with the component in the design, the Reference Origin is also used for positioning the Component Name, Package Name and PCB Symbol Name if these items are selected as displayed. You are now ready to save the symbol into the library.
Choose the Tutorial.ssl library and give the symbol the name OPAMP, click OK.
Once you are satisfied with this, move onto the next section to create a PCB Symbol (footprint).
For this tutorial, we will create a new library to add your new PCB symbol to.
In the File name box, type Tutorial as your new PCB symbol library. Click Save to accept this. The library manager is now ready to start entering new PCB symbols.
As you will notice, this is the start of the footprint creation process. Click the Next> button to move forward and start the new symbol. Across the bottom of the page are always located the <Back, Next>, Cancel and Help buttons. You can use these to navigate each page, or you can simply click the mouse on the navigation bar at the top left side of the wizard. The next page is used to choose a possible Technology file and the Units to be used.
No technology file will be used yet but we will change the Units to Metric and a Precision of 2. Our footprint is very small and will require a pin pitch of 0.5mm. The preview pane will display a symbol, this is purely a graphical representation of the current shape and will be changed shortly. Weve also changed the background color from black to white to make it more readable in this PDF file. Yours will be black still. Click Next> to move on. On the type page, select the SOIC shape. Your preview will now change to represent an SOIC device. On Origin, select Center. For a surface mount (SM) component, this is normal.
Click Next> to move on. The Pads page is used to define the overall footprint layout. This is probably the most important page of the wizard. The default page setup is shown below, we need to change the parameters defined here.
In Measurements, you need to enter the dimensions to be used. Generally speaking, these will be located on the manufacturers datasheet or in another central resource, such as the IPC Council standard. Weve highlighted the correct dimensions for our footprint; all are in mm (as defined on the Technology page). e E PW PL L T H b 0.50 4.90 Automatically calculated by the wizard Automatically calculated by the wizard 0.55 0.05 0.05 0.20
You must now define the position for Pin 1 to be the bottom left corner, to Hide Pin numbers and the Pin Numbering to be Counter-clockwise.
Click Next> to move on. We will use the placement shape and add it to the Documentation1 layer. Select this layer from the drop down list.
When back in the footprint editor, all pads using this style will now be changed.
From the Pad Properties page, select a new style from the drop down list. Click OK to accept this new style.
The footprint will update to reflect this new pad style. The example weve given below is a bit extreme as it will cause DRC errors if used but it clearly demonstrates the different pad style. You may require this facility to add a square pad on the first pad of an IC to denote pad 1 for example, this is useful where silkscreen is not being added to a board.
These shapes can also be added to specific layers within the design or layers swapped after addition (see below on changing layers of items). As with all items, the shape style can also be changed. To do this, select the shape and use the shortcut key <S> (Change Style) to modify it. This option is also available on the context menu if you right click on the selected shape.
Select the New Layer from the drop down list. The Old Layer: box will display the current layer used. An alternative method is to use the Pad Properties, also on the shortcut menu.
The Layer: drop down list will contain legal layers for which to swap your pad to. You should be aware that there may also be a Pad Style change required, especially to note is a drill hole and plated status of the current pad style. Click OK to accept the change.
Position the reference origin at the lower right corner of the symbol, this can be anywhere.
From the Library manager select the Components tab. For this tutorial, we will create a new library to add your new component to.
In the File name box, type Tutorial as your new component library.
We need to create a new component so click on New Item. The New Component dialog opens. There are 8 pieces of information required: In the Component: box type the component name AD8592RM In the Package: box type SOIC, this identifies the package type, multiple package types can be used for selecting alternative footprints. In the Default Reference: box type U. This will be the component name used in the actual design (U1, IC1, R1, C1 etc.) For Schematic Symbol, ensure that the library is set to Tutorial.ssl. Select your Schematic Symbol previously created OPAMP from the list. The dialog will automatically show Pins: as 3 (3 pins on the gate created) and Gates: as 1. Change the Gates: to 2. This will add 2x gates to the component. For PCB Symbol, ensure that the library is set to Tutorial.ssl. Select your PCB Symbol previously created RM-10. Ensure that the Pins box shows 10 to verify that your PCB Symbol is correct. Your dialog will be complete and should look like the one below.
Once it does, click OK to continue. The Component Editor opens showing the items added from the New Component dialog. Weve changed the colors of the preview images to make them easier to see in this document. Yours will still have the black background. If you wish to change the colors, right click in the Preview window and select Display. From the Display dialog you can change the colors as required. Click OK to accept the choice.
So far weve given the Component a Name, selected the name default reference name stem to be used and selected the Schematic and PCB Symbols to be used. We now need to add more detail to the component to give it more intelligence.
From the Gates dialog, select the Add button. Notice your existing 2x OPAMP gates are already shown in the list as gates a & b. From the Library: list select the AD.ssl library.
Scroll down the Name: list and select the AD-P2 gate symbol. Ensure that you only have 1 selected in the Add 1 Gates box. Click the Add button.
The Power gate will appear at the bottom of the list. Click OK to add it to the component.
The power gate will now appear at the bottom (as the last gate) in the component grid and in the Schematic Symbol preview. Now we need to add more detail to the component and to map the pins used in the Schematic Symbol to those that will actually be used in the PCB Symbol.
The natural pin mapping of the Schematic Symbol and the PCB Symbol during creation will not be the same and will not necessarily be the correct sequence for mapping. PCB pins generally drive the mapping. If you consider the number sequence of the Schematic Symbol during creation, you could add them or number them to follow more closely the PCB pin sequence. It doesnt matter though that you dont or havent for this example. Select Pin 3 on the Schematic Symbol.
With the assignment of all pins between the Schematic and PCB symbols, this would be considered a minimum configuration to be able to save the component to the library and then use it in a design. Other information can be added and is discussed below after saving the component.
Choose the Tutorial.cml library from the list if not already selected.
The Libraries dialog opens. Select the Components tab if it isnt already selected. Make sure the Preview box is checked. Select the AD8592RM Component that you created, it should look like the one below. A quick check to whether you have created is correctly is the existence of both the Schematic and PCB Symbols in their respective Preview windows.
At this stage, you would add this component to a Schematic or PCB design and it would work.
From the Add dialog you can type the Name and Value: You do not have to add a value at this stage, the name can be left empty to be fulfilled at a later stage or during design.
Click OK to confirm the selection. The Value name is simply a label. For Parts lists, it is important that consistent names are used. We have allocated some value names which when used by you, will be passed through automatically into our system: Manufacturer Manufacturer Part Number Distributor Distributor Part Number Again, once these values have been added to a component, save the component to the library. This concludes the tutorial for the Libraries and Library Manager.