Programming Embedded Systems - A7B35PES

Credits 6
Semesters Winter
Completion Assessment + Examination
Language of teaching Czech
Extent of teaching 2+2L
Annotation
The course deals with programming techniques suitable for small computer systems that are often used in the embedded systems. Lectures are based on the ARM processor family, its architecture and kernel philosophy. Programming techniques are explained in the C language, which is frequently used in embedded systems software development.
http://support.dce.felk.cvut.cz/e-kurzy/course/view.php?id=19
Course outlines
1. Introduction to embedded systems, motivation of their design, examples. ES properties and design phases. Microprocessor basics (how a CPU works, RISCxCISC, pipelining, etc.). Microprocessor x microcontroller x SOC (System-On-Chip).
2. Description of the ARM core and its philosophy. Example of a ARM-based microcontroller. Basic hardware peripherals and their usage (TPU, UART, PWM, CAN, watchdog?). JTAG interface.
3. ARM assembler basics. Main differences between C and Java languages from programmer's point of view. Phases of C program compilation. Introduction to C. Basic structure of a C program.
4. Pointers and their correspondence with assembler code. Arrays and strings. Scope of a variable. Functions, function calls, function parameters. Code decomposition, makefile.
5. ARM exceptions and interrupts handling in the C language, writing an interrupt handler, Atmel Advanced Interrupt Controller (AIC). Volatile-type variables, program safety.
6. Advanced C programming techniques. Inline code. C code portability. Real-time operations. Electrical and mechanical requirements on embedded systems. Reliability, safety and testing of embedded systems.
Exercises outlines
1. Familiarization with development tool chain, making and running a simple program
2. I/O ports
3. Timers and PWM
4. UART communication
5. I2C bus
6. A/D converter
7. Dallas 1-wire bus
8. Test (simple program)
9. reserve
10. Individual lab work (semester work)
11. Individual lab work (semester work)
12. Individual lab work (semester work)
13. Individual lab work (semester work)
14. Semester work evaluation, finish
Literature
Kelley A., Pohl I.: A Book on C,
Benjamin Cummings

Requirements
The lectures and practical exercises suppose only knowledge gained from Y36PJV and Y36SAP courses in 1st year of this study program.