Vous êtes sur la page 1sur 8

Protel 99 Design Files

Protel 99 like Altium Designer puts all of your files under a single umbrella called a design. This is a database approach and has many more capabilities than we are going to use at this time. If you discover anything really cool that is applicable, please feel free to pass it on to your fellow students. Instructions for making/using design files:

Make a new design by selecting File -> New Design... (or New... if New Design is not visible). Give it a name and store it somewhere (preferably on a USB flash drive or CDR). The design file will appear in the Explorer column on the left of your screen, and you should see the top level directories on the right. The Design Team section is for major designs worked on by a team. We wont be looking into this at all. You can store your individual files in Documents. Sub-folders are possible if you want to be fancy. To start, create a new Schematic and PCB file by selecting File -> New... for each of Schematic Document and PCB Document. These files will be placed in the current folder, so you may want to open the Documents folder first. You are now ready to start drawing your schematic.

Installing libraries:

While you can install libraries at any time, I would highly suggest doing so now. We will first install the Schematic libraries. Open the schematic file you made above by double-clicking on it. Then click on the Browse Sch tab and select libraries from the list. Click Add/Remove. You will want to make sure the miscellaneous library (which strangely enough contains most parts you will need), is loaded. If it isnt loaded you can find it here C:\Program Files\Design Explorer 99 SE\Library\Sch Next add the PCB libraries. Open the PCB file you made. Then click on the Browse PCB tab and select libraries from the list. Click Add/Remove. You will want to add the miscellaneous library (which strangely enough contains most parts you will need) and the advanced library. They are in C:\Program Files\Design Explorer 99 SE\Library\Pcb\Generic Footprints (Miscellaneous.ddb and Advpcb.ddb). Note that you can use old Protel schematic libraries, but old PCB libraries seem to choke. It is usually easiest to just add them to a Design file, at which point they seem to work just fine.

Other useful notes:

To extract files from a database for use with other versions of Protel, to send to a board house, etc, just use the File -> Export... command.

Steps to create the schematic: 1. From the browse Schematic pane -> browse libraries tutorial-sch library select the Electret Mic by double clicking its name. Move the mouse pointer onto the schematic sheet, press the Tab key to bring up the part properties. Change the Designator to JP1 and the footprint to SIP3 (Single Inline Package 3 pins), click on ok then move the part on the sheet (you can rotate the part by pressing the space bar while you move the part, you can also flip the part on the X and Y axis by pressing the X or Y keys while moving the part) and place it with a left mouse click. If you move the mouse after placing you will find you still have the Electret Mic following you. A right mouse click will get you out of the part place mode.

2. Select a MAX475 op-amp from the same library. It is a quad op-amp package (there are 4 opamps on the chip, we are only going to use 2). Press the Tab key and change the designator to U1, footprint to DIP14 (Dual Inline Package 14pins). Place 4 of these opamps onto the board. Note the designator changes each time a part is placed U1A, U1B, U1C and U1D. We only need A and D so click and select the other 2 opamps B & C and delete them (to delete parts that are currently selected [outlined in yellow] hold down the Ctrl key and press Delete). You should now have something that looks like the picture below.

3. Next we want to add a resistor we could browse the library for it or we can use the add part graphic on the Wiring tools toolbar (looks like an AND gate). Change the Lib Ref to RES2 Designator to R1 Part Type to 100k and Footprint to Axial0.4

4. We will need 4 connections to 5V, 7 to GND and 3 to 2.5V (via a voltage divider). The upside down tree icon on the Wiring Tools adds the powerport. Press Tab before placing and edit the Net name to 5V and change the style to bar. Place 4 of these powerports then press tab and change the Net to 2.5V, place 3 of these and then change the net to GND and the style to Power Ground, we need 7 of these. Note# All 5V references will be recognized as the same thing by protel and connected together, similarly, all GND references will be ground..

5. Continue on with the circuit as per the Schematic Diagram attached. Change the Designators and Part types (values) as you place the parts to match the schematic. A listing of footprints is also attached, set these to match. If you forget to set a designator value or other detail you can get to the part properties by double clicking on a part.

6. Place capacitors. We will need 1 polarized capacitor and 4 non polarised. Go to the Miscellaneous Devices library provided by Protel. Select "CAPACITOR POL", Designator C1, Value 22uF, Footprint Polar0.2

7. Add a coupling capacitors select "CAP" from the library. Edit the properties etc.

8. Make a voltage divider to source the op-amp using 2 resistors, 5v and GND. Make another port off the divider called "2.5V".

9. Connect the circuit to a PIC microcontroller. Some vendors provide a library that you can get the part from. Go to Add/Remove Libraries, and get the libraries from the mfg we want-Microchip. Doubleclick to add. From the library, we get the PIC16C73A20I/JW28. It gives you a pinout and footprint for the chip.

10. Note that there are no power and grounds on this chip. Power and ground are hidden. Doubleclick on the part and select "Hidden Pins". Click this. Now power (Vdd) and ground pins (Vss) appear, connect them up. Note# If we used Vdd instead of 5V for our Powerport and Vss instead of GND Protel would of connected these up for us but hidden.

11. Add a crystal for the PIC.

12. Once the parts are all laid out on the sheet you can connect everything up. Use the wiring tool (a parallel squiggle on he upper left of the Wiring Tools box), place the cursor over a pin you want to connect to, a big black dot should appear, left click once and drag the cursor to the next pin you want to connect. Again when the black dot appears left click. Note you are still in wire mode so if you move to another point now you can connect this one as well. A single right click now will disconnect you from the last connection you made but leave you in wire mode. Right click twice takes you out of wire mode.

13. Wire up the rest of the schematic.

14. Tidy up. By default when you create a new Schematic sheet it is sized as B or C instead of A4 or any other sheet size we may be used to. To resize go to the design menu and select options, this will open the sheet properties dialog. For this schematic select the A4 standard style from the drop down options to the right. If we had a small schematic we wanted to fit better on the sheet we could a custom style and manually enter the sheet dimensions we required. When you come to printing the schematic you may note an option to fit the sheet to the printable page. With a smaller sheet this enlarges smaller sheets and the schematics to a more readable size.

15. When you feel you have the Schematic finished, the next step is to run an Electrical Rule Check. Go to the Tools Menu and select ERC. You dont need to change anything on the setup at this stage just look at what options are available. From the tab on the top of the ERC dialog box select Rule Matrix. From here you can select what will and what wont bring up an error. If you look down the first row for Input Pin you will see that an Input connected to an Input wont bring up an error but an unconnected Input will trigger a warning. Click on

OK and run the ERC. You should get a report with 1 warning and 1 error. Both are for the same pin (Pin 1 of the Micro), the warning is for an input being unconnected, the error is for a floating input. Return to the schematic and you should see a red marker on Pin 1 of the Micro. Click on the marker and a message will appear showing what the error/warnings are. Ignore these warnings, if you have other warnings or errors see your lecturer (or fix it yourself if you can).

16. The next step is to make this into a full PCB. Just before we do we are going to create a file called a netlist. From the design menu select Create Netlist, this will open a text file which in the top section shows component designators, footprints and values. In the section of netlist shown to the lower right C1, C3 and C4 are shown. The section to the far right shows the lower section of a netlist. At the top is the electrical net named 2.5V this is connected to pin 1 of R1, pin 1 of R2 and pins 3 and 12 of U1. Netlists used to be needed to import the schematic to the PCB. The main thing we can use it for now is making sure that all components have proper designators (all ? have been replaced with numbers), and to check we have footprints against every component.

17. We need to delete the PCB file we created last week. Design explorer select the file under your name with an extension of PCB. Right click on it and delete it.

18. From new bring up the New Document dialog again and instead of creating a new PCB click on the wizard tab. Select the Printed Circuit Board Wizard, Custom made board, change the size to 3000mil (3inch) wide and 1700mil (1.7inch) high. Uncheck the 6 options at the bottom Title block etc. Click next, then next again, Select 2 layers Plated through hole, click next then next, Change to through hole components and 2 tracks between pads, click next, minimum track width set to 15mil and minimum clearance also 15mil leave the others untouched. Click next then next then finished.

19. You now have a blank PCB on screen 2.5inches wide by 3 high. We need to make sure the footprint libraries are loaded. Select the browse PCB tab from the explorer and select libraries 5

from the drop down list. If it isnt already there use add remove to add the PCB Footprints.lib your lecturer will have a copy of it if needed.

20. Select your schematic file again. From the menu bar select Design, Update PCB. Dont change anything just select execute. Now reselect the PCB sheet. You should now have components sitting outside of the PCB outline and a red section labelled sheet 1. Click on the red section then press delete. It should go.

21. From the menu select Tools then Auto Placement then Auto Placer. Select ok. This moves all components into the PCB for you. Note the components are linked together via some of the pins by thin blue lines. This is the rats nest. If you move the components around now you will see the lines stretch and in some cases move to closer connections. Your task now is to move the components around to get as few of these lines crossing each other as possible. Below is an image to help with this.

22. Once you have everything where you want, its time to start placing tracks. The track place tool is in the top left corner of the Placement tools. Or you can press P then T to enter place track mode. Just like placing wires onto the schematic start replacing the ratsnest lines with tracks. The rats nest lines should disappear as you replace them with tracks. Thats it for this week. Good luck routing.

Part Type 0.1uF 0.1uF 10K 10K 10k 10nF 10nF 20 MHz 22uF 100K 100K 100K 100K ELECTRET MIC HEADER 2 MAX475 PIC16C73A20I/JW(28)

Designator C3 C4 R9 R10 R7 C8 C7 Y1 C1 R4 R2 R3 R1 JP1 JP2 U1 U2

Footprint rad0.1 rad0.1 axial0.4 axial0.4 axial0.4 rad0.1 rad0.1 xtal1 polar0.2 axial0.4 axial0.4 axial0.4 axial0.4 sip3 sip2 dip14 DIP28

Description Capacitor (0.1 inch spacing between Pads) Capacitor Resistor (0.4 inch spacing between Pads)

Capacitor Capacitor Crystal Capacitor

8-Bit CMOS Microcontrollers With A/D Converter

Vous aimerez peut-être aussi