CC430
   HOME

TheInfoList



OR:

The MSP430 is a
mixed-signal A mixed-signal integrated circuit is any integrated circuit that has both analog circuits and digital circuits on a single semiconductor die.microcontroller A microcontroller (MC, uC, or μC) or microcontroller unit (MCU) is a small computer on a single integrated circuit. A microcontroller contains one or more CPUs (processor cores) along with memory and programmable input/output peripherals. Pro ...
family from
Texas Instruments Texas Instruments Incorporated (TI) is an American multinational semiconductor company headquartered in Dallas, Texas. It is one of the top 10 semiconductor companies worldwide based on sales volume. The company's focus is on developing analog ...
, first introduced on 14 February 1992. Built around a
CPU A central processing unit (CPU), also called a central processor, main processor, or just processor, is the primary processor in a given computer. Its electronic circuitry executes instructions of a computer program, such as arithmetic, log ...
, the MSP430 was designed for low power consumption, embedded applications and low cost.


Features

The fundamental feature of the MSP430 is low power consumption. The first MSP430s (MSP430C3xx) had a consumption around 400 uA/MHz and less than 2 uA in low-power mode with active basic timer and
LCD A liquid-crystal display (LCD) is a flat-panel display or other electronically modulated optical device that uses the light-modulating properties of liquid crystals combined with polarizers to display information. Liquid crystals do not em ...
driver. The more recent MSPs (MSP430FR5xx) have active mode consumption around 100-120 uA/MHz and 500 nA in low-power mode with active RTC. The consumption of the CPU itself is less than 32 uA/MHz. The MSP430FR series, which use FRAM instead of a
flash Flash, flashes, or FLASH may refer to: Arts, entertainment, and media Fictional aliases * The Flash, several DC Comics superheroes with super speed: ** Flash (Jay Garrick) ** Barry Allen ** Wally West, the first Kid Flash and third adult Flash ...
, also allow fast writing to a non-volatile memory without additional power requirements. The MSP430s use up to seven different low-power modes. The wake-up times differ on the mode and MSP430 generation. The fastest MSP430-family processors have wake-up times under 1 microsecond. The MSP430s can run up to 25 MHz, while register-to-register operations take 1 cycle per instruction. The MSP430 family has more than 550 types, not counted package variants. There are microcontrollers with 0.5-512 kB
flash Flash, flashes, or FLASH may refer to: Arts, entertainment, and media Fictional aliases * The Flash, several DC Comics superheroes with super speed: ** Flash (Jay Garrick) ** Barry Allen ** Wally West, the first Kid Flash and third adult Flash ...
or 0.5-256 kB FRAM and up to 66 kB
RAM Ram, ram, or RAM most commonly refers to: * A male sheep * Random-access memory, computer memory * Ram Trucks, US, since 2009 ** List of vehicles named Dodge Ram, trucks and vans ** Ram Pickup, produced by Ram Trucks Ram, ram, or RAM may also ref ...
. The device comes in a variety of generations featuring the usual peripherals: * Internal
oscillator Oscillation is the repetitive or periodic variation, typically in time, of some measure about a central value (often a point of equilibrium) or between two or more different states. Familiar examples of oscillation include a swinging pendulum ...
, *
Timer A timer or countdown timer is a type of clock that starts from a specified time duration and stops upon reaching 00:00. It can also usually be stopped manually before the whole duration has elapsed. An example of a simple timer is an hourglass ...
including
pulse-width modulation Pulse-width modulation (PWM), also known as pulse-duration modulation (PDM) or pulse-length modulation (PLM), is any method of representing a signal as a rectangular wave with a varying duty cycle (and for some methods also a varying peri ...
(PWM), *
Watchdog timer A watchdog timer (WDT, or simply a ''watchdog''), sometimes called a ''computer operating properly timer'' (''COP timer''), is an electronic or software timer that is used to detect and recover from computer malfunctions. Watchdog timers are wide ...
, *
USART A universal synchronous and asynchronous receiver-transmitter (USART, programmable communications interface or PCI) is a type of a serial interface device that can be programmed to communicate asynchronously or synchronously. See universal asynchron ...
, *
Serial Peripheral Interface Serial Peripheral Interface (SPI) is a de facto standard (with many variants) for synchronous serial communication, used primarily in embedded systems for short-distance wired communication between integrated circuits. SPI follows a master� ...
(SPI) bus, * Inter-Integrated Circuit (
I²C I2C (Inter-Integrated Circuit; pronounced as "" or ""), alternatively known as I2C and IIC, is a synchronous, multi-master/multi-slave, single-ended, serial communication bus invented in 1980 by Philips Semiconductors (now NXP Semiconduct ...
), *
Analog-to-digital converter In electronics, an analog-to-digital converter (ADC, A/D, or A-to-D) is a system that converts an analog signal, such as a sound picked up by a microphone or light entering a digital camera, into a Digital signal (signal processing), digi ...
(ADC) options: ** 10/12/14-bit
successive-approximation ADC A successive-approximation ADC (or SAR ADC) is a type of analog-to-digital converter (ADC) that Digitization, digitizes each Sampling (signal processing), sample from a continuous analog waveform using a binary search through all possible Quanti ...
** 16/24-bit
delta sigma ADC Delta-sigma (ΔΣ; or sigma-delta, ΣΔ) modulation is an oversampling method for encoding signals into low bit depth digital signals at a very high sample-frequency as part of the process of delta-sigma analog-to-digital converters (ADCs) ...
** Internal
analog comparator In electronics, a comparator is a device that compares two voltages or currents and outputs a digital signal indicating which is larger. It has two analog input terminals V_+ and V_- and one binary digital output V_\text. The output is ideally : ...
with digital timers *** Can measure resistor-capacitor slope charging time * Brownout reset
circuitry An electronic circuit is composed of individual electronic components, such as resistors, transistors, capacitors, inductors and diodes, connected by conductive wires or traces through which electric current can flow. It is a type of electric ...
. Some less usual peripheral options include on-chip
operational amplifier An operational amplifier (often op amp or opamp) is a direct coupling, DC-coupled Electronic component, electronic voltage amplifier with a differential input, a (usually) Single-ended signaling, single-ended output, and an extremely high gain ( ...
s (op-amp) for
signal conditioning In electronics and signal processing, signal conditioning is the manipulation of an analog signal in such a way that it meets the requirements of the next stage for further processing. In an analog-to-digital converter (ADC) application, signal ...
, 12-bit
digital-to-analog converter In electronics, a digital-to-analog converter (DAC, D/A, D2A, or D-to-A) is a system that converts a digital signal into an analog signal. An analog-to-digital converter (ADC) performs the reverse function. DACs are commonly used in musi ...
(DAC),
liquid crystal display A liquid-crystal display (LCD) is a flat-panel display or other Electro-optic modulator, electronically modulated optical device that uses the light-modulating properties of liquid crystals combined with polarizers to display information. Liq ...
(LCD) driver,
hardware multiplier A binary multiplier is an electronic circuit used in digital electronics, such as a computer, to multiply two binary numbers. A variety of computer arithmetic techniques can be used to implement a digital multiplier. Most techniques involve com ...
,
USB Universal Serial Bus (USB) is an industry standard, developed by USB Implementers Forum (USB-IF), for digital data transmission and power delivery between many types of electronics. It specifies the architecture, in particular the physical ...
, and
direct memory access Direct memory access (DMA) is a feature of computer systems that allows certain hardware subsystems to access main system computer memory, memory independently of the central processing unit (CPU). Without DMA, when the CPU is using programmed i ...
(DMA) for ADC results. Apart from some older erasable programmable read-only memory (
EPROM An EPROM (rarely EROM), or erasable programmable read-only memory, is a type of programmable read-only memory (PROM) integrated circuit, chip that retains its data when its power supply is switched off. Computer memory that can retrieve stored d ...
, such as MSP430E3xx) and high volume
mask ROM Read-only memory (ROM) is a type of non-volatile memory used in computers and other electronic devices. Data stored in ROM cannot be electronically modified after the manufacture of the memory device. Read-only memory is useful for storing so ...
(MSP430Cxxx) versions, all of the devices are in-system programming enabled via Joint Test Action Group (
JTAG JTAG (named after the Joint Test Action Group which codified it) is an industry standard for verifying designs of and testing printed circuit boards after manufacture. JTAG implements standards for on-chip instrumentation in electronic design ...
), full four-wire or Spy-Bi-Wire), a built in
bootstrapping In general, bootstrapping usually refers to a self-starting process that is supposed to continue or grow without external input. Many analytical techniques are often called bootstrap methods in reference to their self-starting or self-supporting ...
loader (BSL) using
UART A universal asynchronous receiver-transmitter (UART ) is a peripheral device for asynchronous serial communication in which the data format and transmission speeds are configurable. It sends data bits one by one, from the least significant to ...
such as
RS-232 In telecommunications, RS-232 or Recommended Standard 232 is a standard introduced in 1960 for serial communication transmission of data. It formally defines signals connecting between a ''DTE'' (''data terminal equipment'') such as a compu ...
, or
USB Universal Serial Bus (USB) is an industry standard, developed by USB Implementers Forum (USB-IF), for digital data transmission and power delivery between many types of electronics. It specifies the architecture, in particular the physical ...
on devices with USB support. No BSL is included in F20xx, G2xx0, G2xx1, G2xx2, or I20xx family devices.


Memory limitations

There are, however, limits that preclude its use in more complex
embedded system An embedded system is a specialized computer system—a combination of a computer processor, computer memory, and input/output peripheral devices—that has a dedicated function within a larger mechanical or electronic system. It is e ...
s. The MSP430 does not have an external
memory bus In computer architecture, a bus (historically also called a data highway or databus) is a communication system that transfers data between components inside a computer or between computers. It encompasses both hardware (e.g., wires, optica ...
, so it is limited to on-chip memory, up to 512 KB
flash memory Flash memory is an Integrated circuit, electronic Non-volatile memory, non-volatile computer memory storage medium that can be electrically erased and reprogrammed. The two main types of flash memory, NOR flash and NAND flash, are named for t ...
and 66 KB
random-access memory Random-access memory (RAM; ) is a form of Computer memory, electronic computer memory that can be read and changed in any order, typically used to store working Data (computing), data and machine code. A random-access memory device allows ...
(RAM), which may be too small for applications needing large buffers or data tables. Also, although it has a DMA controller, it is very difficult to use it to move data off the chip due to a lack of a DMA output strobe.D. Peters, D. Raskovic, and D. Thorsen
"An Energy Efficient Parallel Embedded System for Small Satellite Applications"
'' ISAST Transactions on Computers and Intelligent Systems'', vol. 1(2), 2009


MSP430 generations

Six general generations of MSP430 processors exist. In order of development, they are: '3xx generation, '1xx generation, '4xx generation, '2xx generation, '5xx generation, and '6xx generation. The digit after the generation identifies the model (generally higher model numbers are larger and more capable), the third digit identifies the amount of memory included, and the fourth, if present, identifies a minor model variant. The most common variation is a different on-chip
analog-to-digital converter In electronics, an analog-to-digital converter (ADC, A/D, or A-to-D) is a system that converts an analog signal, such as a sound picked up by a microphone or light entering a digital camera, into a Digital signal (signal processing), digi ...
. The 3xx and 1xx generations are limited to a 16-bit address space. In the later generations this was expanded to include '430X' instructions that allow a 20-bit address space. As happened with other processor architectures (e.g. the processor of the
PDP-11 The PDP–11 is a series of 16-bit minicomputers originally sold by Digital Equipment Corporation (DEC) from 1970 into the late 1990s, one of a set of products in the Programmed Data Processor (PDP) series. In total, around 600,000 PDP-11s of a ...
), extending the addressing range beyond the 16-bit word size introduced some peculiarities and inefficiencies for programs larger than 64 KB. In the following list, it helps to think of the typical 200 mA·Hr capacity of a
CR2032 A button cell, watch battery, or coin battery is a small battery made of a single electrochemical cell and shaped as a squat cylinder typically in diameter and high – resembling a button. Stainless steel usually forms the bottom body and p ...
lithium
coin cell A button cell, watch battery, or coin battery is a small battery made of a single electrochemical cell and shaped as a squat cylinder typically in diameter and high – resembling a button. Stainless steel usually forms the bottom body and p ...
as 200,000 μA·Hr, or 22.8 μA·year. Thus, considering only the CPU draw, such a battery could supply a 0.7 μA current draw for 32 years. (In reality, battery
self-discharge Self-discharge is a phenomenon in batteries. Self-discharge decreases the shelf life Shelf life is the length of time that a commodity may be stored without becoming unfit for use, consumption, or sale. In other words, it might refer to whethe ...
would reduce this number.) The significance of the ''RAM retention'' vs the ''real-time clock mode'' is that in real time clock mode the CPU can go to sleep with a clock running which will wake it up at a specified future time. In RAM retention mode, some external signal is required to wake it, e.g.,
input/output In computing, input/output (I/O, i/o, or informally io or IO) is the communication between an information processing system, such as a computer, and the outside world, such as another computer system, peripherals, or a human operator. Inputs a ...
(I/O) pin signal or SPI slave receive interrupt.


MSP430x1xx series

The MSP430x1xx Series is the first generation with flash memory. They are generally more capable than the '3xx generation, but without an embedded
LCD A liquid-crystal display (LCD) is a flat-panel display or other electronically modulated optical device that uses the light-modulating properties of liquid crystals combined with polarizers to display information. Liquid crystals do not em ...
controller. These flash- or ROM-based ultra-low-power MCUs offer 8 MIPS, 1.8–3.6 V operation, up to 60 KB flash, and a wide range of analog and digital peripherals. :*Power specification overview, as low as: :**0.1 μA RAM retention :**0.7 μA real-time clock mode :**200 μA / MIPS active :**Features fast wake-up from standby mode in less than 6 μs. :*Device parameters :**Flash options: 1–60 KB :**ROM options: 1–16 KB :**RAM: 128 B–10 KB :**GPIO options: 14, 22, 48 pins :**ADC options: Slope, 10 & 12-bit SAR :**Other integrated peripherals: 12-bit DAC, up to 2 16-bit timers, watchdog timer, brown-out reset, SVS, USART module (UART, SPI), DMA, 16×16 multiplier, Comparator_A, temperature sensor


MSP430F2xx series

Th
MSP430F2xx Series
are similar to the '1xx generation, but operate at even lower power, support up to 16 MHz operation, and have a more accurate (±2%) on-chip clock that makes it easier to operate without an external crystal. These flash-based ultra-low power devices offer 1.8–3.6 V operations. It includes the very-low power oscillator (VLO), internal pull-up/pull-down resistors, and low-pin count options. :*Power specification overview, as low as: :**0.1 μA RAM retention :**0.3 μA standby mode (VLO) :**0.7 μA real-time clock mode :**220 μA / MIPS active :**Feature ultra-fast wake-up from standby mode in less than 1 μs :*Device parameters :**Flash options: 1–120 KB :**RAM options: 128 B – 8 KB :**GPIO options: 10, 11, 16, 24, 32, and 48 pins :**ADC options: Slope, 10 & 12-bit SAR, 16 & 24-bit Sigma Delta :**Other integrated peripherals: operational amplifiers, 12-bit DAC, up to 2 16-bit timers, watchdog timer, brown-out reset, SVS, USI module (I²C, SPI), USCI module, DMA, 16×16 multiplier, Comparator_A+, temperature sensor


MSP430G2xx series

The MSP430G2xx Value Series features flash-based Ultra-Low Power MCUs up to 16 MIPS with 1.8–3.6 V operation. It includes the Very-Low power Oscillator (VLO), internal pull-up/pull-down resistors, and low-pin count options at lower prices than the MSP430F2xx series. :*Ultra-Low Power, as low as (@2.2 V): :**0.1 μA RAM retention :**0.4 μA Standby mode (VLO) :**0.7 μA real-time clock mode :**220 μA / MIPS active :**Ultra-Fast Wake-Up From Standby Mode in <1 μs :*Device parameters :**Flash options: 0.5–56 KB :**RAM options: 128 B–4 KB :**GPIO options: 10, 16, 24, 32 pins :**ADC options: Slope, 10-bit SAR :**Other integrated peripherals: Capacitive Touch I/O, up to 3 16-bit timers, watchdog timer, brown-out reset, USI module (I²C, SPI), USCI module, Comparator_A+, Temp sensor


MSP430x3xx series

Th
MSP430x3xx Series
is the oldest generation, released between 1995 and 1998. The MSP430 was designed as a successor to TSS400 for battery-powered metering instruments. All MSP430x3xx had an embedded LCD controller and also a digital controlled oscillator (DCO) with frequency-locked loop (FLL) which provided a stable system clock (1 to 4 MHz) using a low-frequency crystal (32 kHz). This generation does not support
EEPROM EEPROM or E2PROM (electrically erasable programmable read-only memory) is a type of non-volatile memory. It is used in computers, usually integrated in microcontrollers such as smart cards and remote keyless systems, or as a separate chip d ...
memory, only mask ROM and UV-eraseable and one-time programmable
EPROM An EPROM (rarely EROM), or erasable programmable read-only memory, is a type of programmable read-only memory (PROM) integrated circuit, chip that retains its data when its power supply is switched off. Computer memory that can retrieve stored d ...
. Later generations provide only flash memory and
mask ROM Read-only memory (ROM) is a type of non-volatile memory used in computers and other electronic devices. Data stored in ROM cannot be electronically modified after the manufacture of the memory device. Read-only memory is useful for storing so ...
options. These devices offer 2.5–5.5 V operation, up to 32 KB ROM. :*Power specification overview, as low as: :**0.1 μA RAM retention :**0.9 μA real-time clock mode :**160 μA / MIPS active :**Features fast wake-up from standby mode in less than 6 μs. :*Device parameters: :**ROM options: 2–32 KB :**RAM options: 512 B–1 KB :**GPIO options: 14, 40 pins :**ADC options: Slope, 14-bit SAR :**Other integrated peripherals: LCD controller, multiplier


MSP430x4xx series

Th
MSP430x4xx Series
are similar to the '1xx generation, but include an integrated LCD controller, and are larger and often more capable. These flash or ROM based devices offers 8–16 MIPS at 1.8–3.6 V operation, with FLL, and SVS. Ideal for low power metering and medical applications. :*Power specification overview, as low as: :**0.1 μA RAM retention :**0.7 μA real-time clock mode :**200 μA / MIPS active :**Features fast wake-up from standby mode in less than 6 μs. :*Device parameters: :**Flash/ROM options: 4 – 120 KB :**RAM options: 256 B – 8 KB :**GPIO options: 14, 32, 48, 56, 68, 72, 80 pins :**ADC options: Slope, 10 & 12-bit SAR, 16-bit Sigma Delta :**Other integrated peripherals: SCAN_IF, ESP430, 12-bit DAC, Op Amps, RTC, up to 2 16-bit timers, watchdog timer, basic timer, brown-out reset, SVS, USART module (UART, SPI), USCI module, LCD Controller, DMA, 16×16 & 32x32 multiplier, Comparator_A, temperature sensor, 8 MIPS CPU Speed


MSP430x5xx series

Th
MSP430x5xx Series
are able to run up to 25 MHz, have up to 512 KB flash memory and up to 66 KB RAM. This flash-based family features low active power consumption with up to 25 MIPS at 1.8–3.6 V operation (165 uA/MIPS). Includes an innovative power management module for optimal power consumption and integrated USB. :*Power specification overview, as low as: :**0.1 μA RAM retention :**2.5 μA real-time clock mode :**165 μA / MIPS active :**Features fast wake-up from standby mode in less than 5 μs. :*Device parameters: :**Flash options: up to 512 KB :**RAM options: up to 66 KB :**ADC options: 10 & 12-bit SAR :**GPIO options: 29, 31, 47, 48, 63, 67, 74, 87 pins :**Other optional integrated peripherals: 12-bit DAC, High resolution PWM, 5 V I/O's, USB, backup battery switch, up to 4 16-bit timers, watchdog timer, Real-Time Clock, brown-out reset, SVS, USCI module, DMA, 32x32 multiplier, Comp B, temperature sensor


MSP430x6xx series

Th
MSP430x6xx Series
are able to run up to 25 MHz, have up to 512 KB flash memory and up to 66 KB RAM. This flash-based family features low active power consumption with up to 25 MIPS at 1.8–3.6 V operation (165 uA/MIPS). Includes an innovative power management module for optimal power consumption and integrated USB. Many 6xx series devices are pin-compatible with an analogous 5xx series device except that the 6xx device adds USB support. :*Power specification overview, as low as: :**0.1 μA RAM retention :**2.5 μA real-time clock mode :**165 μA / MIPS active :**Features fast wake-up from standby mode in less than 5 μs. :*Device parameters: :**Flash options: up to 512 KB :**RAM options: up to 66 KB :**ADC options: 12-bit SAR :**GPIO options: 74 pins :**Other integrated peripherals: USB, LCD, DAC, Comparator_B, DMA, 32x32 multiplier, power management module (BOR, SVS, SVM, LDO), watchdog timer, RTC, Temp sensor


RF SoC (CC430) series

Th
RF SoC (CC430) Series
provides tight integration between the microcontroller core, peripherals, software, and RF transceiver. Features <1 GHz RF transceiver, with 1.8 V–3.6 V operation. Programming using Arduino
integrated development environment An integrated development environment (IDE) is a Application software, software application that provides comprehensive facilities for software development. An IDE normally consists of at least a source-code editor, build automation tools, an ...
(IDE) is possible via th
panStamp API
:*Power specification overview, as low as: :**1 μA RAM retention :**1.7 μA real-time clock mode :**180 μA / MIPS active :*Device parameters: :**Speed options: up to 20 MHz :**Flash options: up to 32 KB :**RAM options: up to 4 KB :**ADC options: 12-bit SAR :**GPIO options: 30 & 44 pins :**Other integrated peripherals: LCD Controller, up to 2 16-bit timers, watchdog timer, RTC, power management module (BOR, SVS, SVM, LDO), USCI module, DMA, 32x32 multiplier, Comp B, temperature sensor


FRAM series

Th
FRAM Series
from Texas Instruments provides unified memory with dynamic partitioning and memory write speeds 100 times faster than flash. FRAM is also capable of zero power state retention in all power modes, which means that writes are guaranteed, even in the event of a power loss. With a write endurance of over 100 trillion cycles, EEPROM is no longer required. Active power consumption at less than 100 μA/MHz. :*Power specification overview, as low as: :**320 nA RAM retention :**0.35 μA real-time clock mode :**82 μA / MIPS active :*Device parameters: :**Speed options: 8 to 24 MHz :**FRAM options: 4 to 256 KB :**RAM options: 0.5 to 8 KB :**ADC options: 10 or 12-bit SAR :**GPIO options: 17 to 83 GPIO pins :**Other possible integrated peripherals: MPU, up to 6 16-bit timers, watchdog timer, RTC, power management module (BOR, SVS, SVM, LDO), USCI module, DMA, multiplier, Comp B, temperature sensor, LCD driver, I2C and UART BSL, Extended Scan Interface, 32 bit multiplier, AES, CRC, signal processing acceleration, capacitive touch, IR modulation


Low voltage series

Th
Low Voltage Series
include the MSP430C09x and MSP430L092 parts, capable of running at 0.9 V. These 2 series of low voltage 16-bit microcontrollers have configurations with two 16-bit timers, an 8-bit analog-to-digital (A/D) converter, an 8-bit digital-to-analog (D/A) converter, and up to 11 I/O pins. :*Power specification overview, as low as: :**1 μA RAM retention :**1.7 μA real-time clock mode :**180 μA / MIPS active :*Device parameters: :**Speed options: 4 MHz :**ROM options: 1–2 KB :**SRAM options: 2 KB :**ADC options: 8-bit SAR :**GPIO options: 11 pins :**Other integrated peripherals: up to 2 16-bit timers, watchdog timer, brown-out reset, SVS, comparator, temperature sensor


Other MSP430 families

More families within MSP430 includ
Fixed FunctionAutomotive
an
Extended Temp
parts.
Fixed Function
The MSP430BQ1010 16-bit microcontroller is an advanced fixed-function device that forms the control and communications unit on the receiver side for wireless power transfer in portable applications. MSP430BQ1010 complies with the Wireless Power Consortium (WPC) specification. For more information, se
Contactless Power

Automotive
Automotive MSP430 microcontrollers (MCUs) from Texas Instruments (TI) are 16-bit, RISC-based, mixed-signal processors that are AEC-Q100 qualified and suitable for automotive applications in environments up to 105 °C ambient temperature. LIN compliant drivers for the MSP430 MCU provided by IHR GmbH.
Extended Temp
MSP430 devices are very popular in harsh environments such as industrial sensing for their low power consumption and innovative analog integration. Some harsh environment applications include transportation/automotive, renewable energy, military/space/avionics, mineral exploration, industrial, and safety & security. :*Device Definitions: :**HT: -55 °C to 150 °C :**EP: Enhanced products -55 °C to 125 °C :**Q1: Automotive Q100 qualified -40 °C to 105 °C :**T: Extended temperature -40 °C to 105 °C applications Note that when the flash size is over 64K words (128 KBytes), instruction addresses can no longer be encoded in just two bytes. This change in pointer size causes some incompatibilities with previous parts.


Peripherals

The MSP430 peripherals are generally easy to use, with (mostly) consistent addresses between models, and no write-only registers (except for the hardware multiplier).


General purpose I/O ports 0–10

If the peripheral is not needed, the pin may be used for general purpose I/O. The pins are divided into 8-bit groups called "ports", each of which is controlled by a number of 8-bit registers. In some cases, the ports are arranged in pairs which can be accessed as 16-bit registers. The MSP430 family defines 11 I/O ports, P0 through P10, although no chip implements more than 10 of them. P0 is only implemented on the '3xx family. P7 through P10 are only implemented on the largest members (and highest pin count versions) of the '4xx and '2xx families. The newest '5xx and '6xx families has P1 through P11, and the control registers are reassigned to provide more port pairs. Each port is controlled by the following registers. Ports which do not implement particular features (such as interrupt on state change) do not implement the corresponding registers. ; P''x''IN : Port ''x'' input. This is a read-only register, and reflects the current state of the port's pins. ; P''x''OUT : Port ''x'' output. The values written to this read/write register are driven out the corresponding pins when they are configured to output. ; P''x''DIR : Port ''x'' data direction. Bits written as 1 configure the corresponding pin for output. Bits written as 0 configure the pin for input. ; P''x''SEL : Port ''x'' function select. Bits written as 1 configure the corresponding pin for use by the specialized peripheral. Bits written as 0 configure the pin for general purpose I/O. Port 0 ('3xx parts only) is not multiplexed with other peripherals and does not have a P0SEL register. ; P''x''REN : Port ''x'' resistor enable ('2xx & '5xx only). Bits set in this register enable weak pull-up or
pull-down resistor In electronic logic circuits, a pull-up resistor (PU) or pull-down resistor (PD) is a resistor used to ensure a known state for a signal. More specifically, a pull-up resistor or pull-down resistor ensures that a wire will have a high logic lev ...
s on the corresponding I/O pins even when they are configured as inputs. The direction of the pull is set by the bit written to the P''x''OUT register. ; P''x''DS : Port ''x'' drive strength ('5xx only). Bits set in this register enable high current outputs. This increases output power, but may cause electromagnetic interference (EMI). Ports 0–2 can produce interrupts when inputs change. Further registers configure this ability: ; P''x''IES : Port ''x'' interrupt edge select. Selects the edge which will cause the P''x''IFG bit to be set. When the input bit changes from matching the P''x''IES state to not matching it (i.e. whenever a bit in P''x''IES XOR P''x''IN changes from clear to set), the corresponding P''x''IFG bit is set. ; P''x''IE : Port ''x'' interrupt enable. When this bit and the corresponding P''x''IFG bit are both set, an interrupt is generated. ; P''x''IFG : Port ''x'' interrupt flag. Set whenever the corresponding pin makes the state change requested by P''x''IES. Can be cleared only by software. (Can also be set by software.) ; P''x''IV : Port ''x'' interrupt vector ('5xx only). This 16-bit register is a
priority encoder A priority encoder is a Electronic circuit, circuit or algorithm that compresses multiple Binary code, binary inputs into a smaller number of outputs, similar to a Encoder (digital), simple encoder. The output of a priority encoder is the binary re ...
which can be used to handle pin-change interrupts. If ''n'' is the lowest-numbered interrupt bit which is pending in P''x''IFG and enabled in P''x''IE, this register reads as 2''n''+2. If there is no such bit, it reads as 0. The scale factor of 2 allows direct use as an offset into a
branch table A branch, also called a ramus in botany, is a Plant stem, stem that grows off from another stem, or when structures like veins in leaves are divided into smaller veins. History and etymology In Old English, there are numerous words for bra ...
. Reading this register also clears the reported P''x''IFG flag. Some pins have special purposes either as inputs or outputs. (For example, timer pins can be configured as capture inputs or PWM outputs.) In this case, the P''x''DIR bit controls which of the two functions the pin performs when the P''x''SEL bit is set. If there is only one special function, then P''x''DIR is generally ignored. The P''x''IN register is still readable if the P''x''SEL bit is set, but interrupt generation is disabled. If P''x''SEL is clear, the special function's input is frozen and disconnected from the external pin. Also, configuring a pin for general purpose output does ''not'' disable interrupt generation.


Integrated peripherals

;Analog :*;Analog-to-digital converter ::The MSP430 line offers two types of
analog-to-digital conversion In electronics, an analog-to-digital converter (ADC, A/D, or A-to-D) is a system that converts an analog signal, such as a sound picked up by a microphone or light entering a digital camera, into a digital signal. An ADC may also provide ...
(ADC). 10- and 12-bit successive approximation converters, as well as a 16-bit sigma-delta converter. Data transfer controllers and a 16-word conversion-and-control buffer allow the MSP430 to convert and store samples without CPU intervention, minimizing power consumption. :*;Analog pool ::The Analog Pool (A-POOL) module can be configured as an ADC, DAC, comparator, SVS or temperature sensor. It allows flexibility for the user to program a series of analog functions with only one setup. :*;Comparator A, A+ ::The MSP430's comparator module provides precision slope analog-to-digital conversions. Monitors external analog signals and provides voltage and resistor value measurement. Capable of selectable power modes. :*;DAC12 ::The DAC12 module is a 12-bit, voltage-output DAC featuring internal/external reference selection and programmable settling time for optimal power consumption. It can be configured in 8- or 12-bit mode. When multiple DAC12 modules are present, they may be grouped together for synchronous update operation. :*;Op Amps ::Feature single supply, low current operation with rail-to-rail outputs and programmable settling times. Software selectable configuration options: unity gain mode, comparator mode, inverting PGA, non-inverting PGA, differential and instrumentation amplifier. :*;Sigma Delta (SD) ::The SD16/SD16_A/SD24_A modules each feature 16-/24-bit sigma-delta A/D converters with an internal 1.2-V reference. Each converter has up to eight fully differential multiplexed inputs, including a built-in temperature sensor. The converters are second-order oversampling sigma-delta modulators with selectable oversampling ratios of up to 1024 (SD16_A/SD24_A) or 256 (SD16). ;Timers :*;Basic timer (BT) ::The BT has two independent 8-bit timers that can be cascaded to form a 16-bit timer/counter. Both timers can be read and written by software. The BT is extended to provide an integrated RTC. An internal calendar compensates for months with less than 31 days and includes leap-year correction. :*;Real-Time Clock ::RTC_A/B are 32-bit hardware counter modules that provide clock counters with a calendar, a flexible programmable alarm, and calibration. The RTC_B includes a switchable battery backup system that provides the ability for the RTC to operate when the primary supply fails. :*;16-bit timers ::Timer_A, Timer_B and Timer_D are asynchronous 16-bit timers/counters with up to seven capture/compare registers and various operating modes. The timers support multiple capture/compares, PWM outputs, and interval timing. They also have extensive interrupt capabilities. Timer_B introduces added features such as programmable timer lengths (8-, 10-, 12-, or 16-bit) and double-buffered compare register updates, while Timer_D introduces a high-resolution (4 ns) mode. :*;
Watchdog Watchdog or watch dog may refer to: Animals *Guard dog, a dog that barks to alert its owners of an intruder's presence * Portuguese Watchdog, Cão de Castro Laboreiro, a dog breed * Moscow Watchdog, a breed of dog that was bred in the Soviet U ...
(WDT+) ::The WDT+ performs a controlled system restart after a software problem occurs. If the selected time interval expires, a system reset is generated. If the watchdog function is not needed in an application, the module can be configured as an interval timer and can generate interrupts at selected time intervals. ;System :*;Advanced Encryption Standard (AES) ::The AES accelerator module performs encryption and decryption of 128-bit data with 128-bit keys according to the advanced encryption standard in hardware, and can be configured with user software. :*;Brown-Out Reset (BOR) ::The BOR circuit detects low supply voltages and resets the device by triggering a power-on reset (POR) signal when power is applied or removed. The MSP430 MCU’s zero-power BOR circuit is continuously turned on, including in all low-power modes. :*;Direct Memory Access (DMA) Controller ::The DMA controller transfers data from one address to another across the entire address range without CPU intervention. The DMA increases the throughput of peripheral modules and reduces system power consumption. The module features up to three independent transfer channels. ::Although the MSP430's DMA subsystem is very capable it has several flaws, the most significant of which is the lack of an external transfer strobe. Although a DMA transfer can be triggered externally, there is no external indication of completion of a transfer. Consequently DMA to and from external sources is limited to external trigger per byte transfers, rather than full blocks automatically via DMA. This can lead to significant complexity (as in requiring extensive hand tweaking of code) when implementing processor to processor or processor to USB communications. The reference cited uses an obscure timer mode to generate high speed strobes for DMA transfers. The timers are not flexible enough to easily make up for the lack of an external DMA transfer strobe. ::DMA operations that involve word transfers to byte locations cause truncation to 8 bits rather than conversion to two byte transfers. This makes DMA with A/D or D/A 16 bit values less useful than it could be (although it is possible to DMA these values through port A or B on some versions of the MSP 430 using an externally visible trigger per transfer such as a timer output). :*;Enhanced Emulation Module (EEM) ::The EEM provides different levels of debug features such as 2-8 hardware breakpoints, complex breakpoints, break when read/write occurs at specified address, and more. Embedded into all flash-based MSP430 devices. :*;Hardware multiplier ::Some MSP430 models include a memory-mapped hardware multiplier peripheral which performs various 16×16+32→33-bit multiply-accumulate operations. Unusually for the MSP430, this peripheral does include an implicit 2-bit write-only register, which makes it effectively impossible to
context switch In computing, a context switch is the process of storing the state of a process or thread, so that it can be restored and resume execution at a later point, and then restoring a different, previously saved, state. This allows multiple processes ...
. This peripheral does not interfere with CPU activities and can be accessed by the DMA. The MPY on all MSP430F5xx and some MSP430F4xx devices feature up to 32-bit x 32-bit. ::The 8 registers used are: :: ::The first operand is written to one of four 16-bit registers. The address written determines the operation performed. While the value written can be read back from any of the registers, the register number written to cannot be recovered. ::If a multiply-accumulate operation is desired, the ResLo and ResHi registers must also be initialized. ::Then, each time a write is performed to the OP2 register, a multiply is performed and the result stored or added to the result registers. The SumExt register is a read-only register that contains the carry out of the addition (0 or 1) in case of an unsigned multiply), or the sign extension of the 32-bit sum (0 or -1) in case of a signed multiply. In the case of a signed multiply-accumulate, the SumExt value must be combined with the most significant bit of the prior SumHi contents to determine the true carry out result (-1, 0, or +1). ::The result is available after three clock cycles of delay, which is the time required to fetch a following instruction and a following index word. Thus, the delay is typically invisible. An explicit delay is only required if using an indirect addressing mode to fetch the result. :*;Memory Protection Unit (MPU) ::The FRAM MPU protects against accidental writes to designated read-only memory segments or execution of code from a constant memory. The MPU can set any portioning of memory with bit level addressing, making the complete memory accessible for read, write and execute operations in FRAM devices. :*;Power management module (PMM) ::The PMM generates a supply voltage for the core logic, and provides several mechanisms for the supervision and monitoring of both the voltage applied to the device and the voltage generated for the core. It is integrated with a low-dropout voltage regulator (LDO), brown-out reset (BOR), and a supply voltage supervisor and monitor. :*;Supply-Voltage Supervisor (SVS) ::The SVS is a configurable module used to monitor the AVCC supply voltage or an external voltage. The SVS can be configured to set a flag or generate a power-on reset (POR) when the supply voltage or external voltage drops below a user-selected threshold. ;Communication and Interface :*;Capacitive Touch Sense I/Os ::The integrated capacitive touch sense I/O module offers several benefits to touch button and touch slider applications. The system does not require external components to create the self-oscillation (reducing bill of materials) and the capacitor (that defines the frequency of the self-oscillation) can be connected directly. In addition, there is no need for external MUXes to allow multiple pads and each I/O pad can directly serve as a cap sense input. A hysteresis of ~0.7 V ensures robust operation. Control and sequencing is done completely in software. :*;General Purpose I/Os ::MSP430 devices have up to 12 digital I/O ports implemented. Each port has eight I/O pins. Every I/O pin can be configured as either input or output, and can be individually read or written to. Ports P1 and P2 have interrupt capability. MSP430F2xx, F5xx and some F4xx devices feature built-in, individually configurable pull-up or pull-down resistors. :*;Sub-GHz RF Front End ::The flexible CC1101 sub-1 GHz transceiver delivers the sensitivity and blocking performance required to achieve successful communication links in any RF environment. It also features low current consumption and supports flexible data rates and modulation formats. :*;USART (UART, SPI, I²C) ::The universal synchronous/asynchronous receive/transmit (USART) peripheral interface supports asynchronous RS-232 and synchronous SPI communication with one hardware module. The MSP430F15x/16x USART modules also support I²C, programmable baud rate, and independent interrupt capability for receive and transmit. :*;USB ::The USB module is fully compliant with the USB 2.0 specification and supports control, interrupt and bulk transfers at a data rate of 12 Mbps (full speed). The module supports USB suspend, resume and remote wake-up operations and can be configured for up to eight input and eight output endpoints. The module includes an integrated physical interface (PHY); a phase-locked loop (PLL) for USB clock generation; and a flexible power-supply system enabling bus-powered and self-powered devices. :*;USCI (UART, SPI, I²C, LIN, IrDA) ::The universal serial communication interface (USCI) module features two independent channels that can be used simultaneously. The asynchronous channel (USCI_A) supports UART mode; SPI mode; pulse shaping for IrDA; and automatic baud-rate detection for LIN communications. The synchronous channel (USCI_B) supports I²C and SPI modes. :*;USI (SPI, I²C) ::The universal serial interface (USI) module is a synchronous serial communication interface with a data length of up to 16-bits and can support SPI and I²C communication with minimal software. :*;Infrared Modulation ::Available on the MSP430FR4xxx and MSP430FR2xxx series chips, this feature is configured via the SYSCFG register set. This peripheral ties into other peripherals (Timers, eUSCI_A) to generate an IR modulated signal on an output pin. ;Metering :*;ESP430 (integrated in FE42xx devices) ::The ESP430CE module performs metering calculations independent of the CPU. Module has separate SD16, HW multiplier, and the ESP430 embedded processor engine for single-phase energy-metering applications. :*;Scan Interface (SIF) ::The SIF module, a programmable state machine with an analog front end, is used to automatically measure linear or rotational motion with the lowest possible power consumption. The module features support for different types of LC and resistive sensors and for quadrature encoding. ;Display :*;LCD/LCD_A/LCD_B ::The LCD/LCD_A controller directly drives LCDs for up to 196 segments. Supports static, 2-mux, 3-mux, and 4-mux LCDs. LCD_A module has integrated charge pump for contrast control. LCD_B enables blinking of individual segments with separate blinking memory. :*;LCD_E ::The LCD_E controller comes with the newer MSP430FR4xxx series microcontrollers and directly drives LCDs up to 448 segments. Supports static, 2-mux, 3-mux, 4-mux, 5-mux, 6-mux, 7-mux, 8-mux (1/3 bias) LCDs. Segment and Common pins may be reprogrammed to available LCD drive pins. This peripheral may be driven in LPM3.5 (RTC running+Main CPU core shutdown low-power mode).


Software development environment

Texas Instruments provides various hardware experimenter boards that support large (approximately two centimeters square) and small (approximately one millimeter square) MSP430 chips. TI also provides software development tools, both directly, and in conjunction with partners (see the full list of compilers, assemblers, and IDEs). One such toolchain is the IAR C/C++
compiler In computing, a compiler is a computer program that Translator (computing), translates computer code written in one programming language (the ''source'' language) into another language (the ''target'' language). The name "compiler" is primaril ...
and ''
Integrated development environment An integrated development environment (IDE) is a Application software, software application that provides comprehensive facilities for software development. An IDE normally consists of at least a source-code editor, build automation tools, an ...
'', or IDE. A Kickstart edition can be downloaded for free from TI or IAR; it is limited to 8 KB of C/C++ code in the compiler and
debugger A debugger is a computer program used to test and debug other programs (the "target" programs). Common features of debuggers include the ability to run or halt the target program using breakpoints, step through code line by line, and display ...
(
assembly language In computing, assembly language (alternatively assembler language or symbolic machine code), often referred to simply as assembly and commonly abbreviated as ASM or asm, is any low-level programming language with a very strong correspondence bet ...
programs of any size can be developed and debugged with this free toolchain). TI also combines a version of its own compiler and tools with its
Eclipse An eclipse is an astronomical event which occurs when an astronomical object or spacecraft is temporarily obscured, by passing into the shadow of another body or by having another body pass between it and the viewer. This alignment of three ...
-based
Code Composer Studio Code Composer Studio (CCStudio or CCS) is an integrated development environment for developing applications for Texas Instruments embedded processors. Texas Instruments embedded processors include TMS320 DSPs, OMAP system-on-a-chip, DaVinci s ...
IDE (CCS). It sells full-featured versions, and offers a free version for download which has a code size limit of 16 KB. CCS supports in-circuit emulators, and includes a simulator and other tools; it can also work with other processors sold by TI. For those who are more comfortable with the
Arduino Arduino () is an Italian open-source hardware and open-source software, software company, project, and user community that designs and manufactures single-board microcontrollers and microcontroller kits for building digital devices. Its hardwar ...
, there is also another software Energia, an open source electronics prototyping platform with the goal to bring the Wiring and Arduino framework to the Texas Instruments MSP430 based LaunchPad where Arduino code can be exported for programming MSP430 chips. The latest release of Energia supports the MSP-EXP430G2xxx, MSP-EXP430FR5739, MSP-EXP430FR5969, MSP-EXP430FR5994, MSP-EXP430F5529LP, Stellaris EK-LM4F120XL, Tiva-C EK-TM4C123GXL, Tiva-C EK-TM4C1294XL, CC3200 Wi-Fi LaunchPad.Energia website
/ref> The
open source Open source is source code that is made freely available for possible modification and redistribution. Products include permission to use and view the source code, design documents, or content of the product. The open source model is a decentrali ...
community produces a freely available software development toolset based on the GNU toolset. The GNU compiler is currently declined in three versions:
MSPGCC

MSPGCC Uniarch
TI consulted with RedHat to provide official support for the MSP430 architecture to the
GNU Compiler Collection The GNU Compiler Collection (GCC) is a collection of compilers from the GNU Project that support various programming languages, Computer architecture, hardware architectures, and operating systems. The Free Software Foundation (FSF) distributes ...
C/C++ compiler. Thi
msp430-elf-gcc compiler
is supported by TI's Code Composer Studio version 6.0 and higher. There is a very earl
llvm-msp430
project, which may eventually provide better support for MSP430 in
LLVM LLVM, also called LLVM Core, is a target-independent optimizer and code generator. It can be used to develop a Compiler#Front end, frontend for any programming language and a Compiler#Back end, backend for any instruction set architecture. LLVM i ...
. Other commercial development tool sets, which include editor, compiler, linker, assembler, debugger and in some cases code wizards, are available. VisSim, a
block diagram A block diagram is a diagram of a system in which the principal parts or functions are represented by blocks connected by lines that show the relationships of the blocks.
language for model based development, generates efficient fixed point C-Code directly from the diagram. VisSim generated code for a closed loop ADC+PWM based
PID control PID or Pid may refer to: Medicine * Pelvic inflammatory disease or pelvic inflammatory disorder, an infection of the upper part of the female reproductive system * Primary immune deficiency, disorders in which part of the body's immune system i ...
on the F2013 compiles to less than 1 KB flash and 100 bytes RAM. VisSim has on-chip peripheral blocks for the entire MSP430 family I²C, ADC, SD16, PWM.


Low cost development platforms

The MSP430F2013 and its siblings are set apart by the fact that (except for the MSP430G2 Value Line) it is the only MSP430 part that is available in a
dual in-line package In microelectronics, a dual in-line package (DIP or DIL) is an Semiconductor package, electronic component package with a rectangular housing and two parallel rows of electrical connecting pins. The package may be through-hole technology, throu ...
(DIP). Other variants in this family are only available in various surface-mount packages. TI has gone to some trouble to support the eZ430 development platform by making the raw chips easy for hobbyists to use in prototypes.


eZ430-F2013

TI has tackled the low-budget problem by offering a very small experimenter board, the ''eZ430-F2013'', on a USB stick (now obsolete). This made it easy for designers to choose the MSP430 chip for inexpensive development platforms that can be used with a computer. The eZ430-F2013 contains an MSP430F2013 microcontroller on a detachable prototyping board, and accompanying CD with development software. It is helpful for schools, hobbyists and garage inventors. It is also welcomed by engineers in large companies prototyping projects with capital budget problems.


MSP430 LaunchPad

Texas Instruments Texas Instruments Incorporated (TI) is an American multinational semiconductor company headquartered in Dallas, Texas. It is one of the top 10 semiconductor companies worldwide based on sales volume. The company's focus is on developing analog ...
released the MSP430 LaunchPad in July 2010 at a cost of $4.30. The MSP430 LaunchPad has an onboard flash emulator,
USB Universal Serial Bus (USB) is an industry standard, developed by USB Implementers Forum (USB-IF), for digital data transmission and power delivery between many types of electronics. It specifies the architecture, in particular the physical ...
, 2 programmable
LED A light-emitting diode (LED) is a semiconductor device that emits light when current flows through it. Electrons in the semiconductor recombine with electron holes, releasing energy in the form of photons. The color of the light (corresp ...
s, and 1 programmable push button. As an addition to experimentation with the LaunchPad
shield board
is available. TI has since provided several new LaunchPads based on the MSP430 platform: :
MSP-EXP430F5529LP
features th
MSP430F5529
USB device-capable MCU with 128 KB flash and 8 KB SRAM :
MSP-EXP430FR5969
features th
MSP430FR5969
FRAM MCU with 64 KB FRAM and 2 KB SRAM :
MSP-EXP430FR4133
features th
MSP430FR4133
FRAM MCU with 16 KB FRAM, 2 KB SRAM and on-board LCD :
MSP-EXP430FR6989
features th
MSP430FR6989
FRAM MCU with 128 KB FRAM, 2 KB SRAM, on-board LCD and Extended Scan Interface peripheral :
MSP-EXP430FR2311
features th
MSP430FR2311
FRAM MCU with 4 KB FRAM, 1 KB SRAM, OpAmp and Transimpedance Amplifier peripheral :
MSP-EXP430FR2433
features th
MSP430FR2433
FRAM MCU with 15.5 KB FRAM, 4 KB SRAM :
MSP-EXP430FR2355
features th
MSP430FR2355
FRAM MCU with 32 KB FRAM, 4 KB SRAM, 12-bit ADC, 12-bit DAC, OpAmp/PGA, ICC for nested interrupts :
MSP-EXP430FR5994
features th
MSP430FR5994
FRAM MCU with 256 KB FRAM, 8 KB SRAM, 12-bit ADC and LEA DSP peripheral All three of these LaunchPads include an eZ-FET JTAG debugger with backchannel UART capable of 1 Mbit/s speeds. The FRAM LaunchPads (e.g. MSP-EXP430FR5969, MSP-EXP430FR4133) include EnergyTrace, a feature supported by TI's Code Composer Studio IDE for monitoring and analyzing power consumption.


Debugging interface

In common with other microcontroller vendors, TI has developed a two-wire debugging interface found on some of their MSP430 parts that can replace the larger JTAG interface. The eZ430 Development Tool contains a full USB-connected
flash emulation tool Flash, flashes, or FLASH may refer to: Arts, entertainment, and media Fictional aliases * The Flash, several DC Comics superheroes with super speed: ** Flash (Jay Garrick) ** Barry Allen ** Wally West, the first Kid Flash and third adult Flash ...
(FET) for this new two-wire protocol, named '' Spy-Bi-Wire'' by TI. Spy-Bi-Wire was initially introduced on only the smallest devices in the 'F2xx family with limited number of I/O pins, such as the MSP430F20xx, MSP430F21x2, and MSP430F22x2. The support for Spy-Bi-Wire has been expanded with the introduction of the latest '5xx family, where all devices have support Spy-Bi-Wire interface in addition to JTAG. The advantage of the Spy-Bi-Wire protocol is that it uses only two communication lines, one of which is the dedicated _RESET line. The JTAG interface on the lower pin count MSP430 parts is multiplexed with general purpose I/O lines. This makes it relatively difficult to debug circuits built around the small, low-I/O-budget chips, since the full 4-pin JTAG hardware will conflict with anything else connected to those I/O lines. This problem is alleviated with the Spy-Bi-Wire-capable chips, which are still compatible with the normal JTAG interface for backwards compatibility with the old development tools. JTAG debugging and flash programming tools based on OpenOCD and widely used in the
ARM architecture ARM (stylised in lowercase as arm, formerly an acronym for Advanced RISC Machines and originally Acorn RISC Machine) is a family of reduced instruction set computer, RISC instruction set architectures (ISAs) for central processing unit, com ...
community are not available for the MSP430. Programming tools specially designed for the MSP430 are marginally less expensive than JTAG interfaces that use OpenOCD. However, should it be discovered mid-project that more MIPS, more memory, and more I/O peripherals are needed, those tools will not transfer to a processor from another vendor.


MSP430 CPU

The MSP430 CPU uses a
von Neumann architecture The von Neumann architecture—also known as the von Neumann model or Princeton architecture—is a computer architecture based on the '' First Draft of a Report on the EDVAC'', written by John von Neumann in 1945, describing designs discus ...
, with a single address space for instructions and data. Memory is
byte The byte is a unit of digital information that most commonly consists of eight bits. Historically, the byte was the number of bits used to encode a single character of text in a computer and for this reason it is the smallest addressable un ...
-addressed, and pairs of bytes are combined
little-endian '' Jonathan_Swift.html" ;"title="Gulliver's Travels'' by Jonathan Swift">Gulliver's Travels'' by Jonathan Swift, the novel from which the term was coined In computing, endianness is the order in which bytes within a word (data type), word of d ...
to make 16-bit
word A word is a basic element of language that carries semantics, meaning, can be used on its own, and is uninterruptible. Despite the fact that language speakers often have an intuitive grasp of what a word is, there is no consensus among linguist ...
s. The processor contains 16 16-bit registers, of which four are dedicated to special purposes: R0 is the
program counter The program counter (PC), commonly called the instruction pointer (IP) in Intel x86 and Itanium microprocessors, and sometimes called the instruction address register (IAR), the instruction counter, or just part of the instruction sequencer, ...
, R1 is the
stack pointer A stack register is a computer central processor register whose purpose is to keep track of a call stack. On an accumulator-based architecture machine, this may be a dedicated register. On a machine with multiple general-purpose registers, it m ...
, R2 is the
status register A status register, flag register, or condition code register (CCR) is a collection of status Flag (computing), flag bits for a Central processing unit, processor. Examples of such registers include FLAGS register (computing), FLAGS register in the ...
, and R3 is a "constant generator" which reads as zero and ignores writes. Added address mode encodings using R3 and R2 allow a total of six commonly used constant values (0, 1, 2, 4, 8 and −1) without needing an immediate operand word. R4 through R15 are available for general use. The instruction set is very simple: 27 instructions exist in three families. Most instructions occur in .B (8-bit byte) and .W (16-bit word) suffixed versions, depending on the value of a B/W bit: the bit is set to 1 for 8-bit and 0 for 16-bit. A missing suffix is equivalent to .W. Byte operations to memory affect only the addressed byte, while byte operations to registers clear the most significant byte. Instructions are 16 bits, followed by up to two 16-bit extension words. Addressing modes are specified by the 2-bit As field and the 1-bit Ad field. Some special versions can be constructed using R0, and modes other than register direct using R2 (the status register) and R3 (the constant generator) are interpreted specially. Ad can use only a subset of the addressing modes for As. Indexed addressing modes add a 16-bit extension word to the instruction. If both source and destination are indexed, the source extension word comes first. ''x'' refers to the next extension word in the instruction stream in the table below. Instructions generally take 1 cycle per word fetched or stored, so instruction times range from 1 cycle for a simple register-register instruction to 6 cycles for an instruction with both source and destination indexed. The MSP430X extension with 20-bit addressing adds added instructions that can require up to 10 clock cycles. Setting or clearing a peripheral bit takes two clocks. A jump, taken or not takes two clocks. With the 2xx series 2 MCLKs is 125 ns at 16 MHz. Moves to the program counter are allowed and perform jumps. Return from subroutine, for example, is implemented as MOV @SP+,PC. When R0 (PC) or R1 (SP) are used with the autoincrement addressing mode, they are always incremented by two. Other registers (R4 through R15) are incremented by the operand size, either 1 or 2 bytes. The status register contains 4 arithmetic status bits, a global interrupt enable, and 4 bits that disable various clocks to enter low-power mode. When handling an interrupt, the processor saves the status register on the stack and clears the low-power bits. If the interrupt handler does not modify the saved status register, returning from the interrupt will then resume the original low-power mode.


Pseudo-operations

Many added instructions are implemented as aliases for forms of the above. For example, there is no specific "return from subroutine" instruction, but it is implemented as "MOV @SP+,PC". Emulated instructions are: Note that the immediate constants −1 (0xffff), 0, 1, 2, 4 and 8 can be specified in a single-word instruction without needing a separate immediate operand.


MSP430X 20-bit extension

The basic MSP430 cannot support more memory (ROM + RAM + peripherals) than its 64K address space. In order to support this, an extended form of the MSP430 uses 20-bit registers and a 20-bit address space, allowing up to 1 MB of memory. This uses the same instruction set as the basic form, but with two extensions: # A limited number of 20-bit instructions for common operations, and # A general prefix-word mechanism that can extend any instruction to 20 bits. The extended instructions include some added abilities, notably multibit shifts and multiregister load/store operations. 20-bit operations use the length suffix "A" (for address) instead of .B or .W. .W is still the default. In general, shorter operations clear the high-order bits of the destination register. The new instructions are as follows: All other instructions can have a prefix word added which extends them to 20 bits. The prefix word contains an added operand size bit, which is combined with the existing B/W bit to specify the operand size. One unused size combination exists; indications suggest that it may be used in future for a 32-bit operand size.The size bit is named , where (long) is used by other processors to indicate 32-bit operands. Also the description of the SXTX instruction (MSP430F5xx Family User's Guide alau208f page 237) describes the effect of the instruction in register bits 20–31. The prefix word comes in two formats, and the choice between them depends on the instruction which follows. If the instruction has any non-register operands, then the simple form is used, which provides 2 4-bit fields to extend any offset or immediate constant in the instruction stream to 20 bits. If the instruction is register-to-register, a different extension word is used. This includes a "ZC" flag which suppresses carry-in (useful for instructions like DADD which always use the carry bit), and a repeat count. A 4-bit field in the extension word encodes either a repeat count (0–15 repetitions in addition to the initial execution), or a register number which contains a 4-bit repeat count.


MSP430 address space

The general layout of the MSP430 address space is: ; 0x0000–0x0007 : Processor special function registers (interrupt control registers) ; 0x0008–0x00FF : 8-bit peripherals. These must be accessed using 8-bit loads and stores. ; 0x0100–0x01FF : 16-bit peripherals. These must be accessed using 16-bit loads and stores. ; 0x0200–0x09FF : Up to 2048 bytes of
RAM Ram, ram, or RAM most commonly refers to: * A male sheep * Random-access memory, computer memory * Ram Trucks, US, since 2009 ** List of vehicles named Dodge Ram, trucks and vans ** Ram Pickup, produced by Ram Trucks Ram, ram, or RAM may also ref ...
. ; 0x0C00–0x0FFF : 1024 bytes of bootstrap loader ROM (flash parts only). ; 0x1000–0x10FF : 256 bytes of data
flash ROM Flash memory is an electronic non-volatile computer memory storage medium that can be electrically erased and reprogrammed. The two main types of flash memory, NOR flash and NAND flash, are named for the NOR and NAND logic gates. Both use ...
(flash parts only). ; 0x1800-0x19FF : 512 bytes of data FRAM (most FRAM MCUs, user-writable containing no calibration data) ; 0x1100–0x38FF : Extended RAM on models with more than 2048 bytes of RAM. (0x1100–0x18FF is a copy of 0x0200–0x09FF) ; 0x1100–0xFFFF : Up to 60
kilobyte The kilobyte is a multiple of the unit byte for Computer data storage, digital information. The International System of Units (SI) defines the prefix ''kilo-, kilo'' as a multiplication factor of 1000 (103); therefore, one kilobyte is 1000&nbs ...
s of program ROM. Smaller ROMs start at higher addresses. The last 16 or 32 bytes are
interrupt vector An interrupt vector table (IVT) is a data structure that associates a list of interrupt handlers with a list of interrupt requests in a table of interrupt vectors. Each entry of the interrupt vector table, called an interrupt vector, is the addre ...
s. A few models include more than 2048 bytes of RAM; in that case RAM begins at 0x1100. The first 2048 bytes (0x1100–0x18FF) is mirrored at 0x0200–0x09FF for compatibility. Also, some recent models bend the 8-bit and 16-bit peripheral rules, allowing 16-bit access to peripherals in the 8-bit peripheral address range. There is a new extended version of the architecture (named MSP430X) which allows a 20-bit
address space In computing, an address space defines a range of discrete addresses, each of which may correspond to a network host, peripheral device, disk sector, a memory cell or other logical or physical entity. For software programs to save and retrieve ...
. It allows added program ROM beginning at 0x10000. The '5xx series has a greatly redesigned address space, with the first 4K devoted to peripherals, and up to 16K of RAM.


References


External links


Community and information sites


TI MSP430 HomepageMSP430 TITAN Development BoardTI E2E MSP430 Community forumMSP430 Community sponsored by Texas InstrumentsMSP430 Yahoo!groupMSP430.infoMSP430 English-Japanese forum43oh.com – MSP430 News, Projects and ForumsTinyOS-MSP430
TinyOS TinyOS is an embedded, component-based operating system and platform for low-power wireless devices, such as those used in wireless sensor networks (WSNs), smartdust, ubiquitous computing, personal area networks, building automation, and smart me ...
port *MSP43
Egel project pages
– About 50 examples with sources, schematics, well documented.


Visual programming C code generators




Compilers, assemblers and IDEs


  Free Compiler and IDEs

:* Arduino IDE Arduino IDE :*
Code Composer Studio Code Composer Studio (CCStudio or CCS) is an integrated development environment for developing applications for Texas Instruments embedded processors. Texas Instruments embedded processors include TMS320 DSPs, OMAP system-on-a-chip, DaVinci s ...
Eclipse based IDE :* Code Composer Studio Cloud
IAR Embedded Workbench Kickstart
IDE (size limited to 4/8/16 KB – depends on device used)
GCC toolchain for the MSP430 Microcontrollers



naken_asm
Open-Source MSP430 assembler, disassembler, simulator.
Pre-built MSP430 GCC 4.x binaries for Windows


With assembler, disassembler and sources.
FastForth
with 5 MBds terminal, assembler, SD_Card driver...


  Most popular unrestricted IDEs and compilers


IAR Embedded Workbench for TI MSP430

Rowley CrossWorks for MSP430
(only a 30-day evaluation period)
GCC toolchain for the MSP430 Microcontrollers (Free C-compiler)



A plugin for Visual Studio that supports MSP430 via MSP430-GCC
(30-day evaluation)


  Miscellaneous IDEs




ImageCraft C Tools




:*HI-TECH C for MSP430 (Dropped MSP430 Support in 2009)


List of debugging tools (not complete)


Other tools


WSim – a software-driven emulator for full platform estimations and debug

MSPSim – a Java based MSP430 emulator/simulator

MSP430Static – a reverse engineering tool in Perl

GoodFET – an open MSP430 JTAG debugger in C and Python

mspdebug – an opensource MSP430 JTAG debugger


* ttp://erika.tuxfamily.org/wiki/index.php?title=TI_MSP430 ERIKA Enterprise – a free of charge, open source RTOS implementation of the ISO 17356 API (derived from the OSEK/VDX API)
Energia is based on Wiring and Arduino and uses the Processing IDE. The hardware platform is based upon TI MSP430 LaunchPad
{{DEFAULTSORT:Ti Msp430
MSP430 The MSP430 is a mixed-signal microcontroller family from Texas Instruments, first introduced on 14 February 1992. Built around a CPU, the MSP430 was designed for low power consumption, embedded applications and low cost. Features The f ...