Course details
Microprocessors and Embedded Systems
IMPe Acad. year 2016/2017 Summer semester 6 credits
Embedded systems, introduction, applications. Microcontroller architecture. Memory subsystem. Programmers model, programming in assembly language. Instruction and directivies. Stack utilization. Interrupt subsystem and its programming. Polling loop versus interrupts. On chip peripheral devices and their programming: system clock generator, timer, SCI, IIC, SPI, USB interfaces, KBI module, AD converter, RTC - real-time clock module, low-power modes. Programming techniques for embedded systems in C language.
Guarantor
Language of instruction
Completion
Time span
- 26 hrs lectures
- 6 hrs exercises
- 8 hrs laboratories
- 12 hrs projects
Assessment points
- 55 pts final exam (40 pts written part, 15 pts test part)
- 15 pts mid-term test (test part)
- 16 pts labs
- 14 pts projects
Department
Subject specific learning outcomes and competences
- Students are familiar with general structure of microcontroller and with the techniques of embedded systems design.
- Students are capable to design and debug the routines and initialization routines for typical on-chip peripherals.
- They are able to design and implement the control part of a simple embedded application according to various constraints such as performance, power, number of pins etc.
- They are skilled in utilizing of basic debugging techniques for the application programs written in assembly language or C language.
Learning objectives
To give the students the knowledge microcontroller architectures. To acquaint them with operational principles and configuring/programming of individual subsystems namely CPU programming model, memory, interrupt subsystem, common and watchdog timers, real-time module RTC, low-power modes, SCI, SPI, IIC, USB interfaces, KBI module, AD converter. To learn the instruction set architecture and principles of programming and debugging of basic assembly applications. Make students familiar with basic rules and programming techniques in a high-level C language as well as with embedded system design.
Recommended prerequisites
- Machine Level Programming (ISU)
- Design of Computer Systems (INP)
Prerequisite knowledge and skills
To be familiar with the architecture and structure of scalar CPU, computer and with programming in assembly language. The basic knowledge of programming in the C language.
Study literature
- Materials for lectures, labs and exercises.
- J.W. Valvano, Embedded Systems: Real Time Interfacing to ARM Cortex-M Microcontrollers, ISBN 978-1463590154, 2017.
- K60 Sub-Family Reference Manual, available on-line: https://www.nxp.com/docs/en/reference-manual/K60P144M100SF2V2RM.pdf
- ARM Cortex-M4 Processor Technical Reference Manual, available on-line: http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.100166_0001_00_en/index.html
Fundamental literature
- Study materials published by Freescale/NXP.
- KL05 Sub-Family Reference Manual, available on-line: https://www.nxp.com/docs/en/reference-manual/KL05P48M48SF1RM.pdf
- Cortex-M0+ Devices Generic Users Guide, available on-line: http://infocenter.arm.com/help/index.jsp?topic=/com.arm.doc.dui0662b/index.html
- Predko, M.: "Handbook of Microcontrollers", McGraw-Hill, ISBN 0079137164, 1998.
- J.W.Valvano, Embedded Systems: Introduction to ARM Cortex-M Microcontrollers, Volume 1, ISBN 978-1477508992, 2014.
Syllabus of lectures
- Introduction into Embedded systems.
- HC08/HCS08 on-chip CPU and peripherals.
- Event detection by interrupts polling loops.
- SCI, SPI, IIC interfaces.
- USB interface.
- TPM timer. System clock, RTC and COP modules.
- A/D sampling, button service using KBI.
- Programming embedded applications in C.
- Embedded systems for critical applications control.
- Design for low power.
- Embedded case studies.
- Microcontroller application in fuzzy systems.
Syllabus of laboratory exercises
- Communication via the SCI interface
- Button service by means of the KBI module
- PWM signal generator based on the TPM module
- AD converter and its application
Progress assessment
Study evaluation is based on marks obtained for specified items. Minimimum number of marks to pass is 50.
No conditions are applied.
Controlled instruction
Following activities are monitored: attendance and activity during lectures, exercises, laboratories and project-related works. All works have to be submitted before the deadlines; late submissions will be evaluated by 0 points.