Course detail

Microprocessor Technics for Drives

FEKT-BPC-MTPAcad. year: 2024/2025

Students are introduced to the applications of microcomputer technology in the measurement and control of electric drives. Basic knowledge of digital technology and a basic level of English are assumed. Students will expand their knowledge of digital circuits and their applications. They work independently with development systems for STM32 series microcomputers and program them in C.

Language of instruction

Czech

Number of ECTS credits

6

Mode of study

Not applicable.

Entry knowledge

A student enrolling in the course should be able to:     - explain the principles of logic circuits and the representation of a logic state using voltage levels     - design algorithms and implement simple programs in any programming language     - have a command of the English language at the level required to study microprocessor manuals and help for the programming tools used       Work in the laboratory is contingent upon a valid "person of instruction" qualification, which students must obtain prior to beginning instruction. Information on this qualification is given in the Dean's Guideline on Student Familiarity with Safety Regulations.

Rules for evaluation and completion of the course

Active participation in laboratory exercises, independent projects and an exam are assessed. The final exam is in the form of a test. The definition of supervised teaching and the method of its implementation are defined in the annually updated decree of the course guarantor. Laboratory teaching is compulsory. 

Aims

Students are introduced to the basics of digital control using single-chip microcomputers and the basics of programming in C. A written examination verifies that the graduate of the course is able to: - Explain the principles of microprocessors at the level required for assembly programming and explain the related concepts: register, memory, program, CPU, program counter, linker, compiler, debugger, interrupt, interrupt handler, interrupt vector, interrupt flag, peripherals, stack, stack pointer, status register, conditional jump, - Explain the principles of peripherals for controlling electric drives with transistor inverters (GPIO, PWM, ADC, Timer, SPI, SCI) - apply the C language in single-chip microprocessor programs Students will learn in laboratory exercises and the ability is verified through assessed individual projects: - use development tools to create and debug microprocessor applications, - implement C language programs for real-time control, - set up and use microprocessor peripherals to measure analogue signals, measure the frequency of pulse signals, generate PWM.

Study aids

Not applicable.

Prerequisites and corequisites

Not applicable.

Basic literature

Knobloch J.; Mikroprocesorová technika - učební text (pracovní verze); Elektronická skripta (CS)

Recommended reading

Noviello Carmine; Mastering STM32 (CS)

Classification of course in study plans

  • Programme BPC-AUD Bachelor's

    specialization AUDB-TECH , any year of study, summer semester, elective

  • Programme BPC-EKT Bachelor's, any year of study, summer semester, elective
  • Programme BPC-TLI Bachelor's, any year of study, summer semester, elective
  • Programme BPC-SEE Bachelor's, 3. year of study, summer semester, compulsory-optional

Type of course unit

 

Lecture

13 hours, optionally

Teacher / Lecturer

Syllabus

1. Introduction, basic concepts, microprocessor, register, memory, ALU.     2. Program in C language on single chip microprocessors, compiler, linker.     3. Number systems, data types, logical operations - bitwise, on expressions.     4. Stack, function calls, local vs. global variables.     5. Control structures in C language, connection with assembler.     6. Interrupts, interrupt vector, interrupt sources, interrupt handler functions.     7. Fixed-point arithmetic, programming functions for working with fractional arithmetic.     8. Peripherals - GPIO (general purpose input/output port), timer.     9. Introduction to microprocessor control of drives and power converters, PWM generation.     10. Peripherals - A/D converter.     11. Synchronization of A/D converter with PWM, sensing of electrical quantities in the converter for feedback control.     12. Position and speed sensors, position sensing, microprocessor processing of position sensor signals.     13. UART, SPI serial interfaces and their applications, simple user interfaces, push button keypads, character LCD displays. 

Laboratory exercise

39 hours, compulsory

Teacher / Lecturer

Syllabus

1. Laboratory workstation, development tools, measuring equipment, simple program in C language.     2. Development environment, debugging, simple work with GPIO port, use of peripheral drivers.     3. Data in memory, data types, bit operations, arrays, constant variables in FLASH memory, - practical examples.     4. Function calls, writing functions in assembler.     5. Control structures.     6. Timer, its interrupts, LED blinking.     7. Fixed and floating point arithmetic.     8. GPIO, input, output mode, interrupts.     9. PWM generator setup, analysis of output signals using oscilloscope.     10. Working with AD converter, signal processing from generator using AD converter.     11. Setting the PWM, timer and AD converter to synchronization mode, monitoring the synchronization process with oscilloscope.     12. Processing of the pulse generator signal by counter.     13. Simple communication between two microcontrollers via SPI, UART.