Course detail

Microcontroller Applications

FEKT-MMIAAcad. year: 2013/2014

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

C language: constants and operators, control structures, preprocessor, functions, memory classes, pointers, arrays, strings, struct, union, enum
C language: bit operations, inline, volatile, naked, state machines, Makefile and separate compilation
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
AVR core: core and memories, clock sources, power saving modes, WDT, BOR, interrupts, I/O ports
AVR programming: 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
RTOS: cooperative RTOS, preemptive FreeRTOS
peripherals: buttons, normal LED, multiplexed LED, rotary encoder, text display, beeper, shift registers
peripherals: graphic display (KS0108, vector graphics, TV screen)
peripherals: DC motor, bridges, stepper motor, servo, BLDC
source code: Doxygen, Subversion

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, optional specialized

  • Programme EEKR-M1 Master's

    branch M1-EST , 1. year of study, summer semester, optional specialized

  • Programme EEKR-CZV lifelong learning

    branch ET-CZV , 1. year of study, summer semester, optional specialized

Type of course unit

 

Lecture

26 hours, optionally

Teacher / Lecturer

Syllabus

1. AVR GCC special functions, AVR bootloader.
2. Variables (global, local ...), memory placement
3. Using the pointers, arrays, state machine, in processor programming.
4. Functions, calls, function pointers, tables.
5. RTOS
6. Communication busses usable by microprocessor.
7. Communication with external sensors (pressure, temperature...).
8.. Timers/counters, proper time measurement. PWM.
9. LCD character/graphics displays, controllers, usage. Basics of vector graphic.
10. Power down modes.
11. DC motors and stepper motors.
12. Trends in microcontrollers development, 16 and 32 bit processors.
13. External lecture.

Exercise in computer lab

39 hours, compulsory

Teacher / Lecturer

Syllabus

AVR GCC special functions, AVR bootloader. Using the pointers, arrays, state machine, in processor programming. RTOS. Communication busses usable by microprocessor. Communication with external sensors (pressure, temperature...). Timers/counters, proper time measurement. PWM. LCD character/graphics displays, controllers, usage. Basics of vector graphic. DC motors and stepper motors.