Microcontrollers (EE222) Course Detail

Course Name Course Code Season Lecture Hours Application Hours Lab Hours Credit ECTS
Microcontrollers EE222 4. Semester 3 2 0 4 7
Pre-requisite Course(s)
(CMPE102 veya CMPE113)
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 Lecture, Experiment.
Course Coordinator
Course Lecturer(s)
  • Asst. Prof. Dr. Ali HOSSEINGHOLIPOORASL
Course Assistants
Course Objectives Basic microcontroller structure. Memory organization 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
Course Learning Outcomes The students who succeeded in this course;
  • Ability to write simple programs in assembly language (1,3,11)
  • Ability to write C programs for utilizing microcontroller resources such as I/O ports, timers, capture-compare-pwm modules, analog to digital converters, interrupts (1,3,11)
  • Be able to use microcontrollers as building blocks in electronic systems. (5)
  • Ability to run, and experimentally validate and debug code written in assembly language for a microcontroller system (1,2,11)
  • Ability to run, and experimentally validate and debug code written in C language for a microcontroller system (1,2,11)
  • Ability to describe recent microcontroller types and brands and their application fields (9,10)
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 Fİnal examination week Review last week and glance at this week’s topics from related book chapter
16 Fİnal examination week Review last week and glance at this week’s topics from related book chapter

Sources

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

Evaluation System

Requirements Number Percentage of Grade
Attendance/Participation - -
Laboratory 13 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 16 100
Percentage of Semester Work 100
Percentage of Final Work 0
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 Possesses sufficient knowledge in mathematics, natural sciences, and discipline-specific topics in Electrical and Electronics Engineering; uses this theoretical and practical knowledge to solve complex engineering problems. X
2 Identifies, defines, formulates, and solves complex engineering problems; selects and applies appropriate analytical and modeling methods for this purpose. X
3 Designs complex systems, processes, devices, or products under realistic constraints and conditions to meet specific requirements; applies modern design methods for this purpose. (Realistic constraints and conditions may include factors such as economy, environmental issues, sustainability, manufacturability, ethics, health, safety, social and political issues, depending on the nature of the design.) X
4 Selects and uses modern techniques and tools necessary for the analysis and solution of complex problems encountered in engineering applications; effectively uses information technologies. X
5 Designs experiments, conducts tests, collects data, analyzes, and interprets results to investigate complex engineering problems or discipline-specific research topics. X
6 Works effectively in disciplinary and interdisciplinary teams; develops the ability to work independently. X
7 Communicates effectively in both written and verbal forms; possesses proficiency in at least one foreign language; writes effective reports, understands written reports, prepares design and production reports, delivers effective presentations, and gives and receives clear instructions. X
8 Recognizes the need for lifelong learning; accesses information, follows developments in science and technology, and continuously renews oneself. X
9 Acts in accordance with ethical principles, assumes professional and ethical responsibility, and possesses knowledge about the standards used in engineering practices. X
10 Possesses knowledge about professional practices such as project management, risk management, and change management; gains awareness of entrepreneurship and innovation; understands the principles of sustainable development. X
11 Understands the universal and societal impacts of engineering practices on health, environment, and safety; recognizes the contemporary issues reflected in the field of engineering and understands the legal implications of engineering solutions. X

ECTS/Workload Table

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