background image

Software Examples

www.ti.com

16

SLAU772 – June 2018

Submit Documentation Feedback

Copyright © 2018, Texas Instruments Incorporated

MSP430G2553 LaunchPad™ Development Kit (MSP

EXP430G2ET)

For more details on how to get started quickly, and where to download the latest CCS and IAR IDEs, see

Section 4

.

3.1

Out-of-Box Software Example

This section describes the functionality and structure of the out-of-box software that is preloaded on the
EVM.

The Out-of-Box demo for the MSP-EXP430G2ET LaunchPad development kit starts with a two LED toggle
sequence. The demo also implements a real-time temperature sensor.

3.1.1

Source File

The OOBE project includes one main.c source file (see

Table 7

).

Table 7. Source File

Name

Description

main.c

Contains the main Out-of-Box demo and auxiliary functions

3.1.2

Overview

The online cloud-based

MSP-EXP430G2ET OOBE GUI

can be used to download this demo to your board

and visualize the temperature data. A serial terminal can also be used to display the data being sent from
the demo to the PC (application UART settings: 9600, 8, 1, n).

When powering up the Out-of-Box demo, the MSP-EXP430G2ET LaunchPad development kit starts with
a two LED toggle sequence. At any time, press S1 to switch to the Live Temperature mode.

3.1.3

Live Temperature Mode

In this mode, the LaunchPad development kit repeatedly measures the MSP430G2553 device internal
temperature and transfers the data to the PC through UART.

A reference temperature is taken at the beginning of this mode, and the LEDs of the LaunchPad
development kit signal a rise or fall in temperature by varying the brightness of the on-board red or green
LED, respectively. The reference temperature can also be recalibrated with another button press on P1.3.

The application keeps track of the temperature threshold, and when a new temperature data is acquired, it
is compared against the threshold. If measured temperature is below the threshold, the red LED will
illuminate, and if the measured temperature is above the threshold, the green LED will illuminate.

Pressing S1 will recalibrate the temperature threshold in this mode. The further the recorded temperature
is from the threshold, the brighter the corresponding LEDs will illuminate.

The user can influence the temperature of the device by blowing hot or cold air and observing the
changes in the user LED brightness or see data changes on the GUI.

The demo application uses the on-chip peripherals of the MSP430G2553 device such as the 10-bit ADC,
which samples the internal temperature sensor, and 16-bit timers, which drive the PWM to vary brightness
of the LEDs and enable software UART for communication with the PC. The MSP430G2553 offers a USCI
interface that is capable of communicating through UART at up to 2 MBaud, but to be aligned with all the
other MSP430G2xx devices, the demo uses the Timer UART implementation, which can be used on all
the other devices. This way the demo can be used with any other MSP430G2xx device with an integrated
ADC, without any change in the program.

3.2

Blink LED Example

This simple software example shows how to software toggle a GPIO to blink an LED on the LaunchPad
development kit.

Summary of Contents for LaunchPad MSP430G2553

Page 1: ...sive and easy to use evaluation module EVM for the MSP430G2xx Entry Level series of microcontrollers It contains everything needed to start developing on the ultra low power MSP430 microcontroller pla...

Page 2: ...tegrated Development Environments 17 4 2 LaunchPad Development Kit Websites 20 4 3 MSPWare and TI Resource Explorer 20 4 4 MSP430G2553 MCU 21 4 5 Community Resources 21 5 FAQ 21 6 Schematics 23 List o...

Page 3: ...Hardware Change Log 15 5 Software Examples 15 6 IDE Minimum Requirements for MSP EXP430G2ET 15 7 Source File 16 8 Source File and Folders 17 9 How MSP Device Documentation is Organized 21 Trademarks...

Page 4: ...d Workbench for MSP430 IDE IAR EW430 Both of these IDEs support EnergyTrace technology for real time power profiling and debugging when paired with the MSP430G2553 LaunchPad development kit More infor...

Page 5: ...customization imported from the TI Cloud Gallery The serial communication port on the PC must be configured with 9600 bps one stop bit and no flow control to display the values correctly NOTE The OOB...

Page 6: ...Power to target Reset button EnergyTrace Technology Hardware www ti com 6 SLAU772 June 2018 Submit Documentation Feedback Copyright 2018 Texas Instruments Incorporated MSP430G2553 LaunchPad Developmen...

Page 7: ...ripherals targeted for various applications The architecture combined with five low power modes is optimized to achieve extended battery life in portable measurement applications Device features inclu...

Page 8: ...als that cross this line can be disconnected by jumpers on J101 the isolation jumper block For details on the isolation jumper block see Section 2 2 3 The eZ FET also provides a backchannel UART over...

Page 9: ...d from VBUS in the eZ FET domain RXD Backchannel UART The target G2553 receives data through this signal The arrows indicate the direction of the signal TXD Backchannel UART The target G2553 sends dat...

Page 10: ...ify the correct COM port configure it in your host application according to its documentation You can then open the port and begin communication to it from the host On the target MSP430G2553 side the...

Page 11: ...ed to compare various current profiles and better optimize your energy performance 2 5 Clocking The MSP EXP430G2ET provides an external clock in addition to the internal clocks in the device Y1 32 768...

Page 12: ...pin BoosterPack plug in modules that comply with the standard If the reseller or owner of the BoosterPack plug in module does not explicitly indicate compatibility with the MSP EXP430G2ET LaunchPad de...

Page 13: ...re 11 For a complete list of supported devices see Section 2 9 Figure 11 Insert Device Into Target Socket 2 9 Supported Devices TI offers several MSP430 MCUs in a PDIP package that are compatible with...

Page 14: ...d I O Pins MSP430G2232 G2xx 16 bit Ultra Low Power Microcontroller 2KB Flash 256B RAM 10 Bit SAR A D USI for SPI I2 C 16 Capacitive Touch Enabled I O Pins MSP430G2332 G2xx 16 bit Ultra Low Power Micro...

Page 15: ...Software All design files including TI TXT object code firmware images software example projects and documentation are available in the MSP EXP430G2ET LaunchPad development kit download page 2 11 Hard...

Page 16: ...this mode and the LEDs of the LaunchPad development kit signal a rise or fall in temperature by varying the brightness of the on board red or green LED respectively The reference temperature can also...

Page 17: ...loop 4 Resources 4 1 Integrated Development Environments Although the source files can be viewed with any text editor more can be done with the projects if they are opened with a development environm...

Page 18: ...wing variables For a comparison of CCS Cloud and CCS Desktop visit Should I use CCS Cloud or CCS Desktop Visit Code Composer Studio Cloud now at http dev ti com Figure 13 CCS Cloud 4 1 2 Code Composer...

Page 19: ...ck OK CCS should recognize the project and allow you to import it The indication that CCS has found it is that the project appears in the box shown in Figure 15 and it has a checkmark to the left Figu...

Page 20: ...aunchPad Development Kit Websites More information about the LaunchPad development kit supported BoosterPack plug in modules and available resources can be found at MSP EXP430G2ET tool folder Resource...

Page 21: ...430G2553 MCU including serial communication ADC10 timer and others through direct register access Every MSP derivative has a set of these code examples When starting a new project or adding a new peri...

Page 22: ...unicating to the attached MSP430 target device even though all the communication drivers for the MSP EXP430G2ET are loaded correctly the emulator is probably set to a wrong communication state This ca...

Page 23: ...com Schematics 23 SLAU772 June 2018 Submit Documentation Feedback Copyright 2018 Texas Instruments Incorporated MSP430G2553 LaunchPad Development Kit MSP EXP430G2ET 6 Schematics Figure 17 Schematics...

Page 24: ...Schematics www ti com 24 SLAU772 June 2018 Submit Documentation Feedback Copyright 2018 Texas Instruments Incorporated MSP430G2553 LaunchPad Development Kit MSP EXP430G2ET Figure 18 Schematics 2 of 3...

Page 25: ...www ti com Schematics 25 SLAU772 June 2018 Submit Documentation Feedback Copyright 2018 Texas Instruments Incorporated MSP430G2553 LaunchPad Development Kit MSP EXP430G2ET Figure 19 Schematics 3 of 3...

Page 26: ...TI Resource NO OTHER LICENSE EXPRESS OR IMPLIED BY ESTOPPEL OR OTHERWISE TO ANY OTHER TI INTELLECTUAL PROPERTY RIGHT AND NO LICENSE TO ANY TECHNOLOGY OR INTELLECTUAL PROPERTY RIGHT OF TI OR ANY THIRD...

Reviews: