This action might not be possible to undo. Are you sure you want to continue?
This document allows you to get started with ease by designing simple Schematic and its PCB, pattern and component libraries, then trying different package features. The tutorial includes step-by-step design guide and many additional insets that allow you to discover program features. If you have any questions while learning the tutorial, contact our support staff: firstname.lastname@example.org. We will be happy to be of assistance and gladly answer all your questions. This version of tutorial was created for DipTrace ver. 1.40 (build May 24, 2007).
I. Creating a simple Schematic and PCB 1. Establishing a Schematic Size and Placing Titles 2. Configuring Libraries 3. Designing a Schematic 4. Converting to a PCB 5. Designing a PCB 5.1 Preparing to Route 5.2 Autorouting 5.3 Working with Layers 5.4 Measuring Trace Length 5.5 Manual Routing 5.6 Working with Vias 5.7 Placing Text and Graphics 5.8 Copper Pour 5.9 Locking Objects 5.10 Design Verification 5.11 Design Information 5.12 Printing 6. Manufacturing output 6.1 DXF output 6.2 Gerber output 6.3 Create NC Drill File for CNC Machine Drilling II. Creating Libraries 1. Designing a Pattern Library 1.1 Customizing Pattern Editor 1.2 Designing a Resistor 1.3 Saving library 1.4 Designing a Capacitor 1.5 Designing a DIP 14 Pattern 1.6 Designing a DIP Pattern with a Variable Number of Pads 1.7 Placing the Patterns 2. Designing a Component Library 2.1 Customizing Component Editor 61 61 62 68 69 72 75 77 80 80 3 7 8 23 24 24 27 30 33 35 38 43 45 48 49 51 52 53 53 56 60
2 2.2 Designing a Resistor 2.3 Designing a Capacitor 2.4 Designing a Multipart Component 2.5 Designing VCC and GND Symbols 2.6 Using Additional fields 2.7 Spice Settings 2.8 Placing the Components III. Using different package features 1. Connecting 1.1 Working with buses and page connectors 1.2 Working with net ports 1.3 Connecting without wires 1.4 Connection manager in Schematic and PCB Layout 2. Reference Designators 3. How to find components in libraries 4. Electrical Rule Check 5. Bill Of Materials (BOM) 6. Importing/Exporting net-lists 7. Spice Simulation 8. Checking Net Connectivity 9. Placement features 110 110 114 114 116 117 121 122 124 126 128 131 133 83 85 92 98 100 103 105
I. Creating a simple Schematic and PCB.
This part of tutorial will teach you how to create a simple schematic and its PCB (Printed Circuit Board) using DipTrace program. This is a schematic that you will be creating using DipTrace schematic capture module: Open DipTrace Schematic Capture module, i.e., go to Start All Programs DipTrace Schematic
If you run Schematic program first time, you will see the dialog box for color scheme selection. We will use white background as more acceptable for printing this tutorial, you can select the scheme you want. Also notice that you can change color scheme or define colors you want any time from View/Colors.
The same dialog box will appear in PCB Layout module. Component Editor and Pattern Editor use color settings of Schematic Capture and PCB Layout accordingly.
1. Establishing a schematic size and placing titles.
Establish a schematic size and place a drawing frame: File / Title & Sheet Setup, select “ANSI A” in the “Sheet Template” box. Then go to the bottom of the screen, check the “Display Titles” and “Display Sheet” boxes.
Press the “-“ button until the drawing frame can be seen. .4 Notice that you can show/hide Titles and Sheet by selecting “View / Display Titles” and “View / Display Sheet” from main menu. the “Zoom” can be achieved by pressing “+” / “-“ or scrolling mouse wheel. If a mouse arrow points to the component or to the selected area. Also you can change zoom by selecting appropriate value from the scale box on standard panel or simply typing it there. Notice that “+”/ “–“ or mouse wheel allow you to zoom on the schematic.
Center or Right) and Font. In that dialog box you can type the text.5 To enter the text into the title field move the mouse arrow over that field (it should be highlighted in green). press “Font” button and set the font size to “12”. Notice that you can also enter multi-line text into the title block fields. define the alignment (Left. In your case. Then click “OK” to close that dialog box to apply changes. . type “Astable Flip Flop”. then left-click on the field to see the pop up window with Field Properties dialog box.
To return to the previous scale and position. Notice that you can use “Zoom Window” tool to zoom on the defined rectangle of the design area: click on the “Zoom Window” tool (the second button to the left of the scale box). . use “Undo Scale” tool (the button on the left side of the scale box). move mouse arrow to the upper left corner of the area that you want to zoom on. hold down the left mouse button and move the mouse to the opposite corner and then release the mouse button.6 You may zoom on the Title Block by moving the mouse arrow on it and pressing the “+” repeatedly or scrolling mouse wheel up.
Go to LibraryLibrary Setup: . Press ‘Save’. you might want to setup your libraries. type a name of the file you want to use and make sure that it is in the needed directory. 2. Configuring libraries Before first using Schematic Capture and PCB Layout.7 Go to File and select ‘Save As’.
before you become familiar with ‘Libraries’ concept. The list of active libraries is enabled in this mode and you can edit it using the buttons at the right side of this list: “<<” – adds the selected library from All Libraries list. DipTrace package has two modes to activate libraries: 1. you may point to a library named ‘mylib’ which you would create to store your own symbols) but in the beginning. To disable a placement mode.8 Notice that on the right side you may see a text “No Library File”. Scroll down the component list on the left side of the screen. Close the Library Setup dialog box and all changes. “Del” – deletes selected libraries from Active Libraries list. “…” – adds the library from hard drive. right-click. Designing a schematic Open Schematic Capture module and using a mouse arrow. right-click. you will see all libraries that came with your software. Later. If you want to move components from a design to a library. move a mouse arrow over one of them. Make sure that you find the ‘Lib’ directory that came with the program. To define the folder with libraries press “…” button on the right side of folder path.that will place a transistor on the schematic. Also you can add or delete libraries from that list using “Add” or “Delete” buttons. if made. Notice that you can scroll libraries left and right using arrow buttons on the right side of those buttons. select a library named “Transistor” in the upper right part of the screen and click on the “Transistors” button. will be applied to the Libraries panel. Notice that the first mode is enabled by default. disregard it and scroll down using the scroll button on the right side of the “All Libraries” box. To activate libraries using the list: This mode is active if “Get Libraries from Folder” box is unchecked. to the transistor 2N4401 and click on it. That will select a symbol and allow you to move it to the schematic. “Arrow Down” – moves the selected library down. 3. After scrolling down. . All known libraries are placed automatically to All Libraries list (on the right side of the dialog box). then select “Save to Library”. From the “Save to Library” submenu you can add the selected component to active library (shown on the left side of screen) or save them to a different library. in the upper left corner of the “Library Setup” window. 2. “Arrow Up” – moves the selected library up. please follow our suggestions. you can point to any other location (for example. To get libraries from a specified folder: This mode is active if “Get Libraries from Folder” box is checked. Move the mouse arrow to the schematic and left-click once . select these components.
Also you can select the group of symbols using a different way: move mouse to the upper-left corner of the group. in this case “Q1”: We need two transistors for our schematic. If you want to select several symbols. Notice that you don’t need to rename the second transistor to “Q2” because it’s done automatically. If you want to rotate the symbol before placing it on the schematic. press and hold down a “Ctrl” button and click on each symbol that you want to select in your group of symbols. place a mouse arrow over the U1 and right-click on it. move cursor to lower-right corner and release the mouse button (if the Ctrl key is pressed. . press a Space Bar or “R” button. hold down the left mouse button. then drag-and-drop. so select “2N4401” in the component list (on the left side) and place it in the design area . the selection will be inverted).the sheet you are working on. If you need to move several symbols you should select them first. Notice that a ‘Reference Designator’ of the transistor is U1. type a new designator. left-click on it. If you prefer to change it to Q1.9 How to move a symbol around? Hold down the left mouse button on the symbol and move it until you find a proper place for it. To select a single symbol. When a dialog box will pop up. then select a top item (Designator) from the submenu.
Select RES400. if you prefer a drawing in metric units.10 Select a library named “Discrete” on the library panel and find a suitable resistor. . go to “View / Units / mm”. By the way. which designates a resistor with 400 mils of lead spacing.
Simply select “Edit / Copy” from the main menu. the same way you placed the Q1 and Q2. The second method is named “Copy Matrix”. Place a mouse arrow over a resistor. then select “Edit / Paste” 3 times or right-click in the position where you want to place copy and “Paste” from pop-up menu. You can use 2 ways to copy this symbol: 1. but now we will use another method. Select your resistor like in the picture above then copy it 3 times. Notice that you can simply place them from a component panel on the left. Select your resistor. then click “OK”.11 Change a reference designator of your resistor to R1. . select top item from the submenu and change “U1” to “R1”. then “Edit / Copy Matrix” from the main menu (or simply press “Ctrl+M”). 2. right-click on it. We need 4 resistors on the schematic.
use a Space Bar or “R” button to rotate a symbol. .12 In the “Copy Matrix” dialog box define the number of columns and rows (in our case “2” columns and “2” rows to get 4 resistors) and spacing (in our case 1 inch for columns and 0. then click “OK”. Another possibility to rotate is by using “Edit / Rotate” command or right-click on the symbol and “Rotate” from the submenu. You can use Shift key for orthogonal moving (by single coordinate only) if necessary. Notice that you can scroll the design by using the right mouse button or mouse wheel: move mouse arrow to the design area.4 inch for rows). Now you can see the resulted matrix of resistors: Move resistors to a proper location on your schematic and rotate by 90 degrees. then hold down the right mouse button or mouse wheel and scroll your design to a new position.
then right-click on one of them and select “Properties” from the submenu. . Click on the tab “Marking” in the component properties dialog box.13 Now we will display component types for the transistors: select the components Q1 and Q2.
Show pin numbers by selecting “View / Pin Numbers / Show” if they are not shown yet. you don’t need to type it again. Click “OK” to close the dialog box and display the type of transistors.14 Select “Type” in the field “Show” for additional marking. To move the texts around. And you may use ‘Redo’ button which is a functional opposite of ‘Undo’. If you need to define another file name. so you should move them around. Note: you may use command “Edit / Undo” or click on the corresponding button in the top of the schematic window if you want to go back to the previous version of schematic. E) cross over other symbol graphics. If the file name is already saved. By the way. for example for backup purpose. This will show type of the selected components. General settings of markings are applied to all schematic parts. C. Remember to save the schematic: Select “File / Save” from main menu or click on the “Save” button in upper-left side. The program saves up to 50 steps. except ones which have their own settings (in our case the transistors have their own settings). but click on the “Save” button or press “Ctrl+S” only. the “Save As” dialog box will be opened to define the file name. in “View / Part Marking” submenu you can define general settings for part markings. select “File / Save As” from the main menu. Notice that you can change numbers showing for selected patterns using right-click on the pattern and “Pin Numbers” from its submenu. Also you can rotate pattern markings while moving by pressing “R” or “Space” key. so displaying RefDes is a general property. If the schematic is still not saved. Notice that descriptors are already displayed and “Default” defines the use of general Schematic settings for the components. . Your “Type” markings and pin numbers (B. select “View / Part Marking / Move Tool” from main menu or simply press “F10” and then move Types and pin numbers.
Move the mouse arrow down and right to the base of transistor Q1 and left-click to connect the wire between R1 and base of Q1.15 Connect the resistor R1 to the base of transistor Q1: place a mouse arrow on the bottom tip of the resistor R1 and left-click. place the mouse arrow over Q2 and right-click to select Flip and Horizontal: . To mirror the transistor Q2.
R2 to “C” pin of Q1 and R3 to “C” pin of Q2: . release the left button.16 To move the resistor. place a mouse arrow over it. When in a correct position. Connect R4 to the base of Q2. then left-click and hold while moving a component around.
Move capacitors C1 and C2 between transistors Q1 and Q1 with respect to polarities: Move resistors a little to the top to provide more space for connections. Flip C2. “R4” and related wires by placing the mouse arrow in the upper left corner of these objects. Notice that the wires follow the components: place left mouse arrow over resistor. by placing a mouse arrow over C2. . then hold down left mouse button and move to opposite corner – all objects in the rectangle will be selected when you release the left mouse button. or use “Copy” function to create the second capacitor. rename its descriptor only and then place the second one. rightclick and select FlipHorizontal. clicking left mouse button and holding it while moving Q2 left until the wire connecting collector R3 and collector Q2 becomes a straight line. “R3”. Select CAP100RP and place twice. Notice that you can place the first capacitor. move transistor Q2 by placing a mouse arrow over Q2. so the plus sign is on the right side. hold down the left button while moving R1 up. This is not important for electrical connectivity but only from aesthetic point of view.17 Notice that the wire is not straight between R3 and Q2. Then change U1 and U2 reference designators to C1 and C2. Select “Q2”.
Notice that blue squares show the selection. use right-click to clear the selection if you are in the default mode and double right-click if you are in another mode (first click to disable the mode and the second one to clear selection). . left-click. then left-click to connect.18 Connect C1 (+) to collector Q1: move mouse arrow to C1 (+) pin. Connect C2 to between Q1 base and collector Q2. move to the wire between R2 (A) and Q1 (C).
rotate these symbols by selecting them and pressing “R” key or Space three times and connect to transistors: . Then change reference designators to “LED1” and “LED2”.19 Scroll down the component list in the left side to locate the LED and place two components onto your schematic.
20 Place a battery symbol from ‘Disc_Sch’ library. If you want to move existing wire. Then change battery RefDes and connect the wires to complete your schematic (see on the picture below). If some objects are not highlighted when you move mouse arrow over them try to right-click to turn on the default mode. also you can put on it by selecting “Objects / Circuit / Place Wire” or the corresponding button on the objects panel in upper side of window). Add component values: right-click on “R1”. Notice that if you are in “Place Wire” mode and click on the existing wire – you start to create a new wire. Click on “Marking” Tab and go to Main MarkingShowValue. Notice that you can use “Undo” to return to the previous version(s) of the schematic. select “Properties” from submenu. right-click to open submenu. move the mouse arrow over it (the net should be highlighted and mouse arrow shows possible moving directions) then hold down the left mouse button and move the wire to new position. If you want to delete the wire (node to node connection) move mouse over it. This screen makes reference designators and component values visible: . To delete wire segment select “Delete Line” from the wire submenu. then select Delete Wire. (“Place Wire” mode is enabled automatically when you try to place wire by clicking on some component pin. type “47k” to “Value” field. then go to Additional MarkingShowRefDes and click OK.
. Notice that you can select several symbols and define Marking Settings for them all by opening Component Properties dialog box only once.21 Enter the remaining component values.
. All *Sch libraries contain only the symbols without patterns (you can preview the pattern in bottom left corner before placement the component). Select the library from a library list and the pattern from a pattern list at the bottom-right side of the dialog box. Note: some symbols may not have the attached patterns (for example VCC. When the pin to pad connection is done. Do not forget to save it by selecting “File / Save” from the main menu. Add pattern libraries to the dialog box by clicking “Add” button in the upper-right and selecting the library on your hard drive (by the way all standard libraries are in “<Drive>:\Program Files\DipTrace\Lib” folder). Define pin to pad connections for your component: click on the pin name in the pin table (left side of the dialog box). If you want to convert a schematic to PCB you should attach the related pattern first. otherwise the conversion will proceed but will show you errors which will have to be corrected anyway: move the mouse arrow over a battery symbol.22 Notice that our battery was placed from library Disc_Sch. click “OK” and it will close the dialog box and apply changes. then type related pad number in the “Pad Number” field or simply left-click on the pad in the related pattern graphics (middle of the dialog box). Also notice that you can print or save the schematic to BMP or JPG file. Select “File/Preview” from main menu. then press “Print All” to print all schematic sheets. by clicking on the “Save” button in the upper left side of window or simply by pressing “Ctl+S”. Our schematic is ready to convert to PCB. The default battery pattern is included into “misc. GND or logical connectors – “Net Ports”) and that will be shown in ‘errors’ during conversion to a PCB.lib”. “Print Current Sheet” to print the selected sheet or “Save” to produce BMP/JPG file with defined resolution. right-click to show the submenu and select “Attached Pattern”.
it is possible to recover the latest job by selecting “File / Recover Schematic” in Schematic or “File / Recover Board” in PCB Layout module. such as Tango. Incorrect memory sharing in 9x/ME may cause program crash while running several package programs at once. you can use netlist export feature of Schematic program. . PADS. P-CAD. etc. then make right click on one of the components and choose “Define Angle” or “Rotate Mode”. Place components according to your preferences and design rules. close the program. Also notice that in case of incorrect exit from the program or if you forgot to save the project. Select File/Export/Netlist from main menu. Press Space Bar or “R”-key to rotate the selected components by 90 degrees. Win NT/2000/XP users may run several DipTrace modules at once without such problems. However for Win 98/ME users it is strongly recommended to save your schematic file. Converting to PCB Notice that you can open DipTrace schematic files (*. then run PCB Layout and open *.23 4. DipTrace supports popular netlist formats. Rotate mode allows you rotate objects freely using mouse. then netlist format.dch) from the PCB Layout program But to save your time after creating the schematic simply select “File / Convert to PCB” or press “Ctrl+B” in the Schematic Capture module and the PCB Layout with your project will be opened automatically. Also this feature is useful to check net structure. If you plan to use another PCB Layout software to design a PCB or give it to someone else.dch file from there. select them. Moving component around is accomplished by placing a cursor over the component and dragging it to a proper location. If you need to rotate components by different angle. We will use DipTrace PCB Layout module to design a PCB for our Schematic.
Notice that you can renew the PCB from updated Schematic file and keep component placement and routed traces.24 It is a good practice to keep power supply components in one area and functional blocks grouped together. 5. This command allows a global RefDes visibility and shows all reference designators on the screen (except for the components with individual settings). make reference designators visible: Select “View / Pattern Marking / RefDes”. If circuit is high frequency. . You can also use auto-placement or placement by list to place components after converting to Schematic. however this is not necessary for such simple project. apply appropriate layout rules. Select “File / Renew Design from Schematic” then find and open the updated schematic file. Probably the configuration of connections after placement is not convenient if you plan to route the design manually. We will try these features in Part III of this tutorial with more complex circuits. To define the individual parameters for the selected components: right-click on one of the componentsPropertiesMarking. Also remember that you can use “F10” or “View / Pattern Marking / Move Tool” to move designators. so select “View / Connections / Optimize” from main menu to optimize the connections. Designing the PCB 5.1 Preparing to route In PCB layout. If the marking justification doesn’t look acceptable. select “View / Pattern Marking / Main / Justify” in the submenu select “Auto” or another mode you want.
If you would like to add some pad to the net without creating connection (for example you don't want to search the design for other pads of that net) move the mouse over that pad. To do so. To open it. select “Route / Place Board” or the corresponding button on the routing panel in the . right-click and select “Add to Net / Select from List”. select “Route / Connection Manager” from the main menu and you can create new nets and add/delete pads to/from nets. If you can’t create such connection. the routed area (board polygon. then select “Delete from Net” and the pad will be deleted from the net. so right-click to disable the mode you are in. But in many cases we require a fixed board size and must define it before the component placement and routing. Now move the mouse arrow over this pad. for simple boards a rectangle) is created automatically depending on the tolerances specified in autorouter setup.25 Let us show you how to change the net structure of our design and how to add/remove connections. right-click. To delete existing connection simply try to create it repeatedly and select “Delete Connection” from the submenu shown. If you have changed the structure of nets please press “Undo” until the design structure is restored. if you lose the design or schematic because of incorrect exit from the program. then move mouse to any other pad and left-click on it. By the way.B). left-click. Also you can edit the structure of nets from the connection manager. use “File / Recover Board” in PCB Layout and “File / Recover Schematic” in the Schematic Capture to recover the latest project. This step is not needed for this board. probably you are not in default mode. but just to let you know that it’s possible: move the mouse arrow over any pad (for example R4 . Notice that we haven’t determined the board outline yet. You have built the pad-to-pad connection (should be a blue line). When using the autorouter.
. then place the board outline polygon by clicking in the key points. select “Route / Board Points” from the main menu. To open it. you can define the board key points and/or size from the Board Points dialog box.26 upper side of the screen. Also. right-click in the final point and select “Enter”. To insert the point after completing board outline move the mouse over point-to-point segment then drag-and-drop. Also notice that point coordinates are shown as hint when the cursor is placed over the one of board outline point. Notice that you can build arcs in board outline by selecting “Arc Mode” after right-click. When you right-click on the point of board outline the submenu shows where you can make an arc with current middle point or delete the point from board outline.
If you check “Arc” box for some point. Also you can change its position in any time. Notice that origin of our design is not defined yet. Then click “OK” to apply changes or “Cancel” to close the dialog box. superior to many routers included in other PCB layout packages available on the market today. Notice that you can use “Route / Delete Board” from main menu if you want to delete the board. Now the origin (two blue lines) is displayed. right-click on one of them and select “Pattern Origin” from the submenu.27 In this dialog box you can Add. so select the origin tool in the top of screen near Arrow button (it shows “Define Origin” hint) and left-click in the bottom left corner of the board outline. which obviously presents many benefits for prototyping. To display the origin select “View/Origin” from main menu or press F1. check “Create Rectangular Board” box and simply define the first point (base). DipTrace has a high quality router. Most of the time. It will be displayed while placing the pattern or opening schematic if different from the pattern center point. Insert and Delete the key points. The coordinates can be shown and edited in the absolute and incremental modes (the second mode usually is more convenient).2 Autorouting Now it is time to route your board. however its position is not correct for our board. like efficiency and speed of . that point will be the middle of arc and neighboring points – start and end of it. To show or hide the origin of selected patterns. For rectangular boards. Notice that all patterns have their own origin you can define in Pattern Editor – we will do it below while designing the library and pattern coordinates are the position of pattern origin. width and height of the board. By default the program places the origin in the center of screen and doesn't display it. 5. All coordinates in the program will be displayed and edited regarding this origin. can be routed on a single layer (bottom side). a simple PCB like the one shown.
the board is simple and we can route without jumper wires.28 having a finished prototype.020” and press OK. makes several routing attempts and chooses the best layout. so if you define Pad Clearance to 13mil and Trace to 20mil. (0. In our case. but also it is better to select in AutoSetup box “Normal” routing mode at least. but you can define for example 13 mil for trace clearance and 20 mil for a pad.013 traces and less. An engineer/technician with preference and access to UV light may use 0. Quick mode can be used for non-complex double-layer PCBs or when you try preliminary autorouting for large multilayer PCB (where the final routing takes much time). You will first setup the router: go to “Route / Autorouter Setup”. Then select “Route / Route Setup”. change tolerances to 0. all depending on a collimating ability of his exposure equipment). .020 traces are chosen with small prototype builder in mind. Press OK to apply changes. but higher quality autorouting takes more time.routing of traces will be done on the bottom side. The traces might be a bit longer on a single sided PCB vs two-sided but that most probably will be without effect on most designs. Also it is possible to autoroute single layer PCBs with jumper wires (“Allow Jumper Wires” box). all the pad-to-trace and pad-to-pad clearances will be not less than 20mil. who possibly uses a laser printer to make his bottom side laminations. Pad Clearance in any case can not be smaller than Trace Clearance. In the Grid Router setup dialog box uncheck “Use All Layers” box and change the number of layers to “1” . Notice that you can change the autorouting quality by defining the “Auto Setup” parameter.
Time to route your board: “Route / Run Autorouter” The board will be routed.so if there are non-routed traces it means that the tolerances and/or placement of the component have to . For ink-jets that is not the case since ink-jet technology does not heat up the paper. Notice for hobbyists: please be aware of the fact that a laser paper introduces some degree of dimensional distortion due to heat expansion of paper. Click “OK” or “Cancel” to close the dialog box. If you want to configure trace templates select “Route / Trace Templates” from the main menu. To summarize. By the way if you define the “Best” quality in the Autorouter Setup dialog box probably the autorouter has found the optimal result . One way to cope with it is to preheat the paper in the laser printer by running it through a laser printer without printing on it (you may print just a dot). Scaling an image is one method or using Adobe Postscript is another (some prefer GhostScript because it is free). If one or more wires were not routed try to reroute: select “Undo” or “Route / Unroute All”. there are two methods of prototyping a PCB at home: using a TT (Toner Transfer) or UV exposure.29 Also you can define the trace width for each net individually. right-click. In the net properties dialog box you can define the width of traces and trace to trace spacing for the selected net only. It all depends on your laser printer and quality of paper. For many people it may be of no significance but for some it may be important. then run the autorouter again. TT is definitely a method for a laser printer and UV exposure is better served by an ink-jet printer. It is not to say that laser printer always distorts the image visibly but rather to make you aware of possible source of dimensional discrepancies. Notice that you can use templates to save your time when changing width and clearance in different dialog boxes and menus (such as manual routing). then select “Net Properties”. Move the mouse arrow over some pad of the net you want to change the settings.
Also you can disable the DRC after autorouting. To change the design rules select “Route / Design Rules” from main menu. But if you want to learn some features of PCB Layout (that can be learned with this design and probably are useful for your further projects) in depth we recommend to learn the topics 5. 5.3 Working with layers The traces that you can see are gray because they are placed on the bottom layer and your active layer is Top. By the way.11.30 be changed .a component has to have more clearance around or the traces are too thick. . you can skip all topics until “Printing” (5. there are two such lists: the first is used to choose the placement side (located on the objects panel near component placement tool) and the second one to change active signal/plane layer (located in the right corner of route panel).12) because your PCB is ready to output. Also the program has “Contrast” mode to display layers by default. simply uncheck corresponding box in the route setup dialog box (“Route / Route Setup” from main menu). Notice that if you want to finish your project faster. However tying to route it again or making better mode may be a solution too. Change the active layer: move mouse arrow to the list box in the upper right with “Top” text and select “Bottom”. Please correct the errors and rerun DRC by selecting “Route / Check Design” from main menu or the corresponding button in upper side of the screen. To hide red circles select “Route / Hide Errors”.3 – 5. you can move the mouse arrow over these boxes and identify them by hint. The DRC (Design Rule Check) are running after autorouting and are showing possible errors if exist (red and blue circles).
Select “Layer / Display Mode” from the main menu. .31 You might not like the contrast mode and black color of Signal/Plane layers so let us change these settings now. then select “Current”. From the appeared submenu you can choose the mode to show layers you like. We select “All layers” to show all layers of the design with the same contrast. If you want to see current layer only.
define the net for plane (usually it is Ground or Power) and the method to build metal zone of the plated holes for your plane layer.32 To change the color and other layer settings. In the “Layers Setup” dialog box. We recommend to create signal/plane layers and to set the plane layer parameters before autorouting. Notice that you can also rename the layers. . You can also add the plane layer (notice that it can’t contain traces). We have changed the colors: Top – Red and Bottom – Blue. add and delete layers from this dialog box (Top and Bottom can’t be deleted). select the layer and press “…” button to change its color. select “Layer / Layers Setup” from the main menu.
. etc. however if you make high-speed circuits.4 Measuring trace length Current project doesn't require such measuring because it is simple and low-speed. Right click on one of selected traces and choose “Show Trace Length” from net submenu. First of all notice that hint of each trace includes its length by default – this can be helpful however is not enough to check trace length in real-time with ease. Now please select several traces (you can use usual box selection or Ctrl key to select exactly what you want). video devices. 5. trace length is important.33 You can mirror the design to see the bottom side by selecting “View / Mirror” from the main menu.
. Values are shown in current units (inches in our case) and are changed in real-time while you edit the trace. they are also highlighted while you move mouse over the trace.34 You will see small boxes with trace length near all pads of selected nets.
change the width and layer. In this mode. Notice that you can change the grid size from the list box on the Standard Panel on the left side of Scale box. If you want to edit traces and design objects without grid. First try to edit an existing trace (you may have to switch to the trace layer you want to edit by pressing the layer button in the upper top right corner): move a mouse arrow over the trace. Now you are able to move trace nodes and segments without any limitations. Please note that DipTrace creates the vias automatically between two segments placed in different layers. Move the mouse over trace segment and right-click on it. DipTrace allows you to edit traces freely by selecting “Route / Tools / Free Edit Traces” from the main menu or the corresponding button on the Route panel in the upper side of the screen. then drag-and-drop the trace to a new position.35 Now please hide trace length using net submenu (select the same item) or Undo function. You can see the net submenu and here you can define the name of your net. delete lines and segments. 5. add new node to the trace segment. Select “Switch Line . simply press “F11” to disable the grid or select “View / Grid” from main menu. the trace segment is edited depending on the angles and can be either 90 or 45 degrees but you can also cut the 90+ degrees angles by adding new segments.5 Manual Routing For our simple project we have received the final version of routed board using the autorouter but for more complex projects for best result you will probably have to do a manual correction after autorouting.
move step backward. cancel it.36 Layer / Top” – you will see that the trace segment you clicked on. Notice that submenu commands are duplicated by hot keys to make manual routing process easier: “M”-switch between routing modes. right-click on that segment and move it back to Bottom. so right-click on one of your nets. “1” . then left-click and define the key points of your trace step-by-step using left-click. Try to right-click when placing trace – the “Route Manual” submenu is shown.then it will be placed to Bottom side). Now you can finish placing your trace. . “T”-switch to Top. Notice that “Unroute Net” command from net submenu is applied to all selected nets. the jumper wire will be placed to Top side. change the layer (a via will be placed and you will be able to route the next layer).“0” in the top of keyboard – switching between layers (up to 10). has been moved to the Top layer and there are two vias between this segment and adjacent one. Move mouse arrow over one pad of the non-routed net (until it highlights in red). “B'-switch to bottom. in our case there are no selected nets and only the net you clicked on will be unrouted. if in Top . Switch layer to “Top”. “J”-switch to jumper wire or back (if you are in Bottom layer. then select “Unroute Net” from the submenu. Change current layer to Top. Now we will try manual routing. change the route mode (90&45 of free). width of the next trace segments or place jumper wire. Then select “Route / Tools / Route Manual” from the main menu or corresponding button on the Route Panel (now you are in Manual routing mode).
the trace will be in new layer. right-click and select from the submenu “Enter” or press “Enter” key. but not connected.37 You can see that from the last specified key point. then move mouse a little to bottom left. . Now you are in Top layer and the trace is placed.
38 Now move mouse arrow over the trace end, which is not connected yet, and build the line to the second pad of your net (notice that you should be in “Route Manual” mode). The trace is connected to the second pad:
5.6 Working with Vias DipTrace has two via types: usual vias that are parts of traces and appear automatically when you move trace segment to another layer and static vias that works in the same way as pads. Static via has more properties and can be used to connect trace to planes, etc. Other useful feature of static via is hiding or removing it in some layers that allows you to make blind/buried via. Usual via can be blind/buried too, but it is shown in the layers between trace segments only and you can not show or hide it in other signal/plane layers. Also if you got accustomed with other PCB Layout software, it is probably more comfortable for you to use static vias only. We will work with usual via first, then place static via and investigate some of its properties. Currently our project has only one via between top and bottom layers, so to try working with vias we will create more ones. So select the bottom layer from the “Signal/Plane Layer” box on the Route panel, move mouse cursor on some trace, right-click and select “Switch Line Layer / Top” from net submenu.
Now we have 3 vias. Select “Layer / Via Properties” from main menu. In the dialog box shown you can change default via settings for the program. Change outer diameter and hole diameter to another value (we will increase them a little). Draw your attention to “Apply To” group – “Default Only” should be selected by default, this means only the vias of previous default size/type will be changed. Also you can change default settings without applying them to existing vias or apply them to all vias of entire design. Select “Apply To: All” and press “OK” to make changes and close the dialog box.
Now please move the mouse cursor to one of the vias, make right-click and select “Via Properties”. In the dialog box shown you can change via settings for the point, trace or net. Change the settings and press “OK” to apply them.
Now please make right click on one of those vias to display its submenu and select Via Layers. They are displayed in the same color as current layer.e. in the same way as you do that with pads. Now please press Undo several times to return the board to the state it was after autorouting. etc. Select Layer/Display Mode/Contrast from main menu to display layers in contrast mode. You can easily connect them to nets.41 Notice that if you are trying to change the settings for current point only and nothing happens. So try to click a bit closer to the point or change current signal layer (in our case this can happen with upper-right via and changing layer to Top or moving mouse arrow closer to the vertical segment solves the problem). most probably you clicked on another trace segment. Please select “Objects/Place Static Via” from main menu or appropriate button on the elements panel (upper-right corner) and place several vias. . build traces. Static via is the same object as pad and has similar properties. i. then select “Layer / Via Properties” from main menu and change the parameters to the ones you normally use. We will review one of them. Red because we have red top layer.
Now please click on the Top layer to deselect it and press OK.42 In the dialog box shown you can remove via shape and hole in some layers to make it blind or buried one. however still exists in Bottom. . You will see that selected via is removed from top layer.
all shapes. Notice that you can add vertices to the board outline – try to drag-and-drop the segment (not vertex) of board outline. texts and logos will be placed on the current Signal or Plane layer.7 Placing Text and Graphics You probably want to add some text or graphics to your board (with DipTrace you can even add a logo in Bmp or Jpeg format and export it to Gerber or DXF). so move the mouse arrow to the upper left vertex of the board outline.43 Notice that you can do the same operation with pads. 5. Do the same with upper right vertex. then drag-and-drop it in the top direction. Notice that PCB Layout program has different lists to select current signal/plane layer and the layer to place graphics. also if you choose Signal/Plane as a layer to place graphics. Now all the graphical objects will be placed in the Top Silk layer . To define custom settings for Paste and Solder Mask layers you can use “Mask / Paste Settings” from pad/via submenu. First you should select a layer to place shapes. Now we will add the text to the PCB board. Move mouse to the list box with “Top Assy” text in the upper side and select “Top Silk” from the list. . Also all selected pads/vias can be changed at once if you choose “Apply to: Selected Components” in Via/Pad layers dialog box. texts and logos. You should make a board a little bigger to place additional object. This may seem more complex than simply create only one list. but try this feature and you will see how it saves you time. Remove static vias from your design to return to previous state.
then select it (press Ctrl key and left-click on the board outline segment). enter the text and press enter or click the mouse button.44 If you want to move the board outline. move mouse over the board outline and drag-and-drop it. Remember that if you can’t highlight some objects and edit them. so simply right-click to cancel the mode. . Notice that if you want to change the font name and size by default select “Objects / Drawing Properties / Font” from the main menu. Also the objects located in inactive signal/plane layer can’t be edited. probably you are not in a default mode. then left-click where you would like to place your text. Select “Text” tool on the Drawing panel (the button with “Abc”). Use the mouse to move your text around the design until find correct position for it.
45 Notice that you can change a layer of the graphics and text objects at any time. These properties can be defined on the drawing panel or via shape properties in the same way as silk or signal/plane layers. right-click on one of them. In “Shape Properties” dialog box change “Type” and “Layer” fields to move the selected objects to another layer or define different properties (such as “Route Obstacle” that is used for autorouting). route obstacle and board cutout layers. Then place the copper outline polygon by defining key points and right-click when finished. Select the Bottom layer. 5.8 Copper Pour How about adding Copper Pour in the bottom layer? It is probably not needed (like the text and some other things) for such simple PCB but let me show you how to add it and then we’ll delete it. Simply select your objects. Notice that you can also add shapes to Mask. You will see the following dialog box: . then “Properties” from the submenu. then “Objects / Place Copper Pour” from main menu or the “Copper Pour” tool on the objects panel (in the upper left side). Paste.
“Depending on Board” tool can be used to save your time and to build the copper outline automatically. . but we will not do this for such board. Click “OK” to place the Copper Pour. The copper area is formed from lines with fixed width. simply define two random points and right-click when placing the copper pour.46 DipTrace has Shape-based copper pour system. Notice that you can connect your copper area to the net and choose the type of connections. then check “Depending on Board” and enter board outline to copper outline spacing (this feature saves much time when you PCB has complex board outline or arcs in it). if you want to use this feature. The “Line Spacing” parameter is used only if you choose non-solid fill for the copper pour.
The second mode is better if you want to edit objects on the layer where the copper pour is located. Now switch current signal layer to Top: . you are able to see and edit the objects placed in the Top. Top Silk or Top Assy layer first. Notice that if your active layer is “Top”. properties and update it. right-click on the copper outline and select the item you want from submenu.47 Copper Pour object has two modes of fill: Poured and non-Poured. To change copper pour state.
Now please select several design objects. . make right click on one of them and choose “Lock Selected” from submenu. In DipTrace you can lock selected objects and components by side.48 5.9 Locking objects Sometime when you edit schematic or PCB you need to lock some objects to prevent further editing of their positions and properties.
resize or edit locked object. Select “Edit/Lock Components/Top” to lock top components. DRC feature is one of the most important features. For complete verification of your board we recommend to use DRC. that allows you to check the distance between design objects and allowable sizes. Also you can lock components after placing them on the top or bottom side. net connectivity check and comparing PCB to Schematic. Most probably current PCB doesn't have errors because it is simple. Now please unlock all objects: select all by pressing Ctrl+A and unlock all (Edit/Unlock Selected or Ctrl+Alt+L). 5.49 Notice that locked objects have low contrast of selection rectangles (in our case they have the same color as bottom copper pour. Using this mode you can route the board and don't worry that some components can be moved by accident. You are unable to move.10 Design Verification DipTrace has number of features to verify your design. To unlock components in the top layer select “Edit/Lock Components/Top” from main menu again. Now select “Verification / Design Rules” to setup DRC feature. that are united in Verification item of main menu. . Also hint of the locked object includes “Locked” text.the error list or “No Errors” message will be shown. so we have to unpour it to see selection rectangles). Press DRC button on the route panel or select “Verification / Check Design” from main menu to check entire design .
You can see the list of errors (currently it are only two there). Now switch to the bottom layer (select “Bottom” on the route panel). Probably you use 1280x1024 or even higher resolution. then run DRC by pressing appropriate button on the route panel.50 In the design rules dialog box you can define clearances for different object types. Select “Check Copper Pours” box and press “OK” to apply changes and close the window. pour copper pour and move some trace segment a little to let it cross the copper pour. turn off the grid (F11). so the window of error list will be smaller if .
5.11 Design Information How about counting number of pins or board area on our design? Currently it is not a hard task.51 compared to design area (the screen examples were made on 800x600 to allow you to see all controls better). Select “Verification/Compare to Schematic” from main menu. however if you have hundreds of pins and complex board outline with arcs it may be impossible. Net connectivity check and Comparing to Schematic works in the same way as DRC and you can select errors from a list to highlight them. Double-click on the error item – the error location will be moved to the center of screen and error circle targeted to let you recognize it easier. you will see appropriate message. Net connectivity check allows you to verify if all nets are properly corrected. Most probably your design will not have connectivity errors and you will see appropriate message. copper pours or maybe even shapes in signal layers (where thermals or other things can not be created) to connect nets. then net integrity check will be helpful for you. then rerun DRC to renew the list. If your net structure was not changed and has no errors. pins. then choose Astable Flip Flop Schematic file. however if you have large design with many layers. It checks if all nets are properly connected and displays list of broken or merged ones. Comparing to Schematic allows you to check if your PCB project corresponds to source Schematic file. Now correct the error without closing DRC window. It shows net structure errors and unknown components. We will review this feature in the tutorial in details below. . For such design this is not important. Now please select “Verification/Check Net Connectivity” and click OK. So select “File / Design Information” from the main menu.
In the Print Preview dialog box you can also select current “Signal/Plane” layer and the mode to show layers. select “File / Preview” from main menu or the corresponding button on Standard panel in upper left side of the screen. then select “File / Titles and Sheet” from main menu and select “ANSI A” in the “Sheet Template” box. If you would like to change your design printing scale.” button in the bottom right. then select it from “Print Scale” box or press “Zoom In”. Notice that we didn’t describe creating Titles in “Designing PCB” section. “Zoom Out” buttons in the right side of screen. before opening Print Preview window. To move your PCB around the sheet select “Move Board” button in the right side (selected on the picture below) and move your PCB. If you want to display titles like on the screenshot below. Small button with colors to the left from “Zoom Out” tool allows to define printing colors separately.12 Printing We recommend that you use print preview dialog box to print your PCB. Now delete copper pour from your design. In the “Print Preview” dialog box you can customize the view of your PCB by checking/unchecking the boxes in “Objects” group.. otherwise they will be drawn using color defined in Layer/Layer Setup . check “Display Titles” and close the dialog box. click on the “Print” button. layers. To open it. To save image in Bmp or Jpeg file.52 In the design information dialog box you can preview number of different objects. To open “Holes by Size” window press “. board size and hole sizes. check “Mirror” and/or “Flip Text” boxes.. By default “White Background” scheme is used for printing. To print. Also notice that layer colors depends on color scheme only if they have default color. select “Save”. 5. If you want to get mirrored PCB and/or text.
53 Close the “Print Preview” dialog box and use Undo to recover copper pour (also notice that you can simply unpour copper pour if you don't want to print it). you might want to edit some pieces of your design with AutoCad. Press “Select All” in the “Export DXF” dialog box – all layers of your design will be selected. If you used AutoCad for PCB design before switching to DipTrace. It is possible to select them by holding down “Ctrl” key and click.1 DXF Output You can use DXF output feature to export your design to many CAD. 6. Now press “Export” and save your file. CAM programs that allow you to import DXF files. If you want. Notice that “Edge_Top” and “Edge_Bottom” are not the layers of your design. the edge can be converted from DXF to G-code using free ACE Converter (you can download it from our web-site). Select “File / Export / DXF” from the main menu. but now we don’t use these layers. . Also the DXF export function allows to create the edge for milling automatically. Manufacturing Output 6. you can check/uncheck different boxes in the right side of dialog box to show/hide objects or mirror your design or flip text.
54 Now you can open it with AutoCad or another program that supports AutoCad DXF. .
all traces of our PCB are in Bottom layer. Then select “Edge_Bottom”. Press “Export” button and save DXF file.55 What do you think about producing your PCB using milling? This method is convenient and cheap for non-complex PCB’s. Select “File / Export / DXF” to open DXF Export dialog box. Let me show you how to do this with DipTrace. Check “Mirror” box to mirror the design (this will be how we see the board from Bottom side). Now please open your file with AutoCad or another program to view the result: . Then define “Edge Width” – the center line of milling will be in ‘edge width’/2 spacing from design objects and the depth of milling depends on edge width and instrument angle. right.
In the “Export Gerber” dialog box select the layers (use “Ctrl” and “Shift” for multiple select if necessary) and objects to export. then click “Export All” to make all files at once. then it shows the warning and errors to enable you to correct them.e. Do not change settings and click Preview. Before the exporting DipTrace checks your design and if the object to object spacing somewhere is less than edge width.2 Gerber Output Select “File / Export / Gerber” from the main menu. but when you mill the PCB or simulate the milling with CAM program there will be no issues because of the radius of instrument. Select Top Silk – this layer includes pattern shapes/texts and shapes/texts placed in Top Silk layer. i. For our PCB this layer doesn't include anything when you preview it (if View/Assembly Layers has default settings). We will do Gerber output in that way: 1. Select Top Assy – this is assemble layer and usually it is not necessary for board production. Now convert your edge from DXF to G-code using ACE converter.56 The edge exported from DipTrace is set of polylines with defined width. define settings/objects and preview). then press “Preview” button. 6. 2. it includes all shapes/texts placed in Top Assy and objects defined in “View/Assembly Layers” sub-menu of main menu. Notice that you should export layers separately. Also you can setup all layers (select them one-by-one. one layer per file. Notice that CAD programs usually show the polylines with sharp angles and sometime picture in CAD program have some issues (sharp angles). Notice that if you can not see .
Also notice that in case that “Pad/Via Holes” box is checked. you can flip text manually for the layers you want (“Flip Text” box). Bottom Paste – Bottom Assy. etc. now please check “Vias” box for all of them and preview if all layers are displayed correctly. Board outline includes board outline only with defined width. Signal layers (Top. however if that option is off. their settings and common “Solder Mask Swell” defined in gerber dialog box + includes shapes placed in solder mask layer. 2 layers will be created for each signal layer if there are through pads or vias: drawing and clearing. you should simply make “Recognize Accuracy” value a bit smaller (do not make it minimum possible). Bottom. Notice that if you plan to drill holes manually you can also check “Pad/Via Holes” box to make you work easier. 7. as they are usually covered with the solder mask. It is generated automatically based on pads.57 texts or they are displayed incompletely (depends on font and its size).these are our copper layers. by default all text objects in Bottom layers are flipped “View/Flip Text Automatically” option in main menu. Board layer includes board as filled polygon. . I suppose we should only uncheck “Vias” box. To change custom solder mask settings for pads right click on the pad and select “Mask/Paste Settings” from its submenu. however this option is not recommended if you send files to manufacturer. so we can check “Paste Mask for SMT Pads only”.) . The second layer is used to remove artefacts over the drill holes. 4. Top Paste – this layer is usually used for SMT pads only. 6. Top Mask – this is solder mask layer. 5. 3.
Also you can use design origin by checking appropriate box in export windows. Extension can be defined in gerber dialog box or you can type it manually when saving the file. N/C drill and “Pick and Place” export functions is the distance between zeros and your board in the Bottom Left. Now please close the Preview and click “Export All” (if the apertures are not predefined the program will ask you to set them automatically). their size and line width. but you should define “Recognize Accuracy” for such objects (for example. Gerber.5 mil accuracy. then check “Drill Symbols” box and press “Set Symbols” button.58 Now please select “Bottom” layer and click “Preview” to see it: The Offset in DXF. DipTrace allows you to export any texts and fonts (even Chinese hieroglyphs) or raster black and white images (for example logo) to Gerber. You can use up to 0. . then close it and open Gerber Preview to view the result. 3 mil is set by default). Open the Gerber Export dialog box (“Pad/Via Holes” and “MtHoles” should be checked). With DipTrace you can also export Drill Symbols for different types of holes. then save your Gerber files one-byone. In the “Drill Symbols” dialog box define the drill symbols.
Do not forget to check “Use All Layers” box in the Autorouter Setup dialog box if you plan to route 2+ layers PCBs. Congratulations! You have finished designing a simple project with DipTrace. then you should select the layer(s) where hole is located . Please save your Schematic and PCB files – we will use them in your future practices with this tutorial. It took longer to read it then to actually finish the project. Notice that you don’t need to select the layers for through holes. . P.S.60 6. Also use “Preview” to view the result. Or you can simply define the number of layers before autorouting your further projects.3 Create NC Drill file for CNC machine drilling To export current design to N/C Drill format. Then press “Auto” button to define tools and press “Export”. but if your hole is blind (for example internal via). select "File / Export / N/C Drill" from main menu.
To close the panel click “X” button in the upper right. The panel in upper side of design area is “Pattern Properties” panel. You might want to hide or to minimize it when designing the patterns. go to Start All Programs DipTrace Pattern Editor. click arrow button in its upper left corner. i.1 Customizing Pattern Editor After opening the Pattern Editor you might want to show origin and X. rotate it or change position by coordinates in PCB Layout. The origin will be zero point of the pattern when you place. to show it again. Designing a pattern library Open DipTrace Patter Editor. .61 II.Y axis. you can use it to define pattern attributes and design the pattern from templates or types. Notice that you can change origin any time while designing the pattern. Again: please remember to save your own libraries in several places. just to be safer than sorry. select “View / Pattern Properties” from main menu. Creating libraries This part of tutorial will teach you how to create component and pattern libraries using Component and Pattern Editors. 1. 1.e.. To minimize the panel. so select “View / Display Origin” from the main menu or press F1. Libraries are crown jewels of the design house and as such needs to be treated and BACKED UP.
Then right-click to cancel placement mode. then program automatically adds “U” to placed components or patterns. move mouse to the position of second pad and left-click to place another one.2 Designing a resistor Now you will design the first pattern of your library: resistor with 400 mils lead spacing. in our case when you place the resistors to design the RefDes will be R1. move mouse arrow to the position where your first pad should be located. R2. R3. but in future it is faster to use “Lines”. etc. I will show how to do this with other patterns below. Note: for the first pattern we will use “Free” type. Type “RES 400” in the Name field and “R” in the RefDes field of Pattern Properties panel. If RefDes is not specified. i. then leftclick to place it. Select “Place Pad” tool on the “Objects” panel. Now minimize “Pattern Properties” panel. First define the name and descriptor of your resistor.e. .62 Use “Ctrl+” and “Ctrl-” to Zoom In and Zoom Out in component and pattern editors or simply enter (select) necessary scale in appropriate box. 1. In Pattern Editor and Component Editor you define base RefDes.
but not accurate.63 The placement by sight is a convenient method. then click “Close” button to close the dialog box. Select “Layer / Merge Layers” or the corresponding button in the upper side of layers panel. hold down the left mouse button. . In the right side of screen you can see the layers. Now you have a single layer with two pads on it. Select the pad with incorrect coordinates and change them. There are several methods to change the object coordinates and also simple drag-and-drop. double click on it to open “Layer Objects” dialog box. move cursor to “Layer 1”. then release mouse button. In this case we will use “Layer Objects” dialog box. Notice that those are only logical layers for editing (not signal or silk layers). but you need 400). so we should check and maybe correct the pad coordinates (you can see on the picture above that we place pads with 300 spacing. Now select the layers: move mouse arrow over the “Layer 0”.
To change the settings by default for the pattern select “Pattern / Pad Properties” from main menu. size. click “…>>” button to open templates manager. Notice that pattern has pad settings by default.64 You might want to change the pad settings. Notice that templates you can create here. Oval.e. i. A hole diameter is applied to “Through” pads only. Rectangle or Polygon (click Points to define the number of vertices or point coordinates for polygonal pad). that can be applied to all its pads and also each pad can haw its own settings. SMD or Through hole type. can be used for fast change of pad settings in different dialog boxes of Pattern Editor and PCB Layout programs. etc. In the “Pad Properties” dialog box you can change the shape of your pad: Ellipse. And to create your own templates. Also you can use pad template by selecting it from “Template” box. hole diameter. . shape.
width to “0.08”.65 Please close “Templates”. and On Board to “Surface”. change shape to “Rectangle”. then click “OK” to apply changes. .
then press “Points” to open “Polygon Points” dialog box. Current side for placing new pads and shapes can be also selected on the objects panel (box with “Top” text in the right side. Notice that you can change pad coordinates and direction from the pad properties dialog box. select “Properties” (If the pad is not highlighted while moving mouse arrow over it. Move the mouse arrow over first pad. Close the “Polygon Points” dialog box.66 Notice that for surface pads you can also change side. right click on one of them and select “Change Side”.09”. right-click or use “Default Mode” button in the upper side of screen to switch to default mode). right-click. then change hole diameter to “0.to change side select pad(s). width and height to “0. Now you will change the settings of single pad. Also pad properties are applied to all selected pads (not a single one you clicked on). i. On Board to “Through” and press “OK” to close the dialog box and apply changes. In the Pad Properties dialog box uncheck “Default for Pattern” box to enable the pad’s own settings.04”. . change shape to “Polygon”. by the way that box is not visible on 800x600 with default panel placement). Here you can define the type of polygonal pad and if non-Regular. polygon point coordinates. place them on the bottom side (they will be on top when component is placed to the bottom side in PCB Layout).e.
hole diameter – 0.09x0. Through. Select “Rectangle” button on the Objects panel in the upper part of the screen. then place rectangle by clicking on two of its key points: .04.09. hole diameter – 0.09.09x0.67 Now please define the following properties for the pads: The first – 0. the second – 0. Through. Rectangle. Ellipse.04. You will place the silk for this resistor.
You can do this in following ways: using “Layer Objects” dialog box (double click on “Layer 1” graphic in the right side). then click “OK”. 1. right-click on the shape and selecting point from the submenu. change grid size to “0.68 Disable rectangle placement mode (right-click or “Default Mode” button). Try to rotate and mirror the first pattern of your library. Select “Library / Library Name and Hint” from main menu. select “Edit / Rotate Pattern” to rotate and “Edit / Vertical Flip”. “Edit / Horizontal Flip” to mirror. or resize the shape using drag-and-drop method (use it in this case). the silk shapes are sized in relation to pattern width and height (sometimes it looks fancy).025in” (the grid box is located to the left from scale box). In the dialog box type the name of your library (it should be short) and hint. You will add several other patterns to this library in a minute. comments and filename. then add new patterns and simply click on “Save” button. The name of your . You might want to change the size of silk shape. The silk resizing is used when you change the width and height of pattern by defining different parameters when using “Type” of pattern (see designing “DIP” below). The resistor is ready. Notice that if you try to select and rotate the objects of your pattern.3 Saving library It is time to specify library name. Zoom In the resistor by placing “Ctrl+”. but we can define these parameters and save it now. Then move mouse arrow over rectangle key points and resize (mouse cursor shows possible directions). Please close the pattern properties panel (“X” button in upper right corner of it).
035. hole diameter – 0. 0. Select “Library / Save” from main menu or the corresponding button on the standard panel in upper left side of screen. I recommend you to use different folders for Standard libraries (“<Drive>:/Program Files/DipTrace/Lib” by default) and your own libraries (in this case we have created “My Libs” subfolder in DipTrace folder). type filename. Find the folder to save.059x0. You might want to define the pad settings by default before adding new pattern and placing the pads. Define the following settings in “Current Pads” group: ellipse. . but we will use another set of Pattern Editor function to create. then click “Save”.4 Designing a capacitor Capacitor has very similar pattern if compared to resistor.059.69 library will be shown on the Library Panel in PCB Layout program. Then click “OK”. so select “Objects / Placement Setup” from the main menu. 1. the hint will be shown when you move the mouse arrow over the button with library name.Through. On Board .
70 “Pad to Pad Spacing” group of this dialog box is used to define the spacing when placing the line. Show the properties panel by selecting “View / Properties” from main menu (if it was closed) or by clicking arrow button on its left side (if it was minimized) and type the name and RefDes of the capacitor. Notice that “Placement Setup” dialog box does not change the pad settings of current pattern. but changes program settings which are used when adding a new pattern. Mounting hole in DipTrace has two diameters: outer – the area where routing is restricted. rectangle or circle of pads (you can find this tools in “Objects / Place Pads” submenu or on the objects panel in upper right side of the screen). . and a hole itself. “Mt Hole Diameter” group is used to define the mounting hole diameters. Add new pattern to the library: select “Pattern / Add New To Library” then select your new pattern on Patterns Table in the left side of the screen (this table shows all patterns of library you design/edit).
4” to “Spacing 1” (pad to pad spacing). this will allow you to change lead spacing without pattern editor. “Spacing” is line to line spacing for “Lines” type – we will not use it because our pattern includes single line. . “2” to “Number 2” (number of pads) and “0. Check “variable parameter” in the right side of “Spacing 1” field. then define “1” to “Number 1” (number of lines for such type).71 Select “Lines” from “Type” box.
then select this pattern on pattern table in the left side and specify the name and RefDes. The capacitor is ready.) to design the patterns with fixed lead spacing. select “Rectangle” in the shape box and press “OK”. number of pads. (I suppose 95-100% of your patterns will be not variable). etc. so please select “Free” pattern type and minimize the pattern properties panel. Add new pattern to the library (“Pattern / Add New To Library” from main menu). Minimize pattern properties panel. then change the shape of first pad to “Rectangle”: right-click on the pad.5 Designing DIP14 pattern You will design DIP14 pattern using pad line tool. 1. Notice that we can simply select “Lines” type and change number of pads to “14” as you can see on the picture below (this is the fastest way to create such pattern). Select rectangle tool on the objects panel in upper side of the screen and place rectangle (this is first shape of the pattern silk screen). etc. . then select line tool and place two lines to create “+” symbol. but now our goal is to use pad line tool. Simply do not check “variable parameter” boxes.72 Notice that you can use different types (“Lines”. Properties. Do not forget to save your library sometime by clicking on “Save” button in the upper left side of the screen.
hold down the left button and move the mouse arrow to the second point of spacing: . then move mouse arrow over the first point of spacing. then drag-and-drop. Then move mouse to design area and place two vertical pad lines: left-click. then place second line from bottom to top (8 to 14). move mouse arrow to the bottom direction until line contains 7 pads (1 to 7). To control the line-to-line spacing use measure tool: select “Measure” button on the objects panel in upper side of the screen. Notice that lines were placed to different graphical layers (on the right) and you can easily select the layer and move it to new position.1 in.73 Select “Objects / Placement Setup” from main menu and ensure the pad to pad spacing is 0. Close the placement setup dialog box and select “Objects / Place Pads / Line” or corresponding button on the objects panel in upper right side of the screen. If you want to move one of the lines select it on the layer panel. left-click to place first pad line.
select “Properties” from submenu.74 Change the shape of first pad to “Rectangle”: right-click on the pad. then create silk for “DIP 14” using line and arc tools: .025 in” using grid box in the upper side. then “Rectangle” in shape box and “OK”. Change grid size to “0.
define name and RefDes for new pattern. Add new pattern to the library (“Pattern / Add New To Library” from main menu). 1. You will design DIP pattern with variable number of pads. then select “Lines”. set “Number 2” to 20 and check “variable parameter” in the right side of “Number 2” field: . Notice that origin of DIP-14 is different from pattern center.6 Designing DIP pattern with variable number of pads. however you can return it there at any time by centering the pattern (Edit / Center Pattern).75 Select the origin tool and click on the first pad of DIP-14 to move pattern origin there. We also recommend to use that feature for all newly created pattern to center the origin after creation if you don't plan to make a a different thing. You can also rotate the pattern using “Edit / Rotate Pattern” from main menu or “Ctrl+Alt+R”.
76 Zoom On your pattern using “Ctrl+”. Then draw pattern silk screen and change shape of the first pad to “Rectangle”: .
i. go to Start All Programs DipTrace PCB Layout. You can see that silk graphics as scaled with pattern. Close the library setup dialog box. Click on “…” button in the right side of list. Notice that you can easily move it to another position in the list if necessary. then uncheck “Get Libraries from Folder” box to activate the list. the type of first pad can be reset to default (in PCB Layout and other programs you will be able to edit number of pads using up and down buttons on the right side of property field).. then close Pattern Editor module. Select “Library / Library Setup” from main menu. find your library. so you can receive any DIP pattern with “0. you need to activate the library first. Our Pattern library is ready. Notice that you can change this parameter in PCB Layout from Pattern Properties dialog. . Placing the patterns Open DipTrace PCB Layout module. In case you keep “1” while changing “Number 2”.77 Show pattern properties panel using arrow button in the left side of it and try to change “Number 1” for example to “16”. “My Library” is added to active libraries. then “Open”. To add the created patterns to the design using the pattern list in left side of the screen.3 in” line spacing by changing single parameter. 1. Click on the save button. Component Editor and Schematic while attach the pattern.7.e.
78 Scroll the library panel to the right (using arrow buttons on its right side) until you find “My Library”. then select your library. Place the patterns and change marking settings to show RefDes and Type (View / Pattern Marking for common settings and right-click on the pattern / Properties / Marking for individual ones). Notice that individual settings are changed for all selected patterns. .
you can rename it from “DIP_VAR” to “DIP 24” in the pattern properties dialog box (“Main” tab). By the way. Notice that you can change default settings for pattern pads: right-click on the pattern and select “Pad Properties” from the submenu. So move mouse over DIP_VAR pattern. . the coordinates shown are coordinates of pattern origin. Try to change available parameter “Number 2” (you had checked it in Pattern Editor as variable) to “10”. right-click. it will be shown while you place that pattern (or convert schematic to PCB). Now you might need DIP 10. Notice that if specified origin is different from pattern centroid position. The DIP 14 pattern is normal. Also you can easily show or hide pattern origin for all selected patterns: right-click on one of them and select “Pattern Origin” from submenu. ”20” or “24” (you can preview the result). Also when you move mouse cursor over the pattern. DIP 20 or DIP 24. You will change it in PCB Layout: move the mouse arrow over the first pad of DIP 14. then click “OK” and you get new pattern. In the dialog box uncheck “Default for Pattern”. right-click.79 We have forgotten to change the shape of first pad to Rectangle for the DIP14 pattern. but we didn't design them directly. Try to rotate different patterns and you will see that pattern origin is its rotation center. select “Pad Properties”. select “Properties” from the submenu and “Variables” tab in the properties dialog box. change shape to “Rectangle” and click “OK”.
go to Start All Programs DipTrace Component Editor. Rectangle and ShapeRect. Please be attentive when creating.see below). Net Port is mostly designed as a single-part component and is used to connect wires together without visual connections.80 The same operation you can make with capacitor’s lead spacing. 2.e. .1 Customizing Component Editor Customizing the Component Editor is the same as customizing Pattern Editor. Designing a component library Open DipTrace Component Editor. You will design several components (including multipart components) and will attach related patterns to them using your pattern library. The component can contain only single “Power and Gnd” part (if you prefer to hide all power net for your schematic. After opening the program. Also few words about “Part Type” and “Part” parameters: The first one can be “Normal”. The only difference for the second and third types is silk rectangle for the last one. Using this panel you can define component type: there are 3 types of components here: Free (without any specific properties). select “View / Display Origin” from main menu to show zero point and X. then place all power pins to this part). placing and changing dimensions of the patterns with variable parameters. also for the schematics with flexible structure (we will try to design such component and to use it . 2. “Power and Gnd” and “Net Port”. it can be used for Ground or Power symbols. We would recommend to use patterns with fixed parameters where possible. Component Properties panel in the upper right side of design area can be minimized or closed using the buttons on panel’s upper side. Y axis. i.
but notice that length and X.81 You might want to define pin settings before creating the components. .Y Spacing should be divisible by grid step to create all part key points on the grid points. We will not change these properties now. So select “Objects / Pin Placement Setup” from main menu.
Select “Place Pin” tool in the upper right side of the screen. Rotate one pin by 180 degrees: select it and press “Ctrl+R” twice. then move mouse arrow to design area and place two pins using left-click. Select the rectangle tool and place silk rectangle for the resistor.2 Designing a resistor You will design the resistor using “Free” type and placement by sight. . After specifying these attributes please minimize the component properties panel using the arrow in its upper left corner. use the corresponding fields on component properties panel.82 2. Please define the component name and RefDes first.
they both are highlighted. When you move cursor over one of connected pins. then find your pattern library and open it. Click “OK” to apply changes and close the dialog box. but we need the attached pattern to be able to create PCB from the Schematic with this resistor. To create or redefine such connection move mouse arrow over the part pin. The symbol of our resistor is ready. left-click. then move to pad and left-click to connect.83 Notice that you can move the pin(s) using drag-and-drop method. So select “Component / Attached Pattern” from main menu. Select “RES 400” from the pattern list in the bottom right corner of dialog box. In the attached pattern dialog box click on the “Add” button. . please select them first. You can see the resistor pattern appeared in the right side of dialog box and blue connections between symbol and pattern (this is pin to pad connections). To delete the connection simply right-click on the pin or pad. If you want to move or rotate several pins.
84 Notice that you can specify pin to pad connections using the connection list and this way is preferred for medium or large components. Click “Save” button in the upper left side of the screen. . The resistor is ready and contains both schematic part and PCB pattern. Also pin numbers (related parts) can be defined from pin manager (select “Component/Pin Manager” from main menu to open it) or from pin properties dialog boxes. Define the name and hint for your library: select “Library / Library Name and Hint”. but remember the name should be short – it corresponds to the button caption on library panel in Schematic program). then type “My Library” in name field and “This is my first component library” in hint field (you can use another name or hint. define library path and filename and then click “Save” to save the library.
1”. Pin spacing is not needed in our case because it can be used when number of left/right pins is more than “1” . number left and right pins to “1”.3 Designing a capacitor Select “Component / Add New To Library” from main menu to add new component to the library and then select new component from component table in the left side of the screen.85 2. Change component width to “0. You will design the capacitor using “Rectangle” type. so define component name and RefDes and then select “Rectangle” in Type box of the component properties panel.
86 Now please minimize component properties panel. Use “Ctrl+” to Zoom On the symbol. . change grid size to “0.0125 in” and place capacitor silk using three lines and one arc.
so select “View / Move Tool” from the main menu or simply press F10. numbers and part attributes in the schematic capture. Notice that you can use such method to move pin names.87 Show pin names for your symbol: select the pins (or select all using “Ctrl+A”). Names are shown. . “Type” property is used mainly for pin graphics. you can try different types to see what it draws (or see Help). but they are in strange positions (as for capacitor) and you need to move them. rightclick on one of pins and select “Pin Properties” from submenu. then move mouse arrow over pin names and drag-and-drop them to new positions. then rightclick to return to default mode. In the pin properties dialog box check “Show Name” and press “OK” to apply changes and close the dialog box. Also notice that all newly created pins have “Undefined” electric type. Electric type is currently used for ERC feature only. so you can change the electric type using pin properties dialog box or pin manager (see below).
88 By the way we have shown the names (not pin numbers) and they will not be changed when changing the pin numbers.e. Also you can show inversion line in the pin name: move mouse arrow over the pin. related pads. so using it you can define the inversion for separate parts (signals) of the pin name. then move pin name using move tool (F10). “~” symbol in the pin name is start or end of inversion. then enter “normal ~invert” text and press “OK”. i. . right-click and select the first (top) item from submenu.
then hide pin name for both pins: select them (move mouse arrow to first row. then move cursor to the second one) and uncheck “Show Name” box. but also you can specify separate settings to display pin numbers for each part in the component editor. type and electric type of pins from “Pin Manager” dialog box. coordinates. . Notice that you can change pin numbers (i. hold down left mouse button. Notice that you can define general settings for pin numbers in the schematic capture and all components have general settings by default. length. Close pin manager.89 Probably you don’t need to display pin names for the components like capacitor and you might want to display pin numbers. select pin “2” in the table and change the name to “2”. Select “Component / Pin Manager” from main menu to open pin manager dialog box.e. related pads).
If you like to move pin numbers concerning to pins use move tool (F10). Notice that you will not be able to change individual component settings in Schematic Capture.90 In the component editor you can define the individual component settings to show pin numbers from “Component / Pin Numbers” menu and general program settings (the same as in Schematic Capture) using “View / Pin Numbers”. . Now please select “Show” from one of these submenus to show capacitor pin numbers.
. Select “Component / Attached Pattern” from main menu. then in dialog box your pattern library from library list and “Capacitor” from the component list.91 The next step is attaching a pattern to the capacitor.
But after converting Schematic to PCB all variable parameters are blocked and the placed pattern have fixed number of pins and pin-to-pin spacing. The next step is creating component parts. then select it in the component table. DipTrace allows you to create separate parts and part groups (similar parts) in the component. because there is a probability of mistake when defining or changing the variable parameters. i. etc. Add new component to the library. . Power and Net Ports. except pin numbers (i. All parts in the part group have the same pins. silk.e. Also parts can be Normal. You can use the patterns with variable parameters when design simple projects and need to be fast while attaching different patterns in Component Editor or Schematic Capture. But we don’t recommend you to use them for the complex designs. related pads).e. The attached pattern will be DIP14. select “Component / Add New To Library” from main menu.4 Designing a multi-part component You will design simple multipart component with four “And-Not” symbols and power symbol. 2. the component can contain only one power part.92 Notice that you can change lead spacing for the pattern because you specified it as variable in pattern editor. Power parts and power nets can be hidden in the schematic capture. Define the name and RefDes.
Now you can see the following parts: Part 1 (1). Now design your power part: select “ShapeRect” type from the type box of the component properties panel and specify the following parameters: width – “0. All the similar parts have the same part name and are united by part name. You can change the part name for example to “AN”. . The next part will be power part. type “4” in the dialog box and press “OK” to apply. Part 1 (3) and Part 1 (4) in the bottom left side of the screen. Then select “Power and Gnd” from the “Part Type Box”. Select “Component / Add New Part” from main menu.1. right pins – “0”. Part 1 (2).93 You will design the component with 4 similar AndNot parts and 1 power part. Select “Component / Create Similar Parts” from main menu. in spacing – keep 0. left pins – “2”. Notice that similar parts are created basing on currently selected part. Notice that new part is separate part and do not belong to “AN” group.3 in”. select new part tab in the bottom right side and rename it to “PWR”.
then change pin names to “VCC” and “GND”. electric type to “Power”. “Show Name” and “Length” parameters you can change for multiple pins. pin numbers to “14” and “7”.94 Select “Component / Pin Manager” from main menu. check “Show Name” box for both pins. . Notice that “Type”.
95 Close pin manager dialog box. Use “Ctrl+” to Zoom On. minimize component properties panel and see the first part of your component. .
leftclick and type “&”. you will define them in a a few seconds).96 You will design other parts of your component: select one of the AN parts.Not” parts (not “And”). then click ”OK” to apply changes and close the dialog box. .2 in. but pin numbers should be different (not now. width – 0. select “Dot” in the type field. so the right pin has to have inversion or “Dot” type. left pins – 2. select “Pin Properties” from the submenu. Try to select AN (3) or AN (4) and you see that they are the same as just designed part. Notice that we planed to design “And . then press “Enter” or click to place the text. move mouse into your symbol. Select text tool in the upper right side of the screen. Notice that you don’t need to design another “AN” parts. All parts in the group have the design. then define the following parameters on the component properties panel: type – ShapeRect. Then minimize component properties panel. right-click on the pin. right pins – 1.
the select the next part and so on until you define pin numbers for all AN parts. to switch to the next pin simply press “Down” key. define its pin numbers.97 Select “Components / Pin Manager” from main menu. In the pin manager dialog box select the part. Then close pin manager. Notice that you don't have to select next pin using mouse every time. .
Select “Component / Attached Pattern” from main menu. because as you remember all the pads of “DIP 14” have round shape and the first pad of “DIP_VAR” is rectangular.e. pin-to-pad connections) are already specified from pin manager. . Notice that you don’t need to specify pin-to-pad connections because the pin numbers (i. In the attached pattern dialog box select your library and pattern: you may use DIP14 with fixed parameters or DIP_VAR and define “14” for “Number 2”. We will use the second way. The next step is attaching the related pattern to multipart component. Select different parts in upper left side of dialog box and see the connections to ensure they are right. The multipart component is ready to enter into your designs. Select “Component / Add New To Library” to add a new component.98 Also notice that you can define “Input” and “Output” electric type to corresponding pins. Press “OK” to attach the pattern and to close the dialog box. Notice that all net ports have “Net Port” marking in the upper right corner of their graphic on the component table. Define the name “VCC” on the component properties panel and select “Net Port” in the part type box. These parameters will be used for Electrical Rule Check feature in Schematic. 2. then select it in the component table.5 Designing VCC and GND symbols You will design VCC and GND symbols using net port type.
then select “Pin” tool in the upper right side of screen and place single pin. rotate it three times (select and “Ctrl+R”).99 Minimize component properties panel. Select line tool and place silk line of the symbol. .
Now select “Component / Default Additional Fields” from main menu. Using additional fields Default component fields in DipTrace include RefDes. 2. you can add manufacturer field and specify “Linear Technology” as its default value. In this case you can use additional fields which you can specify yourself. Value and Type. For example if your design the library of LT components. link to data-sheet.6. enter some link into “Default Value” box and click Add. select Type:Text and click Add button. description or other field to the component. then type “Datasheet” in the name box select Type:Link. VCC symbol is ready. because these symbols are used only to connect wires together without visual connection.. Select “Edit/Center Symbol” for GND because in our case its origin is not in the center. Now please add component and create GND symbol in the same way. However. Please add Manufacturer and Datasheet fields: type “Manufacturer” in the name box. Notice that you don’t need to attach patterns to net ports. sometimes you need to add manufacturer's name. so you have to center it to make the part origin hidden by default in Schematic. Notice that you can also enter values directly into additional fields table. This dialog box allows you specify default fields and their values that will be added to all new components. .100 Hide pin number by selecting “Component / Pin Numbers / Hide” from main menu.
Close the dialog box. Select “Component / Add New To Library” or press “Ctrl+Ins” to add a new component. then select it. add or delete additional fields to the component. Now you can edit.101 From now all your new components will have such additional fields. however we will not . maximize Component Properties panel using arrow in its left side and click Additional fields to see the list of additional fields for new component.
Notice that it has no additional fields. Notice that you can simply press Enter key to accept and Esc key to cancel in all dialog boxes. select “Type:Text” and enter your company name into the value field. because we've created it before changing “Default Additional Fields”. enter “Manufacturer” into the name field. then click OK.102 Select your capacitor. Click Add button. . So we will add several new fields to it.
103 Add “Web-site” field in the same way. List of available signals (as information) is located below that table. but select “Type:Link” and enter some real website address into the value field. press enter or just move focus to another field. however if you need to edit it for other components simply enter signal names into the table in left side of spice Settings window. Select “Model Type: Capacitor”. Please select CAP if it is not selected in the components table. Currently we will only specify that our CAP part is capacitor with some value and it can be added to Spice net-list. then double click in Parameters : Value (cell with “1uF” text) and edit value. We will review this step-by-step in the Part III of this tutorial. . 2. then “Component/Spice Settings” from main menu. In our case pin-to-signal map is correct. In the Template field above you can see how this part will look in spice net-list.7 Spice settings With DipTrace you can export your Schematics into LT Spice to simulate and see how it works.
then button with diskette icon in the upper left side to save your library and close Component Editor program. so we don't need specific model in text file or program to show how it works (just model type and capacity). Notice that such dialog box is also available in Schematic program and you can define spice settings after completing (or during) schematic drawing. We've finished designing our library. “Get Spice Model from Library” button allows you load existing spice settings from another DipTrace component. .104 Capacitor is very simple part. Also there is SubSkt type where you can enter/load model of almost any part as the program. However for transistors you can load models from external files (usually Spice models are available from manufacturer websites) or enter model text manually if you know how to do that (see Spice Language documentation). click OK to apply and close spice settings.
the same with capacitor. so you can use it if necessary.e. You should add your library to library panel first. so select “Library / Library Setup”. Now you can easily open web-site you entered. In this case you don’t need to configure libraries via Library Setup dialog box. Select resistor in the component table and place it using left-click in the design area. We will see how to use additional fields of our capacitor. Close the library setup dialog box to apply changes. then select “My Library”. Please make right click on it and select “Links” from submenu.105 2. Notice that you can also place the components using “Objects / Place Part” or the corresponding button on the objects panel. Now please scroll library panel to the right using arrow buttons on its right side.8 Placing the components Open the Schematic Capture program. . uncheck “Get Libraries from Folder” box. However this feature works in the same way as in other package programs. go to Start All Programs DipTrace Schematic. press “…” button at the right side of active libraries list and open your library. If the origin is shown press F1 to hide it. Usually you don't need origin to design schematics. i.
.106 You can also display additional fields as Part Marking from “View/Part Markings/Main(Additional)/Additional” or change via component properties window (right click on the component and select “Properties”).
Power part can be placed automatically (if “Auto VCC/GND” is checked) or manually by selecting from part list and placing to the design area. Select “AN (4)” and try to place several symbols to the design area. The program automatically select the part from part group and place power symbol for the component. To change the placement mode for similar parts. Notice that active part and number of parts are shown in the component table. You have created the component with similar parts and power part. All similar parts can be placed using one item from part list (in our case “AN (4)”) or in the same way as separate parts. select “View / Group Parts” from main menu. .107 Select the multipart component from the component table.
108 I will show you how to use NetPorts. Then select on the component table VCC symbol and place two parts. Move mouse arrow over the wire connected to VCC or GND and you will see that all the wires connected to the same symbols belong to single net. Place more AN parts to receive two AndNot components (IC1 and IC2) and two power symbols. Connect the pins. . Notice that for net ports program shows Type (or “Name” from Component Editor). the same with GND. You can unite two net ports by defining the same type and two wires connected to the same pins of net ports with similar type are connected.
etc.109 To rename the net which connects VCC pins right-click on the wire and select the first item or right-click on the pin and “Net Name”. These features are described in details below. . check “Connect without wire” and “OK”). then select net. Notice that you can form multipart components from the separate symbols and attach patterns to them without using Component Editor. Simply check “Allow Parts” box in the component properties dialog box (right-click on the part. The last method is the fastest way to connect VCC. GND (if you plan to hide power nets and parts). then “Properties”) and define the same RefDes to symbols. unite nets by name (check box in the net properties dialog box) and connect pins to the net with similar name automatically (check box in the net properties dialog box). then “Attached Pattern” button to define related pattern and pad to pin connections. CLK. select “Add to Net”. Also you can connect the pins to nets without wires (right-click on the pin.
There are 4 nets connected to our bus. The markings of wire-to-bus connections can be net names or numbers in the bus. right-click and “Bus Connection” from the submenu. then move to bus and left-click to connect. Right-click twice to finish placement and switch to the default mode. . Using different package features This part of tutorial includes the description of important features that weren't reviewed above. we will change “Net 4” connection to “Net 2”. we are expanding it step-by-step. In the dialog box appeared you can define the name of new net in the bus or connect the wire to existing net (which are already connected to that bus). Move mouse over part pin. Now “C1:1” and “IC2. then place bus in the design area by defining its key points.1 Working with buses and page connectors This section will show you how to use buses and page connectors in the schematic capture program.110 III. Select “Objects / Circuit / Place Bus” from main menu or the corresponding button on the objects panel.2 : 5” are connected to the same net via bus. Notice that you can change wire to bus connection at any time: move mouse to the wire segment connected to bus. 1. leftclick. Select “Connection to Bus” from main menu to change them. Connecting 1. However notice that tutorial doesn't include detailed description of all DipTrace features yet.
111 Now please add a sheet to the schematic. Select “Sheet 2” there. . You can see the list of sheets on the Tab in bottom left corner of schematic main window. Select “Edit / Add Sheet” from main menu or press “Ctrl+L”.
then change the sheet to Sheet 1 using tab below and place page connector there (it should be “Port 1”). then left-click on the bus.112 You can rename or delete the schematic sheet or insert blank one between two existing sheets using right-click on the tab in bottom left and selecting appropriate item from the submenu. right-click and select the first item from submenu and rename page connector to “Port 0”. . You can see that connection point color was changed to green. Then connect existing bus to page connector: select bus tool. move mouse arrow to page connection point (blue circle) and left-click to connect. Select Page Connector tool on the objects panel in the top and place it to your empty sheet (it should have “Port 0” name). This means that current page connector is connected to another one. Notice that you can also connect more than 2 page connectors by defining the same name to them. Move mouse over “Port 1”.
113 Select “Sheet 2” and create the bus connected to “Port 0” there. i. Notice that the name of your bus is the same as the bus on Sheet 1 has. this is the same bus.e. Now you can place parts on the second sheet and connect their pins to “Net 2” or “Net 3” using bus or create new nets common for both sheets. .
the same with other pins. You can connect or disconnect ports (i. On the picture below you can see the pins connected to “Net 0” and “Net 4” without wires. easily change schematic structure) by changing “Type” string in net port properties (right-click. however you can also make multiple connections using net ports with several pins. all wires connected to pin 1 of “Port 8” parts are connected. Then select “Port_Sch” on the library panel (notice that you can scroll libraries if necessary). Place more parts on the second sheet. i. Connecting without wires The pins can be also connected completely without wires. In this case they don't depend on the sheet or part location.114 1. Make connections from the parts to Port 8. then place Port 8 to the first sheet and connect the parts located on the first sheets to Port 8 too. but do not connect their pins to the bus. then select Properties).e. then press OK. 1.2 Working with Net Ports We already tried to use net ports above to make VCC and GND connections. In the most cases they are used in that way.e. find “Port 8” there and place it to the design area.3. in the dialog box shown select the net and check “Connect without Wire” box. . Move mouse arrow over the pin that is not connected yet. right-click on it and select “Connect to Net”. Notice that net names connected to the same pins of Port 8 on “Sheet 1” and “Sheet 2” are the same.
.115 Now please scroll the design to blank area . left-click to start creating wire. move mouse over its pin. Place single GND symbol. then move mouse a bit up and press “Enter” key.we will try to connect pins to the net by name.
1. Now select Analog Devices library (AD) and try to place the first component a few times. Press “OK” to apply changes and close the window. then press “Add”. Also when you change that property for the net. In the net properties dialog box rename net to GND and check “Connect Pins by Name” box. Select some net in the box above the window. it is already connected (maybe to another net). so if you can't find the pin you need. CLK pins or even data buses. This feature is the easiest way to connect pins which have the same name for all schematic. To open it select “Objects / Connection Manager” from main menu in Schematic or “Route / Connection Manager” in PCB Layout. Also you can create new net by pressing “+” button. .116 Right-click on the wire segment connected to GND and select Properties. Notice that all GND pins of placed component are automatically connected to GND net without wire. Open connection manager in the Schematic where you are in... the program checks all existing parts for free pin which name is the same as net name. Notice that only free pins are shown there.4 Connection Manager in Schematic and PCB Layout One of the easiest ways to make connections in Schematic and PCB Layout is connection manager. To add the pin select part and its pin below. “. you will see all its pins. Now you can easily add/delete pins to/from the net. These can be power.” and “X” buttons rename and delete current net respectively.
.dch file from Examples folder. Open Schematic_2. 2. Reference Designators From now on on we will work with schematic examples located in “C:/Program files / DipTrace / Examples” folder or another place where you installed DipTrace.117 Press “OK” to apply all changes you made and close connection manager or “Cancel” to close it and recover old net structure.
Right-click on that capacitor and select the first item from submenu. till C18 . so C6-C24 become C5-C23 and C30 becomess C24.118 On this Schematic you can see different types of pin connections made by our electronic engineer. but currently it has C19 designator. Select “Yes”. It will be our C5. then check capacitor designators in connection manager – C5 and C25-C29 are missing.C30 become C24. etc. enter “C5” and press “OK”.C19. Now please rename your C5 to C30. Program will show the warning message. To correct this issue simply right-click on the capacitor (C29) and select “Optimize RefDes / RefDes C” . The capacitor was renamed to C5 and old C5 became C6. but when trying to edit you probably need to insert for example C5 somewhere. but also suggest to rename the component with shift of RefDes numeration. why? While optimizing the RefDes program removes all empty places in the designators array. however you inserted C5. Current Schematic contains 23 capacitors from C1 to C24 (C19 is missing). Now you can see in connection manager that C19 designator is not missing. . however our goal is to make some experiments with reference designators to show you how it works. In the same way you can place any component and rename its designator with shift of other ones. So please try to place a capacitor from the library you recently create (My Library).
then open PCB_2 file from Examples folder. Rename C8 and C10 in the upper side of the board to C28 and C30 (right-click on the component and select first item).119 Now please close your Schematic without saving and run PCB Layout module. . Select “File/Save As” and save changed PCB file somewhere.
120 Close PCB Layout and open Schematic Capture again (notice that you can open it directly from PCB Layout by selecting “Programs/Schematic” from main menu, however we don't recommend to do this for Win 98/ME users). Open Schematic_2.dch file and find C8 and C10 ...oops, sometimes it is really hard to find the component with specified RefDes on big schematic or PCB, so press Ctrl+F (or select Edit / Find Object from main menu). Type “c8” and press “Enter” to find it, C8 will be placed in the center of design area and highlighted.
Notice that you can minimize “Find Object” window by clicking the arrow in its upperleft and use it while editing your design without showing all parameters. Zoom In the schematic to see C8 and C10 better. Notice that PCB_2 is the design related to Schematic_2 and we've renamed these capacitors there. We can rename them here too, but what do you think if while designing complex project you renamed a few hundreds of components (according to their positions on PCB) and don't remember their old designators. In this case we can use Back Annotate feature, so please select “File/Back Annotate” from main menu and the PCB file you saved in open dialog box. Now you can see that all designators in Schematic (in our case C28 and C30) are changed according to PCB.
3. How to find components in libraries.
DipTrace includes the impressive number of components in Standard libraries (approx 50,000) and we enlarge these libraries step-by-step. The libraries are formed by manufacturers and components are sorted there. However sometimes we don't know the manufacturer of some component or it may be produced by number of manufacturers or we don't know its full name, but only digits in the end of its name, etc. To make searching components easier all DipTrace modules have special searching feature. If you are in Schematic, select “Library / Search Components” from main menu. For example we need some component that contains “232” in its name, but we don't remember other characters, letters or so, because a friend recommended it about a month ago. So type “232” in the “Name” field and press “Find Now”. In several seconds the program shows 112 components in the results list which contain 232 in their names. You can also preview the component, its pattern and library where it is located. Also you can place the selected part of the component directly from search window by pressing “Place” button. Notice that we have searched Active libraries, however you can select the libraries you want or search all known libraries (select appropriate item in “Search In” group). The library list is active only if “Search In: Selected” is activated.
Notice that you can search component libraries in Schematic and Component Editor (Component / Search in Libraries) and pattern (footprint) libraries in PCB Layout and Pattern Editor (Pattern / Search in Libraries). Also search function is included into all placing/inserting etc. dialog boxes where you may need to search libraries for components or patterns, however those dialog boxes allow you to search through their library lists only.
4. Electrical Rule Check
Electrical Rule Check (ERC) feature helps you reduce the probability of error while designing schematic. Run the schematic module if you are not there and open Schematic_2.dch from Examples folder. First of all we have to define electrical rules, so select “Verification/Electrical Rule Setup” from main menu. In the dialog box shown you can define incompatible pin-to-pin connections that may cause error or warning while running ERC by clicking in the grid cells with green, yellow and red squares. “Pin Type” item in “Rules to Check” box means checking pin-to-pin connections defined in the grid; “Not Connected” - looking for free pins that are not connected; “Only One Pin in Net” - looking for nets with only one pin, i.e. the nets that make no sense may be potential errors in net structure; “Short Circuit” - looking for Power to GND connections, you can define the mask for power and ground pins in “Power Pins for SC” group.
Keep the default settings and press “OK” or “Cancel” to close the dialog box. Now select “Verification / Electrical Rule Check (ERC)” from main menu. If you make the check for Schematic_2, it should show one warning for “Bidirectional to Output” connection. To localize the error on schematic double click on it – in case your resolution is more than mine while writing the tutorial, you will see the net and pins highlighted in the design area. You can correct the errors and rerun ERC without closing ERC results window.
Notice that if you want to check not connected pins you can specify pins that are really not connected (i.e. ERC must not report them). Right click on one of the pins and select “Not Connected” from the submenu to block the pin for connecting any net and ERC.
add tables or pages to existing project. then change text and row height). export files to Excel CSV format or save as text file with appropriate table formatting.124 5. Press “Place Table” button to add new A4 sheet with ISO title and BOM table to your project. Specify “Table Rows: Component Type”. The BOM dialog box will be closed and new sheet added to your design. Bill of Materials (BOM) DipTrace Schematic module has powerful BOM feature that allows you to customize columns and rows. . add the columns with settings you can see on the picture below. select “Create On: New Sheet” and “ISO A4” in the sheet template box. Select “Objects / Bill of Materials” from main menu. Check “Adjust by Width” to stretch the table accordingly to page width. Select “Sheet 2” display titles and sheet using “View” menu and edit the row height and number of lines for cells where the length of strings exceed column width (left-click in the appropriate cell.
125 Now we have BOM table on the additional sheet. which we can print with the project. .
net file from “C: / Program files / DipTrace / Examples” folder or another place where you installed DipTrace and open it. press “Place Table” and choose table location after closing the dialog box (left-click in design area). then select tango_1. Tables in Schematic and PCB Layout can be easily saved to CSV or text with formatting: right-click on the existing table and select “Save to File” from table submenu. Also exported netlist can be used to review net structure of schematic file via notepad or other text editor. If you have multi-sheet schematic with many components. Importing/Exporting netlists DipTrace allows to create netlists of different formats to transfer them to other software packages. open a new document in PCB Layout and select File/Import/Netlist/Tango. To export netlist in Schematic select File/Export/Netlist from main menu and set netlist type.126 Also notice that you can place the table to the same sheet with Schematic: select “Create On: Current Sheet”. To do that. . and import netlists from other programs. their RefDes and pattern names appears. Then a window with listed components. Let us see how to import a netlist in Tango format created by other program. A netlist will be created from the drawing opened in the current Schematic window. 6. Program is trying to find components and patterns included in the netlist. You can export the file directly from BOM dialog box or from the placed table after editing it (for example you need some columns that can not be inserted via BOM dialog box). then it is possible to create separate table for each schematic page directly on it.
if possible. click Add.127 So in the first column we can see RefDes of components. If the program couldn't find the pattern for the selected component. . then in Pattern field below the table 'none' will appear. To attach pattern to a component. If a component doesn't have a pattern attached. Also notice that you can attach patterns to components by type or to all components that have the same pattern property at once. Its name and the name of the containing library are shown in Pattern field and Library. it simply won't be imported. appropriate message will be shown. component C41 that comes first in the list has CAP 225 pattern that isn't included in DipTrace libraries. Notice that components with attached patterns have “star” symbol at the end of pattern name. Now please add patterns to all components in the list using this feature. You should also remember that pin numbers and their quantity for a component in a netlist and pad numbers of the attached pattern should match. That's why you need to make sure that all components have attached patterns. Select “No” to cancel importing and attach all patterns or “Yes” to import without some patterns. If your netlist has components without attached patterns. and in the third column types of components. For example. and press OK afterwards. After that click Import to complete import. in the second column their patterns. In the appeared window you need to choose a library and a pattern in it. The selected pattern will be attached to component С41. In this case you need to choose a library containing that pattern (probably you will need to create that pattern by yourself) or select an alternative pattern.
We have already defined all spice settings for this schematic. Now please run Schematic program and open “C: /Program files/DipTrace/Examples/ Spice/Astable_Flip_Flop_Spice.dch ”. Template field shows how the component looks in spice net-list. We will try to simulate astable flip-flop schematic from part I of this tutorial using LT Spice. Notice that you can enter parameters directly into table cells. However if you have another program. Right click on C2 capacitor and select “Spice Settings” from its sub-menu. . Spice simulation DipTrace doesn't have its own simulator. Defining capacitor is very simple: you should select “Model Type : Capacitor”.128 7. you can use it too. list of available signals is located below. We would recommend to use LT Spice for simulation as it is free and comparable (or even better) to expensive professional simulators. enter value into parameters table (in our case 22uF) and specify positive and negative pins. however allows you to define spice settings and export net-list to any simulation software. however we will review a couple of parts to learn how to that. You can also scroll that field to the right. To specify pin you should enter value into pin-to-signal table in the left side.
etc. phase. you can also specify its function (select PWL): Enter number of points for PWL function and click OK. define its value and click OK. Ok. See detailed description in Spice language documentation. . now return back to capacitor.).129 Now try to select any different model type (for example Current Source). Now you can see that you can enter points in parameters table one-by-one. If you selected current source. Different functions require different parameters (amplitude.
You can see that we have voltage source. Pulse PER=30s. Please select “Function : Pulse”. Click OK and save . All things are ready. but no valid function. then define Pulse V2=5. now we have voltage source that produces 5V during first 20s.1s step. Also notice that you can get all spice settings from another DipTrace library (“Get Spice Model from Library” button). etc.1s” in “Commands” . Pulse PW=20s. select it. .TRAN 0s 30s 0. then 10s interval. Click OK or Cancel to close the dialog box. Notice that you can also define/change commands directly in LT Spice. Here you can enter model text or load it from external file. In the small dialog box shown select GND net (this is our zero point) and specify “. Select “File/Export/Spice Netlist” from main menu. some component manufacturers publish spice models for their components.this means simulate from 0s to 30s with 0. so right click on B1 and select Spice Settings. so you can use them. The file we loaded doesn't have valid spice model for power source and we should define it. so we simply define parameters for them. Click OK.130 Capacitor and function don't require additional model description.cir file somewhere. Now please right click on Q1 and select spice settings. you can see that “Model” tab appeared near “Parameters”.
typically it is recommended to keep all boxes checked. You can see net-list in text format.jsp Select File/Open in LTSpice and open .cir netlist you just saved (notice that you should select correct “Files of Type”). then has 10 sec interval. Now please run PCB Layout module and open “PCB_2. Select “Verification / Check Net Connectivity”.linear.dip file” from “C: / Program files / DipTrace / Examples” or another place where you installed the program. you can download it from http://www. Select “Simulate/Run” and close error log window. etc. Checking net connectivity One of the most important features to verify your design before prototyping is net connectivity check. If you don't have it yet.131 Now please run LT Spice. It allows you to check if all nets are connected and reports all isolated areas (not depending on connection type: traces. 8. Press OK. then “No Errors found” message. Now you can also add other signals to see how they work. In the dialog box you see you can define objects that will be used as connectors while checking connectivity. Select Plot Settings/Visible Traces and choose led1. thermals or shapes).com/designtools/software/switchercad. right-click and select “Unroute Trace” (connection will be hidden in this case because of copper pour). so the design is correct and we will make a few errors to see how the feature works. You will see the progress bar. Select “Edit Traces” tool on the route panel. then move mouse to the trace that connects C16:2 to via to GND copper pour in Bottom layer. Now you can see something like this: This is current on LED1. As we can see it works during first 20 seconds. .
Switch to Bottom layer and scroll to bottom right corner of the design.132 The second error will be isolated copper pour area. Now place two shapes (arcs or lines) to signal layer (appropriate box on drawing panel) to isolate one of the vias and update copper pour (right-click on its side and “Update”). .
second is C16:2 (our first error with SMD pad) and third one is isolated copper pour area. . Now select “Verification /Check Net Connectivity” and click OK.dch”. Now please run PCB Layout module. but if you have complex design with number of layers and thousands of pins.133 This is a simple situation you can find by yourself. isolated copper pour areas and non-connected pins can be unnoticed. You can see connectivity check result which reports Net 7 as broken one with 3 areas: first area is copper pour and all pins connected to it. 9. We will see how these features works using one of our examples. Placement features Starting from version 1.40 DipTrace has advanced placement features and integrated auto-placer to make placement after converting to Schematic and placement optimization easier. To make further correction process more comfortable you can save result to the text file. Now you can see something like on the image below and it is necessary to spend some time to place all that components to their places inside board outline manually. select File/Open and open “C:/Program files/DipTrace/Examples/ Schematic_4.
Resolution for screen examples is low so we should scroll the window to see “Convert to” box. In the dialog box shown you can see DXF file we plan to import. Select File/Import/DXF and open C:/Program files/DipTrace/Examples/outline.134 Now we will import some board outline from DXF. . however you can do that without scrolling. Select “Board Outline” layer and Convert to: Board Outline.dxf file.
Other things you can keep as is or simply make the same settings as on picture above (notice that values are in mm. but the components are still messed. First we will arrange components a bit.135 Select “Import mode : Add” to add board outline to existing layout and press “Import” button in the Upper-Left of the DXF window . select Placement/Placement Setup from main menu: Check “Place Patterns Outside the Board Outline” box to arrange components near board outline.now you can see board outline. however I would recommend not to change values yet). Click OK to apply changes and press “Arrange Components” button on the placement tool bar or select “Placement/Arrange Components” from main menu: .
click inside the board outline to place the component you selected. J8. Spacing > Use:Custom and Value:20mm (this means that we use custom clearance for U3 and other components should be located >20mm far from it). . then lock U3 too. then try to select some component from the list (left click) and move mouse to the board outline (without holding left button). Click OK.136 All components are now located in one place near board outline. U3. Select “Placement/Placement by List” from main menu. Now please select and lock them (Ctrl+L). that can not be changed. U2. J12. Notice that component disappears from the list (the list shows only the components that are outside the board outline). Also right click on U3 and select Properties. Now please place U1. except U3. RN1 and RN2 in such way. J1. We suppose that those components have fixed positions. then Placement tab.
____________________________ That's all for now. because we have placed large components manually before. . for example for single-sided boards with jumper wires where jumpers have some direction and changing component rotation you can define manually is not great idea). minimum further trace length). Of course some connections are not ok. diodes. Select “Placement/Placement Setup”. You get something like this: Notice that connections (blue lines) between different resistors. change X Spacing and Y Spacing to 5mm. etc. because we defined 20 mm spacing for it.e. also notice that Allow Pattern Rotation is checked (sometime it is useful to turn it off though. Thank You for your interest in our software product and learning this tutorial! We will enlarge the tutorial in future by adding description of existing features that are not here yet and by upgrading DipTrace package with appropriate changes in tutorial. If you auto-place ALL components. “Use Pattern Spacings” should be checked to use 20 mm clearance for U3. however usually this is not acceptable in real conditions. Now please click OK to apply changes and click “Run Auto-placement” button on the placement tool panel or “Placement/Run Auto-placement” from main menu.137 Now we will auto-place all other components with 5mm spacing. are optimized by their length (i. Uncheck “Place Patterns Outside the Board Outline”. you can get better result. We do not recommend to select “Increase Placement Quality” yet (you can play with it later if you want to do that). Also U3 is separated from other components.
join DipTrace Community at Yahoo!: http://groups. Order DipTrace on-line at http://www. suggest new features for DipTrace and discuss them.com and our staff will gladly answer all your questions.diptrace.com/download. To communicate with other DipTrace customers.php Check your version and build (“Help / About”) and compare it to the one on our web-site.php .yahoo. please contact our customer support at email@example.com/group/diptr Download the latest version of DipTrace at http://www.com/order.diptrace.138 DipTrace Links If you have any questions or suggestions.
This action might not be possible to undo. Are you sure you want to continue?
We've moved you to where you read on your other device.
Get the full title to continue reading from where you left off, or restart the preview.