Skip to main content
Skip header

Real-Time Systems in Mechatronics

* Exchange students do not have to consider this information when selecting suitable courses for an exchange stay.

Course Unit Code352-0549/01
Number of ECTS Credits Allocated4 ECTS credits
Type of Course Unit *Choice-compulsory type B
Level of Course Unit *Second Cycle
Year of Study *Second Year
Semester when the Course Unit is deliveredWinter Semester
Mode of DeliveryFace-to-face
Language of InstructionCzech
Prerequisites and Co-Requisites Course succeeds to compulsory courses of previous semester
Name of Lecturer(s)Personal IDName
FOJ74Ing. David Fojtík, Ph.D.
Summary
The course deals with problems and means of real-time systems. It focuses on control elements of real-time systems and ways of programming them. Within the course the students will be acquainted with:
• the properties and the way of programming of FPGA circuits through VHDL language
• the properties and the way of programming of ARM Cortex-M microcontrollers through C/C++
• and the development of applications under real-time operating systems FreeRTOS and CMSIS-RTOS API (RTX).
The course focuses on practical solutions in the programming of simple demonstration tasks.
Learning Outcomes of the Course Unit
The course deals with problems and means of real-time systems. It focuses on control elements of real-time systems and ways of programming them. Within the course the students will be acquainted with the properties and the way of programming of FPGA circuits and ARM Cortex-M microcontrollers included development of applications for real-time operating systems like FreeRTOS and CMSIS-RTOS API (RTX).
Course Contents
1. Introduction to the Real-time systems.
2. FPGAs, properties and programming methods. Introduction to VHDL
3. VHDL, component and architecture, ports, signals and variables.
4. VHDL, sequence flow control.
5. VHDL, timing, buttons, tuning and circuit simulation.
6. Introduction to MCU ARM Cortex-M4 and STM32 development tools
7. General-purpose input/output (GPIO) and System Clock Configuration (SYSCLK).
8. Interrupt Management and Configuration, External Interrupt, NVIC, EXTI, ISR.
9. Basic work with timers and counters, timer as source of periodic interruption, SysTick.
10. Advanced timer operations, PWM programming.
11. Introduction to serial communication USART, I2C, SPI.
12. FreeRTOS and RTX, Thread Management and Synchronization.
13. FreeRTOS and RTX, Memory and Queue Management.
14. FreeRTOS and RTX, Interrupt and Timing Management.
Recommended or Required Reading
Required Reading:
LAMERES, Brock J. Introduction to logic circuits & logic design with VHDL. New York, NY: Springer Science+Business Media, 2016. ISBN 9783319341941.
YIU, Joseph. The definitive guide to ARM® Cortex®-M3 and Cortex-M4 processors. Third edition. Amsterdam: Elsevier, Newnes, 2014. ISBN 0124080820.
BARRY, Richard. Using the FreeRTOS real time Kernel: Richard Barry. Bristol: Real Time Engineers, c2010. ISBN 978-1-4461-6914-8.
KRÁL, Jiří. Řešené příklady ve VHDL: hradlová pole FPGA pro začátečníky. Praha: BEN - technická literatura, 2010. ISBN 978-80-7300-257-2.
VÁŇA, Vladimír. ARM pro začátečníky. Praha: BEN - technická literatura, 2009. ISBN 978-80-7300-246-6.
BARRY, Richard. Using the FreeRTOS real time Kernel: Richard Barry. Bristol: Real Time Engineers, c2010. ISBN 978-1-4461-6914-8.
Recommended Reading:
LAMERES, Brock J. Introduction to logic circuits & logic design with VHDL. New York, NY: Springer Science+Business Media, 2016. ISBN 9783319341941.
YIU, Joseph. The definitive guide to ARM® Cortex®-M3 and Cortex-M4 processors. Third edition. Amsterdam: Elsevier, Newnes, 2014. ISBN 0124080820.
BARRY, Richard. Using the FreeRTOS real time Kernel: Richard Barry. Bristol: Real Time Engineers, c2010. ISBN 978-1-4461-6914-8.
STMICROELECTRONICS. PM0214 Programming manual: STM32F3 Series, STM32F4 Series, STM32L4 Series and STM32L4+ Series Cortex®M4 programming manual. GENEVA, Switzerland, 2017. Dostupné také z: http://www.st.com/resource/en/programming_manual/dm00046982.pdf
STMICROELECTRONICS. RM0090 Reference manual. GENEVA, Switzerland, 2017. Dostupné také z: http://www.st.com/resource/en/reference_manual/dm00031020.pdf
SILBERSCHATZ, Abraham., Peter B. GALVIN a Greg. GAGNE, 2013]. Operating system concepts. Ninth edition. Hoboken, NJ: Wiley. ISBN 978-1-118-06333-0.
GMBH, ARM Germany, 2017. Getting Started with MDK Version 5. Grasbrunn, Germany. Dostupné také z: http://www2.keil.com/docs/default-source/default-document-library/mdk5-getting-started.pdf
Planned learning activities and teaching methods
Lectures, Tutorials
Assesment methods and criteria
Task TitleTask TypeMaximum Number of Points
(Act. for Subtasks)
Minimum Number of Points for Task Passing
Exercises evaluation and ExaminationCredit and Examination100 (100)51
        Exercises evaluationCredit 
        ExaminationExamination100 51