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 #386 background imageLoading...
Page #386 background image
Lab 8
8 - 28 Gettings Started with the MSP430 - Using Energia (Arduino)
Blink with Serial Communication
Let’s try combining a couple of our previous sketches: Blink and DigitalReadSerial.
6. Open the Button sketch.
Load the Button from the Examples menu.
File Examples 2.Digial Button
7. Save it to a new file before modification.
Once again, we recommend saving the original sketch before modification. Save it to:
C:\msp430_workshop\<target>\energia\Serial_Button
8. Add ‘serial’ code to your Serial_Button sketch.
Take the serial communications code from our previous example and add it to your new
Serial_Button sketch. (Hint, it should only require two lines of code.)
9. Download and test the example.
Did you see the Serial Monitor and LED changing when you push the button?
________________________________________________________________________
10. Considerations for debugging…
How you can use both of these items for debugging?
Serial Port; LED (And, what if you didn’t have an LED available on your board?):
_________________________________________________________________________
_________________________________________________________________________
Another Pushbutton/Serial Example
Before finishing Lab 8C, let’s look at one more example.
11. Open the StateChangeDetection sketch.
Load the sketch from the Examples menu.
File Examples 2.Digial StateChangeDetection
12. Examine the sketch, download and run it.
How is this sketch different? What makes it more efficient? __________________________
________________________________________________________________________
How is this (and all our sketches, up to this point) inefficient? ________________________
________________________________________________________________________

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