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
Number of ECTS credits
Mode of study
Guarantor
Department
Learning outcomes of the course unit
- 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
- 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
Planned learning activities and teaching methods
Assesment methods and criteria linked to learning outcomes
Course curriculum
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
Aims
Specification of controlled education, way of implementation and compensation for absences
Recommended optional programme components
Prerequisites and corequisites
Basic literature
Recommended reading
Classification of course in study plans
Type of course unit
Lecture
Teacher / Lecturer
Syllabus
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
Teacher / Lecturer
Syllabus