Detailed module information
Module information on this degree can be found below, separated by year of study.
The module information below applies for the current academic year. The academic year runs from August to July; the 'current year' switches over at the end of July.
Students select optional courses subject to rules specified in the Mechanical Engineering Student Handbook, for example at most three Design and Business courses. Please note that numbers are limited on some optional courses and selection criteria will apply.
Embedded C for Microcontrollers B
ECTS = 5
On completion of this module students should be able to:
1. Explain the principal components of, and terminology used in, embedded computer hardware and software
2. Write simple C programs to manipulate numerical bit-pattern data and text, perform calculations and interface with external hardware
3. Design, make, test and document a functional mechatronic system containing an embedded microcontroller
4. Assemble working microcontroller-based mechatronic systems on a prototype board
5. Synthesise microcontroller programming and directives into a real world application
Introduction to C language: structure, types and variables, arrays, assignment operations, conditional expressions, flow control, switch.
Advanced C language: structures, functions, recursions, pointers.
Introduction to microcontrollers: architecture, PIC18FXXX examples, the PICKit Programming Device, programming, debugging.
Bit operations: inputs and outputs: digital and analogue.
Interrupts: time-based interrupts, external interrupts.
Time measurement: oscillators, timers, counters.
Motor control: DC motors, PWM, RC servo motors, optical encoders.
Communication: RS232 PC interface.
Further applications: LCD, RFID, direction finding
In order to gain the maximum benefit from ECM, students are expected to have a good understanding of ME1 and ME2 mechatronics as well as ME1 computing, including:
- Use of oscilloscope
- Assembling simple circuits (breadboard)
- Standard programming structures: conditional statements (if… then… else), loops (e.g. for… next)
- Binary and hexadecimal number bases.
- Resistor network analysis
- Pulse width modulation
- Data acquisition
|Assessment type||Assessment description||Weighting||Pass mark||Must pass?|