Texas Instruments MSP-EXP430G2 User Manual

Page of 31
Develop an Application With the MSP-EXP430G2 LaunchPad
4
Develop an Application With the MSP-EXP430G2 LaunchPad
4.1
Developing an Application
The integrated development environments (IDEs) shown in
offer support for the whole
MSP430G2xx Value Line. The MSP-EXP430G2 LaunchPad needs only a connection to the USB of the
Host PC—there is no external hardware required. The power supply and the Spy-Bi-Wire JTAG signals
TEST and RST must be connected with jumper J3 to allow the onboard emulation connection to the
device, as shown in
Now the preferred device can be plugged into the DIP target socket of the
LaunchPad (see
). Both PDIP14 and PDIP20 devices of the MSP430G2xx Value Line and the
MSP430F20xx family can be inserted into the DIP socket aligned to pin 1. A complete list of supported
devices can be found in
.
Figure 2. Insert Device Into Target Socket
The following example for Code Composer Studio v4 shows how to download and debug the demo
application described in
4.2
Program and Debug the Temperature Measurement Demo Application
The source code of the demo application can be downloaded from the MSP430 LaunchPad wiki page.
Download the project folder and unpack it to a location of your choice. For this demo, Code Composer
Studio v4 or newer must be installed.
The demo application can be loaded to the CCS workspace by clicking File
Import. Select the location of
the extracted project files and import Existing projects into Workspace. Now the MSP-EXP430G2-
Launchpad project appears inside the CCS workspace. The project must be marked as the active project
to start programming and debugging the device.
Connect the LaunchPad with an inserted MSP430G2553 device to the host PC and click the Debug button
on the CCS Toolbar. The MSP-EXP430G2 LaunchPad is initialized and the download of the compiled
demo application starts. The CCS view switches to a debugging interface once the download is completed
and the application is ready to start.
shows Code Composer Studio v4 with the MSP-EXP430G2
LaunchPad demo application in debug view.
9
SLAU318C – July 2010 – Revised August 2012
MSP-EXP430G2 LaunchPad Experimenter Board
Copyright © 2010–2012, Texas Instruments Incorporated