T HE W ORLD L EADER IN DSP AND A NALOG

MSP430 Ultra-Low-Power

Third Quarter 2000 Key Benefits • Lowest system power extends MSP430 Microcontrollers—The battery life • Integrated analog data conversion Solution for Battery-Powered accelerates time to market • Communications peripherals enable easy connectivity Measurement • Pricing starting at $0.99 each

The increasing demand to active mode in a maximum of combination of features. For integrate features and processing 6 µs. This ultra-fast start up applications such as, security sys- capabilities into battery powered allows the MSP430 to stay in tems, utility metering, portable products has created a need for standby mode longer, eliminating medical devices and handheld microcontrollers that are both the unnecessary current other instrumentation, the MSP430 line powerful and highly integrated, microcontrollers use in ramping of ultra-low-power microcon- while only requiring minute to active mode. In addition, while trollers offer solutions that enable amounts of energy to operate. in active mode, the MSP430 only product ideas to become reality. Using its leadership in both requires 250 µA in a typical 3 V mixed-signal and digital technolo- system. The time the MSP430 MSP430 16-Bit RISC CPU gies, (TI) has stays in active mode is minimized The MSP430’s powerful 16-bit met this challenge. The result by its powerful 16-bit CPU, which RISC core offers many advan- is the MSP430 line of ultra-low- ensures high speed and efficient tages over competing 4- and 8-bit power microcontrollers, which code execution. microcontrollers. The MSP430 enables system designers to All MSP430’s peripherals are CPU features the ease of use of simultaneously interface to analog able to run independently of the a RISC instruction set and the signals, sensors, and digital CPU. This allows them to remain flexibility of numerous 16-bit components while maintaining active even while in ultra-low- CPU registers. These and other unmatched ultra-low-power power standby mode. For exam- features result in a revolutionary performance. ple, an external 32 kHz crystal architecture that is highly The MSP430 achieves its high can increment a counter for a orthogonal by design. performance through a revolution- real-time clock function, while The MSP430 has a RISC ary architecture that integrates a the part is drawing just 0.8 µA. instruction set that consists of a powerful 16-bit RISC CPU for fast The MSP430 can also maintain an mere 27 core instructions, and to execution of code and a design LCD display and await external facilitate more intuitive program- that makes extensive use of stand- key switch interrupts while in ming, 24 additional emulated by modes to minimize current standby mode. This allows the instructions are included to fur- consumption when the CPU is not user interface to be fully active ther simplify the code generation active. The MSP430 architecture while simultaneously maximizing process. For example, a common includes an array of powerful and the battery life. The MSP430 is instruction such as enable inter- highly flexible peripherals that are even capable of accepting exter- rupts (EINT) is included in the also optimized for ultra-low-power nal interrupts while it is in RAM instruction set. The assembler operation. retention/off mode. While in off automatically substitutes the A key to the MSP430 perfor- mode, the MSP430 requires a emulated instruction with the mance is its unique ultra-low- mere 0.1 µA of current. correct RISC instruction (BIS #8, power modes. The MSP430 is able When battery life, processing SR). This combination of RISC to switch from ultra-low-power power and hardware flexibility and emulated instructions mini- standby mode, where it only are major design concerns, TI’s mizes code space while also sim- draws 0.8 µA of current, to full MSP430 offers an unbeatable plifying programming.

2 All instructions can be used Simplified MSP430 CPU with all seven addressing modes across the entire MSP430 archi- MDB - memory data bus memory address bus - MAB tecture. There are no special 15 0 instructions or modes required to R0/PC - 0 work with RAM, peripherals, the R1/SP - Stack Pointer 0 Osc CPU CPU, registers or any other part R2/SR - Status Reg V SCG1 SCG0 Off Off GIE N Z C of the MSP430. This feature R3/CG - Constant Generator greatly increases the efficiency of R4 the 16-bit RISC instruction set R5 and forms the basis for the orthogonal design of the MSP430. R6 There are 16 registers in the R7 CPU core of the MSP430. Four of R8 the registers have the dedicated R9 functions of Program Counter R10 (PC), (SR), Stack R11 Pointer (SP) and Constant R12 Generator (CG). The remaining R13 12, 16-bit registers, are complete- ly user definable.These general- R14 16 purpose registers in the CPU R15 allow often-used variables, 16 pointers and other data to be DST SRC directly accessed by the CPU RISC ALU + Shifter without performing memory fetches. The number and flexibil- ity of the CPU registers further 16 contributes to the high code effi- ciency of the MSP430.

MSP430 Orthogonal Architecture Non-Orthogonal Architecture

Address Modes Source Address Modes Source

Address Address Modes Instructions Modes Instructions Destination Destination

3 MSP430 Low-Power Modes (LPM)

6 µs from external 6 µs from or internal Active Mode external interrupt CPU Active interrupt Various Modules Active 250 µA Lower Power Mode 0 Lower Power Mode 4 CPU Off µ Memory Storage Mode System Clocks On 6 s from CPU & Clocks Off 30 µA external 0.1 µA interrupt

Low Power Mode 3 Ultra-Low-Power / Real-Time Clock Mode CPU Off/ ACLK On 0.8 µA

MSP430 Clock Modules real-time using a single counter occurs. This allows the processor The clock modules of the MSP430 and the elimination of high fre- to stay in a low-power mode much are fully programmable and offer quency PCB layout. The 32 kHz longer and greatly reduces the time system designers an array of signal is available both internally required to bring the part to an clocking options. The Digital and externally when low frequency active state, saving battery power. Controller Oscillator (DCO) can is a requirement. The MSP430 The MSP430 has a failsafe fea- be programmed to supply a sys- parts that include the Frequency ture that allows the processor to tem frequency of 1 to 8 MHz. Locked Loop (FLL) circuit, auto- start operation using the DCO even Typically the MSP430 only needs matically regulate the system if the crystal fails. So even if the a single external 32 kHz crystal to frequency to a multiple of the crystal fails or is missing, the generate an accurate high-speed crystal. processor will still begin executing system frequency. Additional The DCO in all MSP430 products code. This feature makes it possi- advantages of the 32 kHz crystal starts operation in a maximum of ble to design MSP430 circuits that include low cost, direct division to 6 µs when an interrupt or reset do not include a crystal.

MSP430 Product Roadmap

FLASH FLASH + LCD 1.8 - 3.6 V Basic Clock ROM/OTP Timer_A 2.5 - 5 V + LCD Driver Comparator_A (notx 11x) F4xx FLL in design /Port F14x Basic Timer Samples 8-bit T/C 3Q 2000 x33x LCD130 Timer A F4xx in design USART F13x MPY Samples x32x 3Q 2000 LCD84 F4xx F11x1 in design Features/Performance ADC14 Timer_A x31x Comp_A F4xx LCD92 x11x in design Timer_A

19961999 2000 2001

4 MSP430 Selection Guide

Device OTP Flash ROM RAM Peripherals Pins/Package MSP430P112* 4KB 256 15-bit Watchdog/Timer 20 SOP MSP430C111 2KB 128 bytes 16-bit Timer_A, 3 CC registers 20 SOP MSP430C112 4KB 256 bytes I/O Ports P1 & P2 20 SOP MSP430F1101 1KB 128 bytes 15-bit Watchdog/Timer 20 SOP, TSSOP MSP430F1121 4KB 256 bytes 16-bit Timer_A, 3 CC registers 20 SOP, TSSOP MSP430C1111 2KB 128 bytes Analog Comparator_A, references 20 SOP, TSSOP MSP430C1121 4KB 256 bytes I/O Ports P1 & P2 20 SOP, TSSOP MSP430F133 8KB 256 bytes 15-bit Watchdog/Timer 64 QFP MSP430F135 16KB 512 bytes 16-bit Timer_A, 3 CC registers 64 QFP 16-bit Timer_B, 3 CC/shadow registers Analog Comparator_A, references 12-bit, 12-channel high-speed ADC HW USART, UART/SPI capabilities I/O Ports P1-P6 MSP430F147 32KB 1 KB 15-bit Watchdog/Timer 64 QFP MSP430F148 48KB 2 KB 16-bit Timer_A, 3 CC registers 64 QFP MSP430F149 60KB 2 KB 16-bit Timer_B, 7 CC/shadow registers 64 QFP Analog Comparator_A, references 12-bit, 12-channel high-speed ADC Two HW USART, UART/SPI capabilities 8x8 to16x16 HW MPY/MAC I/O Ports P1-P6 MSP430P315* 16KB 512 bytes 15-bit Watchdog/Timer 56 SSOP MSP430P315S* 16KB 512 bytes 8-/16-bit Timer_Port 48 SSOP MSP430C311S 2KB 128 bytes 64 or 92-segment LCD driver 48 SSOP MSP430C312 4KB 256 bytes Low-Power UART HW 56 SSOP MSP430C313 8KB 256 bytes I/O Port P0 56 SSOP MSP430C314 12KB 512 bytes 56 SSOP MSP430C315 16KB 512 bytes 56 SSOP MSP430P325A* 16KB 512 bytes 15-bit Watchdog/Timer 64 QPF, PLCC MSP430C323 8KB 256 bytes 8-/16-bit Timer_Port 64 QPF, PLCC MSP430C325 16KB 512 bytes 84-segment LCD driver 64 QPF, PLCC Low-Power UART HW 14-bit HW ADC I/O Port P0 MSP430P337A* 32KB 1KB 15-bit Watchdog/Timer 100 QFP MSP430C336 24KB 1KB 8-/16-bit Timer_Port 100 QFP MSP430C337 32KB 1KB 120-segment LCD driver 100 QFP Low-Power UART HW HW USART, UART/SPI capabilities 8x8 to16x16 HW MPY/MAC I/O Ports P0-P4 * UV-EPROM (E) versions available for prototyping - PMS430E112, PMS430E315, PMS430E325A and PMS430E337A

5 MSP430x11x(1) Configurations MSP430x11x(1) Configuration The low pin-count versions of the MSP430 products, the XIN XOUT VCC VSS RST/NMI P1.0/TACLK P1.7/TA2 MSP430x11x and MSP430x11x1 families, offer an unmatched com- System Outx Rosc ACLK 2/4KB 128/256 B I/O Port 1 bination of ultra-low-power con- Clock ROM Power- CCIxA JTAG 4KB MTP RAM 8/0’s, all SMCLK On TACLK sumption, , 16-bit Oscillator 'C': ROM Reset with interr. 'F': Flash SRAM SMCLK capability RISC performance and low cost. MCLK (MTP) These devices consume as little MAB, 16 bit MAB, 4 bit 250 µA in active mode, 0.8 µA in CPU Test/ standby mode and 0.1 µA in off including JTAG 16 register MCB (RAM-retention) mode. With 1k Bus conv flash, and volume 4k ROM prices MDB, 16 bit MDB, 4 bit TACLK starting as low as $0.99, the 11x(1) INCLK Comparator INCLK or (11x1 only) I/O Port 2 devices are quickly becoming TEST/ Watchdog Timer_A CCI1B Input 8 I/O's all Timer VPP Multiplexer with the benchmark in this price/ 15/16 bit 3CC Register Outx RC filtered O/P Out0 interr. DCOR ACLK CCIxA Intenal Vref capability CCR0/1/2 Analog switch CCI0B ACLK performance category. SMCLK CCIxB The 16-bit RISC core operates at up to 8 MHz, allowing most of the 27 core instructions to be executed P2.0/ACLK P2.5/Rosc within a 125 ns cycle. The 11x(1) P2.1/INCLK P2.4/CA1 P2.2/CAOUT P2.3/CA0 devices are fully code compatible with all other members of the MSP430 family. MSP430x11x(1) Application Examples timing coming from an external Among the peripherals integrat- The MSP430x11x(1) series has 32 kHz crystal oscillator. The ed into the 11x and 11x1 devices expanded the reach of low-cost 11x(1) device periodically wakes are the 16-bit Timer_A with three system design. A real-time clock up to update the time or to mea- capture/compare registers, 14 (RTC) or battery monitor/charger, sure and adjust the charging individual I/O signals, the flexible with as much as 10 years of bat- conditions. The pulse-width mod- Basic Clock system, analog tery life, are just two applications ulation (PWM) for the charger Comparator_A with references where a MSP430 device minimizes is automatically generated even (11x1 only), Watchdog/Timer, and system cost while dramatically sim- while the device is in LPM3. The JTAG interface. The Basic Clock plifying design and reducing devel- extensive use of low-power modes system allows standby times of up opment time. allows system design engineers to to 128 seconds. Program/data These applications operate design applications that only memory sizes are 1 to 4K bytes. primarily in low-power mode 3 require an average current (LPM3), with the device interrupt of 1.52 µA.

Real-Time Clock/Timer Battery Monitor/Charger

32 kHz 32 kHz Vbatt

Xin Xout Xin Xout R1 P2.3 (CA0) Px.x + auto PWM Px.x P2.4 (CA1) - TX R2 Px.x HOST Px.x Rref RX Px.x Rref Px.x Rtemp Px.x UART, SPI, I2C MSP430x11x(1) MSP430x11x1 P1.x 12 I/Os • for • • expansion 5 I/Os • P1.x P2.x • for & interfacing TX Px.x • • expansion HOST • RX Px.x P2.x & interfacing VCC VSS UART, SPI, I2C VCC VSS TPS76927 1.8 - 3.6 V 3 V

6 MSP430F13x Configuration

XIN XOUT/TCLKDVCC DVSS AVCC AVSS RST/NMI P1 P2 P3 P4 P5 P6

Rosc Oscillator ACLK 16KB Flash 512B RAM 12 bit ADC I/O Port 1/2 I/O Port 3/4 I/O Port 5 I/O Port 6 XT2IN 8KB Flash 256B RAM System 8 channels 16 I/O's, with 16 I/O's 8 I/O's 8 I/O's XT2OUT SMCLK <10us conv. interrupt Clock capability

MCLK

MAB, MAB, CPU Test 16 bit 4 bit JTAG including MCB 16 register Bus conv. MDB, MDB, 16 bit 8 bit

4 TMS Watchdog Timer_B3 Timer_A3 Power on Comparator USART0 TCK Timer Reset 3 CC-Register 3 CC-Register UART mode TDI ACLK 15/16 bit Shadow Reg. SPI mode TDO SMCLK

MSP430F13x Configuration autoscan, internal voltage refer- Timer_B. The Basic Clock module The new MSP430F13x family ences, a temperature sensor and has been expanded to allow a expands the number of applica- battery monitor. The Timer_B high-speed crystal to be used in tions that can take advantage of module includes three addition to, or substituted for, the the MSP430’s ultra-low-power per- capture/compare registers with standard 32 kHz crystal. The dedi- formance. The family adds new shadow capability. These work cated hardware USART module modules and features to enable with the integrated 8-, 10-, 12- or with UART/SPI capability is also more applications to become true 16-bit Timer_B counter, which can included. Flash memory options system-on-a-chip designs. The 12- operate independently of the CPU. have been extended to 16K bytes channel, 12-bit high-speed ADC The 13x family also retains the in the 13x family. incorporates buffer memory, powerful Timer_A in addition to MSP430F13x Application Example The new Timer_B with shadow 3-Phase Motor Controller capability allows three PWM sig- nals to be changed simultaneously, Vmotor 1.8 -3.6 V 32 kHz making the 13x devices ideal for many motor control applications. VCC Xin Xout tach input The high-speed ADC allows up to TA0 M MSP430F13x motor temp A0 eight channels to monitor sensors drive voltage • internal temp. sense A1 for closed-loop control. • internal VCC sense TB1 The hardware USART module auto 3ph PWM TB2 Motor allows straightforward interfacing Drive URXD.0 TB3 via UART or Serial Peripheral HOST/System comm UART/SPI A2 drive current UTXD.0 Interface (SPI) to a host or other system components. A3 - A7 39 addional TA1 - TA2 ADC, analog, PWM, & I/O CA0, CA1, CAOUT lines for 28 additional I/Os expansion & interfacing VSS

7 MSP430F14x Configuration

XIN XOUT/TCLKDVCC DVSS AVCC AVSS RST/NMI P1 P2 P3 P4 P5 P6

Rosc Oscillator ACLK 60KB Flash 2KB RAM 12 bit ADC I/O Port 1/2 I/O Port 3/4 I/O Port 5 I/O Port 6 XT2IN 48KB Flash 2KB RAM System 8 channels 16 I/O's, with 16 I/O's 8 I/O's 8 I/O's XT2OUT SMCLK 32KB Flash 1KB RAM <10us conv. interrupt Clock capability

MCLK

MAB, MAB, CPU Test 16 bit 4 bit JTAG including MCB 16 register Emulation Bus conv. Module MDB, MDB, 16 bit 8 bit

4 TMS Watchdog Timer_B7 Timer_A3 Power Comparator USART0 USART1 TCK Timer on Hardware 7 CC-Register 3 CC-Register UART mode UART mode MPY Reset TDI ACLK 15/16 bit Shadow Reg. SPI mode SPI mode TDO SMCLK

MSP430F14x Configuration Timer_B for a total of seven, a MSP430F14x Application Example The new MSP430F14x family second hardware USART module, The large selection of peripherals further expands on the capabili- with UART/SPI capabilities, the on the 14x devices make it well ties of the 13x family and is single-cycle, 16-bit hardware mul- suited for many high-end control currently the high-end solution of tiplier module is included, Flash and monitoring applications. The the non-LCD devices. Additional memory options of up to 60K second hardware USART module capabilities of the 14x family bytes and static RAM memory of allows for simultaneous commu- include: four capture/compare/ up to 2K bytes are available. nications with a host and other shadow registers added to system components, as shown in the example. The high frequency High-End Security Panel crystal option on the Basic Clock enables the 14x to generate sta-

8 MHz 32 kHz ble clock signals for applications speaker PWM such as RF communications. The Xin2 Xout2 Xin Xout wired zones & sensors TBO Px.x high-frequency crystal can be n MSP430F14x modem signals turned off to save power when A1 phone • internal temp. sense TLV5606 line audio input phone line not in use. The MSP430 is still A0 • internal VCC sense Px.x interface 3 circuit able to operate from its fast-start, LED indicators high- frequency, internal DCO. Px.x MSP430x11x1 Px.x TRF6900 The large number of high-speed Px.x TRF6900 or 9 900 MHz 9/7 Px.x TRF4900 ADC, analog comparator and I/O xcvr (1 of n) Px.x pins allow a wide array of sen- keypad sors, switches and other signals Px.x 5/7 additional I/Os 4 remote

MSP430x11x1 to be interfaced directly to the keypad comm UART/SPI 14x. 4 Px.x URXD.0 4 URXD.1 UTXD.0 Host comm URT/SPI Ax, Txx, UTXD.1 9600 baud VCC VSS CAx, Px.x additional I/O & 4 analog signals main power battery backup 1.8 - 3.6 V 4 additional I/Os

8 MSP430x31x Configuration

XIN XOUT XBUF VCC VSS RST/NMI P0.0 P0.7

Oscillator 4/8/12/16KB ACLK 256/512B I/O Port FLL ROM Power- 8B Timer/ TXD RAM System 8/16KB On- Counter 8 I/0’s, all MCLK with interr Clock OTP Serial Protocol RXD SRAM Reset capability 'C': ROM Support 3 lnt Vectors TDI 'P': OTP TDO MAB, MAB, 16 bit 4 bit CPU Test including JTAG 16 register MCB Bus MDB, conv. MDB, 16 bit 8 bit TMS TCK Watchdog Timer/Port Basic LCD Timer Applications: Timer 1 92 Segments 15 bit A/D Conv. Com0..3 Seg 0..18,22,23,26 Timer, O/P 1, 2, 3, 4 Mux Seg 27 f 6 LCD

TP.0..5 CIN R03 R13 R23 R33

MSP430x31x Configuration function is not required, the mod- The LCD driver module can drive The MSP430x31x family is the ule can be used as a 16-bit timer up to 92 segments in 1-to-4 MUX most cost-optimized version with or as two 8-bit . mode. Each pin of the I/O port a LCD driver in the MSP430 The Watchdog/Timer module can be individually configured and product line. can be configured as a 15-bit each has interrupt capability. The It can be used for sensor appli- watchdog or as a 15-bit general- 8-bit Timer/Counter supports seri- cations by measuring resistive purpose timer. The Basic Timer al communication protocols like values. The Timer/Port module includes two 8-bit timers for UART or I2C bus on the I/O port. can perform this resistive-to- general-purpose use. It generates The necessary software routines digital conversion by measuring the basic LCD frequency and for this and many other modules the charge/discharge time of an supports the real-time clock are listed in the MSP430 external capacitor. Where this function. Application Report book. MSP430x31x Application Example Digital Thermometer/Thermostat The MSP430 requires very few

32 kHz external components to form a complete system. The low com- LCD Xin Xout 4 ponent count of the digital ther- Rref TP0.0 COMx R temp TP0.1 MSP430x31x 23 mometer shown here ensures fast Sxx CIN design cycle, maximum flexibility

VCC and very competitive system cost. P0.0 For resistive sensors, such as P0.3 Input Switches thermistors, the 16-bit single- P0.4 slope A/D converter, implemented using the Timer/Port module is

TP0.2 3 outputs ideal. Three additional external • • components, a crystal (optional), TP0.4 & TP0.5 the battery and the LCD display, P0.2 (TXD) • Optional UART comm. P0.5 are all that are needed for a com- • 4 I/Os for P0.1 (RXD) • • expansion plete system with the MSP430. P0.7 • VCC VSS & interfacing

3 V 9 MSP430x32x Configuration

XIN XOUT XBUF VCC VSS RST/NMI P0.0 P0.7

Oscillator ACLK 8/16KB 256/512B Power- 8B Timer/ I/O Port FLL ROM RAM On- Counter TXD 8 I/0’s, all System MCLK 16KB OTP SRAM Reset Serial with interr. Clock 'C': ROM Protocol RXD capability TDI 'P': OTP Support 3 lnt. Vectors TDO MAB, MAB, 16 bit 4 bit CPU Test including JTAG 16 register MCB Bus MDB, conv. MDB, 16 bit 8 bit TMS TCK ADC Watchdog Timer/Port Basic LCD 12+12bit Timer Applications: Timer 1 92 Segments 6 Channels 15 bit A/D Conv. Timer, O/P 1, 2, 3, 4 Mux Com0..3 Current S. Seg 0..19 fLCD Seg 20 6 6

A0..5 RI SVCC TP.0..5 CIN R33 R23 R13 R03

MSP430x32x Configuration full supply voltage range or to MSP430x32x Application Example The MSP430x32x series offers provide 12-bit resolution in each One of many application areas a high-resolution A/D converter of four separate ranges. The where the MSP430 proves very in addition to the peripherals of integrated current source can effective is single-phase electricity the MSP430x31x configuration. be programmed with an external meters. The cost-competitive This 14-bit A/D converter has six resistor to connect current-driven single-chip solution shown here inputs to convert analog signals sensors. uses the 14-bit on-chip A/D con- to 14-bit digital values over the verter to convert the current (via a current transformer on A0) and voltage (via a voltage divider on A1) into digital values. The sym- Single-Phase Electricity Meter metrical supply voltage enables Live signed measurement, while the

LOAD LMx85 creates a reference volt- Nuetral age. The amount of energy con- Range 32 kHz sumed is calculated by the CPU LCD +2.5 V Xin Xout 4 and the value displayed on the AVCC COMx kWh LCD or transmitted via the kW SVCC 21 Sxx Error optional UART connection. 82k Nonvolatile data storage is possi- TP.0 TP0.1 CLK Current MSP430x32x EEPROM ble with an optional external A0 P0.0 Data 4.3M EEPROM. A detailed application Voltage P0.1 (RXD) A1 Optional UART comm. note is available for this as well as Ref P0.2 (TXD) 33k A4 +2.5V many other applications. Input P0.3 0V A5 Switches TP0.5 LMx85 TP0.2 3 outputs V ref • • & AVSS TP0.4 P0.4 4 I/Os for • expansion • P0.7 • DVSS DVCC & interfacing -2.5 V +2.5 V

10 MSP430x33x Configuration

XIN XOUT XBUF VCC1 VCC2 VSS1 VSS2 VSS3 RST/NMI P4.0 P4.7 P2.x P1.x P3.0 P3.7 P0.0 P0.7

8 8 Oscillator ACLK FLL 24KB ROM 1KB RAM Power-On- I/O Port I/O Port I/O Port I/O Port 32KB ROM SRAM Reset 1x8 dig. I/O's 2x8 I/O's, all 1x8 dig. I/O's 8 I/O's, all with System 32KB Clock SMCLK with interr. cap interr. cap EPROM 2 Int. Vectors 3 Int. Vectors TDI TDO UART Timer A RXD, TXD

MAB, MAB, CPU Test 16 bit 4 bit JTAG including MCB Bus 16 register conv. MDB, MDB, 16 bit 8 bit TMS TCK MPY, MPYS Watchdog TIMER A USART 8-bit Timer/ Timer/Port Basic LCD MAC Timer Counter Timer 1 16bit PWM UTX UART or SPI Appl.'s: ADC 30 Segment Com0..3 16 x 16 bit 15bit URX function Timer, O/P f LCD Lines 1,2,3,4 Mux S0..28/O2..28 8 x 8 bit UCK S29/O29/CMPI STE 6 TACLK TA0.0..5 SIMO SOMI TXD RXD CMPI

TP.0..5 CIN R03 R13 R23 R33

MSP430x33x Configuration capture/compare registers, which independently of the CPU, allow- The MSP430x33x series focuses on can be fully configured by soft- ing it to still be active in LPM3. high-end applications. It includes ware. The capture mode is pri- The USART module features several additional, powerful marily used to measure external two serial communication modes, modules. or internal events from any com- a standard asynchronous commu- The hardware (HW) multiplier bination of positive and/or nega- nication protocol (UART, up to module performs 16x16, 16x8, tive edges. The compare mode is 115.2 kBaud) and a SPI function. 8x16 and 8x8 multiplication and primarily used to generate timing The mode is selectable by soft- accumulations (signed, unsigned). for software or application hard- ware via a control register. The After loading both operands into ware or to generate PWM output 33x series’ LCD module offers 30 the multiplier, the result is avail- signals for various purposes. segment lines to drive up to 120 able after a single cycle. Examples are D/A conversion segments in 4MUX mode. The Timer_A module includes functions and motor control MSP430x33x Application Example a 16-bit timer/counter and five applications. Timer_A can run The array of modules and number of I/Os on the MSP430x33x make Personal Medical Device it well suited for high-end applica- tions that require demanding user and hardware interfaces. The LCD TLV5616 Xin Xout 4 example circuit shown here can COMx Analog Out Test MSP430x33x Comm maintain the LCD display and SCLK 30 Sxx Time await keypad interrupts while DIN P4.3 (SIMO) TP0.0 CS P4.0 CLK operating in LPM3. When inter- Sensor EEPROM P0.0 Data rupted, the circuit switches to

TLV2541 TP0.3 active mode, with the high-speed Analog In TP0.4 CLK P4.5 (UCLK) TP0.5 MCLK running, in less than 6 µs. P0.3 Keypad While in LPM3 the circuit is fully Data P4.4 (SOMI) P0.4 CS P4.6 P0.5 operational from a user’s perspec- VCC P0.6 P0.7 tive, but the MSP430 is drawing P1.0 Sample Present Switch URXD.0 Optional UART comm. less than 2 µA of current. UTXD.0 Rref TP0.1 P1.3-7 23 I/Os R Ambient temp TP0.2 P2.0-7 for Temperature P3.0-7 CIN expansion & VCC VSS P4.1,7 interfacing 3.3 V 11 Kickstart User Interface

MSP430 Design Support require the user to learn a new MSP - FET430x110 Kickstart Environment interface. MSP430 devices with Flash Evaluation Tool Kickstart is a fully integrated Flash, OTP or UV-EPROM memo- Windows-based development ry can be programmed directly environment. It is derived from from Kickstart using either a the popular IAR Workbench user Flash Evaluation Tool (FET) or interface. This one interface the serial programming adapter. allows the user to develop code, simulate operation, download MSP430 Flash Evaluation software and debug applications Tools for all MSP430 derivatives. MSP-FET430x110, MSP-FET430P140 Kickstart allows the setting of The new Flash evaluation tools, breakpoints and the monitoring combined with the IAR Kickstart of special function registers, environment, enable system memory, the stack, as well as designers to quickly update, other useful information. download, run and debug their Kickstart includes the IAR code without ever disconnecting assembler, a software simulator, the MSP430 from the PC. This a limited version of the IAR C greatly speeds the development and the C-SPY debug- and debug portions of the ger. Upgrading to the full version application development cycle. of IAR C is simple and does not

12 The FET tools allow designers the MSP430 Evaluation Kits MSP430 Serial Programming flexibility of operating the device MSP-EVK430S320 and MSP- Adapter under JTAG control, running to EVK430S330 MSP-PRGS430 internal breakpoints or free run- The MSP430 evaluation kits (EVK) The serial programming adapter is ning the MSP430. Each FET are powerful development tools a second-generation programming comes with an evaluation board, that include much of the hardware tool that can program any MSP430 two Flash devices, PC parallel and software required to complete Flash, OTP or UV-EPROM device. connection, development software your application development. Devices can be programmed in and the MSP430 CD-ROM. The Each EVK comes with an evalua- stand-alone sockets or in-circuit. MSP-FET430x110 is a complete tion board, two UV-EPROM Software is included to facilitate low-cost application development devices, serial programming device programming. for MSP430F11x1 products. adapter, development software and The MSP-FET430P140 supports CD-ROM. The MSP-EVK430S320 application development for both EVK supports the MSP430x32x the MSP430F13x and and MSP430x31x families of MSP430F14x product families. It devices. The MSP-EVK430S330 includes a parallel interface that EVK supports the MSP430x33x also allows direct in-circuit pro- and MSP430x31x families of gramming of MSP430 Flash devices. devices.

MSP430 Development Tools*

Development Evaluation/ Environment C Compliler Programmers Emulation MSP430P112** Kickstart IAR MSP-PRGS430, MSP-EVK430S330 BP, Data I/O MSP430F11x1 Kickstart IAR MSP-PRGS430, MSP-FET430x110 BP, Data I/O MSP430F13x Kickstart IAR MSP-PRGS430, MSP-FET430P140 BP, Data I/O MSP430F14x Kickstart IAR MSP-PRGS430, MSP-FET430P140 BP, Data I/O MSP430P315** Kickstart IAR MSP-PRGS430, MSP-EVK430S330 BP, Data I/O MSP430P325A** Kickstart IAR MSP-PRGS430, MSP-EVK430S320 BP, Data I/O MSP430P337A** Kickstart IAR MSP-PRGS430, MSP-EVK430S330 BP, Data I/O

*Third party tools are sold and supported by the third party companies offering them **UV-EPROM (E) versions available for prototyping - PMS430E112, PMS430E315, PMS430E325A AND PMS430E337A

13 MSP430 Third-Party Support from most other programming available packages TI maintains a dedicated MSP430 systems through the variety of are supported. third-party program for hardware supported devices, but also by With the convenient and easy to and software tooling as well as for guaranteeing its customers the use learn HiTOP user interface, all the programming support. These of vendor approved algorithms processor internals and application third-party developers have the with maximal programming yields structures are made transparent. engineering expertise to provide and minimal programming times. Symbolic high-level language application-specific software tools, Data I/O supports TI’s MSP430 debugging, as well as examination helping our customers achieve devices with the universal pro- down to assembler code, can be their design goals. Links from TI’s grammers Sprint Multisystem as done to speed up the development MSP430 web site will direct you to well as with the automatic pro- and ensure quality in the applica- each company’s home page: gramming systems PP100. With the tion. The high-end features of the www.ti.com/sc/msp430 latest version of the Sprint soft- DBox16 allow the user to find and ware, the following devices are eliminate even the most complex supported: MSP430x31x, bugs. With the features coverage MSP430x32x, MSP430x33x and and performance analysis you can MSP430x11x(1). All these con- optimize your MSP430 product and BP Microsystems Inc. trollers are supported with flexible its competitiveness in today’s diffi- BP Microsystems Inc. designs and TOPs or adapters for different cult markets. For more information manufactures device programmers packages like PLCC, SSOP or QFP. visit the Hitex web site at: for both engineering and produc- Special software functions of the www.hitex.com tion applications. Leading the devices, such as UserID, Watchdog industry in device support, perfor- Timer or Code Protection can be mance and cost of ownership, BP activated via a simple menu. For provides complete device program- more information, visit the Data ming solutions to customers world- I/O web site: wide. The company offers a full line www.dataio.com of single-site device programmers C-Cross-Compiler and C/ASM- and Universal Programmers, and multi-site Concurrent Programming IAR is a leading provider of C Systems. and development tools The MSP430 can be programmed for programming embedded appli- using any of BP’s universal engi- Hitex Emulator in an Affordable cations. IAR provides the Kickstart neering programmers (BP-1200 Quality Concept environment that is now the stan- and BP-1400), BP’s manual With the DProbe430, Hitex offers a dard interface for MSP430 or multi-site Concurrent modular emulation system which is development. Programming Systems. For more specifically designed to develop, The EW430 is a fully integrated information, visit the BP web site: test and optimize MSP430 applica- development environment that www.bpmicro.com tions. Starting with the entry-level includes the full C compiler, system DProbe430, up to the high- linker, librarian and assembler in a end system DBox16, real-time seamless interface with easy-to-use debugging at the highest frequen- project and option handling. The cies and with all the power saving CW430 is an HLL debugger incor- Data I/O Corporation modes is now possible without porating a complete C expression Universal Programming System - restrictions. Changing from one analyzer and full C-type knowledge. Sprint derivative to another can be done It combines detailed control of Data I/O has invested heavily in the by an easy and low-cost exchange code execution required for steadily growing market of micro- of the derivative specific part. This embedded development debugging controller devices by considerably also allows an upgrade to future with the flexibility and power of the expanding its device library. The derivatives. C language. The source window can universal programming systems of For reliable adaptation to the display C source code and mix it the Sprint family not only standout target hardware, adapters for all with assembler code.

14 The CW430 simulator allows an Documentation applications. This report contains unlimited number of breakpoints TI provides extensive documenta- examples of developing code and on C statements, assembler tion support for the MSP430, circuitry for most of the hardware instructions and on any address including user’s guides, applica- modules found on the MSP430. It with a read, write or opcode fetch tions books, data sheets and will assist the system designer in access type. An interrupt simula- brochures. developing code for ADC, UART, tion implements commands to • MSP430x3xx Family User’s I2C bus, battery check, digital launch specific interrupts, either Guide (SLAU012) motor control, as well as arith- periodically or at a specified • MSP430x1xx Family User’s metic routines, table processing cycle-count. For interrupt simula- Guide (SLAU049) and much more. tion with intermittent interrupts, • MSP430 Application Report the same algorithm as in the book (SLAA024) For More Information target hardware will be selected • MSP430 CD-ROM (SLAC001B) For pricing and availability, con- for choosing the highest priority The MSP430 Application Report tact your local TI field sales office interrupt. For more information, book (SLAA024) includes many or authorized TI distributor. For please visit the IAR web site: hardware and software examples datasheets and the latest informa- www.iar.com using the MSP430 for low-power tion about TI’s ultra-low-power metering and high-precision mixed-signal processors, visit: www.ti.com/sc/msp430 Notes

15 TI Worldwide Technical Support

Internet TI Semiconductor Home Page www.ti.com/sc

TI Distributors www.ti.com/sc/docs/general/distrib.htm

Product Information Centers Americas Asia Phone +1(972) 644-5580 Phone Fax +1(214) 480-7800 International +886-2-23786800 Internet www.ti.com/sc/ampic Domestic Local Access Code TI Number Australia 1-800-881-011 -800-800-1450 Europe, Middle East, and Africa China 00-800-8800-6800 - Phone Hong Kong 800-96-1111 -800-800-1450 Belgium (English) +32 (0) 27 45 55 32 India 000-117 -800-800-1450 France +33 (0) 1 30 70 11 64 Indonesia 001-801-10 -800-800-1450 Germany +49 (0) 8161 80 33 11 Korea 001-800-8800-6800 - Israel (English) 1800 949 0107 Malaysia 1-800-800-011 -800-800-1450 Italy 800 79 11 37 New Zealand 000-911 -800-800-1450 Netherlands (English) +31 (0) 546 87 95 45 Philippines 105-11 -800-800-1450 Spain +34 902 35 40 28 Singapore 800-0111-111 -800-800-1450 Sweden (English) +46 (0) 8587 555 22 Taiwan 080-006800 - United Kingdom +44 (0) 1604 66 33 99 Thailand 0019-991-1111 -800-800-1450 Fax +44 (0) 1604 66 33 34 Fax 886-2-2378-6808 Email [email protected] Email [email protected] Internet www.ti.com/sc/epic Internet www.ti.com/sc/apic Japan Phone International +81-3-3344-5311 Domestic 0120-81-0026 Important Notice: The products and services of Texas Instruments and its subsidiaries described herein are sold subject to TI’s standard terms Fax and conditions of sale. Customers are advised to obtain the most current and complete information about TI products and services before placing International +81-3-3344-5317 orders. TI assumes no liability for applications assistance, customer’s Domestic 0120-81-0036 applications or product designs, software performance, or infringement of patents. The publication of information regarding any other company’s Internet products or services does not constitute TI’s approval, warranty or endorsement thereof. International www.ti.com/sc/jpic Domestic www.tij.co.jp/pic A050200

The red/black banner is a trademark of Texas Instruments. Windows is a trademark of Microsoft Corporation. All other trademarks are the property of their respective owners.

© 2000 Texas Instruments Incorporated Printed in the U.S.A. SLAB034B Printed on recycled paper.