Course detail

Microcontrollers and Embedded Systems

FEKT-MPC-MKSAcad. year: 2020/2021

Students learn the advanced features of the C language, its use in microcontrollers programming, and the details of ARM Cortex-M architecture and peripherals of STMicroelectronics STM32 MCUs. They learn to design and program drivers for the most common peripherals such as button inputs, multiplex displays, graphic displays, shift registers, temperature sensors, etc. The course shows the procedures necessary for the design of complex applications with STM32 microcontrollers, including the topics of source code management and documentation.

Learning outcomes of the course unit

The graduate is able: (a) describe the structure of ARM Cortex-M core; (b) describe basic blocks of STMicroelectronics STM32; (c) create firmware in C language including GCC specialties; (d) design and use connection of selected microcontroller peripherals; (e) design and assemble own device with microcontroller including firmware.


Attendant should be able to: - describe main microcontroller blocks and their function - design simple C program - design program for setup of basic peripherals, interrupt control and separate functions and function calls - analyze simple electronics circuits with passive parts and transistors and choose corresponding way of connecting to the microprocessor. The subject knowledge on the Bachelor's degree level is requested.


Not applicable.

Recommended optional programme components

Not applicable.

Recommended or required reading

HEROUT, P. Učebnice jazyka C. České Budějovice: KOPP, 1994. (CS)
MARTIN, T. The Insider's Guide To The STM32 ARM Based Microcontroller. Hitex Ltd., UK, 2008. (EN)

Planned learning activities and teaching methods

Not applicable.

Assesment methods and criteria linked to learning outcomes

Not applicable.

Language of instruction


Work placements

Not applicable.

Course curriculum

1. C language: constants and operators, control structures, preprocessor, functions, memory classes, pointers.
2. C language: arrays, strings, struct, union, enum, bit operations, inline, volatile, naked, state machines.
3. C language: introduction to libc libraries, arm-none-eabi-gcc compiler, printf and stdout.
4. C language: specialties in libc and gcc, combination with ASM, basic libraries.
5. Source code: Doxygen, Subversion; coding style.
6. Embedded systems design principles, introduction to RTOS, cooperative RTOS.
7. ARM Cortex-M core: architecture, features, NVIC, GPIO.
8. STM32 peripherials: counter/timer (SysTick, tone generator, PWM etc.), RTC, ADC, DAC.
9. STM32 communication: UART (RS232/485), SPI, I2C, 1-wire, DMA.
10. High-level firmware development, middlewares, STM32CubeMX tool.
11. Preemptive operating system FreeRTOS, application debugging over SWD.
12. Peripherals: buttons, normal LED, multiplexed LED, rotary encoder, text display, beeper, shift registers.
13. Peripherals: graphic display (drivers, vector graphics, TV screen); motors (DC motor, bridges, stepper motor, servo, BLDC).


The aim of the course is to deepen students' knowledge of microprocessor technology and programming in C, to familiarize them with ARM Cortex-M core, with STMicroelectronics STM32 MCUs, and learn to design the hardware and firmware for the most common peripherals.

Classification of course in study plans

  • Programme MPC-AUD Master's

    specialization AUDM-TECH , 1. year of study, winter semester, 6 credits, compulsory-optional
    specialization AUDM-ZVUK , 1. year of study, winter semester, 6 credits, compulsory-optional

  • Programme MPC-EKT Master's, 1. year of study, winter semester, 6 credits, compulsory

Type of course unit



26 hours, optionally

Teacher / Lecturer

Exercise in computer lab

39 hours, compulsory

Teacher / Lecturer