This module is a practical introduction to embedded computer programming and computer interfacing. Students will learn to write simple programs using the MSP430 Launchpad programming environment (or similar, e.g. Arduino) which is based on the C programming language. Problem solving will be explored while connecting external devices to the computer system.
Rapid Prototyping Environment:
Overview of embedded system features and resources. Introduction to a rapid prototyping environment e.g. MSP430 or Arduino. Software download, Reference and tutorial access.
Software Constructs:
Variables and data types, integer, char, Boolean, floating point.Expressions, arithmetic and logical operators.Conditional control structures, if, if-else, switch-case.Iterative control structures, for, while.
Hardware interfacing:
Digital output and input interfacing. Connecting LEDs, Buzzer, 7-Segment Display, DC Motor.Connecting switches and sensors such as LDR.Active high/low connections. Reading analog inputs.
Modular Programming:
Using flowharts and functions to make a program modular.
PC interfacing:
Development of programs running on the PC and the development board that communicate using the the serial link.
Module Content & Assessment | |
---|---|
Assessment Breakdown | % |
Other Assessment(s) | 40 |
Formal Examination | 60 |