You are on page 1of 10
Microcontroller Programming Course Code: 22471 joma in Mechatronics Program Name: Di Program Code : MK Semester : Fourth Course Title : Microcontroller Programming Course Code 322471 1. RATIONALE Microcontroller has become an integral part in various products in day to day life, This course is intended for developing the skills of interfacing and programing of different YO devices with microcontroller. Diploma engineers will be able to develop microcontroller based applications for domestic and industrial products. 2. COMPETENCY The aim of this course is to help the student to attain the following industry identified competency through various teaching learning experiences: * Apply the knowledge of microcontroller for industrial applications. 3. COURSE OUTCOMES (COs) ‘The theory, practical experiences and relevant soft skills associated with this course are to be taught and implemented, so that the student demonstrates the following industry oriented COs associated with the above mentioned competency: a, Interpret functions of various pins of 8051 microcontroller b, Develop simple 8051 programs using C language. c. Use timers, interrupts and serial ports for 8051 C programs. d. Develop C programs for basic input/output devices e. Develop applications using different sensors and motors. {Select different advanced microprocessors. 4, TEACHING AND EXAMINATION SCHEME ‘Teaching. a ‘ sin Theory, Practical | ult] e CT per 7 Total PA Toul | rs, | Max]Min [May [Min | Max] Min | Max [Min | Max | Min | Max | 3[-[4[ 7 [3 [7 30* | 00 [100| 40 | s0@ | 20 | 50 | 20 | 100] 40 | (): Under the theory PA, out of 30 marks, 10 marks are for micro-project assessment to facilitate imegration of COs and the remaining 20 marks is the average of 2 tests to be taken during the semester for the assessment of the cognitive domain UOs required for the astairment of the COs. Legends: L-Lecture; T ~ Tutorial/Teacher Guided Theory Practice: P -Practical; C- Credit, ESE -End Semester Examination; PA - Progressive Assessment; @- Internal Assessment MSBTE - Final Copy Dt. 10.07. m0 Page 109 Microcontroller Programming _ Course Code: 22471 5. COURSE MAP (with sample COs, PrOs, UOs, ADOs and topies) This course map illustrates an overview of the flow and linkages of the topies at various levels of outcomes (details in subsequent sections) to be attained by the student by the end of the course, in all domains of learning in terms of the industry/employer identified competency depicted at the center of th : u irduction to Advance Processors Units Interfacing of Sensors an etares of iferemt ers of ARM Prom toro Unit Interfacing of oe Eo ae Input Output Po Devices wih 8051 —— Ge a Ps a) erp Fetians of “asin Wola) Compare inieroproeesior and "lerocontealer CO) Develop sine “LA05t poston eS 8051 Timers. ncereupts and 08, POs, 108, Pre, POT” Seria gin ae F san Ibs ane Sah wed fo babi ‘wor \’ "irda yee rotow Antronhtin to = Mierocontralins inc CRE {Topics (eo-caneonrwe 2 Fioure 1 - Course Man GESTED PRACTICALS/ EXERCISES The practicals in this section are PrOs (i.c. sub-components of the COs) to be developed and assessed in the student for the attainment of the competency: Practical Exereises Unit | Appros: [ (Learning Outcomes in Psychomotor Domain) No | Required Kdentiy various blocks of 8051 microcontroller development board. | 1 m Use Integrated Development Environment tool for developing ©] = programs for 8051 microcontroller _- Develop C program for 8051 microconttoller for inpuoutput | 4, be | operation over port pins 7 Demonstrate the usage of preprocessor directives in 8051 C 2 programs, Develop C program for toggling the port pins alter using a delay funeticn 2 MSBTE- Final Copy Dt. 10.07.2020 Page2 of MKat Microcontroller Programming Course Code: 22471 Note 6 | Develop C program for block transfer of 8-bit data from souree 10 | i destination internal data memory locations. 7_| Perform various arithmetic operations on 8051 Port data an 8 _| Perform various logical operations on 8051 Port data I 2 g [Use 8051 timer for generating the square wave of specified |) - frequency on a port pin, nf 19 | Develop C program for transmitting the message “Hello World” on | yy serial port 11_| Develop C program for LED blinking. WV 2 12_| Develop C program for turning ON/OFF the LED by a switch a 13, | Develop C program for controlling a lamp interfaced with 8051) yy > microcontroller through a relay 14 Consiet single digit up- counter (0-9) using LED 7-segment | jy, om splay. E 731 ‘Develop © program for 8051 microcontrol r sounding the Vv ” buzzer on occurrence of an external interrupt. 16 | Develop C program for displaying a message “Welcome” on the 16} yy x 2 LCD. L a Develop C program for generation of sawtooth waveform using 17 | owe Vv 2 Develop C program for generation of triangular waveform using 18 Iv 2+ ® | Dac. a - 19 | Develop € program for 8051 microcontroller for converting the | yy, 7 analog signal into digital form using an ADC. a9 | Develop C program for displaying the temperature sensed by | ™ | Las. 2 | Develop C program for speed control of DC motor - mi 2 Develop C program for direction control of Di [ov [2 [Develop C program for direction control of stepper motor. v[ 2 3 Develop C program for speed control of stepper motor. - Vv 2 [25 _| Develop C program for rotating the servo motor by certain an Vv -_ 26 _| Simulate the interfacing of servo motor with 8051 microcontroller. | _V 27 _| Develop C program for the IR sensor interfaced with 8051. Vv 28 | Develop C program for PIR Motion sensor interfaced with 8051. [__V_ 29 | Develop C program for ultrasonic sensor interfaced with 8051 ae a | 30_| Identify various blocks of ARM7 development board Vi 3. Use the Integrated Development Environment tool for 7 | programming ARM7. | 32_| Simulate the LED blinking program using ARM? controller, vi e Total 64 7. A suggestive list of PrOs is given in the above table, More such PrOs can be added to aitain the COs and competency. A judicial mix of minimum 24 or more practical needs 10 he performed, out of which, the practicals marked as °*” ave compulsory. so thal the siudent reaches the ‘Precision Level’ of Dave's ‘Psychomotor Domain Taxonomy’ as generally required by the industry. * ii. The ‘Process’ and ‘Product’ related skills associated with each PrO is to be assessed according to a suggested sample given helow MSBTE - Final Copy Dt. 10.07.2020 Page 3 of 9 MKAI Microcontroller Programming Course Code: 22471 | Sr.No. Performance Indicators - Weightage in % Experimental setup with proper interfacing 20 Program development oe 25 Program debugging and downloading - 15 “Observations and Verification of output 20 nple questions imely Submission Total ‘The above PrOs also comprise of the following social skills/attitudes which are Affective Domain Outcomes (ADOs) that are best developed through the laboratory/field based experiences: Follow safety practices. b. Practice good housekeeping. c. Practice energy conservation, 4d. Maintain tools and equipment. €. Follow ethical Practices. The ADOs are not specific to any one PrO but are embedded in many PrOs Hence, the acquisition of the ADOs takes place gradually in the student when s/he undertakes a series of practical experiences over a period of time. Moreover, the level of achievement of the ADOs according to Krathwohl’s ‘Affective Domain Taxonomy’ should gradually increase as planned below: ‘Valuing Level’ in 1* year © ‘Organizing Level’ in 2 year © ‘Characterizing Level’ in 3" year 7. MAJOR EQUIPMENT) INSTRUMENTS REQUIRED ‘The major equipment with broad specification mentioned here will usher in uniformity in Bi Equipment Name with Broad Specifications 8051 Microcontroller Development Board single board system 1 {with 8K RAM, ROM/Flash memory with battery backup, 16x2 LCD display, RS-232/USB interfacing facility with built in power supply. PC with IDE software for 8057 | CRO- Bandwidth AC 10Hz ~20Mtlz, DC Digital multimeter — 3 % digit display | Switch and LED module. Relay trainer board suitable to interface with 8051 trainer kit LED 7-Segment display Module. SV DC Buzzer. DACO808 trainer board, 10 | ADC0808 tainer board 11_ | LM35, IR sensor, PIR Motion sensor. Ultrasonic sensor. 12_ | DC motor, Stepper motor. Servo motor 3. | ARM7 development boatd. mulation soliware For 8051 1/0 Interfacing 20MHz. vlolafalulaloln MSBTE - Final Copy Dt. 10.07.2020 Page 4 of 9 conduct of practical’s, as well as aid to procure equipment by authorities concemed. PrOs No. 11029 Tt 29 91718 19 1,12 1B MKaI Microcontroller Programming Course Code: 22471 S Equipment Name with Broad Specifications PrOs No. "15 | Program development and Simulation software for ARM7. 31,32 8 UNDERPINNING THEORY COMPONENTS The following topies/sub topics should be taught and assessed in order to develop UOs for achieving the COs to attain the identified competency. Unit Outcomes (UOs) (in cognitive domain) _ Topics and Sub-topies 1a, Compare microprocessor and | |.1 Microprocessor and Microcontroller Introduction | microcontroller Basic introduction, Block diagram and to 1b, Distinguish between Von-| Comparison, Microcontroll | Neumann and Harvard | 1.2. Harvard = and_——-Von-Neumann, ers architecture architecture le, Explain 8051 architecture with | 13 8051 Microcontroller Architecture, features and memory| ‘Features, Pin configuration and ‘organization, internal memory organization. 1d. Explain power saving options | 14 8051 as a Boolean processor, power of microcontroller saving options-idle and power down le, Deseribe structure of PO, P1,| mode. P2andP3. 1.5 8051 /O Port structure. Unit [2a Explain in brief, different | 2.1 Development Tools-Editor, Assembler, 8051 development tools used for] Compiler, Cross-compiler, Debugger, Microcontroll | microcontroller based system. Emulator, Programmer. cr 2b. Differentiate between assembly | 2.2 Comparison between embedded C Programming | language and Embedded C| programing and assembly language inc programming. programming, 2c, Develop C programs for given | 2.3 Embedded C data types, decision microcontroller using decision | control and looping, preprocessor control and loops. directives, 2d. Develop embedded C programs | 2.4 Embedded C programs on-data transfer for basic input output ith ports and memory. operations over port pins. 2.5 Embedded C programs using arithmetic 2e. Use various operators in C) and logical operators - ram for 8051 oe Unit— 111 with sketch, different [3.1 Timers/Counters: SFRs- TMOD, 8051 Timers, | modes of 8051 Timer/Counter. TCON. Timer/ Counter Modes. Interrupts | 3b. Write a C program to generate | 3.2 C programs for Timer/Counter. and Serial delay using 8051 Timer. 3.3 Interrupts: Polling and Interrupts, IE i | 3c. Explain the functions of | and IP SFR, Simple C program on various bits of IE and IP SFRs. | __ interrupts 3d. Explain different. modes of | 3.4 Serial Communication: SFRs- SCON, serial communication. | SBUF. Modes of serial communication. 3v. Develop C program for 8051 | 3.58051 C — programs on serial microcontroller for serial | communication. ‘communication 3.6 Serial communication standard RS232, 3f. Interface 8051 microconwoller DB9 pin functions, interfacing of 8051 with serial port using RS232| microcontroller with MAX 232. protocol | Unit-1V— 4a, Explain with suitable sketch Interfacing of | the _ interfacing of _ basic MSBTE - Final Copy Dt. 10.07.2020 "Page § of 9 Microcontroller Programming Course Code: 22471 Unit Unit Outcomes (UOs) ‘Topies and Sub-topies (in cognitive domain) Input/ Output | inpuvoutput devices with 8051 | in Devices with | microcontroller 4.2 Interfacing of LED 7-segment display 8051 —_|4b, Develop 8051 C programs for| and 16 x 2 LCD with 8051 and its basic 1/0 devices programming in C. 4c. Develop C programs for LED | 4.3 Interfacing of ADCO808 with 8051 and 7-segment and LCD. its programming in C. 4d.Interface ADC to 8051 | 4.4 Interfacing of DACO808 with 8051 and microcontroller to convert) its programming in C to generate analog signal into digital using | square, triangular and saw tooth C program, waveforms. 4e. Interface” DAC to 8051 microcontroller for generating | different waveforms using C program, - Unit WV |5a, Interface temperature sensor | 5.1 Interfacing and programming of LM35 Interfacing of | with $051 microcontroller. with 8051 microcontioiler Sensors and |b. Interface difTerent sensors | 5.2 Interfacing and Programming of motors with | with 8051 microcontroller | Sensors: IR sensor, PIR motion sensor | 8051 along with its simple C) and ultrasonic sensor | program 5.3 Interfacing and Programming of Se. Interface different motors | Motors: DC motor, Stepper motor & with 8051 to operate them | servo motor. _|__ using C programs. [ess soe — Unit-VI_| 6a. List features of ARM7TDMI| 6.1 ARM7TDMI- Introduction, Features Introduction processor and applications. to Advanced | 6b. Compare features of different | 6.2 Different versions of ARM and their | “Processors versions of ARM processors. features only. | Note: To attain the COs and competency, above listed UOs need to be undertaken to achieve the ‘Application Level’ and above of Bloom's ‘Cognitive Domain Taxonomy" 9. SUGGESTED SPECICATION TABLE FORQUESTION PAPER DE! N 7 ane |__Distribution of Theory Marks wut Unit Title ee U A | Total an Level | Level | Level_| Marks 1 | Introduetion to Microcontrollers 08 oa | o 04 08 mM |os1 Microcontroller Programming 06 02 04 08 14 8051 ‘Timers, Interrupts and Serial | 9g a os a 7 Communication = Interfacing of Input/ Output Devices IV with 8051 12 02 04 10 16, y Interfacing of Sensors and motors with | 45 a ts o a VI_| Introduction to Advanced Processors 04 @ |_4 | 0 08 Total) 48 | 12 2 36 | 70 Legends: R=Remember, U=Understand, A=Apply and above (Blog J taxonomy) Note: This specification table provides general guidelines 10 43 ralent Ya-veir learning and to teachers to teach and assess students with respect to fading, mA The actual MSBTE - Final Copy Dt. 10.07.2020 Page 6 of 9 Microcontroller Programming, Course Code: 22471 distribution of marks at different taxonomy levels (of R, U and A) in the question paper may vary from above table. 10, SUGGESTED STUDENT ACTIVITIES, Other than the classroom and laboratory learning, following are the suggested student-related co-curricular activities which can be undertaken to accelerate the attainment of the various ‘outcomes in this course: Students should conduct following activities in group and prepare reports of about 5 pages for each activity, also colleet/record physical evidences for their (student’s) portfolio which will be useful for their placement interviews: a. Download the datasheet of 8051 microcontroller and ARM7TDMI microcontroller and study it, b. Prepare a presentation on role of microcontroller in mechatronies industry. ¢. Collect information from internet, magazines and journals about microcontroller based applications in the field of mechatronics. 4d, Conduct an internet survey on different microcontroller development boards and programmers, add-on modules available in market, ¢, Prepare a quiz on 8051 microcontroller with answer key. £. Undertake the survey of different microcontrollers used in industries. g. Conduct a survey of open source microcontroller boards available in market. 1, SUGGE: These are sample strategies, which the teacher ean use to ac various outcomes in this course: a. Massive open online courses (MOOCs) may be used to teach various topies/sub topi b. ‘Lin item No. 4 does not mean only the traditional lecture method, but different types of teaching methods and media that are to be employed to develop the outcomes. ©. About 15-20% of the topics/sub-topies which is relatively simpler or descriptive in nature is to be given to the students for self-directed learning and assess the development of the COs through classroom presentations (see implementation guideline for details) d. With respect to item No.10, teachers need (o ensure to create opportunities and provisions for co-curricular activities. Guide student(s) in undertaking micro-projects Use flash/animation to explain various concepts. Encourage students to use mobile apps related to the course. Encourage students to refer educational websites related to course to further enhance the concepts learnt Guide students to undertake innovative micro projects. j. Continuously monitor the students’ performance and provide constructive feedback. STED SPECIAL INSTRUCTIONAL STRATEGIES (if any) erate the attainment of the reme 12, SUGGESTED MICRO-PROJE Only one micro-project is planned to be undertaken by a student that needs to be assigned to hinvher in the beginning of the semester. In the first four semesters, the micro-project are group-based. However, in the fifth and sixth semesters. it should be preferably be individually undertaken to build up the skill and confidence in every student to become problem solver so that s/he contributes to the projects of the industry. In special situations where groups have to be formed for micro-projects. the number of students in the group should not exceed three. The micro-project could be industry application based, internet-based, workshop- based, laboratory-based or field-based, Fach miero-project should encompass two or more COs which are in fact, an integration of PrOs. UOs and AJ -student will have to MSBTE - Final Copy Dt. 10.07.2020 Page 7 of 9 fj MKaL Microcontroller Programming Course Code: 22471 seminar presentation of it before submission, The total duration of the micro-project should not be less than 16 (sixteen) student engagement hours during the course. The student ought to submit micro-project by the end of the semester to develop the industry oriented COs. A suggestive list of micro-projects is given here. Similar micro-projects could be added by the concerned faculty: a. Prepare chart on comparative study of different microcontrollers currently used in market. b. Build machine light controller cireuit. ©. Build circuit to blink LEDs in different patterns, 4. Build quiz buzzer system €. Build system for controlling speed of stepper motor f. Build system using LCD to display name of your institute in rolling fashion. 2. Build 8051 based product counter Build obstacle detector using microcontroller Build countdown timer using LED 7-segment display. Build automatic door opening/closing system. . Build 8051 based system for speed control of DC motor. |. Build 8051 based temperature display system using LM35. m, Build distance measurement circuit using ultrasonic sensor, n. Build 8051 based obstacle detector using IR sensor. ©. Build motion sensor circuit using open source microcontroller based board and PIR sensor. p. Prepare report on features of advanced microprocessors. 4. Prepare report on 8051 based line follower ROBOT 13. SUGGESTED LEARNING RESOURCES. Title of Book Author Publication No. 8051 Microcontroller | Muhammad Ali Mazidi, | Pearson Education, New 1 | and Embedded Systems | Janice Gillispie Mazidi, Second Edition using Assembly and C | Rolin D. McKinlay 2007 ISBN: 9788131710265 Microcontrollers MeGiraw-Hill Education, New 2 | Theory and Ajay V. Deshmukh Delhi,201 1, ISBN: 978- Applications | | 0070585959 Cengage Learning, 3” The 805) Edition, New 3 | Microcontrotter Kenneth J.Ayala Delhi,2007ISBN: 978- - 8131502006, Microcontrollers recon . PHI Learning Pvt. Ltd. 2012, 4 | Principles and Ajit Pal pate - ISBN 978-8120343924 Guide ELSEVIER Publication 5 | To The ARM Josheph Yiu 2011 COR -M0 ISBN 978-0-12-385477-3 14, SOFTWARE/LEARNING WEBSITES huipsi/www.youtube.com/wateh?v-iXSXLIn_Xwe bups://www.tutorialspoint.com/microprocessor/microcontrollers_overview.ht m 4. hutps:/hvww.electronieshub.org/8051-microcontrol] ce, htips:/aww.youtube.com/wateh?v=zA AUAZiQIh i Copy Dt. 10.07.2020 Page Sof 9 Microcontroller Programming Course Code: 22471 MSBTE - Final Copy Dt. 10.07.2020 prepos gor cree https://www. youtube.com/watch?v=ShVjGQX7ez8 https:/Awww.keil.com/demo/eval/e5 1 htm bitps://vww.engineersgarage.com/ https://youtu.be/BxxLqTtE19s hitps://youtu.be/MOVIjVAPMVE https://youtu.be/SV3N1SYgVhQ hittps://youtu.be/2AVOxLPKjeA /openlabpro.com/learn/805 |-microcontroller-tutorials/ /www.electronicshub.org/arm-introduction/ https://developer.arm.com/docs/ddi02 1 O/latest/introduction/architecture ARM architecture reference manual : - www.arm.com Page 9 of 9

You might also like