- Semester
- Area Elective
- Type
- Elective
- Credit
- 4
- ECTS
- 7
- Language
- İngilizce
- Contact hours
- Lecture 3 · Practice 2 · Lab 0
On this page
Course Objective
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 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.
Prerequisites
(CMPE102 veya CMPE113)
Delivery and Teaching Methods
- Face to face
- Lecture
- Experiment
Learning Outcomes and Contribution to Programme Outcomes
- 1Ability to write simple programs in assembly language (1,3,11)
- 2Ability 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)
- 3Be able to use microcontrollers as building blocks in electronic systems. (5)
- 4Ability to run, and experimentally validate and debug code written in assembly language for a microcontroller system (1,2,11)
- 5Ability to run, and experimentally validate and debug code written in C language for a microcontroller system (1,2,11)
- 6Ability to describe recent microcontroller types and brands and their application fields (9,10)
Contribution level ranges from 0 (none) to 5 (highest).
| PO | Programme outcome | Contribution level |
|---|---|---|
| PO1 | Develops the ability to apply advanced knowledge of mathematics, science, and engineering to the analysis, design, and optimization of complex systems. | 5 |
| PO2 | Implements long-term research and development studies in the major fields of Electrical and Electronics Engineering. | 5 |
| PO3 | Use modern engineering tools, techniques and facilities in design and other engineering applications. | 5 |
| PO4 | Does research actively on innovation and entrepreneurship. | 0 |
| PO5 | Develops the ability to effectively communicate and present research outcomes. | 0 |
| PO6 | Keeps up with recent advancements in science and technology and effectively accesses relevant information. | 0 |
| PO7 | Will have professional and ethical responsibility. | 0 |
| PO8 | Develops ability to effectively communications in both Turkish and English. | 0 |
| PO9 | Develops ability on project management. | 0 |
| PO10 | Develops the ability to work successfully at project teams in interdisciplinary fields. | 0 |
Weekly Topics
| Week | Topic |
|---|---|
| 1 | Memory systems, Read-write, Read-only Memories, Arithmetic logic unit |
| 2 | Simplified PIC18 microcontroller block diagram, introduction to microcontroller operation, Banked memory addressing Lab Experiment: Using MPLAB and ICD2 programmer/debugger |
| 3 | Introduction to assembly language Lab Experiment: Interfacing LEDs and seven segment displays |
| 4 | Introduction to assembly language Lab Experiment: Interfacing LEDs and seven segment displays |
| 5 | Discrete I/O ports Lab Experiment: Building a 2-digit adder-subtractor. |
| 6 | Conditional Branching and loops Lab Experiment: Timers and interrupts |
| 7 | Indirect memory adressing Lab Experiment: Capture operation, building a tocometer |
| 8 | Subroutine calling instructions and the program memory stack Lab Experiment: PWM operation, fan motor speed control |
| 9 | Timers, Programming timers in assembly language Laboratory hands-on examination |
| 10 | Timer interrupts, Programming timers in C language Lab Experiment: ADC, interfacing a sensor |
| 11 | Compare operation, Programming the compare module in C language Lab Experiment: Builing a fan speed controller with temperature feedback and display |
| 12 | Capture operation, Programming the Capture module in C language Lab Experiment: Builing a model elevator |
| 13 | PWM operation, Programming the PWM module in C language Lab Experiment: Builing a model elevator (cont’d) |
| 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 |
| 15 | Fİnal examination week |
| 16 | Fİnal examination week |
Assessment
| Method | Number | Weight |
|---|---|---|
| Midtermexam | 2 | %30 |
| Lab | 13 | %40 |
| Finalexam | 1 | %30 |
| Total | %100 | |
ECTS Workload
| Activity | Number | Duration (hours) | Total |
|---|---|---|---|
| Lecture Hours (Including exam week: 16 x lecture hours) | 16 | 3 | 48 |
| Laboratory | 6 | 2 | 12 |
| Assignments | 7 | 11 | 77 |
| Midterm Exam Preparation | 2 | 10 | 20 |
| Final Exam Preparation | 1 | 20 | 20 |
| Total workload (hours) | 177 | ||
| ECTS equivalent (workload / 30) | 5.9 | ||
Resources
- Textbook PIC Microcontroller and Embedded Systems Using Assembly and C for PIC18, Mazidi M. A., McKinlay R. D., Causey D.
Instructors
- Asst. Prof. Dr. Ali HOSSEINGHOLIPOORASL (Lecturer)