450-2041/03 – Programming Basics for Control Systems (ZPŘS)
Gurantor department | Department of Cybernetics and Biomedical Engineering | Credits | 4 |
Subject guarantor | doc. Ing. Michal Prauzek, Ph.D. | Subject version guarantor | doc. Ing. Michal Prauzek, Ph.D. |
Study level | undergraduate or graduate | Requirement | Choice-compulsory |
Year | 2 | Semester | winter |
| | Study language | English |
Year of introduction | 2015/2016 | Year of cancellation | 2020/2021 |
Intended for the faculties | FEI | Intended for study types | Bachelor |
Subject aims expressed by acquired skills and competences
The goal of the subject is to introduce student into provide students by basic appliance for control systems programming. After finishing the subject the student will be able to create elementary programs based on simple algorithmic constructions of C language in a general development environment. He will understand the realtions between some computer architectural elemetns and their correponding mapping into programming language, wich is necessary for constructing tasks using non-satandards peripherals. He will be also able to analyze and implement simple problems using structuerd approaches.
Teaching methods
Lectures
Tutorials
Experimental work in labs
Project work
Summary
The subject is a introductory course into the problems of programming focused on preparing students for work with specialized microprocessor systems used in process control. the students are acquainted with fundamental computer hardware components. Thge algorithms are demenstrated in C language wheras studnets are instructed in structured approaches to analysis. Practical implementation and data structures are accentuated.
Compulsory literature:
Recommended literature:
Richta, K., Šaloun, P.: Programovací jazyk C, skriptum ČVUT, Praha 1998
Wirth, N.: Algoritmy a štruktúry údajov, Alfa, Bratislava 1989
Šaloun, P.: Programovací jazyk C. Skriptum FEI VŠB-TU Ostrava 1994
Šnorek, M. Richta K.: Připojování periferií k PC, Grada, 1996
Horák, J: Učebnice hardware, Computer Press, 2000
Way of continuous check of knowledge in the course of semester
Written tests realized during subject exercises
E-learning
Other requirements
There are not defined other requirements for student
Prerequisities
Subject has no prerequisities.
Co-requisities
Subject has no co-requisities.
Subject syllabus:
lectures
1. Algorithm, algorithms, basic algorithmic structures. Types and variables.
2. Basic programming construction: instruction, control commands, subroutines. The program, machine language,
machine code, binary system, programming languages.
3. Structure of the program in C language Simple inputs and výstupy.Základní data types. Branching and cycles.
4. Arrays, array element access.
5. Representation of the data base format specification. Function parameters and return values
6. Comments, headers - info, basic syntax, keywords, return values, main body, use features
7. Structure of the computer central unit, registers, RAM, address, external memory, program counter, fetch-execute cycle, aynchronní events. Inputs and outputs. Polling and interrupt bus.
8. Use PC peripherals for solving simple measurement tasks.
9. Structure, unions, enumerated types, work with bits.
10. indicators. Files. Using files in measurement tasks.
11. macros, dynamic allocation exceptions. Modules. Header files. Meaning dynamic allocation and exception mechanism for secure programming of control systems.
12. Standard Library
13. User Library
Conditions for subject completion
Occurrence in study plans
Occurrence in special blocks
Assessment of instruction
Předmět neobsahuje žádné hodnocení.