MF2095 Programming in C for Embedded Systems 3.0 credits
Mechatronics and Embedded Systems in general are developed mainly via the programming language C. The course is given in the interface between hardware and software, hardware-oriented programming to handle the interfaces of the microcontroller, via C-programming. C-programming is therefore a tool to understand and use a microcontroller's interaction with the surroundings.
After completed course, course participants should be able to, via C-programming, manage the most common peripherals on a commun microcontroller (ATmega16). Examples are: A/D-conversion, PWM, interrupt, timers and counters.
The equiment needed to complete laboratory assignments are handed out at the start of the course and can be used freely during the course.
Choose semester and course offering
Choose semester and course offering to see current information and more about the course, such as course syllabus, study period, and application information.
Application
For course offering
Autumn 2024 Start 26 Aug 2024 programme students
Application code
51315
Content and learning outcomes
Course contents
The following modules are included in the course:
- Computer models, von Neumann and Harvard architecture, CISC and RISC
- Low level programming in C
Intended learning outcomes
After passing the course, the students should be able to:
- Explain the structure of embedded processors
- Design and develop sequential programmes in C, of relevance to mechatronics product development
- Use and utilise development tools for programming and troubleshooting of embedded systems
Literature and preparations
Specific prerequisites
Completed course MF1016 Basic Electrical Engineering, or the equivalent.
Completed course DD1321 Applied programming and computer science, or the equivalent.
Recommended prerequisites
Equipment
Literature
Examination and completion
If the course is discontinued, students may request to be examined during the following two academic years.
Grading scale
Examination
- LABA - Laboration, 3.0 credits, grading scale: P, F
Based on recommendation from KTH’s coordinator for disabilities, the examiner will decide how to adapt an examination for students with documented disability.
The examiner may apply another examination format when re-examining individual students.
Opportunity to complete the requirements via supplementary examination
Opportunity to raise an approved grade via renewed examination
Examiner
Ethical approach
- All members of a group are responsible for the group's work.
- In any assessment, every student shall honestly disclose any help received and sources used.
- In an oral assessment, every student shall be able to present and answer questions about the entire assignment and solution.