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

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

Checksum

Analog Input to PWM Output

Checksum

Dual output 8-bit PWM DAC

Checksum

Servo Motor Controller

Checksum

Stepper Motor Controller

Checksum

UART Software -Controlled RGB LED Color Mixing

Checksum

ADC Wake and Transmit on Threshold

Checksum

EEPROM Emulation

Checksum

Quadrature Encoder Position Counter

Checksum

Hysteresis Comparator with UART

Checksum

Multi-Function Reset Controller

Checksum

Single Slope Analog-to-Digital Conversion Technique

Checksum

Programmable Frequency-locked Loop

Checksum

External RTC with backup memory

Checksum

External Programmable Watchdog Timer

Checksum

Programmable System Wakeup Controller

Checksum

Simple RTC-based System Wake-up Controller

Checksum

Voltage Monitor with timestamp

Checksum

All Functions together in a single zip file

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.

Supported products & hardware

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
Development kit
MSP-EXP430FR2311 MSP430FR2311 LaunchPad™ development kit MSP-TS430PW20 Target Development Board for MSP430FR2000, MSP430FR21x and MSP430FR23x MCUs - 20-pin
Hardware programming tool
MSP-FET MSP MCU Programmer and Debugger

Technical documentation

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

Related design resources

Software development

SOFTWARE DEVELOPMENT KIT (SDK)
MSPWARE MSP430Ware for MSP Microcontrollers
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