Protel DXP Tutorial
Protel DXP Tutorial
Glenn Mercier
12/16/2005
PCB Layout Software
There are many PCB Layout software packages
available. For this tutorial, I will be using
Protel DXP.
Protel DXP 2004
Orcad Layout
Eagle Layout Editor
Express PCB
PADS
Introducing Protel DXP 2004
Reasons for Choosing Protel DXP
Abundance of learning luides
http://www.altium.com/Community/
Support/LearningGuides/
Large footprint library included
Extensive design rule checking
(DRC)
Integrity testing
Integrated software package
Free Trial Available
Main Screen
Create new PCB Project
Save the PCB Project File
The project
was created
(*.PrjPCB),
but needs to
be saved, right
click and save
the project
Create New Schematic
Now we need to add
files to the project.
The beginning step
is to add a
Schematic
Document. This is
where the schematic
drawings we are all
familiar with will go.
Right click and save
the schematic
document as before.
Organization
Your screen should now look like this. Notice
the branching. The PIC schematic document
is located in the project tutorial.
Libraries
There are three forms of libraries
Schematic Library- This library contains
schematic drawings that we are familiar with
from ORCAD
PCB/Footprint Library- This library contains
the actual dimensions and pads for placing the
component on the board.
Integrated Library- Most manufacturers
libraries are integrated, containing both
Schematic and PCB libraries.
Adding Libraries
From the design menu, click Add/Remove
libraries.
Adding Libraries (Cont.)
Adding Libraries (Cont.)
Since most of us are using Microchip PIC
microcontrollers, add the Microchip library
Adding Libraries (Cont.)
Each manufacturer usually categorizes their
parts for easy selection. Choose the PIC18
Adding Libraries (Cont.)
Add the highlighted libraries to the project.
These two files are not in a folder, but in the
root ‘Library’ folder
Adding Libraries (Cont.)
From the Library folder, go to the PCB folder,
this folder contains PCB footprint libraries.
Adding Libraries (Cont.)
From the PCB folder, add
Chip Capacitor
Chip Resistor
Crystal Oscillator
Resistor- Axial
Adding Libraries (Cont.)
You should now have the following libraries
installed. Note the top three libraries here are
integrated libraries, and the bottom four
libraries are PCB libraries
Checkpoint
If you expand the
libraries folder, you
should see the
following. Now that
we have added our
libraries, we are
ready to begin the
schematic layout.
Schematic Layout
Double Click on your schematic document
from the left navigator menu, and you should
see a blank screen on the right
Schematic Layout- Placing Parts
From the ‘Place’
menu, click Part.
Schematic Layout- Placing Parts
Which to
choose? That’s
up to you! But
for this tutorial,
lets use a DIP
package
Schematic Layout- Placing Parts
Once you click ‘ok’ on the part, you’ll be
brought back to the ‘place part’ popup menu.
This allows you to verify the part you chose
Schematic Layout- Placing Parts
Your PIC
should now be
placed in the
schematic
document. A
very important
note is that
you need to
give this an
identifier. If
you leave this
as ‘U?’ you will
get an error.
So double
click and
change the
identifier to U1
Schematic Layout- Placing Parts
Double click on the PIC, you will get a Component Properties popup
box. Here you can leave notes on the part, change the footprint,
change the description, and add a rule for this part. If you click on ‘Edit’
in the bottom right, it will show you the PCB footprint for this part
Schematic Layout- Placing Parts
We need power for our circuit, but unlike pspice, we must add a
physical way to add power to our device. Add ‘HEADER 2’ from the
Miscellaneous Connectors library. As seen from the PCB footprint
below, this is just two holes in the board where we can connect wires.
Schematic Layout- Placing Parts
Our updated schematic looks as follows. Click
the place wire icon from the menu bar up top.
Schematic Layout- Placing Parts
Be EXTREMELY CAREFUL when connecting wires.
The end of the wire must be on the end of the part,
when this happens you will get a red ‘X’, Do not rush
through this step, and always verify there is a proper
connect.
WRONG!!!!!! Correct
Gray ‘X’ This will not Red ‘X’ This WILL
connect the part connect the part
Schematic Layout- Adding Nets
On simple projects, it makes sense to run wires making
connections, but on larger projects this often makes things very
cluttered, difficult to make changes, and often results in errors
due to wires crossing.
Draw a small wire extending from VSS (GND), and a small wire
from the other pin on the pin header (as shown in next slide).
Click the ‘NET’ icon in the toolbar and place this text on both
lines, labeling them both GND. This is the same exact thing as
actually running wires between them. Protel knows that these
two pins should be connected.
Schematic Layout- Adding Nets
You should now have the following. Notice the blue
dots on pin 12 and pin 11, the dots appear when
more there is a connect of more than 2 areas. In the
case of the blue dot on the left, this connects pin 12,
pin 31, and GND all together.
Schematic Layout- Adding Nets
Log Loc
S3 S4 S2
+1.8V +3.3V +5V LED Test PROG CT1 SW-PB CT2 SW-PB CT3 HW-RESET
Cap Cap Cap
1nF 1nF 1nF
J3 PROGRAMMING MODE:
J5V SDCS VCCX is isolated, therefore
A33 CS
5V Current Monitor MOSI the PIC is isolated from the
DIN
3.3V 1 rest of the circuit
1 GND
3.3V
AGND +3.3V
Aux Power SDCLK
CLK
1 3.3V VCCX
1 GND
2
1
MOSO
DOUT
Aux Power SDIRQ
IRQ
J33
NC
3.3V Current Monitor A18
2
1
NC
VBATT VS 1.8V 1
1
SD Breakout JPIC
Aux Power PIC
2
1
2
1
JBATT J18
BATT Current Monitor 1.8V Current Monitor
Schematic Layout- Using Nets
UPIC18LF8722
CU3
CLKO XTAL
GPIOA 72 4 XT 1 MHz = 15 pf
RD0/AD0/PSP0 RE0/AD8/RD/P2D
GPIOB 69 3 Cap XT/ HS 4 MHz = 15 pf
RD1/AD1/PSP1 RE1/AD9/WR/P2C
2
GPIOC 68 78 20pF XTAL1 HS 8 MHz = 15-33 pf
GPS RD2/AD2/PSP2 RE2/AD10/CS/P2B
GPIOD 67 77 14.7456 MHz HS 20MHz= 15-33 pf
General I/O Pins RD3/AD3/PSP3 RE3/AD11/P3C CU4
GPIOE 66 76 HS 25MHz= 15-33 pf
RD4/AD4/PSP4 RE4/AD12/P3B CLKI
1
GPIOF 65 75
RD5/AD5/PSP5 RE5/AD13/P1C
GPIOG 64 74 Cap Higher C increases
RD6/AD6/PSP6 RE6/AD14/P1B
GPIOH 63 73 20pF stability but increases
RD7/AD7/PSP7 RE7/AD15/CCP2/P2A
start up time
36 24 LEDTEST
RC0/T1OSO/T13CKI RF0/AN5 For Normal Operation
35 23 R11 used in HS mode
RC1/T1OSI/CCP2/P2A RF1/AN6/C2OUT 5VON - high
GPSRS 43 18 5VON to avoid overdriving the
RC2/CCP1/P1A RF2/AN7/C1OUT 5VOFF - low
GPSTM 44 17 5VOFF crystal.
GPS RC3/SCK/SCL RF3/AN8 18VON- high
GPSTXB 45 16 18VON
Functional Pins RC4/SDI/SDA RF4/AN9 33VON- high
GPSRXB 46 15 33VON
RC5/SDO RF5/AN10/CVREF
GPSRXA 37 14 DS1820 1-Wire Temp Sensor
RC6/TX1/CK1 RF6/AN11
GPSTXA 38 13 ALFAT-STD
RC7/RX1/DT1 RF7/SS
ALFAT-STD
58 5 ALFATRS ***HIGH- STD MODE
RB0/INT0 RG0/CCP3/P3A
User CDISP 57 6 ALFATRX LOW- EXTENDED MODE
RB1/INT1 RG1/TX2/CK2
Modification LOGLOC 56 7 ALFATTX
RB2/INT2 RG2/RX2/DT2 ALFAT
Pins LCDE 55 8 ALFATCTS
RB3/INT3/CCP2/P2A RG3/CCP4/P3D Port
54 10 ALFATRTS
RB4/KBI0 RG4/CCP5/P1D
53 9 MCLR
RB5/KBI1/PGM RG5/MCLR/VPP
Set as OutputsICSP CLK 52 RB6/KBI2/PGC CU5
RU1 ICSP Data 47 79 0.1uF
RB7/KBI3/PGD RH0/A16
10k 80
RH1/A17 Cap
DB4 30 1
RA0/AN0 RH2/A18
DB5 29 2
RA1/AN1 RH3/A19 RU2
LCD Data DB6 28 19 BUSBSEL ICSP
RA2/AN2/VREF- RH7/AN15/P1B 10k
DB7 27 20 BENB 1 MCLR
RA3/AN3/VREF+ RH6/AN14/P1C VPP/MCLR
LCDRS 34 21 BSTAT1 2 VCCX
RA4/T0CKI RH5/AN13/P3B +5V
33 22 BSTAT2 3 GND
RA5/AN4/LVDIN RH4/AN12/P3C GND CU8
CLKO 50 4
OSC2/CLKO/RA6 DATA RU4 Cap
39 5 ICSP CLK
RJ4/BA0 CLK RU3 0.1uF
CLKI 49 40 100
OSC1/CLKI RJ5/CE
41 ICSP Port 100
RJ6/LB
42 ICSP Data
RJ7/UB
59
RJ3/WRH CU7
60
RJ2/WRL CU6 Cap
61
RJ1/OE Cap 100pF
62
RJ0/ALE 100pF
11 12 VCCX
VSS VDD
31 32 PGD - limits slope of edges, attenuates high freq
VSS VDD
51 48 components
VSS VDD
70 71 100*100pf = 10uS time constant (much less than
VSS VDD CU1 CU2
26 25 programmer frequency)
AVSS AVDD Cap 0.1uF
0.1uF PGC- 100pF reduces Z at high frequencies, which
PIC18LF8722-I/PT reduces crosstalk
Creating Custom Parts
Sometimes a part will be required and no
library associated with it. For this, we need to
make both a schematic and a PCB footprint
for the part.
Now we need to
label the pads,
click the ‘Place
String’ icon
Creating Custom Parts
Make the following
changes to the text:
Layer = Top Overlay
Height = 40 mil
Width = 7 mil
Rotation (change if
desired)
NOTE: Mirrored text
is for placing text on
the back of the PCB
Creating Custom Parts
Our spacing
and text
choices do not
allow us to
place the text
horizontal, so
we must
resize the box
and rotate the
text.
Creating Custom Parts
Now we must link the
schematic part with the
PCB part we just made.
Click the ‘project’ tab in
the bottom left corner
and open the schematic
library again. Double
click the component you
made to bring up the
component properties
page.
Creating Custom Parts
From the
component
properties page,
click the ‘add’ in the
bottom right corner.
We are adding the
footprint to this
schematic, so select
footprint and click
ok.
Creating Custom Parts
From the PCB
Model popup box,
click ‘browse’
Creating Custom Parts
Select your custom footprint/pcb library from
the list
Creating Custom Parts
Select the footprint desired from the library. Since this
is the first footprint we have created there is only one
in the list. Click ok when done
Creating Custom Parts
This should bring you
back to the model
page, where you can
verify the footprint
choice you made
Creating Custom Parts
In the schematic
editor, we can now
verify that there is a
PCB footprint
associated with this
schematic, and verify
that the pins on the
schematic match the
pins on the footprint
we created.
Schematic Editing
Click the ‘project’ tab in the bottom left corner and
go back to the schematic layout. Add the new part
to the schematic. Note that the footprint is present
and the pins match the schematic drawing.
Schematic Editing
Make the following changes to the schematic
PCB Layout Editor
Our schematic drawing is now complete, now
we want to transfer this to a PCB. Be sure to
be careful to associate all parts with the
proper footprints, and verified each footprint
before even beginning to think about PCB
layout.
PCB Layout Editor
Click the ‘files’
tab in the bottom
left corner, and
minimize some of
the arrows until
you can see the
PCB Board
Wizard. Click on
the wizard.
PCB Layout Editor
After an introduction
to the wizard screen,
and choosing your
default units, you will
get to the following
screen. Choose
‘custom’ for now.
PCB Layout Editor
Choose the dimensions of the board,
remembering that 1000 mils = 1”. Choose
rectangular shape, as other shapes are very
costly. Leave the other options as default.
PCB Layout Editor
Choose signal layers = 2, Power planes = 0
Most projects can be done with these settings.
PCB Layout Editor
Change the
following
options:
Uncheck
Display sheet
Visible Grid
Markers =
Dots
PCB Layout Editor
Your PCB document should now be under your project directory.
Notice the pink trace around the outside of the board, this is the
keep away layer. Only items inside this pink box will be fabricated.
PCB Layout Editor
From the schematic editor, go to ‘Design’ and then click ‘update PCB Document
in xxx.PcbDoc’. This will import your schematic into the PCB Editor
PCB Layout Editor
The Engineering Change Order box will open. This shows a list
of added components and nets that are being imported into the
PCB Document. Click Validate.
PCB Layout Editor
After validating, if no errors are found, click execute,
you will see green arrows if everything was
successfully imported into the PCB document. If you
forgot to include a footprint, or if different components
have the same identifier, you will get an error.
PCB Layout Editor
After executing, close the box and you will
see all your footprints neatly aligned outside
of your PCB board.
PCB Layout Editor
You can click and drag
your components onto the
board, delete the ‘sheet’ it
was resting on, and your
layout should look similar
to this. The thin gray lines
are called a ‘rats nest’. It
shows which holes are to
be connected to each
other but there is no actual
connect there yet. The
PCB editor knows this
from your schematic
drawing.
PCB Layout Editor
Notice the tabs
in the bottom,
right now the top
layer is selected.
This means that
the top layer is
the active layer,
and any changes
will occur on the
top layer.
PCB Layout Editor
It is common practice to run traces on each layer
of the board orthogonally. If you choose to route
the top layer horizontally, then route the bottom
layer vertically. This may seem like more work
than it’s worth, but on complicated circuits it
makes routing a lot easier. This method also
limits distributed capacitance across layers.
Avoid angles that are 90 degrees or less
Keeps traces are large as possible for physical
robustness, and decreased parasitic resistance.
PCB Layout Editor
Click the icon to
interactively route
components as shown in
the diagram. Once you
click on a net in the circuit,
it will highlight that net to
show where the connects
need to go. The VDD
connection was made
here, and there are four
pins that need this
connection.
PCB Layout Editor
Run the VDD
trace from P2
horizontally and
then place a VIA
on the end of the
line.
PCB Layout Editor
Click the ‘bottom
layer’ tab in the
bottom, and then
draw a trace
vertically towards
the connect pin.
This trace will be
in blue to indicate
it is located on the
bottom of the
board.
PCB Layout Editor
One connection
has now been
made. Since P1
are both through
hole connections,
we can let this
trace connect on
the bottom of the
board.
PCB Layout Editor
Route the rest of
the traces. Note
that the top layer
traces are
horizontal and the
bottom layer
traces are
vertical.
PCB Layout Editor
Click the Rules option under the Design
menu.
PCB Layout Editor
Here you can spend time changing rules to manufacturers
specifications. If you are unsure what a rule means, usually
there is a diagram which gives an idea of the meaning.
PCB Layout Editor
Now the
physical layout
is complete, and
it is time to run a
design rule
check on the
layout. This
checks all the
rules you made.
Start the DRC
PCB Layout Editor
Uncheck the ‘Create Report File’, and leave
the rest of the options default.
PCB Layout Editor
When the DRC
is done, a
message box
will pop open
and report any
violations.
When it is
blank, like in
the picture,
there are no
DRC errors.
PCB Layout Editor
Ground and Power are
critical to the circuit. For too
many reasons to mention
here, you can add polygon
pours, which are slabs of
copper, to create a large
ground area. This helps
ensure that the ground
layer has the same
potential across the circuit.
Click on the polygon pour
icon at the top of the
screen.
PCB Layout Editor
Make the following changes to the polygon pour. We want to connect
this pour to the GND node, on the top layer of the board, and also
remove dead copper. Select ‘OK’ and then click the four corner points
you want for the pour.
PCB Layout Editor
The polygon should look similar to
the picture on the right. Notice in
the bottom picture, you can see that
the polygon is connected to the
GND node, but never contacts the
VDD node.
PCB Layout Editor
When all
this is
done, you
will end up
with a
finished
product.