Using GPIO with MSP430ware
Introduction
In the previous lab exercise, we blinked an LED on the MSP430 Launchpad, but we didn’t write
the code – we were able to import a generic ‘blink’ template that ships with CCSv5.
This chapter explores the GPIO (general purpose bit input/output) features of the MSP430 family.
By examining the hardware operation of the I/O pins, as well as the registers that control them,
we gain insight into the many ways we can utilize these features.
To make programming easier, we’ll use the driver library (DriverLib) component of MSP430ware.
While not actually a set of “drivers” in the traditional sense, this library provides us the software
tools to quickly build and deploy our own driver code for MSP430 devices.
Learning Objectives
Objectives
-
List 3 components of MSP430ware
-
Describe (and name) the 3 registers that support
GPIO input/output
-
Implement the steps needed to use MSP430ware
DriverLib in a CCS project
-
Show how to disable the watchdog timer
-
Lab – Use MSP430ware to blink and LED and
read a button on the MSP430 Launchpad
MSP430 Workshop - Using GPIO with MSP430ware 3 - 1