MSP-EXP430G2 LaunchPad Workshop



Similar documents
Lab 1 Course Guideline and Review

SKP16C62P Tutorial 1 Software Development Process using HEW. Renesas Technology America Inc.

An Introduction to MPLAB Integrated Development Environment

Capacitive Touch Lab. Renesas Capacitive Touch Lab R8C/36T-A Family

Developing an Application on Core8051s IP-Based Embedded Processor System Using Firmware Catalog Drivers. User s Guide

UML - Getting Started EA v4.0

Microcontroller Systems. ELET 3232 Topic 8: Slot Machine Example

TI ARM Lab 7 Accelerometers

Lab Experiment 1: The LPC 2148 Education Board

DRV8312-C2-KIT How to Run Guide

Software development and debugging for NXP ARM7 MCUs

USBSPYDER08 Discovery Kit for Freescale MC9RS08KA, MC9S08QD and MC9S08QG Microcontrollers User s Manual

ezsystem elab16m Project 1F: Alarm System (Full Project description)

netduino Getting Started

Getting Started Guide

Special Note Ethernet Connection Problems and Handling Methods (CS203 / CS468 / CS469)

POOSL IDE Installation Manual

WIZ-Embedded WebServer User s Manual (Ver. 1.0)

Getting Started with Embedded System Development using MicroBlaze processor & Spartan-3A FPGAs. MicroBlaze

TRILOGI 5.3 PLC Ladder Diagram Programmer and Simulator. A tutorial prepared for IE 575 by Dr. T.C. Chang. Use On-Line Help

Quick Start Guide. USB Packet Sniffer/Dongle for Kinetis MKW22D and MKW24D Wireless MCUs USB-KW24D512

Quick Installation Guide

CB-OLP425 DEVELOPMENT KIT GETTING STARTED

COBRA 18R2 Wired Reprogramming Instructions

How To Develop A Toolstick

Quick Start Guide. TWR-MECH Mechatronics Board TOWER SYSTEM

Keep it Simple Timing

Start A New Project with Keil Microcontroller Development Kit Version 5 and Freescale FRDM-KL25Z

32F072BDISCOVERY. Discovery kit for STM32F072xx microcontrollers. Features. Description

FI8910W Quick Installation Guide. Indoor MJPEG Pan/Tilt Wireless IP Camera

Getting Started Guide with WIZ550web

VF2F. USB Flash Disk File-to-file Transfer Vinculum Evaluation Kit. Future Technology Devices International Ltd. Preliminary - Subject to Change

AN655 R ANGE TEST APPLICATION FOR EZRADIO AND EZRADIOPRO. 1. Introduction. 2. Supported Radio Types

A quick Guide to your Super Hub 2ac

Quick Start Guide. MRB-KW01 Development Platform Radio Utility Application Demo MODULAR REFERENCE BOARD

Health Monitoring Demo for ice40 Ultra Wearable Development Platform User Guide. UG103 Version 1.0, September 2015

Develop a Dallas 1-Wire Master Using the Z8F1680 Series of MCUs

RPLIDAR. Low Cost 360 degree 2D Laser Scanner (LIDAR) System Development Kit User Manual Rev.1

Nuvoton Nu-Link Debug Adapter User Manual

Debugging Network Communications. 1 Check the Network Cabling

3. Programming the STM32F4-Discovery

Kony MobileFabric Messaging. Demo App QuickStart Guide. (Building a Sample Application

Config software for D2 systems USER S MANUAL

QUICK START GUIDE. SG2 Client - Programming Software SG2 Series Programmable Logic Relay

BE635 User Manual. Rev. V Bolymin, Inc. All Rights Reserved.

FlyingDream AAT Driver Quick Guide V1.1

USER S MANUAL TACHOTERMINAL PRO. Firmware

How to setup EW-7438RPn with a Windows computer to extend an existing Wi-Fi network

Quick Start Guide for High Voltage Solar Inverter DC-AC Board EVM. Version 1.3

EasyC. Programming Tips

EE 472 Lab 2 (Group) Scheduling, Digital I/O, Analog Input, and Pulse Generation University of Washington - Department of Electrical Engineering

L16. Quectel GNSS Engine. EVB User Guide L16_EVB_UGD_V1.0

TWR-KV31F120M Sample Code Guide for IAR Board configuration, software, and development tools Rev.0

COPYRIGHT TOP NOTCH TABLETS LLC HOW TO: Install the Drivers to your PC so you can Flash Firmware to your RK3066 Powered Tablet.

Lab 1: Introduction to Xilinx ISE Tutorial

HVP-KV31F120M Quick Start Guide

T3 Mux M13 Multiplexer

Android Application Development and Bluetooth Technology

Introduction to Android Development

EE289 Lab Fall LAB 4. Ambient Noise Reduction. 1 Introduction. 2 Simulation in Matlab Simulink

Table of contents. Dear customer!

Pre-tested System-on-Chip Design. Accelerates PLD Development

OVERVIEW HARDWARE. Mode buttons. USB Micro socket. Kensington Security Slot. 8x8 playable grid. Mode buttons

Fondamenti su strumenti di sviluppo per microcontrollori PIC

3.5 EXTERNAL NETWORK HDD. User s Manual

GIE PIC K150 Programmer. User Manual

EMBEDDED C USING CODEWARRIOR Getting Started Manual

Guide for Remote Control PDA

isppac-powr1220at8 I 2 C Hardware Verification Utility User s Guide

In-System Programmer USER MANUAL RN-ISP-UM RN-WIFLYCR-UM

RN-131-PICTAIL & RN-171-PICTAIL Evaluation Boards

Accessing vlabs using the VMware Horizon View Client for OSX

Interfacing an HTML Form to the ez80f91 MCU

Using the HCS12 Serial Monitor on Wytec Dragon-12 boards. Using Motorola s HCS12 Serial Monitor on Wytec s Dragon-12 boards

Ethernet Radio Configuration Guide

Basic Software Setup Guide.

RC2200DK Demonstration Kit User Manual

RN-131-PICTAIL & RN-171-PICTAIL Web-Server Demo Application

UM1727 User manual. Getting started with STM32 Nucleo board software development tools. Introduction

Adafruit's Raspberry Pi Lesson 5. Using a Console Cable

Bluetooth HC-06 with serial port module Easy guide

AVR Butterfly Training. Atmel Norway, AVR Applications Group

Instructions for Installing and Using the FOCUS DL-15 Data Transfer Software

Starting Guide - Poseidon 3265 First steps for remote monitoring with Poseidon & GSM

TE100-P21/TEW-P21G Windows 7 Installation Instruction

Raptor-CAN User Manual

Quick Installation Guide

Designing VM2 Application Boards

Tutorial: Configuring GOOSE in MiCOM S1 Studio 1. Requirements

Building an Embedded Processor System on a Xilinx Zync FPGA (Profiling): A Tutorial

PCAN-MicroMod Universal I/O Module with CAN Interface. User Manual. Document version ( )

SOLAROX RGB-Master Pro LAN. RGB-Master Pro LAN. Network-compatible RGBW Controller -

Application & Quick-Start Guide

SIM808 V2.2.5 user manual V1.2. Electrodragon.com

Current Cost Data Cable User Guide. Installing and configuring the data cable

Guide for Remote Control PDA

UM1727 User manual. Getting started with STM32 Nucleo board software development tools. Introduction

Application Note: Connecting to a 2500 Series Processor using PLC Workshop

Freescale Semiconductor, I

Procedure for updating Firmware of EZ4 W or ICC50 W

Transcription:

MSP-EXP430G2 LaunchPad Workshop Meet the LaunchPad Lab 1 : Blink LaunchPad LEDs By Adrian Fernandez

Meet the LaunchPad

MSP430 MCU Value Line LaunchPad only $4.30 A look inside the box Complete LaunchPad kit includes: LaunchPad development board Mini-USB cable 2x MSP430 Value Line MCUs MSP430G2211 MSP430G2231 10-pin PCB connectors/headers Free downloadable, code-limited IDEs Code Composer Studio IAR Embedded Workbench QuickStart Guide 2x LaunchPad stickers Watch unboxing Watch pre-loaded demo Watch videos on Youtube! (internet connection required) http://www.youtube.com /watch?v=rvhgjgkfplu http://www.youtube.com/ watch?v=u0mgortybyg 3

MSP430 MCU Value Line LaunchPad only $4.30 LaunchPad board Easily evaluate & program devices Up to 20-pin DIP socketed target board Drop-in any MSP430 Value Line device Pre-programmed MSP430 Value Line MCU included MSP430 Value Line Get started in minutes Integrated Flash emulation tool USB-powered (cable incl.) Program any MSP430 Value Line device, ez430 target board, or Spy Bi-Wire enabled MSP430 device Rapid Prototyping Access to all MSP430 Value Line pins Easy interface for external components/daughter boards 2 Programmable pushbuttons & LEDs

Lab 1 : Blink LaunchPad s LEDs Understand pin outs of LaunchPad Learn where to find free IDEs and design resources Develop code to blink LaunchPad s red and green on-board LEDs

Understanding LaunchPad pinouts On-board features of LaunchPad are pinned in the following fashion: LED1 (red) = P1.0 LED2 (green) = P1.6 Switch1 = P1.3 Switch2 = Reset Timer UART Transmit = P1.1 Timer UART Receive = P1.2 Now we understand LaunchPad s pin out! In order to blink the Red and Green LEDs, we have to set Ports 1.0 and 1.6 as outputs, and toggle them in our project s code.

Step 1 Download and Install CCS 1. Go to www.ti.com/launchpadwiki - #1 source for all content related to LaunchPad 2. If not already on your PC, download and install CCS ver 4 to your PC from the LaunchPad wiki 3. Once installed, open CCS version 4 4. When opened, you will be prompted to create a new Workspace This can be named anything you want! In our example, we named ours LaunchPadWork 5. Then press OK 6. This will create a new workspace for our first LaunchPad project!

Step 2 Set up CCS project 1. Once our workspace is generated, we will create a new project File New CCS Project 2. Next, we need to name the project we ll call it LaunchPadLED. Then, click Next 3. In the next window, we ll be asked to Slect a type of project. Since we are programming an MSP430 Value Line device, we choose MSP430 from the drop down list. Then, click Next

Step 2 Set up CCS project continued 4. In the next window, we won t need any additional project settings, so we can just click Next 5. Now, we need to select which Device Variant we are going to program. For this simple LED blinking example, any MSP430 Value Line device can be used. In this case, this example was developed using the MSP430G2231 device. 6. Once the appropriate device variant is highlighted, we can click Finish 7. Now that the project settings are configured, we need to add a new source file by right clicking our active project and clicking New Source File.

Step 3 Find MSP430 code examples 8. We will name this new source file main.c then click Finish At this point, a blank window will be created. This is where our code will go. 9. Great! Our project area is all set up! 10. Next, we will learn where to find MSP430 Value Line related code examples. 11. We need to go back to www.ti.com/launchpadwiki 12. In the wiki, we will find a link to Download all MSP430G2xx code examples. Click it to download a.zip file with all Value Line code snippets.

Step 4 Import code example to project 13. Within this zip file, we will find assembly and C code examples we ll use C for this lab. Within the C folder are various code examples for getting started with MSP430 Value Line devices. Each.c or assembly file within the zip has a description and simple block diagram to explain its specific functionality. 14. We will use msp430x20x3_1.c in for this example. We can double click it to open the.c file. This code example uses a software toggle to blink port 1.0 (which is tied to LED1, LaunchPad s red LED) 15. Now, we can copy and paste this code into our empty main.c that we created in CCS!

Step 5 Modify code example 16. Since the code example only toggles P1.0, only LED1 (red) will blink if we leave the code as is. Thus, we need to modify it to also toggle P1.6 as well. 17. To do this, we first need to set P1.6 as an output port. To do this, we need to set the direction bit of P1.6 as 1 This is done by adding the highlighted line of code shown above.

Step 6 Modify code example continued 18. Now that Port 1.6 is set as an output, we can now toggle it in software, which will cause it to blink. This is done by toggling the port within a for loop, which will turn it off and on periodically. Similar to P1.0, P1.6 will be toggled using exclusive-or logic. The highlighted line below accomplishes this. 19. Also, notice that this for loop will loop forever. The frequency of blinking is controlled by the variable i, which causes a delay using a do-while loop The larger the number, the longer the delay between toggles. We can experiment with different values to see its effects.

Step 7 Download code to LaunchPad 20. Great! We have made all the changes needed to blink both LEDs on the LaunchPad board. We can now download this code to the MSP430 Value Line device plugged into LaunchPad s DIP target socket. First, make sure LaunchPad is plugged in to your PC! 21. Next, we can click this Debug button, which will check the code and load it into the MSP430 device. 22. When the code successfully loads, we will enter the Debug view of CCS. We can execute the code by clicking the green Run arrow. At this point, our red and green LEDs on the LaunchPad board should start blinking! 23. Congratulations! You just completed your first LaunchPad project!

Great! Now what??? Now that you understand the pinouts of LaunchPad, discovered where to find code examples, and successfully created your very first LaunchPad project, you are well on your way to becoming an MSP430 master! Continue to explore www.ti.com/launchpadwiki to find more code examples, projects, and other resources! This page is updated frequently, and includes an active online community! Please feel free to contribute your own project ideas to the wiki pages as well! Thank you, and happy coding from the MSP430 team in Dallas, TX

MSP-EXP430G2 LaunchPad Workshop Thank you!