EasyManuals Logo

Texas Instruments MSP430 Student Guide

Texas Instruments MSP430
398 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #92 background imageLoading...
Page #92 background image
MSP430ware (DriverLib)
Chapter Topics
Using GPIO with MSP430ware ................................................................................................... 3-1
MSP430ware (DriverLib) ........................................................................................................... 3-3
Installing MSP430ware ......................................................................................................... 3-3
DriverLib ................................................................................................................................ 3-4
DriverLib Modules ................................................................................................................. 3-5
Programming Methods Summary ...................................................................................... 3-5
MSP430 GPIO .......................................................................................................................... 3-6
GPIO Basics .......................................................................................................................... 3-6
Input or Output .................................................................................................................. 3-7
GPIO Output ..................................................................................................................... 3-8
GPIO Input ........................................................................................................................ 3-9
Drive Strength ................................................................................................................. 3-10
Flexible Pin Useage (Muxing) ............................................................................................. 3-11
Pin Selection ................................................................................................................... 3-12
Port Mapping ............................................................................................................... 3-13
Summary ............................................................................................................................. 3-14
Before We Get Started Coding ............................................................................................... 3-16
1. #Include Files .................................................................................................................. 3-16
2. Disable Watchdog Timer ................................................................................................. 3-17
3. Pin Unlocking (Wolverine only) ....................................................................................... 3-18
Lab 3 ....................................................................................................................................... 3-19
Lab 3 Worksheet ................................................................................................................. 3-21
MSP430ware DriverLib ................................................................................................... 3-21
GPIO Output ................................................................................................................... 3-21
Lab 3a Blinking an LED.................................................................................................... 3-22
??? .............................................................................................................................. 3-23
Add MSP430ware DriverLib ........................................................................................ 3-24
Add the Code to main.c ............................................................................................ 3-26
Debug .......................................................................................................................... 3-27
Lab 3b Reading a Push Button ........................................................................................ 3-29
GPIO Input Worksheet .................................................................................................... 3-29
File Management ........................................................................................................ 3-30
Add Setup Code (to reference push button) ............................................................... 3-32
Modify Loop ................................................................................................................. 3-33
Verify Code.................................................................................................................. 3-34
Optional Exercises .............................................................................................................. 3-34
Chapter 3 Appendix ................................................................................................................ 3-35
3 - 2 MSP430 Workshop - Using GPIO with MSP430ware

Table of Contents

Other manuals for Texas Instruments MSP430

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the Texas Instruments MSP430 and is the answer not in the manual?

Texas Instruments MSP430 Specifications

General IconGeneral
BrandTexas Instruments
ModelMSP430
CategoryMicrocontrollers
LanguageEnglish

Related product manuals