Software Examples
www.ti.com
18
SLAU680–May 2018
Submit Documentation Feedback
Copyright © 2018, Texas Instruments Incorporated
MSP430FR2355 LaunchPad™ Development Kit (MSP
‑
EXP430FR2355)
NOTE: When SAC1 is configured in the Inverting PGA mode, the SAC3 DAC generates sine,
square, or sawtooth waveforms with a DC bias of +1.65 V, and the SAC1 DAC is used to
generate a +1.65-V DC bias for the SAC1 PGA.
When SAC1 is configured in the Noninverting PGA mode, the SAC1 DAC is not available to
generate a DC bias for its PGA and is based to 0 V by default. Therefore, the SAC3 DAC
generates sine, square, or sawtooth waveforms with minimum peaks at 0 V.
Alternatively, an external signal source can be directly fed into the inverting input of the SAC1 PGA by
selecting "P1.6 OA1- Inverting PGA IN" or the noninverting input of the SAC1 PGA by selecting "P1.7
OA1+ Non-inverting PGA IN" as the input signal source using the GUI. In these two input signal source
configurations, the SAC1 PGA inverting or noninverting gain can be used to manipulate the external input
signal on P1.6 or P1.7, and the output waveform is captured with the internal ADC connection and
displayed on the cloud GUI.
Finally, SAC3 and SAC1 can be completely bypassed by selecting "P1.5 ADC Direct IN" as the input
signal source. In this case, an external signal can be connected to P1.5 and measured directly by the
internal ADC of the MCU, acting as a primitive oscilloscope.
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.
3.2.1 Source File Structure
The project is split into multiple files (see Table 7). This makes it easier to navigate and reuse parts of it
for other projects.
Table 7. Source File and Folders
Name Description
main.c The Blink LED main function
Library: Driverlib Device driver library
The main code uses the MSP430 Driver Library to halt the watchdog timer and to configure and toggle the
P1.0 GPIO pin connected to the LED inside a software 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’re
opened with a development environment like Code Composer Studio IDE (CCS) or IAR Embedded
Workbench IDE.
4.1.1 TI Cloud Development Tools
TI’s Cloud-based software development tools provide instant access to MSPWare content and a web-
based IDE.
4.1.1.1 TI Resource Explorer Cloud
TI Resource Explorer Cloud provides a web interface for browsing examples, libraries and documentation
found in MSPWare without having to download files to your local drive.
Go check out TI Resource Explorer Cloud now at dev.ti.com.