Microcontrollers (MECE228) Course Detail

Course Name Course Code Season Lecture Hours Application Hours Lab Hours Credit ECTS
Microcontrollers MECE228 4. Semester 3 2 0 4 5
Pre-requisite Course(s)
N/A
Course Language English
Course Type Compulsory Departmental Courses
Course Level Bachelor’s Degree (First Cycle)
Mode of Delivery Face To Face
Learning and Teaching Strategies .
Course Coordinator
Course Lecturer(s)
  • Asst. Prof. Dr. Vadi Su YILMAZ
Course Assistants
Course Objectives This course aims to introduce the basics of embedded control. Students will have a sound knowledge on: microcontrollers, microcontroller architecture, assembly programming, microcontroller peripherals, high-level embedded programming and real-time operating systems. Students will have the chance to experience hands-on exercises to practice microcontroller programming and interfacing. Students will work on several projects to understand the important role of microcontrollers in real world applications.
Course Learning Outcomes The students who succeeded in this course;
  • 1. to write simple programs in assembly language
  • 2. to write C programs for utilizing microcontroller resources such as I/O ports, timers, capture-compare-pwm modules, analog to digital converters, interrupts
  • 3. to use microcontrollers as building blocks in electronic systems
  • 4. to run, and experimentally validate and debug code written in assembly language for a microcontroller system
Course Content Basic microcontroller structure, memory organisation and addressing, addressing modes, assembly language programming, C programming, interrupts, interrupt programming, interfacing with input and display devices, timers, capture, compare and PWM operations, serial communication, I2C interface, A/D conversion.

Weekly Subjects and Releated Preparation Studies

Week Subjects Preparation
1 Memory systems, Read-write, Read-only Memories, Arithmetic logic unit Glance at Lecture Notes 1
2 Simplified PIC18 microcontroller block diagram, introduction to microcontroller operation, Banked memory addressing Lab Experiment: Using MPLAB and ICD2 programmer/debugger Review last week and Glance this week’s topics from the lecture
3 Introduction to assembly language Lab Experiment: Interfacing LEDs and seven segment displays Review last week and Glance this week’s topics from the lecture
4 Introduction to assembly language Lab Experiment: Interfacing LEDs and seven segment displays Review last week and Glance this week’s topics from the lecture
5 Discrete I/O ports Lab Experiment: Building a 2-digit adder-subtractor. Review last week and Glance this week’s topics from the lecture
6 Conditional Branching and loops Lab Experiment: Timers and interrupts Review last week and Glance this week’s topics from the lecture
7 Indirect memory adressing Lab Experiment: Capture operation, building a tocometer Review last week and Glance this week’s topics from the lecture
8 Subroutine calling instructions and the program memory stack Lab Experiment: PWM operation, fan motor speed control Review last week and Glance this week’s topics from the lecture
9 Timers, Programming timers in assembly language Laboratory hands-on examination Review last week and Glance this week’s topics from the lecture
10 Timer interrupts, Programming timers in C language Lab Experiment: ADC, interfacing a sensor Review last week and Glance this week’s topics from the lecture
11 Compare operation, Programming the compare module in C language Lab Experiment: Builing a fan speed controller with temperature feedback and display Review last week and Glance this week’s topics from the lecture
12 Capture operation, Programming the Capture module in C language Lab Experiment: Builing a model elevator Review last week and Glance this week’s topics from the lecture
13 PWM operation, Programming the PWM module in C language Lab Experiment: Builing a model elevator (cont’d) Review last week and Glance this week’s topics from the lecture
14 Analog to digital and digital to analog conversion, programming ADC module in C language Overview of other microcontroller types and brands Laboratory hands-on examination Review last week and Glance this week’s topics from the lecture
15 Exam Week
16 Exam Week

Sources

Course Book 1. Mazidi M. A., McKinlay R. D., Causey D., PIC Microcontroller and Embedded Systems-Using Assembly and C for PIC18, Pearson, 2008.

Evaluation System

Requirements Number Percentage of Grade
Attendance/Participation - -
Laboratory 14 40
Application - -
Field Work - -
Special Course Internship - -
Quizzes/Studio Critics - -
Homework Assignments - -
Presentation - -
Project - -
Report - -
Seminar - -
Midterms Exams/Midterms Jury 2 30
Final Exam/Final Jury 1 30
Toplam 17 100
Percentage of Semester Work 70
Percentage of Final Work 30
Total 100

Course Category

Core Courses X
Major Area Courses
Supportive Courses
Media and Managment Skills Courses
Transferable Skill Courses

The Relation Between Course Learning Competencies and Program Qualifications

# Program Qualifications / Competencies Level of Contribution
1 2 3 4 5
1 Adequate knowledge in mathematics, science and engineering subjects pertaining to the relevant discipline; ability to use theoretical and applied knowledge in these areas in the solution of complex engineering problems. X
2 Ability to formulate, and solve complex mechatronics engineering problems; ability to select and apply proper analysis and modeling methods for this purpose. X
3 Ability to design a complex mechatronics engineering system, process, device or product under realistic constraints and conditions, in such a way as to meet the desired result; ability to apply modern design methods for this purpose.
4 Ability to select and use modern techniques and tools needed for analyzing and solving complex problems encountered in mechatronics engineering and robot technology practices; ability to employ information technologies effectively. X
5 Ability to design and conduct experiments, gather data, analyze and interpret results for investigating complex mechatronics engineering and robot technology problems or research questions. X
6 Ability to work efficiently in intra-disciplinary and multi-disciplinary teams; ability to work individually.
7 Ability to communicate effectively, both orally and in writing; knowledge of a minimum of one foreign language; ability to write effective reports and comprehend written reports, prepare design and production reports, make effective presentations, and give and receive clear and intelligible instructions.
8 Awareness of the need for lifelong learning; ability to access information, to follow developments in science and technology, and to continue to educate him/herself
9 a-) Knowledge on behavior according to ethical principles, professional and ethical responsibility b-) Knowledge on standards used in engineering practices.
10 a-) Knowledge about business life practices such as project management, risk management, and change management b-) Awareness in entrepreneurship, innovation; knowledge about sustainable development.
11 Knowledge about the global and social effects of engineering practices on health, environment, and safety, and contemporary issues of the century reflected into the field of engineering; awareness of the legal consequences of engineering solutions.
12 Competency on defining, analyzing and surveying databases and other sources, proposing solutions based on research work and scientific results and communicate and publish numerical and conceptual solutions in the field of mechatronics engineering.
13 Consciousness on the environment and social responsibility, competencies on observation, improvement and modify and implementation of projects for the society and social relations and be an individual within the society in such a way that planning, improving or changing the norms with a criticism.

ECTS/Workload Table

Activities Number Duration (Hours) Total Workload
Course Hours (Including Exam Week: 16 x Total Hours) 14 3 42
Laboratory 14 2 28
Application
Special Course Internship
Field Work
Study Hours Out of Class 14 2 28
Presentation/Seminar Prepration
Project
Report
Homework Assignments
Quizzes/Studio Critics
Prepration of Midterm Exams/Midterm Jury 2 10 20
Prepration of Final Exams/Final Jury 1 10 10
Total Workload 128