Module information for the next academic year is available below. Current academic year information is also available.
Embedded C for Microcontrollers B
Module aims
ECTS = 5
Learning outcomes
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
Module syllabus
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
Pre-requisites
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
- Sampling
- Data acquisition
Teaching methods
Assessments
| Assessment details | ||||
| Pass mark | ||||
| Grading method | Numeric | 50% | ||
| Assessments | ||||
| Assessment type | Assessment description | Weighting | Pass mark | Must pass? |
| Coursework | Project | 80% | 50% | N |
| Practical | Labs | 20% | 50% | N |