Texas Instruments MSP-EXP430G2 사용자 설명서

다운로드
페이지 31
Getting Started With MSP-EXP430G2 LaunchPad
3
Getting Started With MSP-EXP430G2 LaunchPad
3.1
Getting Started
The first time the MSP-EXP430G2 LaunchPad Experimenter Board is used, a demo application
automatically starts as soon as the board is powered from the USB host. To start the demo, connect the
MSP-EXP430G2 LaunchPad with the included mini USB cable to a free USB port. The demo application
starts with an LED toggle to show the device is active. More information about the demo application can
be found in
.
3.2
Demo Application, Internal Temperature Measurement
The LaunchPad includes a pre-programmed MSP430G2553 device already installed in the target socket.
When LaunchPad is connected via USB, the demo starts with an LED toggle sequence. The onboard
emulation generates the supply voltage and all the signals necessary to start.
Press button P1.3 to switch the application to a temperature measurement mode. A reference temperature
is taken at the beginning of this mode, and the LEDs of the LaunchPad 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 collected temperature data is also
communicated via back-channel UART through the USB emulation circuitry back to the PC. The
transmitted values representing the temperature measured with the MSP430G2553 internal temperature
sensor in Fahrenheit and can be displayed with any terminal application or the Temperature Sensor GUI
available on the MSP430 LaunchPad wiki page
The serial communication
port on the PC must be configured with 2400 bps, one stop bit, and no flow control to display the values
correctly.
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. The source code for this pre-loaded demo application is
available for download in the Projects section of the MSP430 LaunchPad wiki page. Further information
on the Temperature Sensor application and other examples and applications can be found on the
MSP430 LaunchPad wiki page as well.
The provided applications can be a great starting point for various custom applications and give a good
overview of the manifold possibilities of the MSP430G2xx Value Line devices. Also available are the
executable and source files for a GUI, which displays the data that is being communicated back to the PC
from the LaunchPad.
8
MSP-EXP430G2 LaunchPad Experimenter Board
SLAU318C – July 2010 – Revised August 2012
Copyright © 2010–2012, Texas Instruments Incorporated