Sie sind auf Seite 1von 0

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

THIET KE S O MACH IN
MACH IEU KHIEN EN CHAY DUNG 4017
Trong bai tap nay ban se c hng dan thiet ke mach in cho mach ieu khien en
chay dung 4017 co s o nguyen ly nh sau:

e khi ong chng trnh ve s o nguyen ly trong ORCAD ta chon Start > Programs
> OrCAD Release 9 > Capture.
Muon m mot trang mi, chon File > New > Project

Hop thoai New Project xuat hien. Tai khung Create a New Project Using nhap chon
muc Schematic. Tai khung Name nhap ten can at cho mach ien. Tai khung Location nhap
chuot vao nut Browse e chon ng dan cho mach c gi vao. Khi chon xong tat ca tien
hanh nhap chuot vao nut OK.
AI HOC S PHAM KY THUAT KHOA IEN BIEN SOAN : PHAM QUANG HUY - HUYNH MINH ANG 113
GIAO TRNH EDA (ELECTRONIC DESIGN AUTOMATION) - T ONG THIET KE MACH IEN T VI ORCAD BAI TAP 5


Man hnh lam viec cua Orcad xuat hien Ta thay trong s o nguyen ly co cac linh kien
nh sau: 13 IEN TR, 1 BIEN TR, 2 TU KHONG PHAN CC, 11 LED, 1 CHAN CAM
2 CHAN, 2 TU PHAN CC, 1 IC LM555, 1 IC 4017, 5 CHAN Mass, 5 NGUON Vcc.
Hay tien hanh a chung vao bang ve, e lay
linh kien cho mach ta nhap chuot chon Place > Part
tren thanh cong cu hay nhan to hp phm Shift + P
tren ban phm.

Hop thoai Place
Part xuat hien, ta thay
khung Libraries khong co
nhng muc cha linh kien
ta can nen ta nhap chuot
vao nut Add Library e
lay muc cha linh kien ta
can.

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

Hop thoai Browse File xuat hien. Neu s dung quen th vien cua Orcad ban se biet tat
ca nhng linh kien tren nam trong cac muc Connector, Counter, Discrete, MiscLinear. V the
nen ta nhap chon nhng muc nay bang cach nhan gi phm Ctrl tren ban phm va nhap chuot
vao nhng muc nay. Chon xong nhap Open.

Hop thoai Place Part xuat hien vi cac muc tren a c nap vao khung Libraries.
e lay ien tr hay nhap chuot vao muc Discrete. Tai khung Part nhap chuot vao
thanh cuon ben phai e tm R2. Sau khi tm thay nhap chon no, chon xong nhap chuot vao nut
OK. Con tro chuot luc nay xuat hien hnh dang linh kien ban can, di chuyen no ra man hnh lam
viec va nhap chuot tai nhng v tr khac nhau e chon v tr, so lng linh kien.

e chon Led, nhap chon Place > Part tren thanh cong cu. Hop thoai Place Part xuat
hien, tai khung Part nhap chon ten LED. Chon xong nhap chuot vao nut OK va di chuyen con
tro ra man hnh lam viec sau o nhap chon v tr, so lng Led.
AI HOC S PHAM KY THUAT KHOA IEN BIEN SOAN : PHAM QUANG HUY - HUYNH MINH ANG 115
GIAO TRNH EDA (ELECTRONIC DESIGN AUTOMATION) - T ONG THIET KE MACH IEN T VI ORCAD BAI TAP 5


e tiep tuc lay bien tr tien hanh chon Place > Part tren thanh cong cu.
Hop thoai Place Part xuat hien. Tai khung Libraries nhap chon muc Discrete, tai
khung Part nhap chon ten RESISTOR VAR.
Chon xong nhap chuot vao nut OK va di chuyen con tro ra man hnh lam viec e nhap
chon v tr at bien tr.

e chon tu khong phan cc, nhap chon Place > Part tren thanh cong cu. Hop thoai
Place Part xuat hien, tai khung Part nhap chon ten CAP NP.
Chon xong nhap chuot vao nut OK sau o di chuyen con tro ra man hnh lam viec. Tien
hanh nhap chon v tr, so lng tu tren bang ve.
AI HOC S PHAM KY THUAT KHOA IEN BIEN SOAN : PHAM QUANG HUY - HUYNH MINH ANG 116
GIAO TRNH EDA (ELECTRONIC DESIGN AUTOMATION) - T ONG THIET KE MACH IEN T VI ORCAD BAI TAP 5


e chon tu phan cc, nhap chon Place > Part tren thanh cong cu.
Hop thoai Place Part xuat hien, tai khung Part nhap chon ten CAPACITOR POL.
Chon xong nhap OK va di chuyen con tro ra man hnh lam viec nhap chon v tr, so lng tu.

Tiep tuc lay IC LM555 nhap chon Place > Part tren thanh cong cu.
Hop thoai Place Part xuat hien. Tai khung Libraries nhap chon muc MISCLINEAR,
tai khung Part nhap chon ten LM555.
Chon xong nhap OK va di chuyen con tro ra man hnh lam viec e nhap chon v tr IC.
AI HOC S PHAM KY THUAT KHOA IEN BIEN SOAN : PHAM QUANG HUY - HUYNH MINH ANG 117
GIAO TRNH EDA (ELECTRONIC DESIGN AUTOMATION) - T ONG THIET KE MACH IEN T VI ORCAD BAI TAP 5


e lay IC 4017 nhap chon Place > Part tren thanh cong cu.
Hop thoai Place Part xuat hien. Tai khung Libraries nhap chon muc COUNTER, tai
khung Part nhap chon ten 4017. Chon xong nhap chuot vao nut OK va di chuyen con tro ra
man hnh lam viec e nhap chon v tr IC.

Muon lay chan cam 2 chan, nhap chon Place > Part tren thanh cong cu.
Hop thoai Place Part xuat hien. Tai khung Libraries nhap chon muc CONNECTOR,
tai khung Part nhap chon ten CON2.
Chon xong nhap chuot vao nut OK va di chuyen con tro ra man hnh lam viec e nhap
chon v tr chan cam.
AI HOC S PHAM KY THUAT KHOA IEN BIEN SOAN : PHAM QUANG HUY - HUYNH MINH ANG 118
GIAO TRNH EDA (ELECTRONIC DESIGN AUTOMATION) - T ONG THIET KE MACH IEN T VI ORCAD BAI TAP 5


Muon lay nguon Mass cho mach, 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.


e lay nguon Vcc cho mach, nhap chuot vao bieu tng
Place power tren thanh cong cu.

Hop thoai Place Power xuat hien, tai khung Symbol nhap chon ten VCC
ARROW/CAPSYM. Chon xong nhap chuot vao nut OK sau o di chuyen con tro ra man hnh
lam viec roi nhap chon v tr, so lng chan Vcc can cho mach.
AI HOC S PHAM KY THUAT KHOA IEN BIEN SOAN : PHAM QUANG HUY - HUYNH MINH ANG 119
GIAO TRNH EDA (ELECTRONIC DESIGN AUTOMATION) - T ONG THIET KE MACH IEN T VI ORCAD BAI TAP 5


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:

Ta thay cac IC thieu mot so chan nguon, tien hanh lay cac chan nay ra bang cach nhap
chuot vao bieu tng linh kien roi nhap phai chuot. Mot ca so xuat hien, nhap chuot vao Edit
Part. ay ta thc hien cho IC LM555. Mot man hnh xuat hien, cho thay co hai chan IC b an.
Muon keo chan linh kien nao ra th ban nhap chon va nhap phai chuot vao chan o, mot ca so
xuat hien, nhap chuot vao Edit Properties.

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

Hop thoai Pin Properties
xuat hien, nhap chuot vao o vuong
trc muc Pin Visible. Sau o nhap
chuot vao mui ten hng xuong cua
muc Shape va chon Line. Chon
xong nhap OK. Tng t nh vay
thc hien cho chan con lai cua IC.
Sau khi lay cac chan ra roi, ta di
chuyen, sap xep chan linh kien cho
phu hp vi s o nguyen ly.

ay ta di chuyen chan so 6 bang cach nhap chuot vao chan so 6 roi re chuot en v tr
can at va tha chuot. C the tiep tuc cho en khi tat ca cac chan cua IC c sap xep nh hnh.

Thc hien xong ta nhap chon File >
Close.
Hop thoai Save Part Instance xuat
hien, ban nhap chuot vao Update Current e
thay oi co hieu lc.


Viec lay chan an cho IC 4017 cung nh oi vi IC LM555.
Ngha la nhap chuot vao bieu tng linh kien roi nhap phai chuot.
Mot ca so xuat hien, nhap chuot vao Edit Part. Mot man hnh
xuat hien, ta thay co hai chan IC b an. Muon keo chan linh kien
nao ra th ban nhap chon sau o nhap phai chuot vao chan o, mot
ca so xuat hien, nhap chuot vao Edit Properties. Hop thoai Pin
Properties xuat hien, nhap chuot vao o vuong trc muc Pin
Visible. Sau o ban nhap chuot vao mui ten hng xuong cua muc
Shape va chon Line. Chon xong nhap OK. Sau khi thay oi xong
ta co linh kien vi tat ca cac chan nh sau:
AI HOC S PHAM KY THUAT KHOA IEN BIEN SOAN : PHAM QUANG HUY - HUYNH MINH ANG 121
GIAO TRNH EDA (ELECTRONIC DESIGN AUTOMATION) - T ONG THIET KE MACH IEN T VI ORCAD BAI TAP 5

Tiep tuc tien hanh sap xep linh kien. Muon di chuyen linh kien ta ch viec nhap chuot
vao bieu tng linh kien va re chuot. Muon lat linh kien oi xng qua truc ng, ta ch viec
nhap chon linh kien roi nhap phai chuot. Mot ca so xuat hien, nhap chuot vao Mirror
Horizontally hay nhan phm H tren ban phm.
Muon quay linh kien mot goc 90
o
, cac ban ch viec nhap chon linh kien roi nhap phai
chuot, mot ca so xuat hien, nhap chuot vao Rotate hay nhan phm R tren ban phm.
Muon lat linh kien oi xng qua truc nam ngang, ch viec nhap chon linh kien roi
nhap phai chuot. Mot ca so xuat hien, nhap chuot vao Mirror Vertically hay nhan
phm V tren ban phm.
Trong khi di chuyen, co khi ban cho chan linh kien nay cham chan linh kien kia. Hop
thoai OrCAD Capture xuat hien thong bao vi noi dung : Neu ban muon noi hai chan linh kien
nay vi nhau th ban nhap OK. Neu khong muon noi th ban nhap OK roi nhap vao bieu tng
Undo tren thanh cong cu e di chuyen lai.

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

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.

C the tiep tuc cho en khi tat ca cac linh kien c noi theo s o nguyen ly sau:
AI HOC S PHAM KY THUAT KHOA IEN BIEN SOAN : PHAM QUANG HUY - HUYNH MINH ANG 122
GIAO TRNH EDA (ELECTRONIC DESIGN AUTOMATION) - T ONG THIET KE MACH IEN T VI ORCAD BAI TAP 5


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.

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

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

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.

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.

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

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

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.

Tiep tuc chuyen sang che o thiet ke mach in, 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 125
GIAO TRNH EDA (ELECTRONIC DESIGN AUTOMATION) - T ONG THIET KE MACH IEN T VI ORCAD BAI TAP 5


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.

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

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.

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 D2 co
ten la LED. 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 LED xuat hien, tai khung Libraries nhap chon muc JUMPER.
Tai khung Footprints nhap chon muc JUMPER 100 e chon chan mach in cho Led. Chon xong
nhap Ok.
AI HOC S PHAM KY THUAT KHOA IEN BIEN SOAN : PHAM QUANG HUY - HUYNH MINH ANG 127
GIAO TRNH EDA (ELECTRONIC DESIGN AUTOMATION) - T ONG THIET KE MACH IEN T VI ORCAD BAI TAP 5


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 LM555. 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 LM555
xuat hien, tai khung
Libraries nhap chon
muc DIP100T. Tai
khung Footprints nhap
chon muc
DIP.100/8/W.300/L.400
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 128
GIAO TRNH EDA (ELECTRONIC DESIGN AUTOMATION) - T ONG THIET KE MACH IEN T VI ORCAD BAI TAP 5

Hop thoai Link Footprint
to Component lai xuat hien vi
thong bao la khong the tm thay
chan mach in cua U2 co ten la
4017. 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 4017
xuat hien, tai khung
Libraries nhap
chon muc DIP100T.
Tai khung
Footprints nhap
chon muc
DIP.100/16/W.300/
L.775 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 nh sau:

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

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.

Sau khi nhap chuot vao bieu tng Reconnect Mode, cac linh kien nh hnh.

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 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 130
GIAO TRNH EDA (ELECTRONIC DESIGN AUTOMATION) - T ONG THIET KE MACH IEN T VI ORCAD BAI TAP 5

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 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.

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

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 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 132
GIAO TRNH EDA (ELECTRONIC DESIGN AUTOMATION) - T ONG THIET KE MACH IEN T VI ORCAD BAI TAP 5

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.
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.


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

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 vao.
Nhap ten xong nhap OK.

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

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 ch viec 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 135