Microcontrollers (MCU)

Design Support

Getting Started

Selection Tool

Training & Events

Developer Network

University

MSP430 Ultra-Low Power 16-bit MCUs

MSP430 16-bit Microcontroller Code Examples and Function Library

Code examples are available for every MSP430 device that configures each of the integrated peripherals for various application needs. Each zip file below includes both C and assembly code examples that can be directly imported into IAR or CCS. Developers may use the code examples "as-is" or modify the various code modules to jumpstart custom applications. Check the readme to see the complete list of available code snippets along with brief descriptions. Please read applicable section under terms of use prior to utilizing any software. Happy coding!

 

MSP430 Code Examples

Devices Supported - Includes Assembly (.asm, .s43) and C (.c) Code Examples .zip contents
MSP430x11x1, MSP430F21x1 Read me
MSP430F11x2, MSP430F12x, MSP430F12x2 Read me
MSP430x13x, MSP430F14x, MSP430F15x, MSP430F16x Read me
MSP430AFE25x
MSP430F20xx Read me
MSP430G2xx1
MSP430G2xx2 
MSP430G2xx3  
MSP430F21x2 Read me
MSP430F22x2, MSP430F22x4 Read me
MSP430F23x0 Read me
MSP430F23x, MSP430F24x(1), MSP430F2410 Read me
MSP430F241x, MSP430F261x Read me
MSP430x41x, MSP430F42x, MSP430F42xA Read me
MSP430F41x2 Read me
MSP430F42x0, MSP430FG42x0 Read me
MSP430F43x, MSP430F44x Read me
MSP430FG43x Read me
MSP430FG461x Read me
MSP430F47x, MSP430FG47x Read me
MSP430F47x3, MSP430F47x4 Read me
MSP430F471x6 / MSP430F471x7 Read me
MSP430F543x, MSP430F541x Read me
MSP430F543xA, MSP430F541xA
MSP430F55xx
MSP430L092 
CC430F513x
CC430F613x, CC430F612x
*CCE v2 legacy C code examples are also available (SLAC164)

 

Code Function Library

Function Devices Supported
MSP430 Interface to CC1100/2500 All Devices
Real-Time-Clock All Devices
Timer_A UART Library All devices except 20xx, 241x, 261x, and xG461x
Using the DCO Library MSP430x1xx and MSP430F2xx Devices
Using the USI I2C Code Library  MSP430F20xx Devices
Using the VLO Library MSP430F2xx devices with VLO

 

RF Protocol Stacks

Function Devices Supported
SimpliciTI™ Open source, low-power RF protocol aimed at simple, small RF networks.
Z-Stack Z-Stack™ is TI's ZigBee stack compliant with both the ZigBee® 2007 (ZigBee PRO) and ZigBee® 2006 specification.
TI-MAC IEEE 802.15.4 Medium Access Control (MAC) software stack.