Microcontrollers for Advanced Applications
FEKT-MMIAAcad. year: 2017/2018
Students learn the advanced features of the C language, its use in microcontrollers programming, and the details of architecture and peripherals of Atmel AVR 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 AVR microcontrollers, including the topics of source code management and documentation.
Learning outcomes of the course unit
The graduate is able:
- describe different AVR microcontroller blocks including advanced functions
- create firmware in C language including AVR-GCC specialties
- discuss different types of displays for microcontroller applications
- discuss advantages and disadvantages of different busses for microcontrollers
- design connection of different microcontroller peripherals
- 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.
Recommended optional programme components
Recommended or required reading
HEROUT, P. Učebnice jazyka C. České Budějovice: KOPP, 1994 (CS)
Planned learning activities and teaching methods
Teaching methods depend on the type of course unit as specified in the article 7 of BUT Rules for Studies and Examinations.
Assesment methods and criteria linked to learning outcomes
Students can receive a maximum of 40 points for active work in computer labs. The final exam consists of a written test (up to 30 points) and a practical hands-on part (up to 30 points).
Language of instruction
source code: Doxygen, Subversion; coding style
C language: constants and operators, control structures, preprocessor, functions, memory classes, pointers
C language: arrays, strings, struct, union, enum, bit operations, inline, volatile, naked, state machines
C language: introduction to the avr-libc library, GCC, C for AVR (ISR, PROGMEM etc.), printf and stdout, combination with ASM
C language: specialties in the avr-libc library, libraries for LCD, UART, I2C, encryption
Embedded systems design principles, RTOS: cooperative RTOS, preemptive FreeRTOS
AVR core: core and memories, clock sources, power saving modes, WDT, BOR, interrupts, I/O ports; JTAG, ISP, bootloader, fuses, signature, calibration
AVR peripherials: counter/timer (SysTick, beeper, PWM etc.), RTC, ADC
AVR communication: UART (RS232/485), SPI, I2C, 1-wire
peripherals: buttons, normal LED, multiplexed LED, rotary encoder, text display, beeper, shift registers
peripherals: graphic display (KS0108, 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 some advanced procedures for AVR microcontrollers, and learn to design the hardware and firmware for the most common peripherals.
Specification of controlled education, way of implementation and compensation for absences
The content and forms of instruction in the evaluated course are specified by a regulation issued by the lecturer responsible for the course and updated for every academic year.
Classification of course in study plans
- Programme AUDIO-P Master's
branch P-AUD , 1. year of study, summer semester, 6 credits, optional interdisciplinary
- Programme EEKR-M1 Master's
branch M1-EST , 1. year of study, summer semester, 6 credits, optional specialized
- Programme EEKR-CZV lifelong learning
branch ET-CZV , 1. year of study, summer semester, 6 credits, optional specialized