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 #111 background imageLoading...
Page #111 background image
Lab 3
Lab 3 Worksheet
MSP430ware DriverLib
1. Where is your MSP430ware folder located?
_________________________________________________________________________
2. To use the MSP430ware GPIO and Watchdog API, what header file needs to be included in
your source file?
#include < ________________________ >
3. How do we turn off the Watchdog timer using a DriverLib function call?
__________________________________________________ ;
GPIO Output
4. We need to initialize our GPIO output pin. What two GPIO DriverLib functions setup Port 1,
Pin 0 (P1.0) as an output and set its value to “1”?
_____________________________________________________________________;
_____________________________________________________________________;
5. Using the _delay_cycles() intrinsic function (from the last chapter), write the code to blink an
LED with a 1 second delay setting the pin (P1.0) high, and then low?
#define ONE_SECOND 800000
while (1) {
//Set pin to “1” (hint, see question 4)
______________________________________________________________ ;
_delay_cycles( ONE_SECOND );
// Set pin to “0”
_______________________________________________________________ ;
_delay_cycles( ONE_SECOND );
}
Check your answers against ours … see the Chapter 3 Appendix.
MSP430 Workshop - Using GPIO with MSP430ware 3 - 21

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