You are on page 1of 0

GIAO TRNH EDA (ELECTRONIC DESIGN AUTOMATION) - T ONG THIET KE MACH IEN T VI ORCAD BAI TAP 2

THIET KE MACH IN MACH


RELAY BAO VE DONG 1 PHA

Trong bai tap nay ban se c hng dan thiet ke mach in cho mach relay bao ve dong
1 pha co s o nguyen ly nh sau :

Trc tien vao Start
> Programs > OrCAD
Release 9 > Capture.
Man hnh OrCAD
Capture xuat hien, chon
File > New > Project. Hop
thoai New Project xuat
hien. Tai khung Name nhap
ten can at cho mach vao,
tai khung Location nhap
chuot vao nut Browse e
chon ng dan cho mach
gi vao. Chon xong nhap
OK.

AI HOC S PHAM KY THUAT KHOA IEN BIEN SOAN : PHAM QUANG HUY - HUYNH MINH ANG 33
GIAO TRNH EDA (ELECTRONIC DESIGN AUTOMATION) - T ONG THIET KE MACH IEN T VI ORCAD BAI TAP 2

Trong mach nay gom co : 1 CAU DIODE, 3 RAC CAM 2 CHAN, 3 TU PHAN CC, 1
DIODE ZENER, 5 IEN TR,1 RELAY, 1 BIEN TR, 1 TRANSISTOR, 1 NUT NHAN, 3
DIODE, 1 OPAMP, 10 CHAN MASS.
e lay linh kien ra t th vien, nhap chon Place > Part hay nhan to hp phm Shift + P
tren ban phm.

Hop thoai Place Part xuat hien, tien hanh lay nhng linh kien t trong th vien ra, nhap
chuot vao nut Add Library

Hop thoai Browse File
xuat hien, tai khung Look in
nhap chuot vao mui ten hng
xuong e chon th muc
Library trong Orcad. Tai
khung ben di nhap chon
muc Discrete. Chon xong
nhap Open.

AI HOC S PHAM KY THUAT KHOA IEN BIEN SOAN : PHAM QUANG HUY - HUYNH MINH ANG 34
GIAO TRNH EDA (ELECTRONIC DESIGN AUTOMATION) - T ONG THIET KE MACH IEN T VI ORCAD BAI TAP 2

Hop thoai Place Part lai xuat hien, tai khung Libraries thay xuat hien muc
DISCRETE, nhap chon muc nay. Tai khung Part nhap chuot vao thanh cuon ben phai, nhap
chon ten R. Chon xong nhap OK. di chuyen con tro ra man hnh lam viec va nhap chuot tai
nhng v tr khac nhau e chon v tr, so lng ien tr.

e lay bien tr chon Place > Part Hop thoai Place part xuat hien, nhap chon
RESISTOR VAR, chon xong nhap OK va di chuyen con tro ra man hnh lam viec e nhap chon
v tr bien tr.

e lay DIODE, chon Place > Part Hop thoai Place part xuat hien, nhap chon DIODE,
chon xong nhap OK va di chuyen con tro ra man hnh lam viec e nhap chon v tr, so lng
diode.
AI HOC S PHAM KY THUAT KHOA IEN BIEN SOAN : PHAM QUANG HUY - HUYNH MINH ANG 35
GIAO TRNH EDA (ELECTRONIC DESIGN AUTOMATION) - T ONG THIET KE MACH IEN T VI ORCAD BAI TAP 2


Muon lay diode zener,
chon Place > Part Hop thoai
Place part xuat hien, nhap
chon DIODE ZENER, chon
xong nhap OK va di chuyen
con tro ra man hnh lam viec
e nhap chon v tr zener.

e lay tu phan cc,
chon Place > Part Hop thoai
Place part xuat hien, nhap
chon CAPACITOR POL, chon
xong nhap OK va di chuyen
con tro ra man hnh lam viec e
nhap chon v tr, so lng tu.

AI HOC S PHAM KY THUAT KHOA IEN BIEN SOAN : PHAM QUANG HUY - HUYNH MINH ANG 36
GIAO TRNH EDA (ELECTRONIC DESIGN AUTOMATION) - T ONG THIET KE MACH IEN T VI ORCAD BAI TAP 2

e lay cau diode chon Place > Part Hop thoai Place part xuat hien, nhap chon
DB101, chon xong nhap OK va di chuyen con tro ra man hnh lam viec e nhap chon v tr cau
diode.

e lay nut nhan, chon Place > Part Hop thoai Place part xuat hien, nhap chon SW
PUSHBUTTON, chon xong nhap OK va di chuyen con tro ra man hnh lam viec e nhap chon
v tr nut nhan.

e lay RELAY, chon Place > Part Hop thoai Place part xuat hien, nhap chon
RELAY 4PDT, chon xong nhap OK va di chuyen con tro ra man hnh lam viec e nhap chon v
tr relay.
AI HOC S PHAM KY THUAT KHOA IEN BIEN SOAN : PHAM QUANG HUY - HUYNH MINH ANG 37
GIAO TRNH EDA (ELECTRONIC DESIGN AUTOMATION) - T ONG THIET KE MACH IEN T VI ORCAD BAI TAP 2


e lay cac chan cam, chon Place > Part Hop thoai Place part xuat hien, nhap chon
Add Library

Hop thoai Browse File xuat hien, nhap chuot vao thanh cuon ben di e tm va chon
muc Connector. Chon xong nhap OK.

AI HOC S PHAM KY THUAT KHOA IEN BIEN SOAN : PHAM QUANG HUY - HUYNH MINH ANG 38
GIAO TRNH EDA (ELECTRONIC DESIGN AUTOMATION) - T ONG THIET KE MACH IEN T VI ORCAD BAI TAP 2

Hop thoai Place Part
xuat hien, tai khung Libraries
nhap chon muc
CONNECTOR. Tai khung
Part nhap chon chan cam can,
ay, nhap chuot vao ten
CON2. Chon xong nhap OK va
di chuyen con tro ra man hnh
lam viec roi nhap chon v tr, so
lng chan cam.
e lay cac Opamp,
chon Place > Part Hop thoai
Place part xuat hien, nhap
chon Add Library


Hop thoai Browse File xuat hien, nhap chuot vao thanh cuon ben di e tm va chon
muc opamp. Chon xong nhap OK.

AI HOC S PHAM KY THUAT KHOA IEN BIEN SOAN : PHAM QUANG HUY - HUYNH MINH ANG 39
GIAO TRNH EDA (ELECTRONIC DESIGN AUTOMATION) - T ONG THIET KE MACH IEN T VI ORCAD BAI TAP 2

Hop thoai Place Part
xuat hien, tai khung Libraries
nhap chon muc OPAMP. Tai
khung Part nhap chon loai
Opamp can thiet. ay, nhap
chuot vao ten AD741. Chon
xong nhap OK va di chuyen
con tro ra man hnh lam viec
roi nhap chon v tr opamp.
e lay cac Transistor,
chon Place > Part Hop thoai
Place part xuat hien, nhap
chon Add Library


Hop thoai Browse File xuat hien, nhap chuot vao thanh cuon ben di e tm va chon
muc Transistor. Chon xong nhap OK.

AI HOC S PHAM KY THUAT KHOA IEN BIEN SOAN : PHAM QUANG HUY - HUYNH MINH ANG 40
GIAO TRNH EDA (ELECTRONIC DESIGN AUTOMATION) - T ONG THIET KE MACH IEN T VI ORCAD BAI TAP 2

Hop thoai Place Part xuat hien, tai khung Libraries nhap chon muc TRANSISTOR.
Tai khung Part nhap chon loai Transistor can thiet. ay, nhap chuot vao ten P2N2907. Chon
xong nhap OK va di chuyen con tro ra man hnh lam viec roi nhap chon v tr transistor.

e lay chan Mass cho mach, hay nhap chuot vao bieu tng Place ground tren thanh
cong cu.

Hop thoai Place Ground xuat hien, tai khung Symbol nhap chon ten
GND_POWER/CAPSYM. Chon xong nhap OK va di chuyen con tro ra man hnh lam viec roi
nhap chon v tr, so lng chan Mass can cho mach.

AI HOC S PHAM KY THUAT KHOA IEN BIEN SOAN : PHAM QUANG HUY - HUYNH MINH ANG 41
GIAO TRNH EDA (ELECTRONIC DESIGN AUTOMATION) - T ONG THIET KE MACH IEN T VI ORCAD BAI TAP 2

Sau khi tat ca cac linh kien a c lay ra man hnh lam viec, e hnh dang linh kien
khong xuat hien tai con tro chuot na, hay nhap chuot vao bieu tng Select tren thanh cong
cu.

Tat ca cac linh kien a lay ra man hnh lam viec nh sau:

Tiep tuc tien hanh sap xep linh kien. Muon di chuyen linh kien, nhap chuot vao bieu
tng linh kien va re chuot. Muon quay linh kien oi xng qua truc ng, hay nhap chon linh
kien roi nhan phm H tren ban phm hay nhap phai chuot. Mot ca so xuat hien, nhap chuot vao
Mirror Horizontally. Muon quay linh kien mot goc 90
o
, nhap chon linh kien roi nhan phm R
tren ban phm hay nhap phai chuot, mot ca so xuat hien, nhap chuot vao Rotate. Muon quay
linh kien oi xng qua truc nam ngang, hay nhap chon linh kien roi nhan phm V tren ban phm
hay nhap phai chuot. Mot ca so xuat hien, nhap chuot vao Mirror Vertically.

Trong khi di chuyen, co khi chan linh kien nay cham chan linh kien kia. Hop thoai
OrCAD Capture xuat hien rang neu muon noi hai chan linh kien nay vi nhau th hay nhap
OK. Neu ban khong muon noi th cung nhap OK roi nhap vao bieu tng Undo tren thanh cong
cu e di chuyen lai.
AI HOC S PHAM KY THUAT KHOA IEN BIEN SOAN : PHAM QUANG HUY - HUYNH MINH ANG 42
GIAO TRNH EDA (ELECTRONIC DESIGN AUTOMATION) - T ONG THIET KE MACH IEN T VI ORCAD BAI TAP 2


Sau khi di chuyen cac linh kien theo s o nguyen ly, cac linh kien sap xep nh sau:

Trong s o nguyen ly co nut nhan dang OFF, nhng nut an lay ra t th vien la nut an
dang ON, nen phai tien hanh sa cha lai. Trc tien nhap chuot vao bieu tng linh kien roi
nhap phai chuot. Mot ca so xuat hien, nhap chuot vao muc Edit Part. Mot man hnh mi xuat
hien vi nut nhan ON nay, hay nhap chuot vao tng bo phan trong nut nhan e di chuyen chung
theo y muon. Sau mot thi gian sap xep, di chuyen, nut nhan dang OFF a hoan chnh nh trong
hnh.

Tien hanh noi chan cac linh kien theo s o nguyen ly. Nhap chuot vao bieu tng
Place wire tren thanh cong cu. Con tro chuot thay oi thanh hnh ch thap, nhap chuot tai chan
linh kien can noi roi di chuyen con tro en chan linh kien can noi vi no va nhap chuot. Neu
nh trong s o nguyen ly co nhng chan linh kien nao khong c s dung th hay khoa no lai
AI HOC S PHAM KY THUAT KHOA IEN BIEN SOAN : PHAM QUANG HUY - HUYNH MINH ANG 43
GIAO TRNH EDA (ELECTRONIC DESIGN AUTOMATION) - T ONG THIET KE MACH IEN T VI ORCAD BAI TAP 2

bang cach nhap chuot vao bieu tng Place no connect tren thanh cong cu. Con tro chuot xuat
hien hnh dau cheo, hay di chuyen con tro en chan linh kien can khoa va nhap chuot.

C the tiep tuc cho en khi tat ca cac linh kien c noi theo s o nguyen ly sau:

e thay oi gia tr linh kien, hay nhap up chuot vao gia tr linh kien can thay oi. Hop
thoai Display Properties xuat hien, tai khung Value hay nhap gia tr can at cho linh kien.
Nhap gia tr xong nhap chuot vao nut OK.

Trong khi thay oi gia tr linh kien, co nhng gia tr linh kien khong can thay oi cung
nh khong muon cho no xuat hien tren mach ien, nhap up vao gia tr linh kien o. Hop thoai
AI HOC S PHAM KY THUAT KHOA IEN BIEN SOAN : PHAM QUANG HUY - HUYNH MINH ANG 44
GIAO TRNH EDA (ELECTRONIC DESIGN AUTOMATION) - T ONG THIET KE MACH IEN T VI ORCAD BAI TAP 2

Display Properties xuat hien, tai khung Display Format nhap chuot vao muc Do not Display.
Chon xong nhap OK.

Sau khi thay oi gia tr linh kien xong, s o nguyen ly hoan chnh nh sau:

e kiem tra loi cho s o nguyen ly va chuyen sang s o mach in, nhap chuot vao bieu
tng Minimize goc phai pha tren man hnh.

Man hnh nh sau xuat hien, tai khung ben trai, nhap chon trang PAGE1. Sau o nhap
chuot vao bieu tng Design rules check tren thanh cong cu e kiem tra loi.
AI HOC S PHAM KY THUAT KHOA IEN BIEN SOAN : PHAM QUANG HUY - HUYNH MINH ANG 45
GIAO TRNH EDA (ELECTRONIC DESIGN AUTOMATION) - T ONG THIET KE MACH IEN T VI ORCAD BAI TAP 2


Hop thoai Design Rules Check xuat hien, nhap chuot vao nut OK e tien hanh kiem
tra. Neu khong thay thong bao g ngha la mach khong co loi.

Tiep tuc tao tap tin co uoi .mnl e
thiet ke mach in. Nhap chuot vao bieu tng
Create netlist tren thanh cong cu.

AI HOC S PHAM KY THUAT KHOA IEN BIEN SOAN : PHAM QUANG HUY - HUYNH MINH ANG 46
GIAO TRNH EDA (ELECTRONIC DESIGN AUTOMATION) - T ONG THIET KE MACH IEN T VI ORCAD BAI TAP 2

Hop thoai Create netlist xuat hien, nhap chuot vao Layout, tai khung Netlist File co
the nhap chuot vao nut Browse e chon ng dan cho tap tin c gi vao. Chon xong nhap
OK. (khuyen khong nen nhap chuot vao nut Browse e thay oi ng dan)

Mot hop thoai xuat hien thong bao la tap tin tren se c Save e ket noi. Nhap OK e
tiep tuc. Hay chuyen sang che o thiet ke mach in bang cach nhap chon Start > Programs >
OrCAD Release 9 > Layuot Plus.

AI HOC S PHAM KY THUAT KHOA IEN BIEN SOAN : PHAM QUANG HUY - HUYNH MINH ANG 47
GIAO TRNH EDA (ELECTRONIC DESIGN AUTOMATION) - T ONG THIET KE MACH IEN T VI ORCAD BAI TAP 2

Man hnh thiet ke mach
in xuat hien, nhap chon File >
New e m mot File mi.

Hop thoai Load
Template File xuat hien, nhap
chuot vao nut Open.

Hop thoai Load Netlist Source xuat hien, nhap chon ten mach can thiet ke mach in.
Chon xong nhap Open.

Hop thoai Save File As xuat hien, tai khung File name nhap ten can at cho mach in.
Nhap xong nhap chuot vao nut Save. ay khong tien hanh nhap ten mi cho mach v lam nh
vay se roi len va khong nh ten mach c at la g. Chng trnh t ong hien len ten giong
nh ten a c at cho s o nguyen ly. Hop thoai xuat hien ch viec nhap chuot vao nut Save.

AI HOC S PHAM KY THUAT KHOA IEN BIEN SOAN : PHAM QUANG HUY - HUYNH MINH ANG 48
GIAO TRNH EDA (ELECTRONIC DESIGN AUTOMATION) - T ONG THIET KE MACH IEN T VI ORCAD BAI TAP 2

Sau mot thi gian ch i, co nhng hop thoai nh sau xuat hien. Trong hop thoai Link
Footprint to Component mot thong bao cho biet khong the tm thay chan mach in cua D5 co
ten la DB101. V the nen phai tm chan cho linh kien nay bang cach nhap chuot vao nut Link
existing footprint to component

Hop thoai Footprint for DB101 xuat hien, tai khung Libraries nhap chon muc
BCON100T. Tai khung Footprints nhap chon muc BLKCON.100/VH/TM1SQ/W.100/4 e
chon chan mach in cho cau DIODE. Chon xong nhap Ok.

Hop thoai Link Footprint to Component xuat hien tr lai, mot thong bao cho biet
khong the tm thay chan mach in cua SW1 co ten la SW_PUSHBUTTON_1. V the nen can tm
chan cho linh kien nay bang cach nhap chuot vao nut Link existing footprint to component
AI HOC S PHAM KY THUAT KHOA IEN BIEN SOAN : PHAM QUANG HUY - HUYNH MINH ANG 49
GIAO TRNH EDA (ELECTRONIC DESIGN AUTOMATION) - T ONG THIET KE MACH IEN T VI ORCAD BAI TAP 2


Hop thoai Footprint for SW_PUSHBUTTON_1 xuat hien, tai khung Libraries nhap
chon muc JUMPER. Tai khung Footprints nhap chon muc JUMPER400 e chon chan mach in
cho nut nhan. Chon xong nhap Ok.

Hop thoai Link Footprint to
Component lai xuat hien vi thong bao
la khong the tm thay chan mach in cua
Q1 co ten la P2N2907. V the nen tien
hanh tm chan cho linh kien nay bang
cach nhap chuot vao nut Link existing
footprint to component

AI HOC S PHAM KY THUAT KHOA IEN BIEN SOAN : PHAM QUANG HUY - HUYNH MINH ANG 50
GIAO TRNH EDA (ELECTRONIC DESIGN AUTOMATION) - T ONG THIET KE MACH IEN T VI ORCAD BAI TAP 2

Hop thoai
Footprint for
P2N2907 xuat hien,
tai khung Libraries
nhap chon muc TO.
Tai khung
Footprints nhap
chon muc
TO202AA e chon
chan mach in cho
Transistor. Chon
xong nhap chuot
vao nut Ok.

Hop thoai Link
Footprint to Component
xuat hien tr lai, mot thong
bao cho biet khong the tm
thay chan mach in cua U1
co ten la AD741. V the
nen can tm chan cho linh
kien nay bang cach nhap
chuot vao nut Link
existing footprint to
component

Hop thoai
Footprint for AD741 xuat
hien, tai khung Libraries
nhap chon muc DIP100T.
Tai khung Footprints nhap
chon muc DIP.100/8/
W.300/L.425 e chon chan
mach in cho IC. Chon xong
nhap Ok.
AI HOC S PHAM KY THUAT KHOA IEN BIEN SOAN : PHAM QUANG HUY - HUYNH MINH ANG 51
GIAO TRNH EDA (ELECTRONIC DESIGN AUTOMATION) - T ONG THIET KE MACH IEN T VI ORCAD BAI TAP 2

Hop thoai Link Footprint to Component lai xuat hien vi thong bao la khong the tm
thay chan mach in cua K1 co ten la RELAY_4PDT. V the nen tien hanh tm chan cho linh
kien nay bang cach nhap chuot vao nut Link existing footprint to component

Hop thoai Footprint for RELAY48 xuat hien, tai khung Libraries nhap chon muc
RELAY. Tai khung Footprints nhap chon muc RELAY47 e chon chan mach in cho IC. Chon
xong nhap chuot vao nut Ok.

Sau khi chon chan cho cac linh kien, cac linh kien trong s o mach in hien ra, Tien
hanh sap xep cac linh kien. e khong b gii han bi khung mach in co san, hay nhap chuot vao
bieu tng Reconnect Mode tren thanh cong cu.

AI HOC S PHAM KY THUAT KHOA IEN BIEN SOAN : PHAM QUANG HUY - HUYNH MINH ANG 52
GIAO TRNH EDA (ELECTRONIC DESIGN AUTOMATION) - T ONG THIET KE MACH IEN T VI ORCAD BAI TAP 2

Muon di chuyen linh kien, nhap
chuot vao bieu tng linh kien va re chuot
en v tr can at linh kien roi nhap chuot.
Muon quay linh kien mot goc 90
o
nhap
chon bieu tng linh kien roi nhan phm R
tren ban phm hay nhap phai chuot, mot
ca so xuat hien, nhap chuot vao Rotate.
Sau khi sap xep xong, cac linh kien
trong mach c sap xep nh sau:

e ve khung gii han cho mach in
nhap chuot vao bieu tng Obstacle Tool tren
thanh cong cu.

Con tro chuot thay oi hnh dang, nhap
chuot tai mot iem can at cho khung gii
han, di chuyen con tro en iem can at khac
va nhap chuot. C the tiep tuc cho en khi
khung mach in hoan chnh nh sau:

Sau khi khung gii han mach in hoan thanh, e thoat khoi lenh nay, nhap phai chuot,
mot ca so xuat hien, nhap chuot vao End Command.

e nhng ch khong can thiet an i cho mach in cua ta thoang hn, hay nhap chuot vao
mui ten hng xuong trong lp 1 TOP tren thanh trang thai va chon lp 23 AST.

AI HOC S PHAM KY THUAT KHOA IEN BIEN SOAN : PHAM QUANG HUY - HUYNH MINH ANG 53
GIAO TRNH EDA (ELECTRONIC DESIGN AUTOMATION) - T ONG THIET KE MACH IEN T VI ORCAD BAI TAP 2

Chon xong nhap chuot vao View > Visible< > Invisible.

Chon xong quay tr lai khung trang thai lp va
nhap chuot vao mui ten hng xuong e chon lai lp
1 TOP. Chon xong, cac linh kien trong mach in nh
sau:
e chon lp cho chng trnh chay mach in, nhap
chuot vao bieu tng View Spreadsheet tren thanh
cong cu.

Mot ca so xuat hien, nhap chon Strategy >
Route Layer.


Hop thoai Route Layer xuat hien, nhan phm Ctrl tren ban phm va nhap chon tai tat ca
cac o trong cot Enable, dong BOTTOM, INNER1, INNER2. Chon xong nhap phai chuot, mot
ca so xuat hien, nhap chon Properties.

AI HOC S PHAM KY THUAT KHOA IEN BIEN SOAN : PHAM QUANG HUY - HUYNH MINH ANG 54
GIAO TRNH EDA (ELECTRONIC DESIGN AUTOMATION) - T ONG THIET KE MACH IEN T VI ORCAD BAI TAP 2

Hop thoai Edit Layer Strategy xuat hien, nhap bo muc Routing Enabled. Xong nhap
OK.

Hop thoai Route Layer xuat hien, nhap chuot vao bieu tng Close goc phai pha tren
hop thoai.

e chng trnh t ong chay mach in bang cach chon Auto > Autoroute > Board.

AI HOC S PHAM KY THUAT KHOA IEN BIEN SOAN : PHAM QUANG HUY - HUYNH MINH ANG 55
GIAO TRNH EDA (ELECTRONIC DESIGN AUTOMATION) - T ONG THIET KE MACH IEN T VI ORCAD BAI TAP 2

Sau mot luc ch chng trnh chay
mach in, co thong bao sau xuat hien, nhap
chuot vao nut OK e thay s o mach in.

Chng trnh chay mach in nh hnh
sau:


e at nhan hieu cho mach in, nhap chuot vao
bieu tng Text Tool tren thanh cong cu. Nhap phai
chuot vao mach in, mot ca so xuat hien, nhap chuot vao
New

Hop thoai Text Edit xuat hien, tai khung Text String nhap ten can at cho mach. Tai
khung Rotation nhap so 90 t ban phm e khung ch quay ngang. Nhap ten xong nhap OK.

AI HOC S PHAM KY THUAT KHOA IEN BIEN SOAN : PHAM QUANG HUY - HUYNH MINH ANG 56
GIAO TRNH EDA (ELECTRONIC DESIGN AUTOMATION) - T ONG THIET KE MACH IEN T VI ORCAD BAI TAP 2

Con tro chuot xuat hien hang ch va nhap. Di chuyen con tro en v tr can at cho
mach va nhap chuot. Cuoi cung mach in hoan chnh nh sau :

Cuoi cung, nhap chuot vao bieu tng Save tren thanh cong cu e gi lai nhng g a
thc hien.




AI HOC S PHAM KY THUAT KHOA IEN BIEN SOAN : PHAM QUANG HUY - HUYNH MINH ANG 57