MSP430-FUNCTION-CODE-EXAMPLES

MSP430™ Value Line Sensing Function Code Examples

MSP430-FUNCTION-CODE-EXAMPLES

Downloads

Overview

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).

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

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

Download View video with transcript Video

Get started

  1. Order MSP-EXP430FR2311 LaunchPad
  2. Download the MSP430-FUNCTION-CODE-EXAMPLES
  3. Read the Enhance simple analog and digital functions for $0.25 DFP application note to get started
  4. Watch the 25 Functions for 25 cents training videos

Downloads

Code example or demo

MSP430-FUNCTION-CODE-EXAMPLES MSP430™ Value Line Sensing Function Code Examples

Supported products & hardware

Supported products & hardware

Products
MSP430 microcontrollers
MSP430FR2000 16 MHz MCU with 0.5KB FRAM, 0.5KB SRAM, comparator, UART/SPI, timer MSP430FR2100 16 MHz MCU with 1KB FRAM, 0.5KB SRAM, comparator, 10-bit ADC, UART/SPI, timer MSP430FR2110 16 MHz MCU with 2KB FRAM, 1KB SRAM, comparator, 10-bit ADC, UART/SPI, timer MSP430FR2111 16 MHz MCU with 4KB FRAM, 1KB SRAM, comparator, 10-bit ADC, UART/SPI, timer
Download options

MSP430-FUNCTION-CODE-EXAMPLES MSP430™ Value Line Sensing Function Code Examples

close
Latest version
Version: 1.00.00.00
Release date: 08 Apr 2018

Single Wire Communication Host

MD5 checksum

UART to UART Bridge

MD5 checksum

UART to SPI Bridge

MD5 checksum

Analog Input to PWM Output

MD5 checksum

Dual output 8-bit PWM DAC

MD5 checksum

Servo Motor Controller

MD5 checksum

Stepper Motor Controller

MD5 checksum

UART Software -Controlled RGB LED Color Mixing

MD5 checksum

ADC Wake and Transmit on Threshold

MD5 checksum

EEPROM Emulation

MD5 checksum

Quadrature Encoder Position Counter

MD5 checksum

Hysteresis Comparator with UART

MD5 checksum

Multi-Function Reset Controller

MD5 checksum

Single Slope Analog-to-Digital Conversion Technique

MD5 checksum

Tamper Detection

MD5 checksum

Programmable Clock Source

MD5 checksum

Programmable Frequency-locked Loop

MD5 checksum

External RTC with backup memory

MD5 checksum

7-Segment LED Stopwatch

MD5 checksum

External Programmable Watchdog Timer

MD5 checksum

Programmable System Wakeup Controller

MD5 checksum

Simple Power Sequencer

MD5 checksum

Simple RTC-based System Wake-up Controller

MD5 checksum

Voltage Monitor with timestamp

MD5 checksum

All Functions together in a single zip file

MD5 checksum
Products
MSP430 microcontrollers
MSP430FR2000 16 MHz MCU with 0.5KB FRAM, 0.5KB SRAM, comparator, UART/SPI, timer MSP430FR2100 16 MHz MCU with 1KB FRAM, 0.5KB SRAM, comparator, 10-bit ADC, UART/SPI, timer MSP430FR2110 16 MHz MCU with 2KB FRAM, 1KB SRAM, comparator, 10-bit ADC, UART/SPI, timer MSP430FR2111 16 MHz MCU with 4KB FRAM, 1KB SRAM, comparator, 10-bit ADC, UART/SPI, timer

Documentation

Single Wire Communication Host App Note

SPI IO Expander App Note

UART to UART Bridge App Note

UART to SPI Bridge App Note

Analog Input to PWM Output App Note

Dual output 8-bit PWM DAC App Note

Servo Motor Controller App Note

Stepper Motor Controller App Note

UART Software -Controlled RGB LED Color Mixing App Note

ADC Wake and Transmit on Threshold App Note

EEPROM Emulation App Note

Low Power Keypad App Note

Quadrature Encoder Position Counter App Note

Hysteresis Comparator with UART App Note

Multi-Function Reset Controller App Note

Single Slope Analog-to-Digital Conversion Technique App Note

Tamper Detection App Note

Programmable Clock Source App Note

Programmable Frequency-locked Loop App Note

External RTC with backup memory App Note

7-Segment LED Stopwatch App Note

External Programmable Watchdog Timer App Note

Programmable System Wakeup Controller App Note

Simple Power Sequencer App Note

Simple RTC-based System Wake-up Controller App Note

Voltage Monitor with timestamp App Note

Release Information

MSP430-FUNCTION-CODE-EXAMPLES is a collection of code examples for use with the MSP430FR2000, MSP430FR2100, MSP430FR2110 and MSP430FR2111 microcontrollers. The code examples downloads are grouped in the following function categories: Communication, pulse width modulation, system and housekeeping, and timer. A 2-page Tech Note is linked in the description field of each function and all of the Tech Notes for these functions are also available in an e-Book format.

The code examples were tested using the MSP-TS430PW20 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 application note SLAA812. For tips and tricks on optimizing C code for size see application note SLAA812.

For tips and tricks on optimizing C code for size see application note SLAA812.

Technical documentation

No results found. Please clear your search and try again.
View all 28
Type Title Date
Application brief EEPROM Emulation Using Low Memory MSP430™ FRAM MCUs (Rev. A) 20 Apr 2018
E-book Enhance simple analog and digital functions for $0.25 (Rev. B) 07 Feb 2018
Application brief Tamper Detection Using Low-Memory MSP430™ MCUs 26 Oct 2017
Application note Code Porting From MSP430FR2000 to MSP430FR2311 MCUs 25 Oct 2017
Application brief Dual-Output 8-Bit PWM DAC Using Low-Memory MSP430™ MCUs 20 Oct 2017
Application brief Voltage Monitor With a Timestamp Using a Low-Memory MSP430™ MCU 19 Oct 2017
Application brief SPI I/O Expander Using Low-Memory MSP430™ MCUs 19 Oct 2017
Application brief Single-Slope Analog-to-Digital Conversion Technique Using MSP430™ MCUs 18 Oct 2017
Application brief 7-Segment LED Stopwatch Using Low-Memory MSP430™ MCUs 18 Oct 2017
Application brief Hysteresis Comparator With UART Using Low-Memory MSP430™ FRAM MCUs 18 Oct 2017
Application brief Analog Input to PWM Output Using the MSP430™ MCU Enhanced Comparator 18 Oct 2017
Application brief Multi-Function Reset Controller With Low-Memory MSP430™ MCUs 18 Oct 2017
Application brief Quadrature Encoder Position Counter With MSP430™ MCUs 17 Oct 2017
Application brief ADC Wake and Transmit on Threshold Using MSP430™ MCUs 17 Oct 2017
Application brief Programmable System Wake-up Controller Using MSP430™ MCUs 17 Oct 2017
Application note Optimizing C Code for Size With MSP430 MCUs: Tips and Tricks 16 Oct 2017
Application brief Simple RTC-Based System Wake-up Controller Using MSP430™ MCUs 13 Oct 2017
Application brief UART-to-SPI Bridge Using Low-Memory MSP430™ MCUs 13 Oct 2017
Application brief UART-to-UART Bridge Using Low-Memory MSP430™ MCUs 09 Oct 2017
Application brief Programmable Clock Source Using MSP430™ MCUs 28 Sep 2017
Application brief Servo Motor Controller Using MSP430™ MCUs 27 Sep 2017
Application brief Programmable Frequency Locked Loop Using MSP430™ MCUs 27 Sep 2017
Application brief Low -Power Hex Keypad Using MSP430™ MCUs 27 Sep 2017
Application brief Stepper Motor Control Using MSP430™ MCUs 26 Sep 2017
Application brief External Programmable Watchdog Timer Using MSP430™ MCUs 26 Sep 2017
Application brief Single-Wire Communication Host With MSP430™ MCUs 15 Sep 2017
Application brief External RTC With Backup Memory Using a Low-Memory MSP430™ MCU 15 Sep 2017
Application brief UART Software Controlled RGB LED Color Mixing With MSP430™ MCUs 15 Sep 2017

Related design resources

Software development

IDE, CONFIGURATION, COMPILER OR DEBUGGER
CCSTUDIO Code Composer Studio™ integrated development environment (IDE) IAR-KICKSTART IAR Embedded Workbench

Support & training

TI E2E™ forums with technical support from TI engineers

View all forum topics

Content is provided "as is" by 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, see TI support.

Videos