MSP430™ Value Line Sensing Function Code Examples
This product has been released to the market and is available for purchase. For some products, newer alternatives may be available.

Description & Features

Technical documentation

Support & Training

Order Now

Order Now
Part Number Buy from Texas Instruments or Third Party Status

MSP430™ Value Line Sensing Function Code Examples




MSP430-FUNCTION-CODE-EXAMPLES is a collection of 25 code examples for use with the MSP430FR2000, MSP430FR2100, MSP430FR2110 and MSP430FR2111 Value Line Sensing microcontrollers (MCUs). These code examples allow developers to add programmability to simple digital and analog functions such as timers, input/output expanders, system reset controllers, EEPROM and more. The majority of the code examples fit in under 0.5KB of memory in the MSP430FR2000 MCU with a few using up to 1KB of memory to operate.

The code examples were tested using the MSP-T430PW20 target development board and MSP-FET programmer and debugger board. However, the code examples can be easily modified and ported to the MSP-EXP430FR2311 LaunchPad™ development kit – a lower-cost evaluation platform than the target development board. See this code portability guide for more details.

The provided function code examples can be modified using Code Composer Studio™ (CCS) or IAR® Embedded Workbench integrated development environments (IDEs).

Get started

Step 1: Buy the MSP-EXP430FR2311 LaunchPad
Step 2: Download the MSP430-FUNCTION-CODE-EXAMPLES
Step 3: Refer to the enhance simple analog and digital functions for $0.25 DFP application note to get started
Step 4: Watch 25 Functions for 25 cents training videos

  • 25 function code examples
  • Optimized to fit in 0.5KB or 1KB of memory

What's Included

Code examples for the following analog and digital functions:

Communications Functions

  • Single Wire Communication Host
  • SPI IO Expander
  • UART-to-UART Bridge
  • UART-to-SPI Bridge

Pulse Width Modulation Functions

  • Analog Input to PWM Output
  • Dual output 8-bit PWM DAC
  • Servo Motor Control
  • Stepper Motor Control
  • UART Software-Controlled RGB LED Color Mixing

System and Housekeeping Functions

  • ADC Wake and Transmit on Threshold
  • EEPROM Emulation
  • Low Power Hex Keypad
  • Quadrature Encoder Position Counter
  • Hysteresis Comparator with UART
  • Multi-Function Reset Controller
  • Single Slope Analog-to-Digital Conversion Technique
  • Tamper Detection
  • Programmable Clock Source
  • Programmable Frequency-locked Loop

Timer Functions

  • External RTC with backup memory
  • 7-Segment LED Stopwatch
  • External Programmable Watchdog Timer
  • Programmable System Wake-up Controller
  • Simple RTC-based System Wake-up Controller
  • Voltage Monitor with a Time Stamp

Technical documentation
Application note (27)
Title Type Size (KB) Date
PDF 136 20 Apr 2018
PDF 278 26 Oct 2017
PDF 398 25 Oct 2017
PDF 495 20 Oct 2017
PDF 114 19 Oct 2017
PDF 70 19 Oct 2017
PDF 174 18 Oct 2017
PDF 252 18 Oct 2017
PDF 152 18 Oct 2017
PDF 92 18 Oct 2017
PDF 89 18 Oct 2017
PDF 88 17 Oct 2017
PDF 218 17 Oct 2017
PDF 66 17 Oct 2017
PDF 238 16 Oct 2017
PDF 91 13 Oct 2017
PDF 65 13 Oct 2017
PDF 92 09 Oct 2017
PDF 62 28 Sep 2017
PDF 78 27 Sep 2017
PDF 87 27 Sep 2017
PDF 84 27 Sep 2017
PDF 132 26 Sep 2017
PDF 70 26 Sep 2017
PDF 134 15 Sep 2017
PDF 82 15 Sep 2017
PDF 164 15 Sep 2017
E-book (1)
Title Type Size (KB) Date
PDF 9210 07 Feb 2018

Software development (2)

Name Part Number Software Type
Code Composer Studio (CCS) Integrated Development Environment (IDE)  CCSTUDIO  IDE, configuration, compiler or debugger 
MSP430Ware for MSP Microcontrollers  MSPWARE  Software development kit (SDK) 

Hardware development (3)

Name Part Number Tool Type
MSP430FR2311 LaunchPad™ development kit  MSP-EXP430FR2311  Development kit 
Target Development Board for MSP430FR2000, MSP430FR21x and MSP430FR23x MCUs - 20-pin  MSP-TS430PW20  Development kit 
MSP MCU Programmer and Debugger  MSP-FET  Hardware programming tool 

TI Devices (4)

Part Number Name Product Family
MSP430FR2000  16 MHz MCU with 0.5KB FRAM, 0.5KB SRAM, Comparator, UART/SPI, Timer  Microcontrollers (MCU) 
MSP430FR2100  16 MHz MCU with 1KB FRAM, 0.5KB SRAM, Comparator, 10-bit ADC, UART/SPI, Timer  Microcontrollers (MCU) 
MSP430FR2110  16 MHz MCU with 2KB FRAM, 1KB SRAM, Comparator, 10-bit ADC, UART/SPI, Timer  Microcontrollers (MCU) 
MSP430FR2111  16 MHz MCU with 4KB FRAM, 1KB SRAM, Comparator, 10-bit ADC, UART/SPI, Timer  Microcontrollers (MCU) 

Support & training

Search our extensive online knowledge base where millions of technical questions and answers are available 24/7.

Search answers from TI experts

Content is provided 'AS IS' by the respective TI and Community contributors and does not constitute TI specifications.
See terms of use.

If you have questions about quality, packaging, or ordering TI products visit our Support page.

Technical articles