Digital Hardware Overview

ECEN 4517/5517 Spring 2008

MSP430 block diagram

MSP430F169

The MSP430F169 is a 16-bit microcontroller with 60KB of flash memory and 2KB of RAM. It also features a wide variety of relatively easy to use onbaord peripherals including:

There are a number of free programming environments available for the MSP430 family including IAR Kickstart, TI Code Composer, and MSPGCC. Both IAR and Code Composer impose limitations on compiled code and data size. We will be using the IAR Kickstart environment for its compatibility with the Olimex parallel port JTAG programmer and easy visual debugging tools.

Development board

The development board provided is the Olimex MSP430P169. Note that all of the pins on the breakout header are labelled in the format Px.x; for example, P1.5 refers to the MSP's GPIO pin 5 on port 1. Also, both edges of the prototype area are connected to either +3.3V or GND along their entire length.

You will need to modify the development boards by adding an 8 MHz crystal to the boards. This crystal is included in your parts kit. C32 and C33 (both 12 pF) are also required for this modification.

A parallel port JTAG programmer is provided for communication between the laboratory PC and the development board.

Interfacing with the MSP430

Be cautious hooking up the MSP430 to your circuit. The I/O pins can source only a limited amount of current, about 6mA per pin with a maximum current of about 48mA for all pins combined. Exceeding these maximum values will destroy an IO port. To prevent this it is suggested that you buffer the PWM lines with a transistor or gate drive such as the TC427 which requires neglible switching current.

Control of the analog and digital inputs and outputs of the MSP430 is described in Tutorial 1 and Tutorial 2. Tutorial 2 includes project files (Update 2/22/08) that set up the I/O ports needed to run Experiment 5. The variables used below are defined in the file main.c of the project files, and you can insert your code into main.c as well. Similar project files for Experiment 4 are included here.

Quick reference

Data sheets and schematics