Course detail

Microcontrollers for Advanced Applications

FEKT-MMIAAcad. year: 2016/2017

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.

Language of instruction

Czech

Number of ECTS credits

6

Mode of study

Not applicable.

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

Prerequisites

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.

Co-requisites

Not applicable.

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).

Course curriculum

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)

Work placements

Not applicable.

Aims

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.

Recommended optional programme components

Not applicable.

Prerequisites and corequisites

Not applicable.

Basic literature

HEROUT, P. Učebnice jazyka C. České Budějovice: KOPP, 1994 (CS)

Recommended reading

Not applicable.

Classification of course in study plans

  • Programme EEKR-M Master's

    branch M-EST , 1 year of study, summer semester, elective specialised

  • Programme EEKR-M Master's

    branch M-EST , 1 year of study, summer semester, elective specialised

  • Programme AUDIO-P Master's

    branch P-AUD , 1 year of study, summer semester, elective interdisciplinary

  • Programme EEKR-CZV lifelong learning

    branch EE-FLE , 1 year of study, summer semester, elective specialised

Type of course unit

 

Lecture

26 hod., optionally

Teacher / Lecturer

Syllabus

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)

Exercise in computer lab

39 hod., compulsory

Teacher / Lecturer

Syllabus

Subversion, C style, pointers, C for AVR, Makefile
ISR, button dedouncing, timers
LCD display and UART
LED multiplexed display, rotary encoder
LED shift register, snake game
cooperative RTOS, combining C with assembly
A/D converter and bargraph, buzzer
temperature sensors DS18B20 and KTY81
EEPROM and I2C bus
real time clock and sleep modes