SLAS361D − JANUARY 2002 − REVISED AUGUST 2004 D Low Supply Voltage Range 1.8 V to 3.6 V D Ultralow-Power Consumption: D D D D D D − Active Mode: 200 µA at 1 MHz, 2.2 V − Standby Mode: 0.7 µA − Off Mode (RAM Retention): 0.1 µA Five Power Saving Modes Wake-Up From Standby Mode in less than 6 µs 16-Bit RISC Architecture, 125 ns Instruction Cycle Time Basic Clock Module Configurations: − Various Internal Resistors − Single External Resistor − 32-kHz Crystal − High Frequency Crystal − Resonator − External Clock Source 16-Bit Timer_A With Three Capture/Compare Registers 10-Bit, 200-ksps A/D Converter With Internal Reference, Sample-and-Hold, Autoscan, and Data Transfer Controller D Serial Onboard Programming, D D D D No External Programming Voltage Needed Programmable Code Protection by Security Fuse Supply Voltage Brownout Protection MSP430x11x2 Family Members Include: MSP430F1122: 4KB + 256B Flash Memory 256B RAM MSP430F1132: 8KB + 256B Flash Memory 256B RAM Available in 20-Pin Plastic SOWB, 20-Pin Plastic TSSOP and 32-Pin QFN Packages MSP430x12x2 Family Members Include: MSP430F1222: 4KB + 256B Flash Memory 256B RAM MSP430F1232: 8KB + 256B Flash Memory 256B RAM Available in 28-Pin Plastic SOWB, 28-Pin Plastic TSSOP, and 32-Pin QFN Packages For Complete Module Descriptions, See the MSP430x1xx Family User’s Guide, Literature Number SLAU049 D Serial Communication Interface (USART0) With Software-Selectable Asynchronous UART or Synchronous SPI (MSP430x12x2 Only) description The Texas Instruments MSP430 family of ultralow-power microcontrollers consist of several devices featuring different sets of peripherals targeted for various applications. The architecture, combined with five low power modes is optimized to achieve extended battery life in portable measurement applications. The device features a powerful 16-bit RISC CPU, 16-bit registers, and constant generators that attribute to maximum code efficiency. The digitally controlled oscillator (DCO) allows wake-up from low-power modes to active mode in less than 6µs. The MSP430x11x2 and MSP430x12x2 series are ultralow-power mixed signal microcontrollers with a built-in 16-bit timer, 10-bit A/D converter with integrated reference and data transfer controller (DTC) and fourteen or twenty-two I/O pins. In addition, the MSP430x12x2 series microcontrollers have built-in communication capability using asynchronous (UART) and synchronous (SPI) protocols. Digital signal processing with the 16-bit RISC performance enables effective system solutions such as glass breakage detection with signal analysis (including wave digital filter algorithm). Another area of application is in stand-alone RF sensors. Please be aware that an important notice concerning availability, standard warranty, and use in critical applications of Texas Instruments semiconductor products and disclaimers thereto appears at the end of this data sheet. Copyright 2002 − 2004, Texas Instruments Incorporated ! "#$ ! %#&'" ( $) (#" ! " !%$"" ! %$ *$ $! $! ! #$ ! ! (( + ,) (#" %"$!!- ($! $"$!!', "'#($ $! - '' %$ $!) POST OFFICE BOX 655303 • DALLAS, TEXAS 75265 1 SLAS361D − JANUARY 2002 − REVISED AUGUST 2004 AVAILABLE OPTIONS PACKAGED DEVICES TA PLASTIC 20-PIN SOWB (DW) PLASTIC 20-PIN TSSOP (PW) PLASTIC 28-PIN SOWB (DW) PLASTIC 28-PIN TSSOP (PW) PLASTIC 32-PIN QFN (RHB) −40°C ° to 85°C ° MSP430F1122IDW MSP430F1132IDW MSP430F1122IPW MSP430F1132IPW MSP430F1222IDW MSP430F1232IDW MSP430F1222IPW MSP430F1232IPW MSP430F1122IRHB MSP430F1132IRHB MSP430F1222IRHB MSP430F1232IRHB pin designation, MSP430x11x2 (see Notes 1, 2 and 3) DW or PW PACKAGE (TOP VIEW) TEST VCC P2.5/ROSC VSS XOUT XIN RST/NMI P2.0/ACLK/A0 P2.1/INCLK/A1 P2.2/TA0/A2 1 2 3 4 5 6 7 8 9 10 20 19 18 17 16 15 14 13 12 11 P1.7/TA2/TDO/TDI P1.6/TA1/TDI/TCLK P1.5/TA0/TMS P1.4/SMCLK/TCK P1.3/TA2 P1.2/TA1 P1.1/TA0 P1.0/TACLK/ADC10CLK P2.4/TA2/A4/VREF+/VeREF+ P2.3/TA1/A3/VREF−/VeREF− P2.5/ROSC NC VCC TEST P1.7/TA2/TDO/TDI P1.6/TA1/TDI/TCLK P1.5/TA0/TMS P1.4/SMCLK/TCK RHB PACKAGE (TOP VIEW) 1 31 30 29 28 27 26 24 2 23 3 22 4 21 20 5 6 19 18 7 8 10 11 12 13 14 15 17 P1.3/TA2 P1.2/TA1 P1.1/TA0 P1.0/TACLK/ADC10CLK NC P2.4/TA2/A4/VREF+/VeREF+ P2.3/TA1/A3/VREF−/VeREF− NC Reserved Reserved Reserved Reserved Reserved Reserved Reserved Reserved VSS XOUT XIN NC RST/NMI P2.0/ACLK/A0 P2.1/INCLK/A1 P2.2/TA0/A2 NOTES: 1. NC pins are not internally connected. Recommended connection to VSS. 2. Recommended connection to VSS for all pins labeled “Reserved” to avoid floating nodes, otherwise increased current consumption may occur. 3. Power pad connection to VSS recommended. 2 POST OFFICE BOX 655303 • DALLAS, TEXAS 75265 SLAS361D − JANUARY 2002 − REVISED AUGUST 2004 pin designation, MSP430x12x2 (see Notes 1 and 2) DW or PW PACKAGE (TOP VIEW) TEST VCC P2.5/ROSC VSS XOUT XIN RST/NMI P2.0/ACLK/A0 P2.1/INCLK/A1 P2.2/TA0/A2 P3.0/STE0/A5 P3.1/SIMO0 P3.2/SOMI0 P3.3/UCLK0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 28 27 26 25 24 23 22 21 20 19 18 17 16 15 P1.7/TA2/TDO/TDI P1.6/TA1/TDI/TCLK P1.5/TA0/TMS P1.4/SMCLK/TCK P1.3/TA2 P1.2/TA1 P1.1/TA0 P1.0/TACLK/ADC10CLK P2.4/TA2/A4/VREF+/VeREF+ P2.3/TA1/A3/VREF−/VeREF− P3.7/A7 P3.6/A6 P3.5/URXD0 P3.4/UTXD0 P2.5/ROSC NC VCC TEST P1.7/TA2/TDO/TDI P1.6/TA1/TDI/TCLK P1.5/TA0/TMS P1.4/SMCLK/TCK RHB PACKAGE (TOP VIEW) 26 24 1 31 30 29 28 27 2 23 3 22 4 21 20 5 6 19 18 7 8 10 11 12 13 14 15 17 P1.3/TA2 P1.2/TA1 P1.1/TA0 P1.0/TACLK/ADC10CLK NC P2.4/TA2/A4/VREF+/VeREF+ P2.3/TA1/A3/VREF−/VeREF− NC P3.0/STE0/A5 P3.1/SIMO0 P3.2/SOMI0 P3.3/UCLK0 P3.4/UTXD0 P3.5/URXD0 P3.6/A6 P3.7/A7 VSS XOUT XIN NC RST/NMI P2.0/ACLK/A0 P2.1/INCLK/A1 P2.2/TA0/A2 NOTES: 1. NC pins are not internally connected. Recommended connection to VSS. 2. Power pad connection to VSS recommended. POST OFFICE BOX 655303 • DALLAS, TEXAS 75265 3 SLAS361D − JANUARY 2002 − REVISED AUGUST 2004 functional block diagram, MSP430x11x2 XIN XOUT VCC P1/JTAG RST/NMI VSS P2 8 ROSC Oscillator System Clock ACLK 8KB Flash 256B RAM ADC10 SMCLK 4KB Flash 256B RAM 10-Bit Autoscan DTC I/O Port 1 8 I/Os, with Interrupt Capability 6 I/O Port 2 6 I/Os, with Interrupt Capability MCLK Test MAB, 4 Bit MAB,MAB, 16 Bit16-Bit JTAG CPU MCB Emulation Module Incl. 16 Reg. TEST Bus Conv MDB, 16-Bit MDB, 16 Bit Watchdog Timer Timer_A3 MDB, 8 Bit POR/ Brownout 3 CC Reg 15/16-Bit functional block diagram, MSP430x12x2 XIN XOUT VCC P1/JTAG RST/NMI VSS 8 ROSC Oscillator System Clock ACLK 8KB Flash 256B RAM ADC10 SMCLK 4KB Flash 256B RAM 10-Bit Autoscan DTC I/O Port 1 8 I/Os, with Interrupt Capability P2 P3 6 8 I/O Port 2 6 I/Os, with Interrupt Capability I/O Port 3 8 I/Os MCLK Test MAB, 4 Bit MAB,MAB, 16 Bit16-Bit JTAG CPU TEST MCB Emulation Module Incl. 16 Reg. Bus Conv MDB, 16-Bit MDB, 16 Bit Watchdog Timer Timer_A3 MDB, 8 Bit POR/ Brownout 3 CC Reg UART Mode SPI Mode 15/16-Bit 4 POST OFFICE BOX 655303 USART0 • DALLAS, TEXAS 75265 SLAS361D − JANUARY 2002 − REVISED AUGUST 2004 Terminal Functions, MSP430x11x2 NAME RHB I/O DESCRIPTION P1.0/TACLK/ ADC10CLK 13 21 I/O General-purpose digital I/O pin/Timer_A, clock signal TACLK input/conversion clock—10-bit ADC P1.1/TA0 14 22 I/O General-purpose digital I/O pin/Timer_A, capture: CCI0A input, compare: Out0 output/BSL transmit P1.2/TA1 15 23 I/O General-purpose digital I/O pin/Timer_A, capture: CCI1A input, compare: Out1 output P1.3/TA2 16 24 I/O General-purpose digital I/O pin/Timer_A, capture: CCI2A input, compare: Out2 output P1.4/SMCLK/TCK 17 25 I/O General-purpose digital I/O pin/SMCLK signal output/test clock, input terminal for device programming and test P1.5/TA0/TMS 18 26 I/O General-purpose digital I/O pin/Timer_A, compare: Out0 output/test mode select, input terminal for device programming and test P1.6/TA1/TDI/TCLK 19 27 I/O General-purpose digital I/O pin/Timer_A, compare: Out1 output/test data input terminal or test clock input P1.7/TA2/TDO/TDI† 20 28 I/O General-purpose digital I/O pin/Timer_A, compare: Out2 output/test data output terminal or data input during programming P2.0/ACLK/A0 8 6 I/O General-purpose digital I/O pin/ACLK output/analog input to 10-bit ADC input A0 P2.1/INCLK/A1 9 7 I/O General-purpose digital I/O pin/Timer_A, clock signal at INCLK/analog input to 10-bit ADC input A1 P2.2/TA0/A2 10 8 I/O General-purpose digital I/O pin/Timer_A, capture: CCI0B input, compare: Out0 output/analog input to 10-bit ADC input A2/BSL receive P2.3/TA1/A3/VREF−/ VeREF− 11 18 I/O General-purpose digital I/O pin/Timer_A, capture: CCI1B input, compare: Out1 output/analog input to 10-bit ADC input A3/negative reference voltage terminal. P2.4/TA2/A4/VREF+/ VeREF+ 12 19 I/O General-purpose digital I/O pin/Timer_A, compare: Out2 output/analog input to 10-bit ADC input A4/I/O of positive reference voltage terminal P2.5/ROSC 3 32 I/O General-purpose digital I/O pin/Input for external resistor that defines the DCO nominal frequency RST/NMI 7 5 I Reset or nonmaskable interrupt input TEST 1 29 I Selects test mode for JTAG pins on P1.x VCC 2 30 VSS 4 1 XIN 6 3 I Input terminal of crystal oscillator O Output terminal of crystal oscillator XOUT † TERMINAL DW & PW 5 2 NC NA 4,17,20,31 Reserved NA 9 - 16 QFN Pad NA Package Pad Supply voltage Ground reference Not connected internally. Recommended connection to VSS. Reserved pins. Recommended connection to VSS to avoid floating nodes, otherwise increased current consumption may occur. QFN package pad connection to VSS recommended. TDO or TDI is selected via JTAG instruction. POST OFFICE BOX 655303 • DALLAS, TEXAS 75265 5 SLAS361D − JANUARY 2002 − REVISED AUGUST 2004 Terminal Functions, MSP430x12x2 NAME TERMINAL DW & PW RHB I/O DESCRIPTION P1.0/TACLK/ ADC10CLK 21 21 I/O General-purpose digital I/O pin/Timer_A, clock signal TACLK input/conversion clock—10-bit ADC P1.1/TA0 22 22 I/O General-purpose digital I/O pin/Timer_A, capture: CCI0A input, compare: Out0 output/BSL transmit P1.2/TA1 23 23 I/O General-purpose digital I/O pin/Timer_A, capture: CCI1A input, compare: Out1 output P1.3/TA2 24 24 I/O General-purpose digital I/O pin/Timer_A, capture: CCI2A input, compare: Out2 output P1.4/SMCLK/TCK 25 25 I/O General-purpose digital I/O pin/SMCLK signal output/test clock, input terminal for device programming and test P1.5/TA0/TMS 26 26 I/O General-purpose digital I/O pin/Timer_A, compare: Out0 output/test mode select, input terminal for device programming and test P1.6/TA1/TDI/TCLK 27 27 I/O General-purpose digital I/O pin/Timer_A, compare: Out1 output/test data input terminal or test clock input P1.7/TA2/TDO/TDI† 28 28 I/O General-purpose digital I/O pin/Timer_A, compare: Out2 output/test data output terminal or data input during programming P2.0/ACLK/A0 8 6 I/O General-purpose digital I/O pin/ACLK output/analog input to 10-bit ADC input A0 P2.1/INCLK/A1 9 7 I/O General-purpose digital I/O pin/Timer_A, clock signal at INCLK/analog input to 10-bit ADC input A1 P2.2/TA0/A2 10 8 I/O General-purpose digital I/O pin/Timer_A, capture: CCI0B input, compare: Out0 output/analog input to 10-bit ADC input A2/BSL receive P2.3/TA1/A3/VREF−/ VeREF− 19 18 I/O General-purpose digital I/O pin/Timer_A, capture: CCI1B input, compare: Out1 output/analog input to 10-bit ADC input A3/negative reference voltage terminal. P2.4/TA2/A4/VREF+/ VeREF+ 20 19 I/O General-purpose digital I/O pin/Timer_A, compare: Out2 output/analog input to 10-bit ADC input A4/I/O of positive reference voltage terminal P2.5/ROSC 3 32 I/O General-purpose digital I/O pin/Input for external resistor that defines the DCO nominal frequency P3.0/STE0/A5 11 9 I/O General-purpose digital I/O pin/slave transmit enable—USART0/SPI mode/analog input to 10-bit ADC input A5 P3.1/SIMO0 12 10 I/O General-purpose digital I/O pin/slave in/master out of USART0/SPI mode P3.2/SOMI0 13 11 I/O General-purpose digital I/O pin/slave out/master in of USART0/SPI mode P3.3/UCLK0 14 12 I/O General-purpose digital I/O pin/external clock input—USART0/UART or SPI mode, clock output—USART0/SPI mode clock input P3.4/UTXD0 15 13 I/O General-purpose digital I/O pin/transmit data out—USART0/UART mode P3.5/URXD0 16 14 I/O General-purpose digital I/O pin/receive data in—USART0/UART mode P3.6/A6 17 15 I/O General-purpose digital I/O pin/analog input to 10-bit ADC input A6 P3.7/A7 18 16 I/O General-purpose digital I/O pin/analog input to 10-bit ADC input A7 RST/NMI 7 5 I Reset or nonmaskable interrupt input TEST 1 29 I Selects test mode for JTAG pins on P1.x VCC 2 30 Supply voltage VSS 4 1 Ground reference XIN 6 3 I Input terminal of crystal oscillator XOUT 5 2 O Output terminal of crystal oscillator NC NA 4,17,20,31 QFN Pad NA † 6 Not connected internally. Recommended connection to VSS. QFN package pad connection to VSS recommended. TDO or TDI is selected via JTAG instruction. POST OFFICE BOX 655303 • DALLAS, TEXAS 75265 SLAS361D − JANUARY 2002 − REVISED AUGUST 2004 short-form description CPU The MSP430 CPU has a 16-bit RISC architecture that is highly transparent to the application. All operations, other than program-flow instructions, are performed as register operations in conjunction with seven addressing modes for source operand and four addressing modes for destination operand. Program Counter PC/R0 Stack Pointer SP/R1 SR/CG1/R2 Status Register Constant Generator The CPU is integrated with 16 registers that provide reduced instruction execution time. The register-to-register operation execution time is one cycle of the CPU clock. Four of the registers, R0 to R3, are dedicated as program counter, stack pointer, status register, and constant generator respectively. The remaining registers are general-purpose registers. Peripherals are connected to the CPU using data, address, and control buses, and can be handled with all instructions. instruction set The instruction set consists of 51 instructions with three formats and seven address modes. Each instruction can operate on word and byte data. Table 1 shows examples of the three types of instruction formats; the address modes are listed in Table 2. CG2/R3 General-Purpose Register R4 General-Purpose Register R5 General-Purpose Register R6 General-Purpose Register R7 General-Purpose Register R8 General-Purpose Register R9 General-Purpose Register R10 General-Purpose Register R11 General-Purpose Register R12 General-Purpose Register R13 General-Purpose Register R14 General-Purpose Register R15 Table 1. Instruction Word Formats Dual operands, source-destination e.g. ADD R4,R5 R4 + R5 −−−> R5 Single operands, destination only e.g. CALL PC −−>(TOS), R8−−> PC Relative jump, un/conditional e.g. JNE R8 Jump-on-equal bit = 0 Table 2. Address Mode Descriptions ADDRESS MODE S D Indirect D D D D D Indirect autoincrement Register Indexed Symbolic (PC relative) Absolute Immediate NOTE: S = source D D D D SYNTAX EXAMPLE MOV Rs,Rd MOV R10,R11 MOV X(Rn),Y(Rm) MOV 2(R5),6(R6) MOV EDE,TONI OPERATION R10 −−> R11 M(2+R5)−−> M(6+R6) M(EDE) −−> M(TONI) MOV &MEM,&TCDAT M(MEM) −−> M(TCDAT) MOV @Rn,Y(Rm) MOV @R10,Tab(R6) M(R10) −−> M(Tab+R6) D MOV @Rn+,Rm MOV @R10+,R11 M(R10) −−> R11 R10 + 2−−> R10 D MOV #X,TONI MOV #45,TONI #45 −−> M(TONI) D = destination POST OFFICE BOX 655303 • DALLAS, TEXAS 75265 7 SLAS361D − JANUARY 2002 − REVISED AUGUST 2004 operating modes The MSP430 has one active mode and five software selectable low-power modes of operation. An interrupt event can wake up the device from any of the five low-power modes, service the request and restore back to the low-power mode on return from the interrupt program. The following six operating modes can be configured by software: D Active mode AM; − All clocks are active D Low-power mode 0 (LPM0); − CPU is disabled ACLK and SMCLK remain active. MCLK is disabled D Low-power mode 1 (LPM1); − CPU is disabled ACLK and SMCLK remain active. MCLK is disabled DCO’s dc-generator is disabled if DCO not used in active mode D Low-power mode 2 (LPM2); − CPU is disabled MCLK and SMCLK are disabled DCO’s dc-generator remains enabled ACLK remains active D Low-power mode 3 (LPM3); − CPU is disabled MCLK and SMCLK are disabled DCO’s dc-generator is disabled ACLK remains active D Low-power mode 4 (LPM4); − 8 CPU is disabled ACLK is disabled MCLK and SMCLK are disabled DCO’s dc-generator is disabled Crystal oscillator is stopped POST OFFICE BOX 655303 • DALLAS, TEXAS 75265 SLAS361D − JANUARY 2002 − REVISED AUGUST 2004 interrupt vector addresses The interrupt vectors and the power-up starting address are located in the address range of 0FFFFh-0FFE0h. The vector contains the 16-bit address of the appropriate interrupt handler instruction sequence. INTERRUPT SOURCE INTERRUPT FLAG SYSTEM INTERRUPT WORD ADDRESS PRIORITY Power-up External reset Watchdog Flash memory WDTIFG (see Note1) KEYV (see Note 1) Reset 0FFFEh 15, highest NMI Oscillator fault Flash memory access violation NMIIFG (see Notes 1 and 4) OFIFG (see Notes 1 and 4) ACCVIFG (see Notes 1 and 4) (Non)-maskable (Non)-maskable (Non)-maskable 0FFFCh 14 0FFFAh 13 0FFF8h 12 0FFF6h 11 Watchdog timer WDTIFG Maskable 0FFF4h 10 Timer_A3 TACCR0 CCIFG (see Note 2) Maskable 0FFF2h 9 Timer_A3 TACCR1 and TACCR2 CCIFGs, TAIFG (see Notes 1 and 2) Maskable 0FFF0h 8 USART0 receive (see Note 5) URXIFG0 Maskable 0FFEEh 7 USART0 transmit (see Note 5) UTXIFG0 Maskable 0FFECh 6 ADC10 ADC10IFG Maskable 0FFEAh 5 0FFE8h 4 I/O Port P2 (eight flags − see Note 3) P2IFG.0 to P2IFG.7 (see Notes 1 and 2) Maskable 0FFE6h 3 I/O Port P1 (eight flags) P1IFG.0 to P1IFG.7 (see Notes 1 and 2) Maskable 0FFE4h 2 NOTES: 1. 2. 3. 4. 5. 0FFE2h 1 0FFE0h 0, lowest Multiple source flags Interrupt flags are located in the module There are eight Port P2 interrupt flags, but only six Port P2 I/O pins (P2.0−5) are implemented on the ’11x2 and ’12x2 devices. (Non)-maskable: the individual interrupt enable bit can disable an interrupt event, but the general interrupt enable cannot. USART0 is implemented in MSP430x12x2 devices only. POST OFFICE BOX 655303 • DALLAS, TEXAS 75265 9 SLAS361D − JANUARY 2002 − REVISED AUGUST 2004 special function registers Most interrupt and module enable bits are collected into the lowest address space. Special function register bits that are not allocated to a functional purpose are not physically present in the device. Simple software access is provided with this arrangement. interrupt enable 1 and 2 Address 7 6 0h 5 4 ACCVIE NMIIE rw-0 WDTIE: OFIE: NMIIE: ACCVIE: Address 3 2 1 OFIE rw-0 0 WDTIE rw-0 rw-0 Watchdog Timer interrupt enable. Inactive if watchdog mode is selected. Active if Watchdog Timer is configured in interval timer mode. Oscillator fault enable (Non)maskable interrupt enable Flash access violation interrupt enable 7 6 5 4 3 2 01h 1 UTXIE0 0 URXIE0 rw-0 rw-0 URXIE0: USART0: UART and SPI receive-interrupt enable (MSP430x12x2 devices only) UTXIE0: USART0: UART and SPI transmit-interrupt enable (MSP430x12x2 devices only) interrupt flag register 1 and 2 Address 7 6 5 02h 4 3 2 NMIIFG rw-0 WDTIFG: OFIFG: NMIIFG: Address 1 OFIFG rw-1 rw-(0) Set on Watchdog Timer overflow (in watchdog mode) or security key violation. Reset on VCC power-up or a reset condition at RST/NMI pin in reset mode. Flag set on oscillator fault Set via RST/NMI-pin 7 6 5 4 3 2 03h 1 UTXIFG0 rw-1 URXIFG0: USART0: UART and SPI receive flag (MSP430x12x2 devices only) UTXIFG0: USART0: UART and SPI transmit flag (MSP430x12x2 devices only) 10 0 WDTIFG POST OFFICE BOX 655303 • DALLAS, TEXAS 75265 0 URXIFG0 rw-0 SLAS361D − JANUARY 2002 − REVISED AUGUST 2004 module enable registers 1 and 2 Address 7 6 5 4 3 2 1 7 6 5 4 3 2 1 0 04h Address 05h 0 URXE0 USPIE0 UTXE0 rw-0 URXE0: UTXE0: USPIE0: Legend rw-0 USART0: UART mode receive enable (MSP430x12x2 devices only) USART0: UART mode transmit enable (MSP430x12x2 devices only) USART0: SPI mode transmit and receive enable (MSP430x12x2 devices only) rw: rw-0,1: rw-(0,1): Bit can be read and written. Bit can be read and written. It is Reset or Set by PUC Bit can be read and written. It is Reset or Set by POR SFR bit is not present in device. memory organization MSP430F1122 MSP430F1132 MSP430F1222 MSP430F1232 Memory Main: interrupt vector Main: code memory Size Flash Flash 4KB Flash 0FFFFh−0FFE0h 0FFFFh−0F000h 8KB Flash 0FFFFh−0FFE0h 0FFFFh−0E000h 4KB Flash 0FFFFh−0FFE0h 0FFFFh−0F000h 8KB Flash 0FFFFh−0FFE0h 0FFFFh−0E000h Information memory Size Flash 256 Byte 010FFh − 01000h 256 Byte 010FFh − 01000h 256 Byte 010FFh − 01000h 256 Byte 010FFh − 01000h Boot memory Size ROM 1KB 0FFFh − 0C00h 1KB 0FFFh − 0C00h 1KB 0FFFh − 0C00h 1KB 0FFFh − 0C00h Size 256 Byte 02FFh − 0200h 256 Byte 02FFh − 0200h 256 Byte 02FFh − 0200h 256 Byte 02FFh − 0200h 16-bit 8-bit 8-bit SFR 01FFh − 0100h 0FFh − 010h 0Fh − 00h 01FFh − 0100h 0FFh − 010h 0Fh − 00h 01FFh − 0100h 0FFh − 010h 0Fh − 00h 01FFh − 0100h 0FFh − 010h 0Fh − 00h RAM Peripherals bootstrap loader (BSL) The MSP430 bootstrap loader (BSL) enables users to program the flash memory or RAM using a UART serial interface. Access to the MSP430 memory via the BSL is protected by user-defined password. For complete description of the features of the BSL and its implementation, see the Application report Features of the MSP430 Bootstrap Loader, Literature Number SLAA089. BSL Function MSP430x11x2 DW & PW Package (20 Pins) MSP430x12x2 DW & PW Package (28 Pins) MSP430x11x2/12x2 RHB Package (32 Pins) Data Transmit 14 - P1.1 22 - P1.1 22 - P1.1 Data Receive 10 - P2.2 10 - P2.2 8 - P2.2 POST OFFICE BOX 655303 • DALLAS, TEXAS 75265 11 SLAS361D − JANUARY 2002 − REVISED AUGUST 2004 flash memory The flash memory can be programmed via the JTAG port, the bootstrap loader, or in-system by the CPU. The CPU can perform single-byte and single-word writes to the flash memory. Features of the flash memory include: D Flash memory has n segments of main memory and two segments of information memory (A and B) of 128 bytes each. Each segment in main memory is 512 bytes in size. D Segments 0 to n may be erased in one step, or each segment may be individually erased. D Segments A and B can be erased individually, or as a group with segments 0−n. Segments A and B are also called information memory. D New devices may have some bytes programmed in the information memory (needed for test during manufacturing). The user should perform an erase of the information memory prior to the first use. 0FFFFh 0FE00h Segment0 w/ Interrupt Vectors 0FDFFh 0FC00h Segment1 0FBFFh 0FA00h Segment2 0F9FFh 0F800h Segment3 0F7FFh 0F600h Segment4 0E3FFh 0E200h Segment14 0E1FFh 0E000h Segment15 010FFh 01080h SegmentA 0107Fh 01000h SegmentB Flash Main Memory Information Memory NOTE: All segments not implemented on all devices. 12 POST OFFICE BOX 655303 • DALLAS, TEXAS 75265 SLAS361D − JANUARY 2002 − REVISED AUGUST 2004 peripherals Peripherals are connected to the CPU through data, address, and control busses and can be handled using all instructions. For complete module descriptions, see the MSP430x1xx Family User’s Guide, literature number SLAU049. oscillator and system clock The clock system in the MSP430x11x2 and MSP430x12x2 devices is supported by the basic clock module that includes support for a 32768-Hz watch crystal oscillator, an internal digitally-controlled oscillator (DCO) and a high frequency crystal oscillator. The basic clock module is designed to meet the requirements of both low system cost and low-power consumption. The internal DCO provides a fast turn-on clock source and stabilizes in less than 6 µs. The basic clock module provides the following clock signals: D Auxiliary clock (ACLK), sourced from a 32768-Hz watch crystal or a high frequency crystal. D Main clock (MCLK), the system clock used by the CPU. D Sub-Main clock (SMCLK), the sub-system clock used by the peripheral modules. digital I/O There are 3 8-bit I/O ports implemented—ports P1, P2, and P3 (only six port P2 I/O signals are available on external pins; port P3 is implemented only on ’x12x2 devices): D D D D All individual I/O bits are independently programmable. Any combination of input, output, and interrupt conditions is possible. Edge-selectable interrupt input capability for all the eight bits of ports P1 and six bits of port P2. Read/write access to port-control registers is supported by all instructions. NOTE: Six bits of port P2, P2.0 to P2.5, are available on external pins, but all control and data bits for port P2 are implemented. Port P3 has no interrupt capability. Port P3 is implemented in MSP430x12x2 only. brownout The brownout circuit is implemented to provide the proper internal reset signal to the device during power on and power off. watchdog timer The primary function of the watchdog timer (WDT) module is to perform 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. USART0 (MSP430x12x2 Only) The MSP430x12x2 devices have one hardware universal synchronous/asynchronous receive transmit (USART0) peripheral module that is used for serial data communication. The USART supports synchronous SPI (3 or 4 pin) and asynchronous UART communication protocols, using double-buffered transmit and receive channels. ADC10 The ADC10 module supports fast, 10-bit analog-to-digital conversions. The module implements a 10-bit SAR core, sample select control, reference generator and data transfer controller, or DTC, for automatic conversion result handling allowing ADC samples to be converted and stored without any CPU intervention. POST OFFICE BOX 655303 • DALLAS, TEXAS 75265 13 SLAS361D − JANUARY 2002 − REVISED AUGUST 2004 timer_A3 Timer_A3 is a 16-bit timer/counter with three capture/compare registers. Timer_A3 can support multiple capture/compares, PWM outputs, and interval timing. Timer_A3 also has extensive interrupt capabilities. Interrupts may be generated from the counter on overflow conditions and from each of the capture/compare registers. Timer_A3 Signal Connections Output Pin Number Input Pin Number DW and PW RHB ’11x2 20-Pin ’12x2 28-Pin ’11x2/12x2 32-Pin 13 - P1.0 21 - P1.0 21 - P1.0 Device Input Signal Module Input Name TACLK TACLK ACLK ACLK SMCLK SMCLK 9 - P2.1 9 - P2.1 7 - P2.1 INCLK INCLK 14 - P1.1 22 - P1.1 22 - P1.1 TA0 CCI0A 10 - P2.2 10 - P2.2 8 - P2.2 TA0 CCI0B DVSS GND DVCC VCC Module Block Module Output Signal Timer NA CCR0 TA0 DW and PW RHB ’11x2 20-Pin ’12x2 28-Pin ’11x2/12x2 32-Pin 14 - P1.1 22 - P1.1 22 - P1.1 18 - P1.5 26 - P1.5 26 - P1.5 10 - P2.2 10 - P2.2 8 - P2.2 ADC10 Internal 15 - P1.2 23 - P1.2 23 - P1.2 TA1 CCI1A 15 - P1.2 23 - P1.2 23 - P1.2 11 - P2.3 19 - P2.3 18 - P2.3 TA1 CCI1B 19 - P1.6 27 - P1.6 27 - P1.6 DVSS GND 11 - P2.3 19 - P2.3 18 - P2.3 16 - P1.3 14 24 - P1.3 24 - P1.3 CCR1 TA1 ADC10 Internal DVCC VCC TA2 CCI2A 16 - P1.3 24 - P1.3 24 - P1.3 ACLK (internal) CCI2B 20 - P1.7 28 - P1.7 28 - P1.7 20 - P2.4 19 - P2.4 DVSS GND DVCC VCC POST OFFICE BOX 655303 CCR2 TA2 12 - P2.4 ADC10 Internal • DALLAS, TEXAS 75265 SLAS361D − JANUARY 2002 − REVISED AUGUST 2004 peripheral file map PERIPHERALS WITH WORD ACCESS ADC10 ADC data transfer start address ADC memory ADC control register 1 ADC control register 0 ADC analog enable ADC data transfer control register 1 ADC data transfer control register 0 Timer_A Reserved Reserved Reserved Reserved Capture/compare register Capture/compare register Capture/compare register Timer_A register Reserved Reserved Reserved Reserved Capture/compare control Capture/compare control Capture/compare control Timer_A control Timer_A interrupt vector ADC10SA ADC10MEM ADC10CTL1 ADC10CTL0 ADC10AE ADC10DTC1 ADC10DTC0 1BCh 1B4h 1B2h 1B0h 04Ah 049h 048h TACCTL2 TACCTL1 TACCTL0 TACTL TAIV 017Eh 017Ch 017Ah 0178h 0176h 0174h 0172h 0170h 016Eh 016Ch 016Ah 0168h 0166h 0164h 0162h 0160h 012Eh TACCR2 TACCR1 TACCR0 TAR Flash Memory Flash control 3 Flash control 2 Flash control 1 FCTL3 FCTL2 FCTL1 012Ch 012Ah 0128h Watchdog Watchdog/timer control WDTCTL 0120h PERIPHERALS WITH BYTE ACCESS USART0 (in MSP430x12x2 only) Transmit buffer Receive buffer Baud rate Baud rate Modulation control Receive control Transmit control USART control U0TXBUF U0RXBUF U0BR1 U0BR0 U0MCTL U0RCTL U0TCTL U0CTL 077h 076h 075h 074h 073h 072h 071h 070h Basic Clock Basic clock sys. control2 Basic clock sys. control1 DCO clock freq. control BCSCTL2 BCSCTL1 DCOCTL 058h 057h 056h Port P2 Port P2 selection Port P2 interrupt enable Port P2 interrupt edge select Port P2 interrupt flag Port P2 direction Port P2 output Port P2 input P2SEL P2IE P2IES P2IFG P2DIR P2OUT P2IN 02Eh 02Dh 02Ch 02Bh 02Ah 029h 028h Port P1 Port P1 selection Port P1 interrupt enable Port P1 interrupt edge select Port P1 interrupt flag Port P1 direction Port P1 output Port P1 input P1SEL P1IE P1IES P1IFG P1DIR P1OUT P1IN 026h 025h 024h 023h 022h 021h 020h POST OFFICE BOX 655303 • DALLAS, TEXAS 75265 15 SLAS361D − JANUARY 2002 − REVISED AUGUST 2004 peripheral file map (continued) PERIPHERALS WITH BYTE ACCESS (CONTINUED) Port P3 (in MSP430x12x2 only) Port P3 selection Port P3 direction Port P3 output Port P3 input P3SEL P3DIR P3OUT P3IN 01Bh 01Ah 019h 018h Special Function Module enable2 Module enable1 SFR interrupt flag2 SFR interrupt flag1 SFR interrupt enable2 SFR interrupt enable1 ME2 ME1 IFG2 IFG1 IE2 IE1 005h 004h 003h 002h 001h 000h absolute maximum ratings† Voltage applied at VCC to VSS . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . −0.3 V to 4.1 V Voltage applied to any pin (see Note) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . −0.3 V to VCC + 0.3 V Diode current at any device terminal . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ±2 mA Storage temperature, Tstg (unprogrammed device) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . −55°C to 150°C Storage temperature, Tstg (programmed device) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . −40°C to 85°C † Stresses beyond those listed under “absolute maximum ratings” may cause permanent damage to the device. These are stress ratings only, and functional operation of the device at these or any other conditions beyond those indicated under “recommended operating conditions” is not implied. Exposure to absolute-maximum-rated conditions for extended periods may affect device reliability. NOTE: All voltages referenced to VSS. The JTAG fuse-blow voltage, VFB, is allowed to exceed the absolute maximum rating. The voltage is applied to the TEST pin when blowing the JTAG fuse. recommended operating conditions MIN Supply voltage during program execution, VCC (see Note 1) MSP430F11x2 MSP430F12x2 Supply voltage during program/erase flash memory, VCC LF mode selected, XTS=0 3.6 V 3.6 V XT1 selected mode, XTS=1 Crystal VCC = 1.8 V, MSP430F11x2 MSP430F12x2 Processor frequency f(system) (MCLK signal) −40 Watch crystal Ceramic resonator VCC = 3.6 V, MSP430F11x2 MSP430F12x2 • DALLAS, TEXAS 75265 V 85 32 768 °C Hz 450 8000 1000 8000 dc 4.15 kHz MHz dc NOTES: 1. The LFXT1 oscillator in LF-mode requires a resistor of 5.1 MΩ from XOUT to VSS when VCC <2.5 V. The LFXT1 oscillator in XT1-mode accepts a ceramic resonator or a crystal frequency of 4 MHz at VCC ≥ 2.2 V. The LFXT1 oscillator in XT1-mode accepts a ceramic resonator or a crystal frequency of 8 MHz at VCC ≥ 2.8 V. 2. The LFXT1 oscillator in LF-mode requires a watch crystal. The LFXT1 oscillator in XT1-mode accepts a ceramic resonator or a crystal. POST OFFICE BOX 655303 UNITS 2.7 0 MSP430F11x2 MSP430F12x2 Operating free-air temperature range, TA 16 MAX 1.8 Supply voltage, VSS LFXT1 crystal frequency, f(LFXT1) (see Note 1 & Note 2) NOM 8 SLAS361D − JANUARY 2002 − REVISED AUGUST 2004 electrical characteristics over recommended ranges of supply voltage and operating free-air temperature (unless otherwise noted) f(system) (MHz) 8.0 MHz ÎÎÎÎÎ ÎÎÎÎÎ ÎÎÎÎÎ ÎÎÎÎÎ ÎÎÎÎÎ ÎÎÎÎÎ ÎÎÎÎÎ ÎÎÎÎÎ Supply voltage range, ’F11x2/12x2, during program execution 4.15 MHz 1.8 V 2.7 V 3 V Supply Voltage − V Supply voltage range, ’F11x2/12x2, during flash memory programming 3.6 V NOTE: Minimum processor frequency is defined by system clock. Flash program or erase operations require a minimum VCC of 2.7 V. Figure 1. Frequency vs Supply Voltage supply current (into VCC) excluding external current PARAMETER I(AM) Active mode I(CPUOff) Low-power mode, (LPM0) I(LPM2) Low-power mode, (LPM2) TEST CONDITIONS MIN TYP MAX VCC = 2.2 V 200 250 VCC = 3 V 300 350 3 5 VCC = 3 V 11 18 TA = −40°C +85°C, f(MCLK) = 0, f(SMCLK) = 1 MHz, f(ACLK) = 32,768 Hz VCC = 2.2 V 32 45 VCC = 3 V 55 70 TA = −40°C +85°C, f(MCLK) = f(SMCLK) = 0 MHz, f(ACLK) = 32,768 Hz, SCG0 = 0 VCC = 2.2 V 11 14 VCC = 3 V 17 22 0.8 1.2 TA = −40°C +85°C, fMCLK = f(SMCLK) = 1 MHz, f(ACLK) = 32,768 Hz, Program executes in Flash TA = −40°C +85°C, f(MCLK) = f(SMCLK) = f(ACLK) = 4096 Hz, Program executes in Flash VCC = 2.2 V TA = −40°C TA = 25°C I(LPM3) Low-power mode, (LPM3) 0.7 1 1.6 2.3 TA = −40°C 1.8 2.2 1.6 1.9 2.3 3.4 0.1 0.5 0.1 0.5 0.8 1.9 TA = 25°C VCC = 3 V TA = 85°C TA = −40°C I(LPM4) Low-power mode, (LPM4) µ µA TA = 85°C VCC = 2.2 V TA = 25°C VCC = 2.2 V/3 V TA = 85°C UNIT µ µA µ µA µ µA µA µ µA µ µA µ NOTES: 1. All inputs are tied to 0 V or VCC. Outputs do not source or sink any current. current consumption of active mode versus system frequency IAM = IAM[1 MHz] × fsystem [MHz] current consumption of active mode versus supply voltage IAM = IAM[3 V] + 120 µA/V × (VCC−3 V) POST OFFICE BOX 655303 • DALLAS, TEXAS 75265 17 SLAS361D − JANUARY 2002 − REVISED AUGUST 2004 electrical characteristics over recommended ranges of supply voltage and operating free-air temperature (unless otherwise noted) (continued) Schmitt-trigger inputs Port P1 to Port P3; P1.0 to P1.7, P2.0 to P2.5, P3.0 to P3.7 PARAMETER TEST CONDITIONS VIT+ Positive-going input threshold voltage VIT− Negative-going input threshold voltage Vhys Input voltage hysteresis, (VIT+ − VIT−) MIN TYP MAX VCC = 2.2 V 1.1 1.5 VCC = 3 V 1.5 1.9 VCC = 2.2 V 0.4 0.9 VCC = 3 V 0.9 1.3 VCC = 2.2 V 0.3 1.1 VCC = 3 V 0.5 1 UNIT V V V standard inputs − RST/NMI, TEST; JTAG: TCK, TMS, TDI/TCLK PARAMETER VIL Low-level input voltage VIH High-level input voltage TEST CONDITIONS VCC = 2.2 V / 3 V MIN TYP MAX UNIT VSS VSS+0.6 V 0.8×VCC VCC V MAX UNIT inputs Px.x, TAx PARAMETER t(int) External interrupt timing TEST CONDITIONS Port P1, P2: P1.x to P2.x, External trigger signal for the interrupt flag, (see Note 1) t(cap) Timer_A, capture timing TA0, TA1, TA2 f(TAext) Timer_A clock frequency externally applied to pin TACLK, INCLK t(H) = t(L) f(TAint) Timer_A clock frequency SMCLK or ACLK signal selected VCC MIN 2.2 V/3 V 1.5 2.2 V 62 3V 50 2.2 V 62 3V 50 TYP cycle ns ns 2.2 V 8 3V 10 2.2 V 8 3V 10 MHz MHz NOTES: 1. The external signal sets the interrupt flag every time the minimum t(int) cycle and time parameters are met. It may be set even with trigger signals shorter than t(int). Both the cycle and timing specifications must be met to ensure the flag is set. t(int) is measured in MCLK cycles. leakage current PARAMETER Ilkg(Px.x) High-impedance leakage current TEST CONDITIONS VCC MIN TYP MAX Port P1: P1.x, 0 ≤ × ≤ 7 (see Notes 1 and 2) 2.2 V/3 V ±50 Port P2: P2.x, 0 ≤ × ≤ 5 (see Notes 1 and 2) 2.2 V/3 V ±50 UNIT nA NOTES: 1. The leakage current is measured with VSS or VCC applied to the corresponding pin(s), unless otherwise noted. 2. The leakage of the digital port pins is measured individually. The port pin must be selected for input and there must be no optional pullup or pulldown resistor. 18 POST OFFICE BOX 655303 • DALLAS, TEXAS 75265 SLAS361D − JANUARY 2002 − REVISED AUGUST 2004 electrical characteristics over recommended ranges of supply voltage and operating free-air temperature (unless otherwise noted) (continued) outputs Port 1 to Port 3; P1.0 to P1.7, P2.0 to P2.5, P3.0 to P3.7 PARAMETER TEST CONDITIONS I(OHmax) = −1.5 mA VOH High-level output voltage I(OHmax) = −6 mA I(OHmax) = −1.5 mA I(OHmax) = −6 mA I(OLmax) = 1.5 mA VOL Low-level output voltage I(OLmax) = 6 mA I(OLmax) = 1.5 mA I(OLmax) = 6 mA VCC = 2.2 V VCC = 3 V VCC = 2.2 V VCC = 3 V MIN TYP MAX See Note 1 VCC−0.25 VCC See Note 2 VCC−0.6 VCC See Note 1 VCC−0.25 VCC See Note 2 VCC−0.6 VCC See Note 1 VSS VSS+0.25 See Note 2 VSS VSS+0.6 See Note 1 VSS VSS+0.25 See Note 2 VSS VSS+0.6 UNIT V V NOTES: 1. The maximum total current, IOHmax and IOLmax, for all outputs combined, should not exceed ±12 mA to hold the maximum voltage drop specified. 2. The maximum total current, IOHmax and IOLmax, for all outputs combined, should not exceed ±48 mA to hold the maximum voltage drop specified. outputs P1.x, P2.x, P3.x, TAx PARAMETER f(P20) f(TAx) Output frequency TEST CONDITIONS P2.0/ACLK, CL = 20 pF 2.2 V/3 V TA0, TA1, TA2, CL = 20 pF, Internal clock source, SMCLK signal applied (see Note 1) 2.2 V/3 V P1.4/SMCLK, CL = 20 pF t(Xdc) VCC Duty cycle of O/P frequency 40% 60% fSMCLK = fLFXT1 = fLF 35% 65% 2.2 V/3 V fSMCLK = fLFXT1/n 2.2 V/3 V fP20 = fLFXT1 = fLF CL = 20 pF, Duty cycle = 50% 50%− 15 ns 50% 50%+ 15 ns 50%− 15 ns 50% 50%+ 15 ns 40% 2.2 V/3 V UNIT fSystem fSMCLK = fLFXT1 = fXT1 fP20 = fLFXT1/n TA0, TA1, TA2, MAX fSystem fP20 = fLFXT1 = fXT1 t(TAdc) TYP dc fSMCLK = fDCOCLK P2.0/ACLK, CL = 20 pF MIN MHz 60% 30% 70% 50% 2.2 V/3 V 0 ±50 ns NOTES: 1. The limits of the system clock MCLK has to be met. MCLK and SMCLK can have different frequencies. POST OFFICE BOX 655303 • DALLAS, TEXAS 75265 19 SLAS361D − JANUARY 2002 − REVISED AUGUST 2004 electrical characteristics over recommended ranges of supply voltage and operating free-air temperature (unless otherwise noted) (continued) outputs − Ports P1, P2, and P3 (see Note) TYPICAL LOW-LEVEL OUTPUT CURRENT vs LOW-LEVEL OUTPUT VOLTAGE I OL − Typical Low-Level Output Current − mA I OL − Typical Low-Level Output Current − mA TYPICAL LOW-LEVEL OUTPUT CURRENT vs LOW-LEVEL OUTPUT VOLTAGE 32 VCC = 2.2 V P1.0 28 TA = 25°C 24 TA = 85°C 20 16 12 8 4 0 0.0 0.5 1.0 1.5 2.0 50 VCC = 3 V P1.0 TA = 85°C 30 20 10 0 0.0 2.5 TA = 25°C 40 0.5 1.0 Figure 2 2.5 3.0 3.5 Figure 3 TYPICAL HIGH-LEVEL OUTPUT CURRENT vs HIGH-LEVEL OUTPUT VOLTAGE I OH − Typical High-Level Output Current − mA TYPICAL HIGH-LEVEL OUTPUT CURRENT vs HIGH-LEVEL OUTPUT VOLTAGE I OH − Typical High-Level Output Current − mA 2.0 VOL − Low-Level Output Voltage − V VOL − Low-Level Output Voltage − V 0 VCC = 2.2 V P1.0 −4 1.5 −8 −12 −16 −20 TA = 85°C −24 0 VCC = 3 V P1.0 −10 −20 −30 −40 TA = 85°C −50 TA = 25°C TA = 25°C −28 0.0 0.5 1.0 1.5 2.0 2.5 −60 0.0 Figure 4 NOTE: 20 0.5 1.0 1.5 Figure 5 Only one output is loaded at a time. POST OFFICE BOX 655303 2.0 2.5 3.0 VOH − High-Level Output Voltage − V VOH − High-Level Output Voltage − V • DALLAS, TEXAS 75265 3.5 SLAS361D − JANUARY 2002 − REVISED AUGUST 2004 electrical characteristics over recommended ranges of supply voltage and operating free-air temperature (unless otherwise noted) (continued) wake-up from lower power modes (LPMx) PARAMETER TEST CONDITIONS MIN TYP t(LPM0) VCC = 2.2 V/3 V 100 t(LPM2) VCC = 2.2 V/3 V 100 t(LPM3) Delay time (see Note 1) t(LPM4) MAX UNIT ns f(MCLK) = 1 MHz, VCC = 2.2 V/3 V 6 f(MCLK) = 2 MHz, VCC = 2.2 V/3 V 6 f(MCLK) = 3 MHz, VCC = 2.2 V/3 V 6 f(MCLK) = 1 MHz, VCC = 2.2 V/3 V 6 f(MCLK) = 2 MHz, VCC = 2.2 V/3 V 6 f(MCLK) = 3 MHz, VCC = 2.2 V/3 V 6 µs µ µs µ NOTES: 1. Parameter applicable only if DCOCLK is used for MCLK. USART (see Note 1) PARAMETER t(τ) TEST CONDITIONS USART: deglitch time MIN TYP MAX VCC = 2.2 V 200 430 800 VCC = 3 V 150 280 500 UNIT ns NOTES: 1. The signal applied to the USART receive signal/terminal (URXD) should meet the timing requirements of t(τ) to ensure that the URXS flip-flop is set. The URXS flip-flop is set with negative pulses meeting the minimum-timing condition of t(τ). The operating conditions to set the flag must be met independently from this timing constraint. The deglitch circuitry is active only on negative transitions on the URXD line. RAM PARAMETER V(RAMh) MIN CPU halted (see Note 1) NOM MAX UNIT 1.6 V NOTES: 1. This parameter defines the minimum supply voltage VCC when the data in the program memory RAM remains unchanged. No program execution should happen during this supply voltage condition. POR brownout, reset (see Notes 1 and 2) PARAMETER TEST CONDITIONS MIN TYP td(BOR) dVCC/dt ≤ 3 V/s VCC(start) V(B_IT−) Brownout MAX UNIT 2000 µs 0.7 × V(B_IT−) dVCC/dt ≤ 3 V/s Vhys(B_IT−) dVCC/dt ≤ 3 V/s t(reset) Pulse length needed at RST/NMI pin to accepted reset internally, VCC = 2.2 V/3 V 70 2 130 V 1.71 V 180 mV µs NOTES: 1. The current consumption of the brown-out module is already included in the ICC current consumption data. 2. During power up, the CPU begins code execution following a period of td(BOR) after VCC = V(B_IT−) + Vhys(B_IT−). The default DCO settings must not be changed until VCC ≥ VCC(min), where VCC(min) is the minimum supply voltage for the desired operating frequency. See the MSP430x1xx Family User’s Guide for more information on the brownout circuit. POST OFFICE BOX 655303 • DALLAS, TEXAS 75265 21 SLAS361D − JANUARY 2002 − REVISED AUGUST 2004 electrical characteristics over recommended ranges of supply voltage and operating free-air temperature (unless otherwise noted) (continued) VCC Vhys(B_IT−) V(B_IT−) VCC(start) 1 Set signal for POR circuitry 0 td(BOR) Figure 6. POR/Brownout Reset (BOR) vs Supply Voltage VCC 3V 2 VCC(min)− V V cc = 3.0 V Typical Conditions t pw 1.50 1 VCC(min) 0.50 0 0.001 1 1000 1ns tpw − Pulse Width − µs 1ns tpw − Pulse Width − µs Figure 7. VCC(min) Level With a Square Voltage Drop to Generate a POR/Brownout Signal VCC VCC(min)− V 2 1.50 t pw 3V V cc = 3.0 V Typical Conditions 1 VCC(min) 0.50 0 0.001 tfall = trise 1 1000 tfall trise tpw − Pulse Width − µs tpw − Pulse Width − µs Figure 8. VCC(min) Level With a Triangle Voltage Drop to Generate a POR/Brownout Signal 22 POST OFFICE BOX 655303 • DALLAS, TEXAS 75265 SLAS361D − JANUARY 2002 − REVISED AUGUST 2004 electrical characteristics over recommended ranges of supply voltage and operating free-air temperature (unless otherwise noted) (continued) DCO PARAMETER TEST CONDITIONS VCC MIN TYP MAX 2.2 V 0.08 0.12 0.15 3V 0.08 0.13 0.16 2.2 V 0.14 0.19 0.23 3V 0.14 0.18 0.22 2.2 V 0.22 0.3 0.36 3V 0.22 0.28 0.34 2.2 V 0.37 0.49 0.59 3V 0.37 0.47 0.56 2.2 V 0.61 0.77 0.93 3V 0.61 0.75 0.9 2.2 V 1 1.2 1.5 3V 1 1.3 1.5 2.2 V 1.6 1.9 2.2 3V 1.69 2 2.29 2.2 V 2.4 2.9 3.4 3V 2.7 3.2 3.65 4 4.5 4.9 4.4 4.9 5.4 2.2 V/3 V fDCO40 x1.7 fDCO40 x2.1 fDCO40 x2.5 f(DCO03) Rsel = 0, DCO = 3, MOD = 0, DCOR = 0, TA = 25°C ° f(DCO13) Rsel = 1, DCO = 3, MOD = 0, DCOR = 0, TA = 25°C ° f(DCO23) Rsel = 2, DCO = 3, MOD = 0, DCOR = 0, ° TA = 25°C f(DCO33) Rsel = 3, DCO = 3, MOD = 0, DCOR = 0, TA = 25°C ° f(DCO43) Rsel = 4, DCO = 3, MOD = 0, DCOR = 0, TA = 25°C ° f(DCO53) Rsel = 5, DCO = 3, MOD = 0, DCOR = 0, TA = 25°C ° f(DCO63) Rsel = 6, DCO = 3, MOD = 0, DCOR = 0, TA = 25°C ° f(DCO73) Rsel = 7, DCO = 3, MOD = 0, DCOR = 0, TA = 25°C ° f(DCO77) Rsel = 7, DCO = 7, MOD = 0, DCOR = 0, TA = 25°C ° f(DCO47) Rsel = 4, DCO = 7, MOD = 0, DCOR = 0, TA = 25°C ° S(Rsel) SR = fRsel+1/fRsel 2.2 V/3 V 1.35 1.65 2 S(DCO) SDCO = fDCO+1/fDCO 2.2 V/3 V 1.07 1.12 1.16 2.2 V −0.31 −0.36 −0.4 Dt Temperature drift, Rsel = 4, DCO = 3, MOD = 0 (see Note 1) 3V −0.33 −0.38 −0.43 DV Drift with VCC variation, Rsel = 4, DCO = 3, MOD = 0 (see Note 1) 2.2 V 3V ±5 2.2 V/3 V UNIT MHz MHz MHz MHz MHz MHz MHz MHz MHz MHz ratio %/°C ° %/V f(DCOx7) f(DCOx0) Max Min Max Min ÎÎÎÎÎ ÎÎÎÎÎ ÎÎÎÎÎ ÎÎÎÎÎ 2.2 V 1 f DCOCLK Frequency Variance NOTES: 1. These parameters are not production tested. 3V 0 1 2 VCC 3 4 5 6 7 DCO Steps Figure 9. DCO Characteristics POST OFFICE BOX 655303 • DALLAS, TEXAS 75265 23 SLAS361D − JANUARY 2002 − REVISED AUGUST 2004 electrical characteristics over recommended ranges of supply voltage and operating free-air temperature (unless otherwise noted) (continued) main DCO characteristics D Individual devices have a minimum and maximum operation frequency. The specified parameters for f(DCOx0) to f(DCOx7) are valid for all devices. D All ranges selected by Rsel(n) overlap with Rsel(n+1): Rsel0 overlaps Rsel1, ... Rsel6 overlaps Rsel7. D DCO control bits DCO0, DCO1, and DCO2 have a step size as defined by parameter SDCO. D Modulation control bits MOD0 to MOD4 select how often f(DCO+1) is used within the period of 32 DCOCLK cycles. The frequency f(DCO) is used for the remaining cycles. The frequency is an average equal to: f average + MOD 32 f (DCO) f (DCO)1) f (DCO))(32*MOD) f (DCO)1) DCO when using ROSC (see Note 1) PARAMETER TEST CONDITIONS VCC fDCO, DCO output frequency Rsel = 4, DCO = 3, MOD = 0, DCOR = 1, TA = 25°C 2.2 V Dt, Temperature drift Rsel = 4, DCO = 3, MOD = 0, DCOR = 1 Dv, Drift with VCC variation Rsel = 4, DCO = 3, MOD = 0, DCOR = 1 MIN NOM MAX UNIT 1.8±15% MHz 1.95±15% MHz 2.2 V/3 V ±0.1 %/°C 2.2 V/3 V 10 %/V 3V NOTES: 1. ROSC = 100kΩ. Metal film resistor, type 0257. 0.6 watt with 1% tolerance and TK = ±50ppm/°C. crystal oscillator,LFXT1 PARAMETER CXIN CXOUT VIL VIH Pin load capacitance TEST CONDITIONS VCC XTS=0; LF mode selected MIN TYP MAX 12 2.2 V / 3 V pF XTS=1; XT1 mode selected (see Note 1) 2 2.2 V / 3 V Pin load capacitance XTS=0; LF mode selected 2.2 V / 3 V 12 XTS=1; XT1 mode selected (see Note 1) 2.2 V / 3 V 2 Input levels at XIN see Note 2 2.2 V / 3 V pF VSS 0.2 × VCC V 0.8 × VCC VCC V NOTES: 1. Requires external capacitors at both terminals. Values are specified by crystal manufacturers. 2. Applies only when using an external logic-level clock source. Not applicable when using a crystal or resonator. 24 UNIT POST OFFICE BOX 655303 • DALLAS, TEXAS 75265 SLAS361D − JANUARY 2002 − REVISED AUGUST 2004 electrical characteristics over recommended operating free-air temperature (unless otherwise noted) (continued) 10-bit ADC, power supply and input range conditions (see Note 1) PARAMETER VCC TEST CONDITIONS MIN Analog supply voltage VSS = 0 V V(P6.x/Ax) Analog input voltage range (see Note 2) All Ax terminals. Analog inputs selected in ADC10AE register and PxSel.x=1 VSS ≤ VPx.x/Ax ≤ VCC IADC10 Operating supply current into VCC terminal (see Note 3) fADC10CLK = 5.0 MHz ADC10ON = 1, REFON = 0 ADC10SHT0=1, ADC10SHT1=0, ADC10DIV=0 IREF+ Reference operating supply current, reference buffer disabled (see Note 4) fADC10CLK = 5.0 MHz ADC10ON = 0, REFON = 1, REF2_5V = x; REFOUT = 0 IREFB Reference buffer operating supply current (see Note 4) fADC10CLK = 5.0 MHz ADC10ON = 0, REFON = 1, REF2_5V = 0 REFOUT = 1 CI † Input capacitance Only one terminal can be selected at one time, Px.x/Ax VCC = 2.2 V RI† Input MUX ON resistance 0V ≤ VAx ≤ VCC VCC = 3 V NOM MAX UNIT 2.2 3.6 V 0 VCC V VCC = 2.2 V 0.52 1.05 0.6 1.2 0.25 0.4 ADC10SR = 0 1.1 1.4 ADC10SR = 1 0.46 0.55 mA VCC = 3 V VCC = 2.2V/3 V mA mA 27 pF 2000 Ω † Not production tested, limits verified by design NOTES: 1. The leakage current is defined in the leakage current table with Px.x/Ax parameter. 2. The analog input voltage range must be within the selected reference voltage range VR+ to VR− for valid conversion results. 3. The internal reference supply current is not included in current consumption parameter IADC10. 4. The internal reference current is supplied via terminal VCC. Consumption is independent of the ADC10ON control bit, unless a conversion is active. The REFON bit enables the built-in reference to settle before starting an A/D conversion. 10-bit ADC, external reference (see Note 1) PARAMETER TEST CONDITIONS VCC MIN NOM MAX UNIT VeREF+ Positive external reference voltage input VeREF+ > VREF−/VeREF− (see Note 2) 1.4 VCC V VREF− /VeREF− Negative external reference voltage input VeREF+ > VREF−/VeREF− (see Note 3) 0 1.2 V (VeREF+ − VREF−/VeREF−) Differential external reference voltage input VeREF+ > VREF−/VeREF− (see Note 4) 1.4 VCC V IVeREF+ Static input current 0V ≤VeREF+ ≤ VCC 2.2 V/3 V ±1 µA IVREF−/VeREF− Static input current 0V ≤ VeREF− ≤ VCC 2.2 V/3 V ±1 µA NOTES: 1. The external reference is used during conversion to charge and discharge the capacitance array. The input capacitance, CI, is also the dynamic load for an external reference during conversion. The dynamic impedance of the reference supply should follow the recommendations on analog-source impedance to allow the charge to settle for 10-bit accuracy. 2. The accuracy limits the minimum positive external reference voltage. Lower reference voltage levels may be applied with reduced accuracy requirements. 3. The accuracy limits the maximum negative external reference voltage. Higher reference voltage levels may be applied with reduced accuracy requirements. 4. The accuracy limits minimum external differential reference voltage. Lower differential reference voltage levels may be applied with reduced accuracy requirements. POST OFFICE BOX 655303 • DALLAS, TEXAS 75265 25 SLAS361D − JANUARY 2002 − REVISED AUGUST 2004 electrical characteristics over recommended operating free-air temperature (unless otherwise noted) (continued) 10-bit ADC, built-in reference PARAMETER Positive built-in reference voltage output VREF+ VCC(min) VCC minimum voltage, Positive built-in reference active TEST CONDITIONS IL(VREF)+ † Load-current regulation VREF+ terminal NOM MAX REF2_5V = 1 for 2.5 V IVREF+ ≤ IVREF+max VCC = 3 V 2.35 2.5 2.65 REF2_5V = 0 for 1.5 V IVREF+ ≤ IVREF+max VCC = 2.2 V/3 V 1.41 1.5 1.59 REF2_5V = 0, IVREF+ ≤ 1mA 2.2 VREF+ + 0.15 REF2_5V = 1, IVREF+ ≤ 1mA VREF+ + 0.15 VCC = 2.2 V IVREF+ = 500 µA +/− 100 µA Analog input voltage ~0.75 V; REF2_5V = 0 IVREF+ = 500 µA ± 100 µA Analog input voltage ~1.25 V; REF2_5V = 1 UNIT V REF2_5V = 1, IVREF+ ≤ 0.5mA Load current out of VREF+ terminal IVREF+ MIN V ±0.5 VCC = 3 V ±1 VCC = 2.2 V ±2 VCC = 3 V ±2 VCC = 3 V ±2 mA LSB LSB Load current regulation VREF+ terminal IVREF+ =100 µA → 900 µA, VCC=3 V, Ax ~0.5 x VREF+ Error of conversion result ≤ 1 LSB ADC10SR = 0 400 tDL(VREF) +‡ ADC10SR = 1 2000 CVREF+ Capacitance at pin VREF+ (see Note 1) REFON =1, IVREF+ ≤ ±1 mA VCC = 2.2 V/3 V 100 pF TREF+† Temperature coefficient of built-in reference IVREF+ is a constant in the range of 0 mA ≤ IVREF+ ≤ 1 mA VCC = 2.2 V/3 V ±100 ppm/°C tREFON † Settle time of internal reference voltage and VREF+ (see Note 2) ns IVREF+ = 0.5 mA,VREF+ = 1.5 V, VCC = 3.6 V, REFON = 0 → 1 IVREF+ = 0.5 mA, VREF+ = 1.5 V, VCC = 2.2 V, REFON = 1 30 ADC10SR = 0 0.8 ADC10SR = 1 2.5 † µs Not production tested, limits characterized ‡ Not production tested, limits verified by design NOTES: 1. The capacitance applied to the internal buffer operational amplifier, if switched to terminal P2.4/TA2/A4/VREF+/VeREF+ (REFOUT=1), must be limited; the reference buffer may become unstable otherwise. 2. The condition is that the error in a conversion started after tREFON is less than ±0.5 LSB. 26 POST OFFICE BOX 655303 • DALLAS, TEXAS 75265 SLAS361D − JANUARY 2002 − REVISED AUGUST 2004 electrical characteristics over recommended operating free-air temperature (unless otherwise noted) (continued) 10-bit ADC, timing parameters PARAMETER TEST CONDITIONS MIN NOM MAX UNIT For specified performance of ADC10 linearity parameters ADC10SR = 0 0.450 6.3 fADC10CLK ADC10SR = 1 0.450 1.5 fADC10OSC ADC10DIV=0, fADC10CLK=fADC10OSC VCC = 2.2 V/ 3V 3.7 6.3 MHz Internal oscillator, fADC10OSC = 3.7 MHz to 6.3 MHz VCC = 2.2 V/ 3 V 2.06 3.51 µs tCONVERT Conversion time External fADC10CLK from ACLK, MCLK or SMCLK: ADC10SSEL ≠ 0 tADC10ON‡ Turn on settling time of the ADC (see Note 1) tSample‡ Sampling time RS = 400 Ω, RI = 2000 Ω, CI = 20 pF (see Note 2) 13×ADC10DIV× 1/fADC10CLK µs 100 VCC = 3 V 1400 VCC = 2.2 V 1400 MHz ns ns † Not production tested, limits characterized Not production tested, limits verified by design NOTES: 1. The condition is that the error in a conversion started after tADC10ON is less than ±0.5 LSB. The reference and input signal are already settled. 2. Approximately eight Tau (τ) are needed to get an error of less than ±0.5 LSB. tSample = ln(2n+1) x (RS + RI) x CI+ 800 ns. (ADC10SR = 0, n = ADC resolution = 10, RS = external source resistance) tSample = ln(2n+1) x (RS + RI) x CI+ 2.5 µs. (ADC10SR = 1, n = ADC resolution = 10, RS = external source resistance) ‡ 10-bit ADC, linearity parameters PARAMETER TEST CONDITIONS 1.4 V ≤ (VeREF+ − VREF−/VeREF−) min ≤ 1.6 V VCC EI Integral linearity error 1.6 V < (VeREF+ − VREF−/VeREF−) min ≤ [VCC] 2.2 V/3 V ED Differential linearity error (VeREF+ − VREF−/VeREF−)min ≤ (VeREF+ − VREF−/VeREF−) 2.2 V/3 V EO Offset error (VeREF+ − VREF−/VeREF−)min ≤ (VeREF+ − VREF−/VeREF−), Internal impedance of source RS < 100 Ω, 2.2 V/3 V EG Gain error (VeREF+ − VREF−/VeREF−)min ≤ (VeREF+ − VREF−/VeREF−), ET Total unadjusted error (VeREF+ − VREF−/VeREF−)min ≤ (VeREF+ − VREF−/VeREF−), POST OFFICE BOX 655303 • DALLAS, TEXAS 75265 MIN NOM MAX ±1 UNIT ±1 LSB ±1 LSB ±2 ±4 LSB 2.2 V/3 V ±1.1 ±2 LSB 2.2 V/3 V ±2 ±5 LSB 27 SLAS361D − JANUARY 2002 − REVISED AUGUST 2004 electrical characteristics over recommended operating free-air temperature (unless otherwise noted) (continued) 10-bit ADC, temperature sensor and built-in VMID TEST CONDITIONS PARAMETER VCC MIN NOM MAX REFON = 0, INCH = 0Ah, ADC10ON=NA, TA = 25_C 2.2 V 40 120 3V 60 160 VSENSOR† ADC10ON = 1, INCH = 0Ah, TA = 0°C 2.2 V 986 986±5% 3V 986 986±5% TCSENSOR† 2.2 V 3.55 3.55±3% ADC10ON = 1, INCH = 0Ah 3V 3.55 3.55±3% ISENSOR Operating supply current into VCC terminal (see Note 1) 2.2 V 30 3V 30 tSENSOR(sample)† Sample time required if channel 10 is selected (see Note 2) ADC10ON = 1, INCH = 0Ah, Error of conversion result ≤ 1 LSB IVMID Current into divider at channel 11 (see Note 3) ADC10ON = 1, INCH = 0Bh, 1.1 1.1±0.04 VCC divider at channel 11 ADC10ON = 1, INCH = 0Bh, VMID is ~0.5 x VCC 2.2 V VMID 3V 1.5 1.50±0.04 tVMID(sample) Sample time required if channel 11 is selected (see Note 4) ADC10ON = 1, INCH = 0Bh, Error of conversion result ≤ 1 LSB 2.2 V 1400 3V 1220 UNIT µA mV ° mV/°C µs 2.2 V NA 3V NA µA V ns † Not production tested, limits characterized NOTES: 1. The sensor current ISENSOR is consumed if (ADC10ON = 1 and REFON = 1), or (ADC10ON=1 and INCH=0Ah and sample signal is high). When REFON = 1, ISENSOR is included in IREF+. When REFON = 0, ISENSOR applies during conversion of the temperature sensor input (INCH = 0Ah). 2. The typical equivalent impedance of the sensor is 51 kΩ. The sample time required includes the sensor-on time tSENSOR(on). 3. No additional current is needed. The VMID is used during sampling. 4. The on-time tVMID(on) is included in the sampling time tVMID(sample); no additional on time is needed. 28 POST OFFICE BOX 655303 • DALLAS, TEXAS 75265 SLAS361D − JANUARY 2002 − REVISED AUGUST 2004 electrical characteristics over recommended operating free-air temperature (unless otherwise noted) (continued) Flash Memory TEST CONDITIONS PARAMETER VCC MIN NOM MAX UNIT VCC(PGM/ ERASE) Program and Erase supply voltage 2.7 3.6 V fFTG Flash Timing Generator frequency 257 476 kHz IPGM Supply current from VCC during program 2.7 V/ 3.6 V 3 5 mA IERASE Supply current from VCC during erase 2.7 V/ 3.6 V 3 7 mA tCPT Cumulative program time see Note 1 2.7 V/ 3.6 V 4 ms tCMErase Cumulative mass erase time see Note 2 2.7 V/ 3.6 V 200 104 Program/Erase endurance TJ = 25°C ms 105 tRetention Data retention duration tWord Word or byte program time 35 tBlock, 0 Block program time for 1st byte or word 30 tBlock, 1-63 Block program time for each additional byte or word tBlock, End Block program end-sequence wait time tMass Erase Mass erase time 5297 tSeg Erase Segment erase time 4819 cycles 100 years 21 see Note 3 tFTG 6 NOTES: 1. The cumulative program time must not be exceeded when writing to a 64-byte flash block. This parameter applies to all programming methods: individual word/byte write and block write modes. 2. The mass erase duration generated by the flash timing generator is at least 11.1ms ( = 5297x1/fFTG,max = 5297x1/476kHz). To achieve the required cumulative mass erase time the Flash Controller’s mass erase operation can be repeated until this time is met. (A worst case minimum of 19 cycles are required). 3. These values are hardwired into the Flash Controller’s state machine; tFTG = 1/fFTG. JTAG Interface TEST CONDITIONS PARAMETER fTCK TCK input frequency see Note 1 RInternal Internal pull-down resistance on TEST see Note 2 VCC MIN 2.2 V 0 NOM MAX UNIT 5 MHz 3V 0 10 MHz 2.2 V/ 3 V 25 60 90 kΩ MIN NOM MAX NOTES: 1. fTCK may be restricted to meet the timing requirements of the module selected. 2. TEST pull-down resistor implemented in all Flash versions. JTAG Fuse (see Note 1) TEST CONDITIONS PARAMETER VCC(FB) Supply voltage during fuse-blow condition VFB Voltage level on TEST for fuse-blow IFB Supply current into TEST during fuse blow tFB Time to blow fuse TA = 25°C VCC 2.5 6 UNIT V 7 V 100 mA 1 ms NOTES: 1. Once the fuse is blown, no further access to the MSP430 JTAG/Test and emulation features is possible. The JTAG block is switched to bypass mode. POST OFFICE BOX 655303 • DALLAS, TEXAS 75265 29 SLAS361D − JANUARY 2002 − REVISED AUGUST 2004 APPLICATION INFORMATION input/output schematic Port P1, P1.0 to P1.3, input/output with Schmitt-trigger P1SEL.x 0 P1DIR.x 1 Direction Control From Module 0 P1OUT.x Pad Logic 1 Module X OUT P1.0/TACLK/ADC10CLK P1.1/TA0 P1.2/TA1 P1.3/TA2 P1IN.x EN D Module X IN P1IRQ.x P1IE.x P1IFG.x Q Interrupt Edge Select EN Set Interrupt Flag P1IES.x P1SEL.x NOTE: x = Bit/identifier, 0 to 3 for port P1 † PnSel.x PnDIR.x DIRECTION CONTROL FROM MODULE PnOUT.x MODULE X OUT PnIN.x MODULE X IN PnIE.x PnIFG.x PnIES.x P1Sel.0 P1DIR.0 P1DIR.0 P1OUT.0 ADC10CLK P1IN.0 TACLK† P1IE.0 P1IFG.0 P1IES.0 P1Sel.1 P1DIR.1 P1DIR.1 P1OUT.1 Out0 signal† P1IN.1 CCI0A† P1IE.1 P1IFG.1 P1IES.1 signal† P1IN.2 CCI1A† P1IE.2 P1IFG.2 P1IES.2 P1IN.3 CCI2A† P1IE.3 P1IFG.3 P1IES.3 P1Sel.2 P1DIR.2 P1DIR.2 P1OUT.2 Out1 P1Sel.3 P1DIR.3 P1DIR.3 P1OUT.3 Out2 signal† Signal from or to Timer_A 30 POST OFFICE BOX 655303 • DALLAS, TEXAS 75265 SLAS361D − JANUARY 2002 − REVISED AUGUST 2004 APPLICATION INFORMATION input/output schematic (continued) Port P1, P1.4 to P1.7, input/output with Schmitt-trigger and in-system access features P1SEL.x 0 P1DIR.x 1 Direction Control From Module 0 P1OUT.x Pad Logic P1.4−P1.7 1 Module X OUT TST Bus Keeper P1IN.x EN Module X IN P1IRQ.x DVCC D P1IE.x P1IFG.x Q Set Interrupt Flag TEST 60 kΩ Typical Interrupt Edge Select EN Bum and Test Fuse Control by JTAG P1IES.x P1SEL.x P1.x TDO Controlled By JTAG P1.7/TA2/TDO/TDI Controlled by JTAG TDI P1.x TST P1.6/TA1/TDI/TCLK NOTE: The test pin should be protected from potential EMI and ESD voltage spikes. This may require a smaller external pulldown resistor in some applications. P1.x TST TMS P1.5/TA0/TMS x = Bit identifier, 4 to 7 for port P1 During programming activity and during blowing the fuse, the pin TDO/TDI is used to apply the test input for JTAG circuitry. P1.4/SMCLK/TCK PnSel.x PnDIR.x DIRECTION CONTROL FROM MODULE PnOUT.x MODULE X OUT PnIN.x MODULE X IN PnIE.x PnIFG.x PnIES.x P1Sel.4 P1DIR.4 P1DIR.4 P1OUT.4 SMCLK P1IN.4 unused P1IE.4 P1IFG.4 P1IES.4 signal† P1Sel.5 P1DIR.5 P1DIR.5 P1OUT.5 Out0 P1IN.5 unused P1IE.5 P1IFG.5 P1IES.5 P1Sel.6 P1DIR.6 P1DIR.6 P1OUT.6 Out1 signal† P1IN.6 unused P1IE.6 P1IFG.6 P1IES.6 P1OUT.7 signal† P1IN.7 unused P1IE.7 P1IFG.7 P1IES.7 P1Sel.7 † P1.x TST TCK P1DIR.7 P1DIR.7 Out2 Signal from or to Timer_A POST OFFICE BOX 655303 • DALLAS, TEXAS 75265 31 SLAS361D − JANUARY 2002 − REVISED AUGUST 2004 APPLICATION INFORMATION input/output schematic (continued) Port P2, P2.0 to P2.2, input/output with Schmitt-trigger a0, or a1, or a2 selected in ADC10 a0, or a1, or a2 to ADC10, ADC10AE.x Pad Logic P2SEL.x 0: input 1: output 0 P2DIR.x 1 Direction Control From Module 0 P2OUT.x 1 Module X Out Bus Keeper P2.0/ACLK/A0 P2.1/INCLK/A1 P2IN.x P2.2/TA0/A2 EN Module X In D P2IE.x P2IRQ.x P2IFG.x Q EN Interrupt Edge Select Set P2IES.x NOTE: 0≤ x ≤ 2 PnSel.x PnDIR.x DIRECTION CONTROL FROM MODULE PnOUT.x MODULE X OUT PnIN.x P2Sel.0 P2DIR.0 P2DIR.0 P2OUT.0 ACLK† P2Sel.1 P2DIR.1 P2DIR.1 P2OUT.1 VSS P2Sel.2 † P2SEL.x P2DIR.2 P2DIR.2 P2OUT.2 OUT0 signal† MODULE X IN PnIE.x PnIFG.x PnIES.x P2IN.0 unused P2IE.0 P2IFG.0 P1IES.0 P2IN.1 INCLK† P2IE.1 P2IFG.1 P1IES.1 P2IN.2 CCI0B† P2IE.2 P2IFG.2 P1IES.2 Timer_A 32 POST OFFICE BOX 655303 • DALLAS, TEXAS 75265 SLAS361D − JANUARY 2002 − REVISED AUGUST 2004 APPLICATION INFORMATION input/output schematic (continued) Port P2, P2.3 to P2.4, input/output with Schmitt-trigger Pad Logic a3 Selected to ADC10, a3 ADC10AE.3 P2SEL.3 0: input 1: output 0 P2DIR.3 1 P2DIR.3 0 P2OUT.3 1 Module X Out P2IN.4 Bus Keeper P2.3/ TA1/ A3/ V REF− /V eREF− EN Module X In D P2IE.4 P2IRQ.07 Q P2IFG.4 EN Set Interrupt Edge Select P2IES.x P2SEL.x AVCC AVCC Reference Circuit in ADC10 Module REF+ a10 on REFON ON ON REF_x Typ. 1.25 V + _ AV SS OUT 0 0,4 0 1 1,5 2_5 V SREF SREF.2 ADC10 ADC10 CTL0.12..14) CTL0.14) V + V − R R Pad Logic a4 Selected to ADC10, a4 ADC10AE.4 P2SEL.4 0: input 1: output 0 P2DIR.4 1 P2DIR.4 0 P2OUT.4 1 Module X Out P2IN.4 Bus Keeper P2.4/ TA2/ A4/ V REF+ / V eREF+ EN Unused D P2IE.4 P2IRQ.07 P2IFG.4 Q EN Set Interrupt Edge Select P2IES.4 P2SEL.4 POST OFFICE BOX 655303 • DALLAS, TEXAS 75265 33 SLAS361D − JANUARY 2002 − REVISED AUGUST 2004 APPLICATION INFORMATION Port P2, P2.3 to P2.4, input/output with Schmitt-trigger (continued) † PnSel.x PnDIR.x DIRECTION CONTROL FROM MODULE PnOUT.x MODULE X OUT PnIN.x MODULE X IN PnIE.x PnIFG.x PnIES.x P2Sel.3 P2DIR.3 P2DIR.3 P2OUT.3 Out1 signal† P2IN.3 CCI1B† P2IE.3 P2IFG.3 P1IES.3 P2Sel.4 P2DIR.4 P2DIR.4 P2OUT.4 Out2 signal† P2IN.4 Unused P2IE.4 P2IFG.4 P1IES.4 Timer_A input/output schematic (continued) Port P2, P2.5, input/output with Schmitt-trigger and ROSC function for the Basic Clock Module P2SEL.5 0: Input 1: Output 0 P2DIR.5 Pad Logic 1 Direction Control From Module 0 P2OUT.5 P2.5/ROSC 1 Module X OUT Bus Keeper P2IN.5 EN Module X IN P2IRQ.5 D P2IE.5 P2IFG.5 Q EN Set Interrupt Flag Internal to Basic Clock Module 0 VCC Interrupt Edge Select P2IES.5 1 DC Generator DCOR P2SEL.5 NOTE: DCOR: Control bit from Basic Clock Module: if it is set P2.5 is disconnected from P2.5 pad. PnSel.x PnDIR.x DIRECTION CONTROL FROM MODULE PnOUT.x MODULE X OUT PnIN.x MODULE X IN PnIE.x PnIFG.x PnIES.x P2Sel.5 P2DIR.5 P2DIR.5 P2OUT.5 VSS P2IN.5 unused P2IE.5 P2IFG.5 P2IES.5 34 POST OFFICE BOX 655303 • DALLAS, TEXAS 75265 SLAS361D − JANUARY 2002 − REVISED AUGUST 2004 APPLICATION INFORMATION input/output schematic (continued) Port P2, unbonded bits P2.6 and P2.7 P2SEL.x 0: Input 1: Output 0 P2DIR.x 1 Direction Control From Module 0 P2OUT.x 1 Module X OUT P2IN.x Node Is Reset With PUC EN Bus Keeper Module X IN P2IRQ.x D P2IE.x P2IFG.x PUC Interrupt Edge Select EN Q Set Interrupt Flag P2IES.x P2SEL.x NOTE: x = Bit/identifier, 6 to 7 for port P2 without external pins P2Sel.x P2DIR.x DIRECTION CONTROL FROM MODULE P2OUT.x MODULE X OUT P2IN.x MODULE X IN P2IE.x P2IFG.x P2IES.x P2Sel.6 P2DIR.6 P2DIR.6 P2OUT.6 VSS P2IN.6 unused P2IE.6 P2IFG.6 P2IES.6 P2Sel.7 P2DIR.7 P2DIR.7 P2OUT.7 VSS P2IN.7 unused P2IE.7 P2IFG.7 P2IES.7 NOTE: Unbonded bits 6 and 7 of port P2 can be used as interrupt flags. Only software can affect the interrupt flags. They work as software interrupts. POST OFFICE BOX 655303 • DALLAS, TEXAS 75265 35 SLAS361D − JANUARY 2002 − REVISED AUGUST 2004 APPLICATION INFORMATION input/output schematic (continued) port P3, P3.0, P3.6 and P3.7 input/output with Schmitt-trigger a5, or a6, or a7 selected in ADC10 To ADC10 a5, or a6, or a7 ADC10AE.x Pad Logic P3SEL.x 0: input 1: output 0 P3DIR.x 1 Direction Control From Module 0 P3OUT.x 1 Module X Out Bus Keeper P3.0/STE0/A5 P3.6/A6 P3IN.x P3.7/A7 EN Module X In D NOTE: x (0,6,7) † PnSel.x PnDIR.x Direction Control From Module PnOUT.x Module X OUT PnIN.x Module X IN P3Sel.0 P3DIR.0 VSS P3OUT.0 VSS P3IN.0 STE0† P3Sel.6 P3DIR.1 P3DIR.6 P3OUT.6 VSS P3IN.6 Unused P3Sel.7 P3DIR.2 P3DIR.7 P3OUT.7 VSS P3IN.7 Unused USART0 36 POST OFFICE BOX 655303 • DALLAS, TEXAS 75265 SLAS361D − JANUARY 2002 − REVISED AUGUST 2004 APPLICATION INFORMATION input/output schematic (continued) port P3, P3.1 input/output with Schmitt-trigger P3SEL.1 SYNC MM STC STE 0 P3DIR.1 0: Input 1: Output 1 DCM_SIMO Pad Logic P3.1/SIMO0 0 P3OUT1 (SI)MO0 From USART0 1 P3IN.1 EN SI(MO)0 To USART0 D port P3, P3.2, input/output with Schmitt-trigger P3SEL.2 SYNC MM STC STE 0 P3DIR.2 0: Input 1: Output 1 DCM_SOMI Pad Logic P3.2/SOMI0 0 P3OUT.2 SO(MI)0 From USART0 1 P3IN.2 EN (SO)MI0 To USART0 D POST OFFICE BOX 655303 • DALLAS, TEXAS 75265 37 SLAS361D − JANUARY 2002 − REVISED AUGUST 2004 APPLICATION INFORMATION input/output schematic (continued) port P3, P3.3, input/output with Schmitt-trigger P3SEL.3 0 P3DIR.3 SYNC MM 0: Input 1: Output 1 DCM_UCLK Pad Logic STC STE P3.3/UCLK0 0 P3OUT.3 UCLK.0 From USART0 1 P3IN.3 EN UCLK0 D To USART0 NOTE: UART mode: The UART clock can only be an input. If UART mode and UART function are selected, the P3.3/UCLK0 is always an input. SPI, slave mode: The clock applied to UCLK0 is used to shift data in and out. SPI, master mode: The clock to shift data in and out is supplied to connected devices on pin P3.3/UCLK0 (in slave mode). port P3, P3.4, and P3.5 input/output with Schmitt-trigger P3SEL.x 0: Input 1: Output 0 P3DIR.x Direction Control From Module 1 Pad Logic 0 P3OUT.x Module X OUT 1 P3.4/UTXD0 P3.5/URXD0 P3IN.x EN D Module X IN x {4,5} † ‡ PnSel.x PnDIR.x DIRECTION CONTROL FROM MODULE PnOUT.x MODULE X OUT PnIN.x MODULE X IN P3Sel.4 P3DIR.4 VCC P3OUT.4 UTXD0† P3IN.4 Unused P3Sel.5 P3DIR.5 VSS P3OUT.5 VSS P3IN.5 URXD0‡ Output from USART0 module Input to USART0 module 38 POST OFFICE BOX 655303 • DALLAS, TEXAS 75265 SLAS361D − JANUARY 2002 − REVISED AUGUST 2004 APPLICATION INFORMATION JTAG fuse check mode MSP430 devices that have the fuse on the TEST terminal have a fuse check mode that tests the continuity of the fuse the first time the JTAG port is accessed after a power-on reset (POR). When activated, a fuse check current, ITF , of 1 mA at 3 V, 2.5 mA at 5 V can flow from the TEST pin to ground if the fuse is not burned. Care must be taken to avoid accidentally activating the fuse check mode and increasing overall system power consumption. When the TEST pin is taken back low after a test or programming session, the fuse check mode and sense currents are terminated. Activation of the fuse check mode occurs with the first negative edge on the TMS pin after power up or if TMS is being held low during power up. The second positive edge on the TMS pin deactivates the fuse check mode. After deactivation, the fuse check mode remains inactive until another POR occurs. After each POR the fuse check mode has the potential to be activated. The fuse check current will only flow when the fuse check mode is active and the TMS pin is in a low state (see Figure 10). Therefore, the additional current flow can be prevented by holding the TMS pin high (default condition). Time TMS Goes Low After POR TMS ITEST ITF Figure 10. Fuse Check Mode Current, MSP430F11x2, MSP430F12x2 NOTE: The CODE and RAM data protection is ensured if the JTAG fuse is blown and the 256-bit bootloader access key is used. Also, see the bootstrap loader section for more information. POST OFFICE BOX 655303 • DALLAS, TEXAS 75265 39 PACKAGE OPTION ADDENDUM www.ti.com 17-Nov-2005 PACKAGING INFORMATION Orderable Device Status (1) Package Type Package Drawing Pins Package Eco Plan (2) Qty MSP430A004IPW ACTIVE TSSOP PW 20 MSP430A004IPWR ACTIVE TSSOP PW 20 MSP430A005IPW ACTIVE TSSOP PW 28 MSP430A005IPWR ACTIVE TSSOP PW 28 MSP430F1122IDW ACTIVE SOIC DW 20 MSP430F1122IDWR ACTIVE SOIC DW 20 MSP430F1122IPW ACTIVE TSSOP PW 20 MSP430F1122IPWR ACTIVE TSSOP PW MSP430F1122IRHBR ACTIVE QFN MSP430F1122IRHBT ACTIVE MSP430F1132IDW 70 Lead/Ball Finish MSL Peak Temp (3) Green (RoHS & no Sb/Br) CU NIPDAU Level-1-260C-UNLIM 2000 Green (RoHS & no Sb/Br) CU NIPDAU Level-1-260C-UNLIM Green (RoHS & no Sb/Br) CU NIPDAU Level-1-260C-UNLIM 2000 Green (RoHS & no Sb/Br) CU NIPDAU Level-1-260C-UNLIM Green (RoHS & no Sb/Br) CU NIPDAU Level-1-260C-UNLIM 2000 Green (RoHS & no Sb/Br) CU NIPDAU Level-1-260C-UNLIM Green (RoHS & no Sb/Br) CU NIPDAU Level-1-260C-UNLIM 20 2000 Green (RoHS & no Sb/Br) CU NIPDAU Level-1-260C-UNLIM RHB 32 3000 Green (RoHS & no Sb/Br) CU NIPDAU Level-2-260C-1 YEAR QFN RHB 32 250 Green (RoHS & no Sb/Br) CU NIPDAU Level-2-260C-1 YEAR ACTIVE SOIC DW 20 25 Pb-Free (RoHS) CU NIPDAU Level-2-250C-1YEAR/ Level-1-220C-UNLIM MSP430F1132IDWR ACTIVE SOIC DW 20 CU NIPDAU Level-1-260C-UNLIM MSP430F1132IPW ACTIVE TSSOP PW 20 Green (RoHS & no Sb/Br) CU NIPDAU Level-1-260C-UNLIM MSP430F1132IPWR ACTIVE TSSOP PW 20 2000 Green (RoHS & no Sb/Br) CU NIPDAU Level-1-260C-UNLIM MSP430F1132IRHBR ACTIVE QFN RHB 32 3000 Green (RoHS & no Sb/Br) CU NIPDAU Level-2-260C-1 YEAR MSP430F1132IRHBT ACTIVE QFN RHB 32 250 Green (RoHS & no Sb/Br) CU NIPDAU Level-2-260C-1 YEAR MSP430F1222IDW ACTIVE SOIC DW 28 20 Green (RoHS & no Sb/Br) CU NIPDAU Level-1-260C-UNLIM MSP430F1222IDWR ACTIVE SOIC DW 28 1000 Green (RoHS & no Sb/Br) CU NIPDAU Level-1-260C-UNLIM MSP430F1222IPW ACTIVE TSSOP PW 28 Green (RoHS & no Sb/Br) CU NIPDAU Level-1-260C-UNLIM MSP430F1222IPWR ACTIVE TSSOP PW 28 2000 Green (RoHS & no Sb/Br) CU NIPDAU Level-1-260C-UNLIM MSP430F1222IRHBR ACTIVE QFN RHB 32 3000 Green (RoHS & no Sb/Br) CU NIPDAU Level-2-260C-1 YEAR MSP430F1222IRHBT ACTIVE QFN RHB 32 250 Green (RoHS & no Sb/Br) CU NIPDAU Level-2-260C-1 YEAR MSP430F1232IDW ACTIVE SOIC DW 28 20 Green (RoHS & no Sb/Br) CU NIPDAU Level-1-260C-UNLIM MSP430F1232IDWR ACTIVE SOIC DW 28 1000 Green (RoHS & no Sb/Br) CU NIPDAU Level-1-260C-UNLIM MSP430F1232IPW ACTIVE TSSOP PW 28 CU NIPDAU Level-1-260C-UNLIM 50 25 70 2000 Green (RoHS & no Sb/Br) 70 50 50 Addendum-Page 1 Green (RoHS & no Sb/Br) PACKAGE OPTION ADDENDUM www.ti.com 17-Nov-2005 Orderable Device Status (1) Package Type Package Drawing Pins Package Eco Plan (2) Qty MSP430F1232IPWR ACTIVE TSSOP PW 28 2000 Green (RoHS & no Sb/Br) CU NIPDAU Level-1-260C-UNLIM MSP430F1232IRHBR ACTIVE QFN RHB 32 3000 Green (RoHS & no Sb/Br) CU NIPDAU Level-2-260C-1 YEAR MSP430F1232IRHBT ACTIVE QFN RHB 32 250 CU NIPDAU Level-2-260C-1 YEAR Green (RoHS & no Sb/Br) Lead/Ball Finish MSL Peak Temp (3) (1) The marketing status values are defined as follows: ACTIVE: Product device recommended for new designs. LIFEBUY: TI has announced that the device will be discontinued, and a lifetime-buy period is in effect. NRND: Not recommended for new designs. Device is in production to support existing customers, but TI does not recommend using this part in a new design. PREVIEW: Device has been announced but is not in production. Samples may or may not be available. OBSOLETE: TI has discontinued the production of the device. (2) Eco Plan - The planned eco-friendly classification: Pb-Free (RoHS) or Green (RoHS & no Sb/Br) - please check http://www.ti.com/productcontent for the latest availability information and additional product content details. TBD: The Pb-Free/Green conversion plan has not been defined. Pb-Free (RoHS): TI's terms "Lead-Free" or "Pb-Free" mean semiconductor products that are compatible with the current RoHS requirements for all 6 substances, including the requirement that lead not exceed 0.1% by weight in homogeneous materials. Where designed to be soldered at high temperatures, TI Pb-Free products are suitable for use in specified lead-free processes. Green (RoHS & no Sb/Br): TI defines "Green" to mean Pb-Free (RoHS compatible), and free of Bromine (Br) and Antimony (Sb) based flame retardants (Br or Sb do not exceed 0.1% by weight in homogeneous material) (3) MSL, Peak Temp. -- The Moisture Sensitivity Level rating according to the JEDEC industry standard classifications, and peak solder temperature. Important Information and Disclaimer:The information provided on this page represents TI's knowledge and belief as of the date that it is provided. TI bases its knowledge and belief on information provided by third parties, and makes no representation or warranty as to the accuracy of such information. Efforts are underway to better integrate information from third parties. TI has taken and continues to take reasonable steps to provide representative and accurate information but may not have conducted destructive testing or chemical analysis on incoming materials and chemicals. TI and TI suppliers consider certain information to be proprietary, and thus CAS numbers and other limited information may not be available for release. In no event shall TI's liability arising out of such information exceed the total purchase price of the TI part(s) at issue in this document sold by TI to Customer on an annual basis. Addendum-Page 2 MECHANICAL DATA MTSS001C – JANUARY 1995 – REVISED FEBRUARY 1999 PW (R-PDSO-G**) PLASTIC SMALL-OUTLINE PACKAGE 14 PINS SHOWN 0,30 0,19 0,65 14 0,10 M 8 0,15 NOM 4,50 4,30 6,60 6,20 Gage Plane 0,25 1 7 0°– 8° A 0,75 0,50 Seating Plane 0,15 0,05 1,20 MAX PINS ** 0,10 8 14 16 20 24 28 A MAX 3,10 5,10 5,10 6,60 7,90 9,80 A MIN 2,90 4,90 4,90 6,40 7,70 9,60 DIM 4040064/F 01/97 NOTES: A. B. C. D. All linear dimensions are in millimeters. This drawing is subject to change without notice. Body dimensions do not include mold flash or protrusion not to exceed 0,15. Falls within JEDEC MO-153 POST OFFICE BOX 655303 • DALLAS, TEXAS 75265 IMPORTANT NOTICE Texas Instruments Incorporated and its subsidiaries (TI) reserve the right to make corrections, modifications, enhancements, improvements, and other changes to its products and services at any time and to discontinue any product or service without notice. Customers should obtain the latest relevant information before placing orders and should verify that such information is current and complete. All products are sold subject to TI’s terms and conditions of sale supplied at the time of order acknowledgment. TI warrants performance of its hardware products to the specifications applicable at the time of sale in accordance with TI’s standard warranty. Testing and other quality control techniques are used to the extent TI deems necessary to support this warranty. Except where mandated by government requirements, testing of all parameters of each product is not necessarily performed. TI assumes no liability for applications assistance or customer product design. Customers are responsible for their products and applications using TI components. To minimize the risks associated with customer products and applications, customers should provide adequate design and operating safeguards. TI does not warrant or represent that any license, either express or implied, is granted under any TI patent right, copyright, mask work right, or other TI intellectual property right relating to any combination, machine, or process in which TI products or services are used. Information published by TI regarding third-party products or services does not constitute a license from TI to use such products or services or a warranty or endorsement thereof. Use of such information may require a license from a third party under the patents or other intellectual property of the third party, or a license from TI under the patents or other intellectual property of TI. Reproduction of information in TI data books or data sheets is permissible only if reproduction is without alteration and is accompanied by all associated warranties, conditions, limitations, and notices. Reproduction of this information with alteration is an unfair and deceptive business practice. TI is not responsible or liable for such altered documentation. Resale of TI products or services with statements different from or beyond the parameters stated by TI for that product or service voids all express and any implied warranties for the associated TI product or service and is an unfair and deceptive business practice. TI is not responsible or liable for any such statements. Following are URLs where you can obtain information on other Texas Instruments products and application solutions: Products Applications Amplifiers amplifier.ti.com Audio www.ti.com/audio Data Converters dataconverter.ti.com Automotive www.ti.com/automotive DSP dsp.ti.com Broadband www.ti.com/broadband Interface interface.ti.com Digital Control www.ti.com/digitalcontrol Logic logic.ti.com Military www.ti.com/military Power Mgmt power.ti.com Optical Networking www.ti.com/opticalnetwork Microcontrollers microcontroller.ti.com Security www.ti.com/security Telephony www.ti.com/telephony Video & Imaging www.ti.com/video Wireless www.ti.com/wireless Mailing Address: Texas Instruments Post Office Box 655303 Dallas, Texas 75265 Copyright 2005, Texas Instruments Incorporated