
ĐạiHọcQuốcGiaTP.HCM VietnamNationalUniversity–HCMC
TrườngĐạiHọcBáchKhoa HoChiMinhCityUniversityofTechnology
KhoaCơKhí FacultyofMechanicalEngineering
Đềcươngmônhọc
Viđiềukhiển
(Microcontroller)
Sốtínchỉ 3(2.2.5) MSMH ME3007
Sốtiết Tổng:60 LT:30 TH:15 TN:15 BTL/TL:x
MônkhôngxếpTKB
Tỉlệđánhgiá BT:30% TN:20% KT: BTL/TL:10% Thi:40%
Hìnhthứcđánhgiá Thitrắcnghiệm90phút
Môntiênquyết
Mônhọctrước Kỹthuậtđiềukhiểntựđộng(ME2009),Trangbịđiện–điệntửtrongmáycôngnghiệp
(ME2005)
Mônsonghành
CTĐTngành KỹthuậtCơkhí;KỹthuậtCơđiệntử
Trìnhđộđàotạo Đạihọc
Cấpđộmônhọc Năm3
Ghichúkhác
1.Mụctiêucủamônhọc:
Mônhọccungcấpchosinhviênkiếnthứccơsởđểthiếtkếvàứngdụngmạchviđiềukhiểntrongđiềukhiểnhoạt
độngcủamộtsốbộchấphànhthôngdụng.Ngoàira,sinhviêncònđượccungcấpcáckiếnthứcvềcáckỹthuật
truyềnthôngthôngdụngđượctíchhợptrênviđiềukhiển.
Aims:
The course give instructions to students the fundamental knowledge to design and implement microcontrollers
circuitstocontroltheoperationofsomepopularactuators.Besides,thestudentsalsobeprovidedtheknowledgeof
somepopularcommunicationstechiniquewhichareintegratedinthemicrocontrollers.
2.Nộidungtómtắtmônhọc:
Nộidungchínhcủamônhọcbaogồm:
Giớithiệucấutrúcphầncứngviđiềukhiển.
Cácvấnđềcơbảnkhisửdụngviđiềukhiểntronglĩnhvựcđiềukhiểntựđộng,lĩnhvựcrobot.
Cácmodulengoạivichuyêndùngcủaviđiềukhiển:I/O,Interrupt,Timer/Counter,OutputCompare,InputCapture,
QEI,ADC,DAC,etc.
Cácchuẩntruyềnthôngđượcsửdụngphổbiếnnhư:RS232,RS485,I2C,SPI,CAN,…
Phântích,thiếtkếmạchviđiềukhiểnứngdụngtronglĩnhvựccơđiệntử.
Courseoutline:
Themaincontentincludes:
Introductiontomicrocontrollerhardwarestructure.
Thebasicallyproblemswhenusingmicrocontrollersinautomaticcontrolfield,roboticsfield.
Thepopularinput/outputandsomefunctionalmodulesofmicrocontrollers.
Somepopularcommunicationstandardssuchas:RS232,RS485,I2C,SPI,CAN,etc.
Theprogrammingmethodsformicrocontrollersusinginautomaticcontrolandroboticsfields.
3.Tàiliệuhọctập:
Sách,Giáotrìnhchính:
[1]DoganIbrahim,MicrocontrollerBasedDigitalControlSystem,JohnWiley&Sons,2000.
References:
[2]CreedHuddleston,IntelligentSensorDesignUsingtheMicrochipdsPIC,ElsevierInc.,2007

Tàiliệuthamkhảo:
[1]VõTường Quân, Bài giảngđiệntửViĐiều Khiển, Bộ mônCơĐiệnTử,KhoaCơKhí,TrườngĐạihọcBách
KhoaThànhphốHồChíMinh,2010.
[2]Datasheetcủacácloạiviđiềukhiểnsửdụng(CóthểdownloadtừInternet)
[1]DoganIbrahim,MicrocontrollerBasedDigitalControlSystem,JohnWiley&Sons,2000.
[2]CreedHuddleston,IntelligentSensorDesignUsingtheMicrochipdsPIC,ElsevierInc.,2007.
[3]VõTườngQuân,BàigiảngđiệntửViĐiềuKhiển,BộmônCơĐiệnTử,KhoaCơKhí,TrườngĐạihọcBáchKhoa
ThànhphốHồChíMinh,2010.
[4],Datasheetcủacácloạiviđiềukhiểnsửdụng,CóthểdownloadtừInternet,.
4.Hiểubiết,kỹnăng,tháiđộcầnđạtđượcsaukhihọcmônhọc:
STT Chuẩnđầuramônhọc
L.O.1
Hiểuđượccácthànhphần,cácmodulechứcnăngcủaviđiềukhiển
L.O.1.1 Biết được cấu trúc phần cứng bên ngoài và các module chức năng thông dụng của vi điều
khiển. Các module chức năng thông dụng gồm: I/O, Interrupt, Timer/Counter, Output Compare – Input
Capture,QEI,ADC,Communication,etc.
L.O.1.2Biếtđượccấutrúcphầncứngbêntrongcủaviđiềukhiển.
L.O.1.3Biếtđượccấutrúcbộnhớvàquyđịnhvềđịachỉcủaviđiềukhiển.
L.O.1.4Biếtđượcnguyêntắccấpxunghoạtđộngvànguyêntắccấpnguồnhoạtđộngchoviđiềukhiển.
L.O.1.5Biếtđượcphươngphápmởrộngbộnhớcủaviđiềukhiển.
L.O.2
Đấunốimạchviđiềukhiểnđểnvậnhànhmộthệthốngchotrước
L.O.2.1Đấunốicácthiếtbịsố(digital)vớingõvàocủaviđiềukhiển.
L.O.2.2Đấunốicácthiếtbịsố(digital)vớingõracủaviđiềukhiển.
L.O.2.3Đấunốicácthiếtbịtươngtự(analog)vớingõvàocủaviđiềukhiển.
L.O.2.4Đấunốicácthiếtbịtươngtự(analog)vớingõracủaviđiềukhiển.
L.O.3
Thiếtkếmạchứngdụngvàlậptrìnhcácchứcnăngcơbảncủaviđiềukhiển
L.O.3.1HiểuvàsửdụngđượccácphầnmềmlậptrìnhviđiềukhiểnthôngdụngCCSC,vàsửdụng
đượcphầnmềmmôphỏngProteus.
L.O.3.2Hiểuđượcsơđồmạchnútnhấn,ledđơnchosẵnvàlậptrìnhđiềukhiểnhoạtđộngcủamạch.
L.O.3.3Hiểuđượcsơđồmạchdãy4led7đoạnchosẵnvàlậptrìnhđiềukhiểnhoạtđộngcủamạch.
L.O.3.4Hiểuđượcsơđồmạchbànphím,LCDchosẵnvàlậptrìnhđiềukhiểnhoạtđộngcủamạch.
L.O.4
Thiếtkếmạchứngdụngvàlậptrìnhcácmodulechuyêndụngcủaviđiềukhiển
L.O.4.1Thiếtkếmạchvàlậptrìnhsửdụngngắt(Interrupt).
L.O.4.2Thiếtkếmạchvàlậptrìnhsửdụngbộđịnhthời(Timer)/bộđếm(Counter).
L.O.4.3ThiếtkếmạchvàlậptrìnhsửdụngOutputCompare
L.O.4.4ThiếtkếmạchvàlậptrìnhsửdụngInputCapture
L.O.4.5ThiếtkếmạchvàlậptrìnhsửdụngQEI
L.O.4.6ThiếtkếmạchvàlậptrìnhsửdụngADC
L.O.4.7ThiếtkếmạchvàlậptrìnhsửdụngDAC
L.O.5
Sửdụngcácmoduletruyềnnhậndữliệucủaviđiềukhiển
L.O.5.1HiểuchuẩntruyềnRS232vàlậptrìnhtruyền/nhậndữliệudựatrênchuẩnRS232dựatrênsơđồ
mạchchosẵn.
L.O.5.2HiểuchuẩntruyềnRS485vàlậptrìnhtruyền/nhậndữliệudựatrênchuẩnRS485dựatrênsơđồ
mạchchosẵn.
L.O.5.3HiểuchuẩntruyềnI2Cvàlậptrìnhtruyền/nhậndữliệudựatrênchuẩnI2Cdựatrênsơđồmạch
chosẵn.
L.O.5.4HiểuchuẩntruyềnSPIvàlậptrìnhtruyền/nhậndữliệudựatrênchuẩnSPIdựatrênsơđồmạch
chosẵn.
L.O.5.5HiểuchuẩntruyềnCANvàlậptrìnhtruyền/nhậndữliệudựatrênchuẩnCANdựatrênsơđồ
mạchchosẵn.
L.O.5.6 Thiết kế mạch và lập trình mạch truyền nhận dữ liệu sử dụng chuẩn
RS232/RS485/I2C/SPI/CAN.
Nhậnbiết,môtảvàđánhgiámộthệthốngđiềukhiểnsửdụngviđiềukhiển.
L.O.6.1Nhậnbiếtvàmôtảđượcphầncứngcủamộthệthốngcósửdụngviđiềukhiển.

L.O.6 L.O.6.2Hiểunguyênlýhoạtđộngvàlậpđượclưuđồgiảithuậtđiềukhiểnhoạtđộngcủahệthống.
L.O.6.3Đánhgiáphầnmạchđiềukhiểnhệthống.
L.O.6.4Đánhgiáphầnchươngtrìnhđiềukhiểnhệthống.
L.O.6.5Đưacácđềxuấtcảitiến.
L.O.7
Phântích,thiếtkếbộđiềukhiểndùngviđiềukhiểnvớicácyêucầuchotrước.
L.O.7.1Thiếtkếđượcmạchsửdụngviđiềukhiểnđểđiềukhiểnhoạtđộngcủamộthệthốngvớicác
yêucầukỹthuậtchotrước.
L.O.7.2Lậpđượclưuđồgiảithuậtđiềukhiểnhệthống.
L.O.7.3Lậptrìnhđiềukhiểnhoạtđộngcủahệthống.
L.O.7.4Đánhgiáhoạtđộngcủahệthốngđểtừđóđưaraphươngáncảitiếnvềsơđồmạch,cảitiến
phầnchươngtrình,…
L.O.8
Cókhảnănghọctậpsuốtđời
L.O.8.1Đọcđượccáctàiliệuchuyênngànhliênquanđếnmônhọc
L.O.8.2Cókhảnăngtựhọc
L.O.8.3CókhảnăngtìmkiếmcácnguồntàiliệuthamkhảotừInternet
L.O.9
Cókhảnănglàmviệctrongmôitrườngđangành
L.O.9.1Cókhảnănglàmviệcnhóm.
L.O.9.2Cókhảnăngđánhgiáđượchoạtđộngnhóm.
STT Courselearningoutcomes
L.O.1
Understandthecomponents,themodulesandtheirfunctionsofthemicrocontrollers.
L.O.1.1 Know the peripheral structire and some popular functional modules of the microcontrollers.
Someofthepopularmodulesare:I/O,Interrupt,Timer/Counter,OutputCompare–InputCapture,QEI,
ADC,Communication,etc.
L.O.1.2Knowtheinsiderstructureofthemicrocontrollers
L.O.1.3Knowthememorystructureandtheaddressingprinciplesofthemicrocontrollers.
L.O.1.4Knowtheprinciplesoftheoscillatorandthesuitablepowersourceforthemicrocontrollers.
L.O.1.5Knowhowtoexpandthememorycapacityofthemicrocontrollers.
L.O.2
Connectthemicrocontrollersbasedcircuitstooperatetheautomaticcontrolsystem.
L.O.2.1Connectthedigitalequipmentswiththeinputpinsofthemicrocontrollers.
L.O.2.2Connectthedigitalequipmentswiththeoutputpinsofthemicrocontrollers.
L.O.2.3Connecttheanalogequipmentswiththeinputpinsofthemicrocontrollers.
L.O.2.4Connecttheanalogequipmentswiththeoutputpinsofthemicrocontrollers.
L.O.3
Designtheapplicationcircuitsandprogramusingthebasicfunctionsofthemicrocontrollers.
L.O.3.1UnderstandtheusetheCCSCsoftwaretoprogramthemicrocontrollersandusethesimulation
softwareProteus.
L.O.3.2Understandthebuttoncircuit,ledcircuitandprogramtooperatethesecircuits.
L.O.3.3Understandthe7segmentsLedcircuitandprogramtooperatethiscircuit.
L.O.3.4UnderstandthekeyboardLCDcircuitandprogramtooperatethiscircuit.
L.O.4
Designtheapplicationcircuitsandprogramusingthefunctionalmodulesofthemicrocontrollers.
L.O.4.1Designandprogramtheinterruptcircuits.
L.O.4.2DesignandprogramtheTimer/Countercircuits.
L.O.4.3DesignandprogramtheOutputComparecircuits.
L.O.4.4DesignandprogramtheInputCapturecircuits.
L.O.4.5DesignandprogramtheQEIcircuits.
L.O.4.6DesignandprogramtheADCcircuits.
L.O.4.7DesignandprogramtheDACcircuits.
L.O.5
Usethecommunicationmodulesofthemicrocontrollers.
L.O.5.1UnderstandtheRS232standardandprogramtotransmit/receivedatausingasamplecircuit.
L.O.5.2UnderstandtheRS485standardandprogramtotransmit/receivedatausingasamplecircuit.
L.O.5.3UnderstandtheI2Cstandardandprogramtotransmit/receivedatausingasamplecircuit.
L.O.5.4UnderstandtheSPIstandardandprogramtotransmit/receivedatausingasamplecircuit.
L.O.5.5UnderstandtheCANstandardandprogramtotransmit/receivedatausingasamplecircuit.
L.O.5.6 Design and program the application circuits using these RS232/RS485/I2C/SPI/CAN etc.

standards.
L.O.6
Recognize,describeandevaluateamicrocontrollersbasedcontrolsystem.
L.O.6.1Regconizeanddescribethehardwareofthemicrocontrollerbasedcontrolsystem.
L.O.6.2Understandtheoperationprinciplesanddesignthecontroldiagramtooperatethesystem.
L.O.6.3Evaluatethecontrolcircuitofthesystem.
L.O.6.4Evalauetthecontrolprogramofthesystem.
L.O.6.5Proposetheinnovationideas.
L.O.7
Analyze,designthecontrollersusingmicrocontrollers.
L.O.7.1Designthemicrocontrollercircuitstooperatethecontrolsystemtobesuitabletothepredefine
technicalrequirements.
L.O.7.2Setupthecontrolalgorithmofthesystems.
L.O.7.3Programtooperatethecontrolsystems.
L.O.7.4 Evaluate the operation of the system and propose the innovation methods about the control
circuits,thecontrolalgorithm,etc.
L.O.8
Havetheabilityforlonglifelearning
L.O.8.1Readthemajordocumentsrelatingtothesubject.
L.O.8.2Havetheselfstudycapability.
L.O.8.3Tobeabletofindthestudyingdocumentsfromtheinternet.
L.O.9
Havetheabilitytoworkinainterdisciplinaryenvironment.
L.O.9.1Tobecapabletoworkinteam.
L.O.9.2Tobecapabletoevaluatetheteamworkoperation.
5.Hướngdẫncáchhọcchitiếtcáchđánhgiámônhọc:
TàiliệuđượcđưalênBKEL.Sinhviêntảivề,inravàmangtheokhilênlớphọc.Điểmtổngkếtmônhọcđược
đánhgiáxuyênsuốtquátrìnhhọc
+Bàitập:
•Bàitậptrênlớp(nhóm) :30%
+Thựchành:
•Thínghiệm :20%
+Quátrình:
•Bàitậplớn :10%
+Thi:
•Thicuốikỳ :40%
Điềukiệndựthi:
Sinhviênđượcyêucầuphảithamdựgiờgiảngtrênlớpítnhất70%(sốlầnđượcđiểmdanhchuyêncần).Ngoài
ra,sinhviênphảihoànthànhtấtcảbàitậptrênlớpvà70%bàitậpvềnhà.Nếusinhviênnàokhôngthamgiabuổi
thuyếttrìnhcủanhómthìđiểmthuyếttrìnhcủasinhviênđósẽbằngkhông.
Sinhviêncầnlưuýthờihạnnộpbàitập.TấtcảcácbàitậpvềnhàđềuphảiđượcnộpthôngquahệthốngBKEL
theođúngthờigianquyđịnhcủagiảngviên.
Trườnghợpsinhviênkhôngnộpbài:Nếusinhviênnàokhôngnộpbàiđúngthờihạnthìsẽbịkhôngđiểmchobài
tậpđó.
Trườnghợpnộpmuộn:Sinhviênnộpmuộnsẽkhôngđượcchấpnhậnnếukhôngcómộtlýdochínhđángđã
đượctrìnhbàyvàphêduyệtcủagiảngviêntrướcngàyđếnhạn.Bàitậpnộpmuộnchophépsẽbịtrừđi2điểmđối
vớimỗingàynộptrễ.
6.DựkiếndanhsáchCánbộthamgiagiảngdạy:
TSVõTườngQuân
TSNguyễnDuyAnh
TSĐoànThếThảo
TS.LêThanhHải
TSPhùngTríCông
7.Nộidungchitiết:

Tuần/
Chương
Nộidung Chuẩnđầurachitiết Hoạtđộngdạyvàhọc Hoạtđộng
đánhgiá
Thầy/Cô Sinhviên
1
Giớithiệuvềmôn
học
ThôngtinThầy/Cô.
Cácvấnđềliên
quanđếnmônhọc.
Cáckiếnthứccần
cóđểhọcmônhọc.
Cáchthứcdạyvà
học.
Giớithiệutổngquan
vềviđiềukhiển
Giớithiệutổng
quanvềviđiều
khiển.
Cácloạiviđiều
khiểnthôngdụng
hiệnnay.
Phânbiệtgiữavi
điềukhiểnvàvixử
lý.
Ưunhượcđiểm
củahệthốngđiều
khiểndùngviđiều
khiển.
Cácphươngpháp
lậptrìnhchoviđiều
khiển.
L.O.9.1Cókhảnănglàm
việcnhóm.
Tựgiớithiệu
Trìnhbàycách
đánhgiámônhọc.
Trìnhbàymẫu
giớithiệu.
Tổnghợpdanh
sáchlớp.
Giớithiệulướt
quađềcươngmôn
học.
Giảithíchcác
hoạtđộngcánhân
&nhóm.
Thúcđầyhoạt
độngnhóm.
Thựchànhtự
giớithiệutheomẫu
đượccungcấp
(AIC#0)
Bàitậptrên
lớp
AIC#0
Bàitậpvề
nhà
HW#0
L.O.9.2Cókhảnăngđánh
giáđượchoạtđộngnhóm.
Hoànchỉnh
rubricsđểđánh
giáhoạtđộng
nhóm
Cungcấpcáctài
liệuthamkhảo
Cungcấpcác
mẫurubricsđể
đánhgiásựcộng
táctrongnhóm
Hìnhthànhmột
nhómgồm3hoặc
4sinhviên
Thảoluậntheo
nhómvềnhững
yêucầuđốivới
mộtkỹsưngày
nay.
Vấnđềsửdụng
viđiềukhiểntrong
côngnghiệpvà
trongđờisống.
Thảoluậnvề
cáchđánhgiámôn
học
Bàitậptrên
lớp
AIC#0
Bàitậpvề
nhà
HW#0
L.O.3.1Hiểuvàsửdụng
đượccácphầnmềmlập
trìnhviđiềukhiểnthông
dụngCCSC,vàsửdụng
đượcphầnmềmmôphỏng
Proteus.
Thảoluậnvấnđề
liênquanđếnnội
dungchươngsắp
trìnhbày(concept
forcus)
Trìnhbàycác
slidechương1
Thuthậpýkiến
sinhviên
(Muddiestpoint)
Làmviệcnhóm
Thảoluận
Bàitậptrên
lớpAIC#1
Bàitậpvề
nhàHW#1
L.O.8.1Đọcđượccáctài
liệuchuyênngànhliênquan
đếnmônhọc
Thảoluậnvấnđề
liênquanđếnnội
dungchươngsắp
trìnhbày(concept
forcus)
Trìnhbàycác
slidechương1
Thuthậpýkiến
sinhviên
(Muddiestpoint)
Làmviệcnhóm
Thảoluận
Bàitậptrên
lớpAIC#1
Bàitậpvề
nhàHW#1
L.O.8.2Cókhảnăngtự
học
Thảoluậnvấnđề
liênquanđếnnội
dungchươngsắp
trìnhbày(concept
forcus)
Trìnhbàycác
slidechương1
Thuthậpýkiến
sinhviên
(Muddiestpoint)
Làmviệcnhóm
Thảoluận
Bàitậptrên
lớpAIC#1
Bàitậpvề
nhàHW#1
L.O.8.3Cókhảnăngtìm
kiếmcácnguồntàiliệutham
Thảoluậnvấnđề
liênquanđếnnội
dungchươngsắp
trìnhbày(concept
forcus)
Tìmhiểucáchệ
thống,cácthiếtbị
cósửdụngviđiều
khiển(tốithiểu10
hệthống/thiếtbị)
vàchobiếtviđiều
Bàitậptrên
lớpAIC#1
Bàitậpvề

