- 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 | Gains accumulated knowledge on mathematics, science and mechatronics engineering; develops an ability to apply the theoretical and applied knowledge of mathematics, science and mechatronics engineering to model and analyze mechatronics engineering problems. | 4 |
| PO2 | Develops ability to differentiate, identify, formulate, and solve complex engineering problems; develops ability to select and implement proper analysis, modeling and implementation techniques for the identified engineering problems. | 4 |
| PO3 | Develops ability to design a complex system, product, component or process to meet the requirements under realistic constraints and conditions; develops ability to apply contemporary design methodologies; an ability to implement effective engineering creativity techniques in mechatronics engineering. (Realistic constraints and conditions includes economics, environment, sustainability, producibility, ethics, human health, social and political problems.) | 4 |
| PO4 | Gains ability to develop, select and use modern techniques, skills and tools for application of mechatronics engineering and robot technologies; develops ability to use information and communications technologies effectively. | 4 |
| PO5 | Develops ability to design experiments, perform experiments, collect and analyze data and assess the results for investigated problems on mechatronics engineering and robot technologies. | 0 |
| PO6 | Develops ability to work effectively on single disciplinary and multi-disciplinary teams; gains ability for individual work; develops ability to communicate and collaborate/cooperate effectively with other disciplines and scientific/engineering domains or working areas, ability to work with other disciplines. | 0 |
| PO7 | Develops ability to express creative and original concepts and ideas orally or written effectively, in Turkish and English language. | 0 |
| PO8 | Develops ability to reach information on different subjects required by the wide spectrum of applications of mechatronics engineering, criticize, assess and improve the knowledge-base; gains consciousness on the necessity of improvement and sustainability as a result of life-long learning; gains ability for monitoring the developments on science and technology; develops awareness on entrepreneurship, innovative and sustainable development and ability for continuous renovation. | 0 |
| PO9 | Gains ability to be conscious on professional and ethical responsibility, competency on improving professional consciousness and contributing to the improvement of profession itself. | 0 |
| PO10 | Gains knowledge on the applications at business life such as project management, risk management and change management and competency on planning, managing and leadership activities on the development of capabilities of workers who are under his/her responsibility working around a project. | 0 |
| PO11 | Gains knowledge about the global, societal and individual effects of mechatronics engineering applications on the human health, environment and security and cultural values and problems of the era; develops consciousness on these issues and develops awareness of legal results of engineering solutions. | 0 |
| PO12 | Gains the competence 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. | 0 |
| PO13 | Gains conciousness on the environmental and social responsibility and develops conciousness to be an individual in society. Gains ability to develop and implement projects and asses them with a critical view for their social implications and gains ability to change the related norms if necessary. | 0 |
| PO14 | Gains the competence on developing strategy, policy and application plans on the mechatronics engineering and evaluating the results in the context of quality standarts. | 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)