Low Operating Current:
– 2.5 µA at 4 kHz, 2.2 V
– 280 µA at 1 MHz, 2.2 V
D
Five Power-Saving Modes
D
Wake-Up From Standby Mode in 6 µs
D
16-Bit RISC Architecture,
125-ns Instruction Cycle Time
D
12-Bit A/D Converter With Internal
Reference, Sample-and-Hold and Autoscan
Feature
D
16-Bit Timer With Seven
Capture/Compare-With-Shadow Registers,
Timer_B
D
16-Bit Timer With Three Capture/Compare
Registers, Timer_A
D
On-Chip Comparator
description
MSP430x13x, MSP430x14x
MIXED SIGNAL MICROCONTROLLER
SLAS272C – JULY 2000 – REVISED FEBRUAR Y 2001
D
Serial Onboard Programming,
No External Programming V oltage Needed
Programmable Code Protection by Security
Fuse
D
Family Members Include:
– MSP430F133:
8KB+256B Flash Memory,
256B RAM
– MSP430F135:
16KB+256B Flash Memory,
512B RAM
– MSP430F147:
32KB+256B Flash Memory,
1KB RAM
– MSP430F148:
48KB+256B Flash Memory,
2KB RAM
– MSP430F149:
60KB+256B Flash Memory,
2KB RAM
D
Available in 64-Pin Quad Flat Pack (QFP)
The T exas Instruments MSP430 series is an ultralow-power microcontroller family consisting of several devices
featuring different sets of modules targeted to various applications. The microcontroller is designed to be battery
operated for use in extended-time applications. The MSP430 achieves maximum code efficiency with its 16-bit
RISC architecture, 16-bit CPU-integrated registers, and a constant generator. The digitally-controlled oscillator
provides wake-up from low-power mode to active mode in less than 6 µs. The MSP430x13x and the
MSP430x14x series are microcontroller configurations with two built-in 16-bit timers, a fast 12-bit A/D converter ,
one or two universal serial synchronous/asynchronous communication interfaces (USART), and 48 I/O pins.
Typical applications include sensor systems that capture analog signals, convert them to digital values, and
process and transmit the data to a host system. The timers make the configurations ideal for industrial control
applications such as ripple counters, digital motor control, EE-meters, hand-held meters, etc. The hardware
multiplier enhances the performance and offers a broad code and hardware-compatible family solution.
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.
PRODUCTION DATA information is current as of publication date.
Products conform to specifications per the terms of Texas Instruments
standard warranty. Production processing does not necessarily include
testing of all parameters.
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
Copyright 2001, Texas Instruments Incorporated
1
MSP430x13x, MSP430x14x
MIXED SIGNAL MICROCONTROLLER
MSP430x13x, MSP430x14x
MIXED SIGNAL MICROCONTROLLER
SLAS272C – JULY 2000 – REVISED FEBRUARY 2001
functional block diagrams
MSP430x14x
XIN XOUT/TCLKAVCCAVSS RST/NMIP3P4P5P6
DVSSDVCC
P1P2
Rosc
XT2IN
XT2OUT
TMS
TCK
TDI
TDO/TDI
MSP430x13x
Rosc
XT2IN
XT2OUT
Oscillator
System
Clock
CPU
Incl. 16 Reg.
4
Multipy
MPY, MPYS
MAC,MACS
8×8 Bit
8×16 Bit
16×8 Bit
16×16 Bit
XIN XOUT/TCLKAVCCAVSS RST/NMIP3P4P5P6
Oscillator
System
Clock
MCLK
MCLK
ACLK
SMCLK
Test
JTAG
ACLK
SMCLK
ACLK
SMCLK
MAB, 16 Bit
Module
Emulation
60 kB Flash
48 kB Flash
32 kB Flash
MDB, 16 Bit
WatchdogTimer_B7
Timer
15 / 16 Bit
DVSSDVCC
16 kB Flash
8 kB Flash
2 kB RAMI/O Port 1/2
2 kB RAM
1 kB RAMµsConv.
7 CC-Reg.
Shadow
Reg.
512B RAM
256B RAM
12 Bit ADC
8 Channels
<10
Timer_A3
3 CC-Reg.
12 Bit ADC
8 Channels
<10
µsConv.
Bus
Conv
16 I/Os, With
Interrupt
Capability
MAB, 4 Bit
MDB, 8 Bit
Power
on
Reset
P1P2
I/O Port 1/2
16 I/Os, With
Interrupt
Capability
MCB
I/O Port 3/4
16 I/Os
Comparator
A
I/O Port 3/4
16 I/Os
I/O Port 5
8 I/Os
USART0
UART Mode
SPI Mode
I/O Port 5
8 I/Os
UART Mode
I/O Port 6
8 I/Os
USART1
SPI Mode
I/O Port 6
8 I/Os
TDO/TDI
4
TMS
TCK
TDI
CPU
Incl. 16 Reg.
4
Test
JTAG
ACLK
SMCLK
MAB, 16 Bit
Module
Emulation
MDB, 16 Bit
WatchdogTimer_B3
Timer
15 / 16 Bit
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
3 CC-Reg.
Shadow
Reg.
Timer_A3
3 CC-Reg.
Bus
Conv
MAB, 4 Bit
MCB
MDB, 8 Bit
Power
on
Reset
Comparator
A
USART0
UART Mode
SPI Mode
I/O
DESCRIPTION
MSP430x13x, MSP430x14x
MIXED SIGNAL MICROCONTROLLER
SLAS272C – JULY 2000 – REVISED FEBRUARY 2001
Terminal Functions
TERMINAL
NAMENO.
AV
CC
AV
SS
DV
CC
DV
SS
P1.0/TACLK12I/OGeneral digital I/O pin/Timer_A, clock signal TACLK input
P1.1/TA013I/OGeneral digital I/O pin/Timer_A, capture: CCI0A input, compare: Out0 output
P1.2/TA114I/OGeneral digital I/O pin/Timer_A, capture: CCI1A input, compare: Out1 output
P1.3/TA215I/OGeneral digital I/O pin/Timer_A, capture: CCI2A input, compare: Out2 output
P1.4/SMCLK16I/OGeneral digital I/O pin/SMCLK signal output
P1.5/TA017I/OGeneral digital I/O pin/Timer_A, compare: Out0 output
P1.6/TA118I/OGeneral digital I/O pin/Timer_A, compare: Out1 output
P1.7/TA219I/OGeneral digital I/O pin/Timer_A, compare: Out2 output/
P2.0/ACLK20I/OGeneral digital I/O pin/ACLK output
P2.1/TAINCLK21I/OGeneral digital I/O pin/Timer_A, clock signal at INCLK
P2.2/CAOUT/TA022I/OGeneral digital I/O pin/Timer_A, capture: CCI0B input/Comparator_A output
P2.3/CA0/TA123I/OGeneral digital I/O pin/Timer_A, compare: Out1 output/Comparator_A input
P2.4/CA1/TA224I/OGeneral digital I/O pin/Timer_A, compare: Out2 output/Comparator_A input
P2.5/Rosc25I/OGeneral-purpose digital I/O pin, input for external resistor defining the DCO nominal frequency
P2.6/ADC12CLK26I/OGeneral digital I/O pin, conversion clock – 12-bit ADC
P2.7/TA027I/OGeneral digital I/O pin/Timer_A, compare: Out0 output
P3.0/STE028I/OGeneral digital I/O, slave transmit enable – USART0/SPI mode
P3.1/SIMO029I/OGeneral digital I/O, slave in/master out of USART0/SPI mode
P3.2/SOMI030I/OGeneral digital I/O, slave out/master in of USART0/SPI mode
P3.3/UCLK031I/OGeneral digital I/O, external clock input – USART0/UART or SPI mode, clock output – USART0/SPI mode
P3.4/UTXD032I/OGeneral digital I/O, transmit data out – USART0/UART mode
P3.5/URXD033I/OGeneral digital I/O, receive data in – USART0/UART mode
P3.6/UTXD1
P3.7/URXD1
P4.0/TB036I/OGeneral-purpose digital I/O, capture I/P or PWM output port – Timer_B7 CCR0
P4.1/TB137I/OGeneral-purpose digital I/O, capture I/P or PWM output port – Timer_B7 CCR1
P4.2/TB238I/OGeneral-purpose digital I/O, capture I/P or PWM output port – Timer_B7 CCR2
P4.3/TB3
P4.4/TB4
P4.5/TB5
P4.6/TB6
P4.7/TBCLK43I/OGeneral-purpose digital I/O, input clock TBCLK – Timer_B7
P5.0/STE1
P5.1/SIMO1
P5.2/SOMI1
P5.3/UCLK1
P5.4/MCLK48I/OGeneral-purpose digital I/O, main system clock MCLK output
P5.5/SMCLK49I/OGeneral-purpose digital I/O, submain system clock SMCLK output
†
14x devices only
†
†
†
†
†
†
†
†
†
†
64Analog supply voltage, positive terminal. Supplies only the analog portion of the analog-to-digital converter.
62Analog supply voltage, negative terminal. Supplies only the analog portion of the analog-to-digital converter.
1Digital supply voltage, positive terminal. Supplies all digital parts.
63Digital supply voltage, negative terminal. Supplies all digital parts.
34I/OGeneral digital I/O, transmit data out – USART1/UART mode
35I/OGeneral digital I/O, receive data in – USART1/UART mode
39I/OGeneral-purpose digital I/O, capture I/P or PWM output port – Timer_B7 CCR3
40I/OGeneral-purpose digital I/O, capture I/P or PWM output port – Timer_B7 CCR4
41I/OGeneral-purpose digital I/O, capture I/P or PWM output port – Timer_B7 CCR5
42I/OGeneral-purpose digital I/O, capture I/P or PWM output port – Timer_B7 CCR6
44I/OGeneral-purpose digital I/O, slave transmit enable – USART1/SPI mode
45I/OGeneral-purpose digital I/O slave in/master out of USART1/SPI mode
46I/OGeneral-purpose digital I/O, slave out/master in of USART1/SPI mode
47I/OGeneral-purpose digital I/O, external clock input – USART1/UART or SPI mode, clock output – USAR T1/SPI
mode
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
5
MSP430x13x, MSP430x14x
I/O
DESCRIPTION
MIXED SIGNAL MICROCONTROLLER
SLAS272C – JULY 2000 – REVISED FEBRUARY 2001
Terminal Functions (Continued)
TERMINAL
NAMENO.
P5.6/ACLK50I/OGeneral-purpose digital I/O, auxiliary clock ACLK output
P5.7/TboutH51I/OGeneral-purpose digital I/O, switch all PWM digital output ports to high impedance – Timer_B7 TB0 to TB6
P6.0/A059I/OGeneral digital I/O, analog input a0 – 12-bit ADC
P6.1/A160I/OGeneral digital I/O, analog input a1 – 12-bit ADC
P6.2/A261I/OGeneral digital I/O, analog input a2 – 12-bit ADC
P6.3/A32I/OGeneral digital I/O, analog input a3 – 12-bit ADC
P6.4/A43I/OGeneral digital I/O, analog input a4 – 12-bit ADC
P6.5/A54I/OGeneral digital I/O, analog input a5 – 12-bit ADC
P6.6/A65I/OGeneral digital I/O, analog input a6 – 12-bit ADC
P6.7/A76I/OGeneral digital I/O, analog input a7 – 12-bit ADC
RST/NMI58IReset input, nonmaskable interrupt input port, or bootstrap loader start (in Flash devices).
TCK57ITest clock. TCK is the clock input port for device programming test and bootstrap loader start (in Flash
TDI55ITest data input. TDI is used as a data input port. The device protection fuse is connected to TDI.
TDO/TDI54I/OTest data output port. TDO/TDI data output or programming data input terminal
TMS56ITest mode select. TMS is used as an input port for device programming and test.
Ve
REF+
V
REF+
V
/Ve
REF–
XIN8IInput port for crystal oscillator XT1. Standard or watch crystals can be connected.
XOUT/TCLK9I/OOutput terminal of crystal oscillator XT1 or test clock input
XT2IN53IInput port for crystal oscillator XT2. Only standard crystals can be connected.
XT2OUT52OOutput terminal of crystal oscillator XT2
REF–
10I/PInput for an external reference voltage to the ADC
7OOutput of positive terminal of the reference voltage in the ADC
11ONegative terminal for the ADC’s reference voltage for both sources, the internal reference voltage, or an
devices).
external applied reference voltage
short-form description
processing unit
The processing unit is based on a consistent and orthogonal CPU and instruction set. This design structure
results in a RISC-like architecture, highly transparent to the application development and notable for its ease
of programming. All operations other than program-flow instructions are consequently performed as register
operations in conjunction with seven addressing modes for source and four modes for destination operand.
CPU
The CPU has sixteen registers that provide
reduced instruction execution time. This reduces
the register-to-register operation execution time
to one cycle of the processor frequency.
Four of the registers are reserved for special use
as program counter, stack pointer , status register ,
and constant generator. The remaining registers
are available as general-purpose registers.
Peripherals are connected to the CPU using a
data address and control bus, and can be easily
handled with all memory manipulation instructions.
Program Counter
Stack Pointer
Status Register
Constant Generator
General-Purpose Register
General-Purpose Register
General-Purpose Register
General-Purpose Register
PC/R0
SP/R1
SR/CG1/R2
CG2/R3
R4
R5
R14
R15
6
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
MSP430x13x, MSP430x14x
MIXED SIGNAL MICROCONTROLLER
SLAS272C – JULY 2000 – REVISED FEBRUARY 2001
short-form description (continued)
instruction set
The instruction set for this register-to-register architecture constitutes a powerful and easy-to-use assembler
language. The instruction set consists of 51 instructions with three formats and seven address modes. T able 1
provides a summary and example of the three types of instruction formats; the address modes are listed in
Table 2.
Table 1. Instruction Word Formats
Dual operands, source-destinatione.g. ADD R4,R5R4 + R5 –––> R5
Single operands, destination onlye.g. CALL R8PC ––>(TOS), R8––> PC
Relative jump, un/conditionale.g. JNEJump-on-equal bit = 0
Each instruction operating on word and byte data is identified by the suffix B.
Computed branches (BR) and subroutine call (CALL) instructions use the same address modes as other
instructions. These address modes provide indirect addressing, which is ideally suited for computed branches
and calls. The full use of this programming capability results in a program structure which is different from
structures used with conventional 8- and 16-bit controllers. For example, numerous routines can be easily
designed to deal with pointers and stacks instead of using flag-type programs for flow control.
operating modes and interrupts
The MSP430 operating modes provide advanced support of the requirements for ultralow-power and ultralowenergy consumption. This goal is achieved by intelligent management during the different operating modes of
modules and CPU states and is fully supported during interrupt event handling. An interrupt event awakes the
system from each of the various operating modes and returns, using the RETI instruction, to the mode that was
selected before the interrupt event occurred. The different requirements on CPU and modules—driven by
system cost and current consumption objectives—require the use of different clock signals:
D
Auxiliary clock ACLK, sourced by LFXT1CLK (crystal frequency) and used by the peripheral modules
D
Main system clock MCLK, used by the CPU and system
D
Subsystem clock SMCLK, used by the peripheral modules
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
7
MSP430x13x, MSP430x14x
MIXED SIGNAL MICROCONTROLLER
SLAS272C – JULY 2000 – REVISED FEBRUARY 2001
operating modes and interrupts (continued)
OscOffXTS
XIN
XOUT
XT2IN
Low Power
LF Oscillator, XTS = 0
XT2Off
LFXT1 Oscillator
High Frequency
XT1 Oscillator, XTS = 1
LFXT1CLK
XT2CLK
0.1
SELM
2
DIVA
2
3
/1, /2, /4, /8, Off
2
/1, /2, /4, /8
ACLKGEN
DIVM
2
MCLKGEN
ACLK
Auxiliary Clock
CPUOff
MCLK
Main System
Clock
XT2OUT
V
CC
P2.5/Rosc
P2.5
XT2 Oscillator
V
CC
0
1
DCOR
Rsel
SCG0
DC
Generator
DCGEN
DCO
3
Digital Controlled Oscillator DCO
Modulator MOD
The DCO generator is connected to pin P2.5/Rosc if DCOR control bit is set.
The port pin P2.5/Rosc is selected if DCOR control bit is reset (initial state).
MOD
5
DCOCLK
+
DCOMOD
SELS
0
DIVS
2
/1, /2, /4, /8, Off
1
SCG1
SMCLKGEN
SMCLK
SUB-System
Clock
Any of these clock sources—LFXT1CLK, XT2CLK, or DCOCLK—can be used to drive the MSP430 system.
LFXT1CLK is defined by connecting a low-power, low-frequency crystal to the oscillator, by connecting a
high-frequency crystal to the oscillator, or by applying an external clock source. The high-frequency crystal
oscillator is used if control bit XTS is set. The crystal oscillator may be switched off if LFXT1CLK is not required
for the current operating mode.
XT2CLK is defined by connecting a high-frequency crystal to the oscillator or by applying an external clock
source. Crystal oscillator XT2 may be switched off using the XT2Off control bit if not required by the current
operating mode.
When DCOCLK is active, its frequency is selected or adjusted by software. DCOCLK is inactive or stopped when
it is not being used by the CPU or peripheral modules. The dc generator can be stopped when SCG0 is reset
and DCOCLK is not required. The dc generator determines the basic DCO frequency, and can be set by one
external resistor or adjusted in eight steps by selection of integrated resistors.
NOTE:
The system clock generator always starts with DCOCLK selected as MCLK (CPU clock) to ensure proper start
of program execution. The software determines the final system clock through control bit manipulation.
The system clock MCLK is also selected by hardware to be the DCOCLK (DCO and DCGEN are on) if the crystal
oscillator (XT1 or XT2) fails while being selected as MCLK. Without this forced clock mode the NMI, requested
by the oscillator fault flag, can not be handled and control may be lost. Without forced-clock mode the processor
could not execute any code until the failed oscillator restarts.
8
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
MSP430x13x, MSP430x14x
MIXED SIGNAL MICROCONTROLLER
SLAS272C – JULY 2000 – REVISED FEBRUARY 2001
low-power consumption capabilities
The various operating modes are handled by software by controlling the operation of the internal clock system.
This clock system provides a large combination of hardware and software capabilities to run the application
while maintaining the lowest power consumption and optimizing system costs. This is accomplished by:
D
Use of the internal clock (DCO) generator without any external components
D
Selection of an external crystal or ceramic resonator for lowest frequency and cost
D
Selection and activation of the proper clock signals (LFXT1CLK, XT2Off, and/or DCOCLK) and clock
predivider function. Control bit XT2Off is embedded in control register BCSCTL1.
D
Application of an external clock source
The control bits that most influence the operation of the clock system and support fast turnon from low power
operating modes are located in the status register SR. Four bits control the CPU and the system clock generator:
SCG1, SCG0, OscOff, and CPUOff.
159870
Reserved For Future
Enhancements
VSCG1SCG0OscOffCPUOffGIENZC
rw-0
CPUOff, SCG1, SCG0, and OscOff are the most important bits in low-power control when the basic function
of the system clock generator is established. They are pushed to the stack whenever an interrupt is accepted
and saved for returning to the operation before an interrupt request. They can be manipulated via indirect access
to the data on the stack during execution of an interrupt handler so that program execution can resume in
another power operating mode after return-from-interrupt.
CPUOff:Clock signal MCLK, used with the CPU, is active when the CPUOff bit is reset or stopped when
set.
SCG1:Clock signal SMCLK, used with peripherals, is enabled when the SCG1 bit is reset or stopped
when set.
OscOff:Crystal oscillator LFXT1 is active when the OscOf f bit is reset. The LFXT1 oscillator can be inac-
tive only when the OscOff bit is set and it is not used for MCLK. The setup time to start a crystal
oscillation requires special consideration when the off option is used. Mask-programmable devices can disable this feature and the oscillator can never be switched off by software.
SCG0:The dc generator is active when the SCG0 bit is reset. The DCO can be inactive only if the SCG0
bit is set and the DCOCLK signal is not used as MCLK or SMCLK. The dc current consumed
by the dc generator defines the basic frequency of the DCOCLK.
When the current is switched off (SCG0=1) the start of the DCOCLK is slightly delayed. This
delay is in the microsecond range.
DCOCLK:Clock signal DCOCLK is stopped if not used as MCLK or SMCLK. There are two situations when
the SCG0 bit can not switch the DCOCLK signal off:
The DCOCLK frequency is used as MCLK (CPUOff=0 and SELM.1=0), or the DCOCLK
frequency is used as SMCLK (SCG1=0 and SELS=0).
If DCOCLK is required for operation, the SCG0 bit can not switch the dc generator off.
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
9
MSP430x13x, MSP430x14x
MIXED SIGNAL MICROCONTROLLER
SLAS272C – JULY 2000 – REVISED FEBRUARY 2001
interrupt vector addresses
The interrupt vectors and the power-up starting address are located in the address range 0FFFFh – 0FFE0h.
The vector contains the 16-bit address of the appropriate interrupt-handler instruction sequence.
Timer_B7 (see Note 5)BCCIFG0 (see Note 2)Maskable0FFFAh13
Timer_B7 (see Note 5)
Comparator_ACAIFGMaskable0FFF6h11
Watchdog timerWDTIFGMaskable0FFF4h10
USART0 receiveURXIFG0Maskable0FFF2h9
USART0 transmitUTXIFG0Maskable0FFF0h8
ADCADCIFG (see Notes 1 & 2)Maskable0FFEEh7
Timer_A3CCIFG0 (see Note 2)Maskable0FFECh6
Timer_A3
I/O port P1 (eight flags)
USART1 receiveURXIFG1Maskable0FFE6h3
USART1 transmitUTXIFG10FFE4h2
I/O port P2 (eight flags)
NOTES: 1. Multiple source flags
2. Interrupt flags are located in the module.
3. Nonmaskable: neither the individual nor the general interrupt-enable bit will disable an interrupt event.
4. (Non)maskable: the individual interrupt-enable bit can disable an interrupt event, but the general-interrupt enable can not disable
it.
5. Timer_B7 in MSP430x14x family has 7 CCRs; Timer_B3 in MSP430x13x family has 3 CCRs; in Timer_B3 there are only interrupt
flags CCIFG0, 1, and 2, and the interrupt-enable bits CCIE0, 1, and 2 integrated.
NMIIFG (see Notes 1 & 4)
ACCVIFG (see Notes 1 & 4)
P1IFG.0 (see Notes 1 & 2)
P1IFG.7 (see Notes 1 & 2)
P2IFG.0 (see Notes 1 & 2)
P2IFG.7 (see Notes 1 & 2)
WDTIFG
KEYV
(see Note 1)
OFIFG (see Notes 1 & 4)
BCCIFG1 to BCCIFG6
TBIFG (see Notes 1 & 2)
CCIFG1,
CCIFG2,
TAIFG (see Notes 1 & 2)
To
To
Reset0FFFEh15, highest
(Non)maskable
(Non)maskable
(Non)maskable
Maskable0FFF8h12
Maskable0FFEAh5
Maskable0FFE8h4
Maskable0FFE2h1
0FFFCh14
0FFE0h0, lowest
special function registers
Most interrupt and module-enable bits are collected in the lowest address space. Special-function register bits
not allocated to a functional purpose are not physically present in the device. This arrangement provides simple
software access.
10
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
interrupt enable 1 and 2
MSP430x13x, MSP430x14x
MIXED SIGNAL MICROCONTROLLER
SLAS272C – JULY 2000 – REVISED FEBRUARY 2001
Address
0hURXIE0ACCVIENMIIE
76540
UTXIE0OFIEWDTIE
rw-0 rw-0 rw-0
rw-0 rw-0 rw-0
321
WDTIE:Watchdog-timer-interrupt enable signal
OFIE:Oscillator-fault-interrupt enable signal
NMIIE:Nonmaskable-interrupt enable signal
ACCVIE:(Non)maskable-interrupt enable signal, access violation if FLASH memory/module is busy
URXIE0:USART0, UART, and SPI receive-interrupt enable signal
UTXIE0:USART0, UART, and SPI transmit-interrupt enable signal
Address
01hURXIE1
76540
UTXIE1
rw-0 rw-0
321
URXIE1:USART1, UART, and SPI receive-interrupt enable signal
UTXIE1:USART1, UART, and SPI transmit-interrupt enable signal
interrupt flag register 1 and 2
Address
02hURXIFG0NMIIFG
76540
UTXIFG0OFIFGWDTIFG
rw-1 rw-0
rw-0 rw-1 rw-0
321
WDTIFG:Set on overflow or security key violation or
reset on VCC power-on or reset condition at RST
OFIFG:Flag set on oscillator fault
NMIIFG:Set via RST
/NMI pin
URXIFG0:USART0, UART, and SPI receive flag
UTXIFG0:USART0, UART, and SPI transmit flag
Address
03hURXIFG1
76540
UTXIFG1
rw-1 rw-0
URXIFG1:USART1, UART, and SPI receive flag
UTXIFG1:USART1, UART, and SPI transmit flag
/NMI
321
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
11
MSP430x13x, MSP430x14x
MIXED SIGNAL MICROCONTROLLER
The intention of the bootstrap loader is to download data into the flash memory module. V arious write, read, and
erase operations are needed for a proper download environment. The bootstrap loader is only available on F
devices.
functions of the bootstrap loader:
Definition of read:Apply and transmit data of peripheral registers or memory to pin P1.1 (BSLTX)
write:Read data from pin P2.2 (BSLRX) and write them into flash memory
unprotected functions
Mass erase, erase of the main memory (segment 0 to segment n) and information memory (segment A and
segment B)
Access to the MSP430 via the bootstrap loader is protected. It must be enabled before any protected function
can be performed. The 256 bits in 0FFE0h to 0FFFFh provide the access key.
12
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
boot ROM containing bootstrap loader (continued)
protected functions
All protected functions can be executed only if the access is enabled.
D
Write/program byte into flash memory; parameters passed are start address and number of bytes (the
segment-write feature of the flash memory is not supported and not useful with the UART protocol).
D
Segment erase of segment 0 to segment n in main memory, and segment erase of segments A and B in
the information memory.
D
Read all data in main memory and information memory.
D
Read and write to all byte peripheral modules and RAM.
D
Modify PC and start program execution immediately.
NOTE:
Unauthorized readout of code and data is prevented by the user’s definition of the data in the
interrupt memory locations.
features of the bootstrap loader are:
D
UART communication protocol, fixed to 9600 baud
D
Port pin P1.1 for transmit, P2.2 for receive
D
TI standard serial protocol definition
D
Implemented in flash memory version only
D
Program execution starts with the user vector at 0FFFEh or with the bootstrap loader (start vector is at
address 0C00h)
MSP430x13x, MSP430x14x
MIXED SIGNAL MICROCONTROLLER
SLAS272C – JULY 2000 – REVISED FEBRUARY 2001
hardware resources used for serial input/output:
D
Pins P1.1 and P2.2 for serial data transmission
D
TCK and RST/NMI to start program execution at the reset or bootstrap loader vector
D
Basic clock module:Rsel=5, DCO=4, MOD=0, DCOCLK for MCLK and SMCLK, clock divider for MCLK
and SMCLK at default: dividing by 1
D
Timer_A: Timer_A operates in continuous mode with MCLK source selected, input divider set to 1,
using CCR0, and polling of CCIFG0.
D
WDT:Watchdog Timer is halted
D
Interrupt: GIE=0, NMIIE=0, OFIE=0, ACCVIE=0
D
Memory allocation and stack pointer:
If the stack pointer points to RAM addresses above 0220h, 6 bytes of the stack are allocated,
plus RAM addresses 0200h to 0219h. Otherwise the stack pointer is set to 0220h and allocates
RAM from 0200h to 021Fh.
When writing RAM data via the bootstrap loader, make sure that the stack is outside the
range of the data to be written.
NOTE:
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
13
MSP430x13x, MSP430x14x
MIXED SIGNAL MICROCONTROLLER
SLAS272C – JULY 2000 – REVISED FEBRUARY 2001
boot ROM containing bootstrap loader (continued)
Program execution begins with the user’s reset vector at FFFEh (standard method) if TCK is held high while
RST
/NMI goes from low to high:
RST/NMI
TCK
User Program Starts
Program execution begins with the bootstrap vector at 0C00h (boot ROM) if a minimum of two negative edges
have been applied to TCK while RST
RST/NMI
TCK
/NMI is low, and TCK is low when RST/NMI goes from low to high.
Bootloader Starts
TMS
The bootstrap loader will not start (via the vector in address 0C00h) if:
D
There are less than two negative edges at TCK while RST/NMI is low
D
TCK is high when RST/NMI goes from low to high
D
JTAG has control over the MSP430 resources
D
The supply voltage VCC drops and a POR is executed
NOTES: 6. The default level of TCK is high. An active low has to be applied to enter the bootstrap loader. Other MSP430s which have a pin
function used with a low default level can use an inverted signal.
7. The TMS signal must be high while TCK clocks are applied. This ensures that the JTAG controller function remains in its default
mode.
WARNING:
The bootstrap loader starts correctly only if the RST/NMI pin is in reset mode. Unpredictable
program execution may result if it is switched to the NMI function. However, a bootstrap load
may be started using software and the bootstrap vector, for example using the instruction
BR &0C00h.
14
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
flash memory
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
A security fuse burning is irreversible; no further access to JTAG is possible afterwards
D
Internal generation of the programming/erase voltage: no external VPP has to be applied, but VCC increases
the supply current requirements.
D
Program and erase timing is controlled by hardware in the flash memory – no software intervention is
needed.
D
The control hardware is called the flash-timing generator. The input frequency of the flash–timing generator
should be in the proper range and should be maintained until the write/program or erase operation is
completed.
D
During program or erase, no code can be executed from flash memory and all interrupts must be disabled
by setting the GIE, NMIIE, ACCVIE, and OFIE bits to zero. If a user program requires execution concurrent
with a flash program or erase operation, the program must be executed from memory other than the flash
memory (e.g., boot ROM, RAM). In the event a flash program or erase operation is initiated while the
program counter is pointing to the flash memory, the CPU will execute JMP $ instructions until the flash
program or erase operation is completed. Normal execution of the previously running software then
resumes.
MSP430x13x, MSP430x14x
MIXED SIGNAL MICROCONTROLLER
SLAS272C – JULY 2000 – REVISED FEBRUARY 2001
D
Unprogrammed, 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 first use.
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
15
MSP430x13x, MSP430x14x
MIXED SIGNAL MICROCONTROLLER
SLAS272C – JULY 2000 – REVISED FEBRUARY 2001
flash memory (continued)
8 kB
16 kB
32 kB
48 kB
60 kB
0FFFFh
0FE00h
0FDFFh
0FC00h
0FBFFh
0FA00h
0F9FFh
0E400h
0E3FFh
0E200h
0E1FFh
0E000h
010FFh
01080h
0107Fh
01000h
0FFFFh
0FE00h
0FDFFh
0FC00h
0FBFFh
0FA00h
0F9FFh
0C400h
0C3FFh
0C200h
0C1FFh
0C000h
010FFh
01080h
0107Fh
01000h
0FFFFh
0FE00h
0FDFFh
0FC00h
0FBFFh
0FA00h
0F9FFh
08400h
083FFh
08200h
081FFh
08000h
010FFh
01080h
0107Fh
01000h
0FFFFh
0FE00h
0FDFFh
0FC00h
0FBFFh
0FA00h
0F9FFh
04400h
043FFh
04200h
041FFh
04000h
010FFh
01080h
0107Fh
01000h
0FFFFh
0FE00h
0FDFFh
0FC00h
0FBFFh
0FA00h
0F9FFh
01400h
013FFh
01200h
011FFh
01100h
010FFh
01080h
0107Fh
01000h
Segment 0
w/ Interrupt Vectors
Segment 1
Segment 2
Main
Memory
Segment n-1
Segment n
Segment A
Information
Memory
Segment B
16
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
MSP430x13x, MSP430x14x
MIXED SIGNAL MICROCONTROLLER
SLAS272C – JULY 2000 – REVISED FEBRUARY 2001
flash memory, control register FCTL1
All control bits are reset during PUC. PUC is active after application of VCC, application of a reset condition to
the RST/NMI pin, expiration of the Watchdog Timer, occurrence of a watchdog access violation, or execution
of an improper flash operation. A more detailed description of the control-bit functions is found in the
flash-memory module description (in the MSP430x1xx user’s guide, literature number SLAU049). Any write to
control register FCTL1 during erase, mass erase, or write (programming) will end in an access violation with
ACCVIFG=1. In an active segment-write mode the control register can be written if the wait mode is active
(WAIT=1). Special conditions apply during segment-write mode. See the MSP430x1xx user’s guide for details.
Read access is possible at any time without restrictions.
The bits of control register FCTL1 are:
FCTL1
0128h
FCTL1 Read:
FCTL1 Write:
150
096h
0A5h
Erase0128h, bit1Erase a segment
0: No segment erase will be started.
1: Erase of one segment is enabled. The segment to be erased is defined by a
dummy write into any address within the segment. The erase bit is
automatically reset when the erase operation is completed. See Note 8.
MEras0128h, bit2Mass erase, Segment0 to Segmentn are erased together .
0: No erase will be started
1: Erase of Segment0 to Segmentn is enabled. A dummy write to any address in
Segment0 to Segmentn starts mass erase. The MEras bit is automatically reset
when the erase operation is completed. See Note 8.
WRT0128h, bit6 Bit WRT should be set for a successful write operation.
An access violation occurs and ACCVIFG is set if bit WRT is reset and write
access to the flash memory is performed. See Note 8.
SEGWRT0128h, bit7Bit SEGWRT may be used to reduce total programming time.
Segment-write bit SEGWRT is useful when larger sequences of data have to be
programmed. After completion of programming of one segment, a reset and set
sequence has to be performed to enable access to the next segment. The WAIT
bit must be high before executing the next write instruction.
0: No segment write accelerate is selected.
1: Segment write is used. This bit needs to be reset and set between segment
borders.
NOTE 8: Only instruction-fetch access is allowed during program, erase, or mass-erase cycles. Any other access to the flash memory
during these cycles will result in setting the ACCVIFG bit. An NMI interrupt should handle such violations.
87
SEG
WRT res.res.res. MEras Erase res.
WRT
rw-0
rw-0 r0r0r0rw-0rw-0 r0
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
17
MSP430x13x, MSP430x14x
MIXED SIGNAL MICROCONTROLLER
SLAS272C – JULY 2000 – REVISED FEBRUARY 2001
flash memory, control register FCTL1 (continued)
Table 3. Valid Combinations of Control Bits for Flash Memory Access (see Note 9)
FUNCTION PERFORMEDSEGWRT WRT MERAS ERASE BUSY WAIT LOCK
Write word or byte0100000
Write word or byte in same segment, segment write mode1100010
Erase one segment by writing to any address in the target segment0001000
Erase all segments (0 to n) but not the information memory (segments A
and B)
Erase all segments (0 to n, and A and B) by writing to any address in
the flash memory module
NOTE 9: The table shows all possible combinations of control bits SEGWR T, WRT , MEras, Erase, and BUSY. All other combinations will result
in an access violation.
flash memory, timing generator, control register FCTL2
The timing generator (Figure 1) produces all the timing signals necessary for write, erase, and mass erase (see
NOTE below) from the selected clock source. One of three different clock sources may be selected by control
bits SSEL0 and SSEL1 in control register FCTL2. The selected clock source should be divided to meet the
frequency requirements specified in the recommended operating conditions.
0010000
0011000
NOTE:
The mass erase duration generated by the flash timing generator is at least 11.1 ms. The
cummulative mass erase time needed is 200 ms. This can be achieved by repeating the mass erase
operation until the cumulative mass erase time is met (a minimum of 19 cycles may be required).
The flash-timing generator is reset with PUC. It is also reset if the emergency exit bit EMEX is set. Control
register FCTL2 may not be written to if the BUSY bit is set; otherwise, an access violation will occur
(ACCVIFG=1).
Read access is possible at any time without restrictions.
FCTL2
012Ah
FCTL2 Read:
FCTL2 Write:
150
096h
0A5h
87
SSEL0
SSEL1
rw-0
rw-1rw-0rw-1
FN5
FN4FN3FN2FN1FN0
rw-0 rw-0 rw-0rw-0
The control bits are:
FN0 to
FN5
012Ah, bit0
012Ah, bit5
These six bits determine the division rate of the clock signal. The division rate is 1
to 64, depending on the value of FN5 to FN0 plus one.
SSEL0012Ah, bit0 Determine the clock source
SSEL10: ACLK
1: MCLK
2: SMCLK
3: SMCLK
18
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
MSP430x13x, MSP430x14x
MIXED SIGNAL MICROCONTROLLER
SLAS272C – JULY 2000 – REVISED FEBRUARY 2001
flash memory control register FCTL3
There are no restrictions on modifying this control register. The control bits are reset or set (WAIT) by a PUC,
but key violation bit KEYV is reset with a POR.
FCTL3
012Ch
FCTL3 Read:
FCTL3 Write:
150
096h
0A5h
BUSY012Ch, bit0The BUSY bit shows if an access to the flash memory is correct (BUSY=0), or if an access
violation has taken place. The BUSY bit should be tested before each write and erase cycle.
0: Flash memory is not busy.
1: Flash memory is busy . It remains in busy state if segment-write function is in wait mode.
KEYV,012Ch, bit1Key violated
0: Key 0A5h (high byte) was not violated.
1: Key 0A5h (high byte) was violated. Violation occurs when a write access to register
FCTL1, FCTL2, or FCTL3 is executed and the high byte is not equal to 0A5h. If the
security key is violated, bit KEYV is set and a PUC is performed.
ACCVIFG,012Ch, bit2Access-violation interrupt flag
The access-violation interrupt flag is set only when a write or erase operation is active.
Access violation can only happen if the flash-memory module is written or read while it is
busy. An instruction can be fetched during write, erase, and mass erase, but not during
segment write. When the access-violation interrupt-enable bit is set, the interrupt-service
request is accepted and the program continues at the NMI interrupt-vector address.
Reading the control registers will not set the ACCVIFG bit.
WAIT,012Ch, bit3In the segment-write mode, the WAIT bit indicates that the flash memory is prepared to
receive the (next) data for programming. The WAIT bit is read only , but a write to W AIT bit
is allowed.
0: Segment-write operation is started and programming is in progress
1: Segment write operation is active and programming of data has been completed
Lock012Ch, bit4The lock bit may be set during any write, erase of a segment, or mass erase request. The
active sequence is completed normally . In segment-write mode, the SEGWRT and WAIT
bits are reset and the mode ends in the regular manner . The software or hardware controls
the lock bit. If an access violation occurs during segment-write mode, the ACCVIFG and
LOCK bits may be set.
0: Flash memory may be read, programmed, erased, and mass erased.
1: Flash memory may be read but not programmed, erased, and mass-erased. A current
program, erase, or mass-erase operation will complete normally. The access-violation
interrupt flag ACCVIFG is set when the flash-memory module is accessed while the lock
bit is set.
EMEX,012Ch, bit5Emergency exit. The emergency exit should only be used if a flash memory write or erase
operation is out of control.
0: No function
1: Stops the active operation immediately and shuts down all internal parts in the flash
memory controller. Current consumption immediately drops back to the active mode
level. All bits in control register FCTL1 are reset. Since the EMEX bit is automatically
reset by hardware, the software always reads EMEX as 0.
87
EMEXres.res.WAITKEYV BUSY
Lock
rw-1
rw-0r0r0r-1rw-0rw-(0)
ACCV
IFG
r(w)-0
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
19
MSP430x13x, MSP430x14x
MIXED SIGNAL MICROCONTROLLER
SLAS272C – JULY 2000 – REVISED FEBRUARY 2001
flash memory, interrupt and security key violation
ACCV
S
FCTL1.1
Clear
IE1.5
PUC
RST
/NMI
S
IE1.1
IE1.1
Clear
Clear
PUC
S
Clear
PUC
IFG1.4
PUC
OSCFault
IFG1.1
IRQA: Interrupt Request Accepted
ACCVIFG
ACCVIE
NMIIFG
NMIIE
OFIFG
OFIE
NMI_IRQA
TMSEL
NMIES
Counter
IFG1.0
POR
IRQA
TIMSEL
IE1.0
Watchdog Timer Module
NMI
WDTQn
PUC
KEYV
System Reset
Generator
S
Clear
WDTIE
S
Clear
V
CC
EQU
WDTIFG
Flash Module
Flash Module
Flash Module
PUCPOR
PUC
POR
NMIRS
PUC
IRQ
POR
Figure 1. Block Diagram of NMI Interrupt Sources
One NMI vector is used for three NMI events: RST
/NMI (NMIIFG), oscillator fault (OFIFG), and flash memory
access violation (ACCVIFG). The software can determine the source of the interrupt request, since all flags
remain set until reset by software. The enable flag(s) should be set only within one instruction directly before
the return-from-interrupt (RETI) instruction. This ensures that the stack remains under control. A pending NMI
interrupt request will not increase stack demand unnecessarily.
20
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
MSP430x13x, MSP430x14x
MIXED SIGNAL MICROCONTROLLER
SLAS272C – JULY 2000 – REVISED FEBRUARY 2001
peripherals
Peripherals are connected to the CPU through data, address, and control busses, and can be easily handled
using all memory-manipulation instructions.
oscillator and system clock
Three clocks are used in the system—the main system (master) clock (MCLK) used by the CPU and the system,
the subsystem (master) clock (SMCLK) used by the peripheral modules, and the auxiliary clock (ACLK)
originated by LFXT1CLK (crystal frequency) and used by the peripheral modules.
Following a POR the DCOCLK is used by default, the DCOR bit is reset, and the DCO is set to the nominal initial
frequency . Additionally , if either LFXT1CLK (with XT1 mode selected by XTS=1) or XT2CLK fails as the source
for MCLK, DCOCLK is automatically selected to ensure fail-safe operation.
SMCLK can be generated from XT2CLK or DCOCLK. ACLK is always generated from LFXT1CLK.
Crystal oscillator LFXT1 can be defined to operate with watch crystals (32,768 Hz) or with higher-frequency
ceramic resonators or crystals. The crystal or ceramic resonator is connected across two terminals. No external
components are required for watch-crystal operation. If the high-frequency XT1 mode is selected, external
capacitors from XIN to VSS and XOUT to VSS are required, as specified by the crystal manufacturer.
The LFXT1 oscillator starts after application of VCC. If the OscOff bit is set to 1, the oscillator stops when it is
not used for MCLK.
Crystal oscillator XT2 is identical to oscillator LFXT1, but only operates with higher-frequency ceramic
resonators or crystals. The crystal or ceramic resonator is connected across two terminals. External capacitors
from XT2IN to VSS and XT2OUT to VSS are required as specified by the crystal manufacturer.
The XT2 oscillator is off after application of VCC, since the XT2 oscillator control bit XT2Off is set. If bit XT2Off
is set to 1, the XT2 oscillator stops when it is not used for MCLK or SMCLK.
Clock signals ACLK , MCLK, and SMCLK may be used externally via port pins.
Different application requirements and system conditions dictate different system-clock requirements,
including:
D
High frequency for quick reaction to system hardware requests or events
D
Low frequency to minimize current consumption, EMI, etc.
D
Stable peripheral clock for timer applications, such as real-time clock (RTC)
D
Start-stop operation that can be enabled with minimum delay
multiplication
The multiplication operation is supported by a dedicated peripheral module. The module performs 16x16, 16x8,
8x16, and 8x8 bit operations. The module is capable of supporting signed and unsigned multiplication as well
as signed and unsigned multiply and accumulate operations. The result of an operation can be accessed
immediately after the operands have been loaded into the peripheral registers. No additional clock cycles are
required.
digital I/O
There are six 8-bit I/O ports implemented—ports P1 through P6. Ports P1 and P2 use seven control registers,
while ports P3, P4, P5, and P6 use only four of the control registers to provide maximum digital input/output
flexibility to the application:
D
All individual I/O bits are independently programmable.
D
Any combination of input, output, and interrupt conditions is possible.
D
Interrupt processing of external events is fully implemented for all eight bits of ports P1 and P2.
D
Read/write access to all registers using all instructions is possible.
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
21
MSP430x13x, MSP430x14x
MIXED SIGNAL MICROCONTROLLER
SLAS272C – JULY 2000 – REVISED FEBRUARY 2001
digital I/O (continued)
The seven control registers are:
D
Input register8 bits at ports P1 through P6
D
Output register 8 bits at ports P1 through P6
D
Direction register8 bits at ports P1 through P6
D
Interrupt edge select8 bits at ports P1 and P2
D
Interrupt flags8 bits at ports P1 and P2
D
Interrupt enable8 bits at ports P1 and P2
D
Selection (port or module)8 bits at ports P1 through P6
Each one of these registers contains eight bits. Two interrupt vectors are implemented: one commonly used
for any interrupt event on ports P1.0 to P1.7, and another commonly used for any interrupt event on ports P2.0
to P2.7.
Ports P3, P4, P5, and P6 have no interrupt capability.
Watchdog Timer
The primary function of the Watchdog Timer (WDT) module is to perform a controlled system restart after a
software upset has occurred. A system reset is generated if the selected time interval expires. If an application
does not require this watchdog function, the module can work as an interval timer, which generates an interrupt
after a selected time interval.
The Watchdog Timer counter (WDTCNT) is a 15/16-bit up-counter not directly accessible by software. The
WDTCNT is controlled using the Watchdog Timer control register (WDTCTL), which is an 8-bit read/write
register. W riting to WDTCTL in either operating mode (watchdog or timer) is only possible when using the correct
password (05Ah) in the high-byte. If any value other than 05Ah is written to the high-byte of the WDTCTL, a
system reset PUC is generated. The password is read as 069h to minimize accidental write operations to the
WDTCTL register. The low-byte stores data written to the WDTCTL. In addition to the W atchdog T imer control
bits, there are two bits included in the WDTCTL that configure the NMI pin.
USART0 and USART1
There are two USART peripherals implemented in the MSP430x14x: USART0 and USART1; but only one in
the MSP430x13x configuration: USART0. Both have an identical function as described in the applicable
chapters of the MSP430x1xx User’s Guide. They use different pins to communicate, and different registers for
module control. Registers with identical functions have different addresses.
The universal synchronous/asynchronous interface is a dedicated peripheral module used in serial communications. The USART supports synchronous SPI (3- or 4-pin), and asynchronous UART communication protocols,
using double-buffered transmit and receive channels. Data streams of 7 or 8 bits in length can be transferred
at a rate determined by the program, or by an external clock. Low-power applications are optimized by UART
mode options which allow for the reception of only the first byte of a complete frame. The application software
should then decide if the succeeding data is to be processed. This option reduces power consumption.
Two dedicated interrupt vectors are assigned to each USART module—one for the receive and one for the
transmit channels.
22
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
MSP430x13x, MSP430x14x
MIXED SIGNAL MICROCONTROLLER
SLAS272C – JULY 2000 – REVISED FEBRUARY 2001
timer_A (three capture/compare registers)
The timer module offers one sixteen-bit counter and three capture/compare registers. The timer clock source
can be selected from two external sources P1.0/TACLK (SSEL=0) or P2.1/TAINCLK (SSEL=3), or from two
internal sources—ACLK (SSEL=1) or SMCLK (SSEL=2). The clock source can be divided by one, two, four,
or eight. The timer can be fully controlled (in word mode)—it can be halted, read, and written; it can be stopped,
run continuously , or made to count up or up/down using one compare block to determine the period. The three
capture/compare blocks are configured by the application to run in capture or compare mode.
The capture mode is mostly used to individually measure internal or external events from any combination of
positive, negative, or positive and negative edges. It can also be stopped by software. Three different external
events can be selected: T A0, T A1, and T A2. In the capture/compare register CCR2, ACLK is the capture signal
if CCI2B is selected. Software capture is chosen if CCISx=2 or CCISx=3.
The compare mode is mostly used to generate timing for the software or application hardware, or to generate
pulse-width modulated output signals for various purposes like D/A conversion functions or motor control. An
individual output module is assigned to each of the three capture/compare registers. This module can run
independently of the compare function or can be triggered in several ways.
P1.0/TACLK
P2.1/TAINCLK
TACLK
ACLK
SMCLK
INCLK
SSEL1
SSEL0
0
1
2
3
32kHz to 8MHz
Timer Clock
Input
Divider
ID0ID1
15
POR/CLR
Clk
Data
16–bit Timer
0
RC
Carry/Zero
Mode
Control
MC1
16–bit Timer
MC0
Equ0
Set_TAIFG
Mode
Mode
Mode
Timer Bus
Capture
Capture
Capture
150
Capture/Compare
Capture/Compare
Register CCR0
Comparator 0
150
Capture/Compare
Register CCR1
Comparator 1
150
Capture/Compare
Capture/Compare
Register CCR2
Comparator 2
OM01OM00OM02
Out0
Output Unit0
EQU0
Capture/Compare Reg. CCR1
OM11OM10OM12
Out1
Output Unit1
EQU1
OM21OM20OM22
Out2
Output Unit2
EQU2
P1.1/TA0
P1.5/TA0
P2.7/TA0
P1.2/TA1
P1.6/TA1
P2.3/CA0/TA1
ADC12I1
(i/p at ADC12)
P1.3/TA2
P1.7/TA2
P2.4/CA1/TA2
P1.1/TA0
P2.2/CAOUT/TA0
P1.2/TA1
CAOUT
from
Comparator_A
P1.3/TA2
ACLK
CCI0A
CCI0B
GND
VCC
CCI1A
CCI1B
GND
VCC
CCI2A
CCI2B
GND
VCC
CCIS01
CCIS11
CCIS21
CCIS00
0
1
2
3
CCIS10
0
1
2
3
CCIS20
0
1
2
3
CCI0
CCM01CCM00
CCI1
CCM11CCM10
CCI2
CCM21CCM20
Capture
Capture
Capture
Figure 2. Timer_A, MSP430x13x/14x Configuration
Two interrupt vectors are used by the module. One vector is assigned to capture/compare block CCR0, and one
common-interrupt vector is implemented for the timer and the other two capture/compare blocks. The three
interrupt events using the same vector are identified by an individual interrupt vector word. The interrupt vector
word is used to add an offset to the program counter so that the interrupt handler software continues at the
corresponding program location. This simplifies the interrupt handler and assigns each interrupt event the same
five-cycle overhead.
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
23
MSP430x13x, MSP430x14x
MIXED SIGNAL MICROCONTROLLER
SLAS272C – JULY 2000 – REVISED FEBRUARY 2001
timer_B (7 capture/compare registers in ’x14x and 3 capture/compare registers in ’x13x)
Timer_B7 is identical to Timer_A3, except for the following:
D
The timer counter can be configured to operate in 8-, 10-, 12-, or 16-bit mode.
D
The function of the capture/compare registers is slightly different when in compare mode. In Timer_B, the
compare data is written to the capture/compare register, but is then transferred to the associated compare
latch for the comparison.
D
All output level Outx can be set to Hi-Z from the TboutH external signal.
D
The SCCI bit is not implemented in Timer_B
D
Timer_B7 has seven capture compare registers
The timer module has one sixteen-bit counter and seven capture/compare registers. The timer clock source can
be selected from an external source TBCLK (SSEL=0 or 3), or from two internal sources: ACLK (SSEL=1) and
SMCLK (SSEL=2)). The clock source can be divided by one, two, four , or eight. The timer can be fully controlled
(in word mode): it can be halted, read, and written; it can be stopped, run continuously , or made to count up or
up/down using one compare block to determine the period. The seven capture/compare blocks are configured
by the application to run in capture or in compare mode.
The capture mode is mostly used to measure external or internal events from any combination of positive,
negative, or positive and negative edges. It can also be stopped by software. Any of seven different external
events TB0 to TB6 can be selected. In the capture/compare register CCR6, ACLK is the capture signal if CCI6B
is selected. Software capture is chosen if CCISx=2 or CCISx=3.
The compare mode is mostly used to generate timing for the software or application hardware, or to generate
pulse-width modulated output signals for various purposes such as D/A conversion functions or motor control.
An individual output module is assigned to each of the seven capture/compare registers. This module can run
independently of the compare function, or can be triggered in several ways. The comparison is made from the
data in the compare latches (TBCLx) and not from the compare register.
Two interrupt vectors are used by the module. One vector is assigned to capture/compare block CCR0, and one
common interrupt vector is implemented for the timer and the other six capture/compare blocks. The seven
interrupt events using the same vector are identified by an individual interrupt vector word. The interrupt vector
word is used to add an offset to the program counter so that the interrupt handler software continues at the
corresponding program location. This simplifies the interrupt handler and assigns each interrupt event the same
five-cycle overhead.
24
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
MSP430x13x, MSP430x14x
MIXED SIGNAL MICROCONTROLLER
SLAS272C – JULY 2000 – REVISED FEBRUARY 2001
compare latches (TBCLx)
The compare latches can be loaded directly by software or via selected conditions triggered by the PWM
function. They are reset by the POR signal.
Load TBCLx immediate, CLLD=0:Capture/compare register CCRx and the corresponding compare latch are
loaded simultaneously.
Load TBCLx at Zero, CLLD=1:The data in capture/compare register CCRx is loaded to the corresponding
compare latch when the 16-bit timer TBR counts to zero.
Load TBCLx at Zero + Period, CLLD=2:The data in capture/compare register CCRx is loaded to the corresponding
compare latch when the 16-bit timer TBR counts to zero or when the next
period starts (in UP/DOWN mode).
Load TBCLx at EQUx, CLLD=3:The data in capture/compare register CCRx is loaded when CCRx is equal
to TBR.
Loading the compare latches can be done individually or in groups. Individually means that whenever the
selected load condition (see above) is true, the CCRx data is loaded into TBCLx.
Load TBCLx individually,
TBCLGRP=0:
Dual load TBCLx mode,
TBCLGRP=1:
Triple load TBCLx mode,
TBCLGRP=2:
Full load TBCLx mode,
TBCLGRP=3:
Compare latch TBCLx is loaded when the selected load condition (CLLD) is true.
Two compare latches TBCLx are loaded when data are written to both CCRx registers of the
same group and the load condition (CLLD) is true. Three groups are defined: CCR1+CCR2,
CCR3+CCR4, and CCR5+CCR6.
Three compare latches TBCLx are loaded when data are written to all CCRx registers of the
same group and then the selected load condition (CLLD) is true. Two groups are defined:
CCR1+CCR2+CCR3 and CR4+CCR5+CCR6.
All seven compare latches TBCLx are loaded when data are written to all seven CCRx
registers and then the selected load condition (CLLD) is true. All CCRx data,
CCR0+CCR1+CCR2+CCR3+CCR4+CCR5+CCR6, are simultaneously loaded to the
corresponding SHRx compare latches.
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
25
MSP430x13x, MSP430x14x
MIXED SIGNAL MICROCONTROLLER
The primary functions of the comparator module are support of precision slope conversion in A/D applications,
battery voltage supervision, and external analog signal monitoring. The comparator is connected to port pins
P2.3 (+ terminal) and to P2.4 (–terminal). It is controlled via eight control bits in the CACTL register.
V
0 V
CC
1
P2.3/
CA0/
TA1
P2.4/
CA1/
TA2
P2CA0
0
1
0
1
P2CA1
CA0
CA1
CAEX
0
1
0
1
0
+
_
0 V
CAON
0 V
Low Pass Filter
0
1
V
CC
1
0
CAON
CAF
0
1
0 V
τ≈ 2.0 µs
CAOUT/TA0
CCI1B
CAOUT
Set CAIFG
Flag
P2.2/
CARSEL
1
V
0
CAREF
0123
CAREF
0
2
1
3
0 V0 V
0.5 x V
0.25 x V
CC
CC
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
27
MSP430x13x, MSP430x14x
MIXED SIGNAL MICROCONTROLLER
SLAS272C – JULY 2000 – REVISED FEBRUARY 2001
comparator_A
The control bits are:
CAOUT,05Ah, bit0Comparator output
CAF,05Ah, bit1The comparator output is transparent or fed through a small filter
P2CA0,05Ah, bit20: Pin P2.3/CA0/TA1 is not connected to Comparator_A.
1: Pin P2.3/CA0/TA1 is connected to Comparator_A.
P2CA1,05Ah, bit30: Pin P2.4/CA1/TA2 is not connected to Comparator_A.
1: Pin P2.4/CA1/TA2 is connected to Comparator_A.
CACTL2.4
to
CATCTL2.7
CAIFG,059h, bit0Comparator_A interrupt flag
CAIE,059h, bit1Comparator_A interrupt enable
CAIES,059h, bit2Comparator_A interrupt edge select bit
CAON,059h, bit3The comparator is switched on.
CAREF,059h, bit4,5Comparator_A reference
CARSEL,059h, bit6An internal reference V
CAEX,059h, bit7The comparator inputs are exchanged, used to measure and compensate
05Ah, bit4
05Ah, bit7
Bits are implemented but do not control any hardware in this device.
0: The rising edge sets the Comparator_A interrupt flag CAIFG
1: The falling edge set the Comparator_A interrupt flag CAIFG
0: Internal reference is switched off, an external reference can be applied.
1: 0.25 × VCC reference selected.
2: 0.50 × VCC reference selected.
3: A diode reference selected.
, selected by CAREF bits, can be applied to
signal path CA0 or CA1. The signal V
source if the value of CAREF control bits is 1, 2, or 3.
the offset of the comparator.
CAREF
CAREF
is only driven by a voltage
Eight additional bits are implemented into the Comparator_A module. They enable the software to switch off
the input buffer of Port P2. A CMOS input buffer can dissipate supply current when the input is not near V
or VCC. Control bits CAPI0 to CAIP7 are initially reset and the port input buffer is active. The port input buffer
is inactive if the corresponding control bit is set.
A/D converter
The 12-bit analog-to-digital converter (ADC) uses a 10-bit weighted capacitor array plus a 2-bit resistor string.
The CMOS threshold detector in the successive-approximation conversion technique determines each bit by
examining the charge on a series of binary-weighted capacitors. The features of the ADC are:
D
12-bit converter with ±1 LSB linearity
D
Built-in sample-and-hold
D
Eight external and four internal analog channels. The external ADC input terminals are shared with digital
port I/O pins.
D
Internal reference voltage V
D
Internal-temperature sensor for temperature measurement
T = (V_SENSOR(T) – V_SENSOR(0°C)) / TC_SENSOR in °C
D
Battery-voltage measurement: N = 0.5 × (AVCC - AVSS) × 4096/1.5V; V
D
Source of positive reference voltage level VR+ can be selected as internal (1.5 V or 2.5 V), external, or A VCC.
The source is selected individually for each channel.
of 1.5 V or 2.5 V, software-selectable by control bit 2_5V
REF+
+ is selected for 1.5 V.
REF
SS
28
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
A/D converter (continued)
D
Source of negative reference voltage level VR- can be selected as external or A VSS. The source is selected
individually for each channel.
D
Conversion time can be selected from various clock sources: ACLK, MCLK, SMCLK, or the internal
ADC12CLK oscillator. The clock source is divided by an integer from 1 to 8, as selected by software.
D
Channel conversion: individual channels, a group of channels, or repeated conversion of a group of
channels. If conversion of a group of channels is selected, the sequence, the channels, and the number
of channels in the group can be defined by software. For example, a1-a2-a5-a2-a2-….
D
The conversion is enabled by the ENC bit, and can be triggered by software via sample and conversion
control bit ADC12SC, Timer_A3, or T imer_Bx. Most of the control bits can be modified only if ENC control
bit is low. This prevents unpredictable results caused by unintended modification.
D
Sampling time can be 4 × n0 × ADC12CLK or 4 × n1 × ADC12CLK. It can be selected to sample as long
as the sample signal is high (ISSH=0) or low (ISSH=1). SHT0 defines n0 and SHT1 defines n1.
D
The conversion result is stored in one of sixteen registers. The sixteen registers have individual addresses
and can be accessed via software. Each of the sixteen registers is linked to an 8-bit register that defines
the positive and negative reference source and the channel assigned.
MSP430x13x, MSP430x14x
MIXED SIGNAL MICROCONTROLLER
SLAS272C – JULY 2000 – REVISED FEBRUARY 2001
A/D converter (continued)
Table 4. Reference Voltage Configurations
SREFVOLTAGE AT VR+VOLTAGE AT VR–
0AV
1V
2, 3Ve
4AV
5V
6, 7Ve
CC
(internal)AV
REF+
(external)AV
REF+
CC
(internal)V
REF+
(external)V
REF+
V
REF–
REF–
REF–
control registers ADC12CTL0 and ADC12CTL1
All control bits are reset during POR. POR is active after VCC or a reset condition is applied to pin RST/NMI.
A more detailed description of the control bit functions is found in the ADC12 module description (in the user’s
guide). Most of the control bits in registers ADC12CTL0, ADC12CTL1, and ADC12MCTLx can only be modified
if ENC is low.
The following illustration highlights these bits. Six bits are excluded and can be unrestrictedly modified:
ADC12SC, ENC, ADC12TOVIE, ADC12OVIE, and CONSEQ.
/Ve
/Ve
/Ve
AV
SS
SS
SS
(internal or external)
REF–
(internal or external)
REF–
(internal or external)
REF–
The control bits of control registers ADC12CTL0 and ADC12CTL1 are:
Sample and convert. The ADC12SC bit is used to control the conversion by software. It
is recommended that ISSH=0.
MSC
rw–(0)
2_5 V
SHP=1: Changing the ADC12SC bit from 0 to 1 starts the sample and conversion
operation. Bit ADC12SC is automatically reset when the conversion is complete
(BUSY=0).
SHP=0: A high level of bit ADC12SC determines the sample time. Conversion starts once
it is reset (by software). The conversion takes 13 ADC12CLK cycles.
ENC
01A0h, bit1
Enable conversion. A conversion can be started by software (via ADC12SC) or by external
signals, only if the enable conversion bit ENC is high. Most of the control bits in
ADC12CTL0 and ADC12CTL1, and all the bits in ADCMCTL.x can only be changed if ENC
is low.
0 :No conversion can be started. This is the initial state.
1: The first sample and conversion starts with the first rising edge of the sampling signal.
The operation selected proceeds as long as ENC is set.
ADC12REFADC12
ONON
ADC12
OVIE
TOVIE
ENC
ADC12
SC
30
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
control registers ADC12CTL0 and ADC12CTL1
MSP430x13x, MSP430x14x
MIXED SIGNAL MICROCONTROLLER
SLAS272C – JULY 2000 – REVISED FEBRUARY 2001
ADC12TOVIE
01A0h, bit2
ADC12OVIE
01A0h, bit3
ADC12ON
01A0h, bit4
REFON
01A0h, bit5
2_5V
01A0h, bit6
MSC
01A0h, bit7
SHT0
01A0h, bit8–11
SHT1
01A0h, bit12–15
Conversion time overflow interrupt enable.
The timing overflow takes place and a timing overflow vector is generated if another start
of sample and conversion is requested while the current conversion or sequence of
conversions is still active. The timing overflow enable, if set, may request an interrupt.
Overflow interrupt enables the individual enable for the overflow-interrupt vector.
The overflow takes place if the next conversion result is written into ADC memory
ADC12MEMx but the previous result was not read. If an overflow vector is generated, the
overflow-interrupt enable flag ADC12OVIE and the general-interrupt enable GIE are set
and an interrupt service is requested.
Switch on the 12-bit ADC core. Make sure that the settling timing constraints are met if ADC
core is powered up.
0: Power consumption of the core is off. No conversion is started.
1: ADC core is supplied with power. If no A/D conversion is required, ADC12ON can be
reset to conserve power.
Reference voltage on
0: The internal reference voltage is switched off. No power is consumed by the reference
voltage generator.
1: The internal reference voltage is switched on and consumes additional power. The
settling time of the reference voltage should be over before the first sample and
conversion is started.
Reference voltage level
0: The internal-reference voltage is 1.5 V if REFON = 1.
1: The internal-reference voltage is 2.5 V if REFON = 1.
Multiple sample and conversion. Works only when the sample timer is selected to generate
the sample signal and to repeat single channel, sequence of channel, or when repeat
sequence of channel (CONSEQ≠0) is selected.
0 :Only one sample is taken.
1 :If SHP is set and CONSEQ = {1, 2, or 3}, then the rising edge of the sample timer’s input
signal starts the repeat and/or the sequence of channel mode. Then the second and all
further conversions are immediately started after the current conversion is completed.
Sample-and-hold Time0
Sample-and-hold Time1
The sample time is a multiple of the ADC12CLK × 4:
t
SHT0/1
n1248162432486496128192256
The sampling time defined by SHT0 is used when ADC12MEM0 through ADC12MEM7
are used during conversion. The sampling time defined by SHT1 is used when
ADC12MEM8 through ADC12MEM15 are used during conversion.
= 4 × ADC12CLK × n
sample
0123456789101112–15
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
31
MSP430x13x, MSP430x14x
MIXED SIGNAL MICROCONTROLLER
SLAS272C – JULY 2000 – REVISED FEBRUARY 2001
control registers ADC12CTL0 and ADC12CTL1 (continued)
ADC12CTL1
01A2h
rw–(0) rw–(0) rw–(0) rw–(0)
CSStartAdd
SHSISSHSHP
rw–(0) rw–(0) rw–(0) rw–(0)
70158
ADC12DIV
ADC12SSEL
rw–(0) rw–(0) rw–(0) r –(0)rw–(0) rw–(0) rw–(0) rw–(0)
CONSEQ
ADC12
BUSY
ADC12BUSY
01A2h, bit0
CONSEQ
01A2h, bit1/2
ADC12SSEL
01A2h, bit3/4
ADC12DIV
01A2h, bit5,6,7
ISSH
01A2h, bit8
SHP
01A2h, bit9
SHS
01A2h, bit10/1 1
CStartAdd
01A2h, bit12 to
bit15
The BUSY signal indicates an active sample and conversion operation.
0: No conversion is active. The enable conversion bit ENC can be reset normally.
1: A sample period. Conversion or conversion sequence is active.
Select the conversion mode. Repeat mode is on if CONSEQ.1 (bit 1) is set.
0: One single channel is converted
1: One single sequence of channels is converted
2: Repeating conversion of one single channel
3: Repeating conversion of a sequence of channels
Selects the clock source for the converter core
0: Internal oscillator embedded in the ADC12 module
1: ACLK
2: MCLK
3: SMCLK
Selects the division rate for the clock source selected by ADC12SSEL. The clock-operation signal ADC12CLK is used in the converter core. The conversion, without sampling
time, requires 13 ADC12CLK clocks.
0 to 7: Divide selected clock source by integer from 1 to 8
Invert source for the sample signal
0: The source for the sample signal is not inverted.
1: The source for the sample signal is inverted.
Sample-and-hold pulse, programmable length of sample pulse
0: The sample operation lasts as long as the sample-and-hold signal is 1. The conversion
operation starts if the sample-and-hold signal goes from 1 to 0.
1: The sample time (sample signal is high) is defined by nx4x(1/f
ADC12CLK
). SHTx holds
the data for n. The conversion starts when the sample signal goes from 1 to 0.
Source for sample-and-hold
0: Control bit ADC12SC triggers sample-and-hold followed by the A/D conversion.
1: The trigger signal for sample-and-hold and conversion comes from Timer_A3.EQU1.
2: The trigger signal for sample-and-hold and conversion comes from Timer_B.EQU0.
3: The trigger signal for sample-and-hold and conversion comes from Timer_B.EQU1.
Conversion start address CstartAdd is used to define which ADC12 control memory is
used to start a (first) conversion. The value of CstartAdd ranges from 0 to 0Fh, corresponding to ADC12MEM0 to ADC12MEM15 and the associated control registers ADC12MCTL0
to ADC12MCTL15.
32
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
MSP430x13x, MSP430x14x
MIXED SIGNAL MICROCONTROLLER
SLAS272C – JULY 2000 – REVISED FEBRUARY 2001
control register ADC12MCTLx and conversion memory ADC12MEMx
All control bits are reset during POR. POR is active after application of VCC, or after a reset condition is applied
to pin RST/NMI. Control registers ADC12MCTL.x can be modified only if enable conversion control bit ENC is
reset. Any instruction that writes to an ADC12MCTLx register while the ENC bit is reset has no effect. A more
detailed description of the control bit functions is found in the ADC12 module description (in the MSP430x1xxUser’s Guide).
There are sixteen ADC12MCTLx 8-bit memory control registers and sixteen ADC12MEMx 16-bit registers.
Each of the memory control registers is associated with one ADC12MEMx register; for example, ADC12MEM0
is associated with ADC12MCTL0, ADC12MEM1 is associated with ADC12MCTL1, etc.
ADC12MCTLx
080h....08Fh
70
Sref, Source of ReferenceEOS
INCH, Input Channel a0 to a11
rw–(0)
rw–(0)
rw–(0)
The control register bits are used to select the analog channel, the reference voltage sources for VR+ and VR–,
and a control signal which marks the last channel in a group of channels. The sixteen 16-bit registers
ADC12MEMx are used to hold the conversion results.
The following illustration shows the conversion-result registers ADC12MEM0 to ADC12MEM15:
0140h, bit0,The 12 bits of the conversion result are stored in 16 control registers
ADC12MEM0 to ADC12MEM15.
ADC12MEM15015Eh, bit15The 12 bits are right-justified and the upper four bits are always read as 0.
ADC12 interrupt flags ADC12IFG.x and enable registers ADC12IEN.x
There are 16 ADC12IFG.x interrupt flags, 16 ADC12IE.x interrupt-enable bits, and one interrupt-vector word.
The 16 interrupt flags and enable bits are associated with the 16 ADC12MEMx registers. For example, register
ADC12MEM0, interrupt flag ADC12IFG.0, and interrupt-enable bit ADC12IE.0 form one conversion-result
block.
ADC12IFG.0 has the highest priority and ADC12IFG.15 has the lowest priority.
All interrupt flags and interrupt-enable bits are reset during POR. POR is active after application of V
a reset condition is applied to the RST/NMI pin.
CC
0
LSB
or after
ADC12 interrupt vector register
The 12-bit ADC has one interrupt vector for the overflow flag, the timing overflow flag, and sixteen interrupt flags.
This vector indicates that a conversion result is stored into registers ADC12MEMx. Handling of the 18 flags is
assisted by the interrupt-vector word. The 16-bit vector word ADC12IV indicates the highest pending interrupt.
The interrupt-vector word is used to add an offset to the program counter so that the interrupt-handler software
continues at the corresponding program location according to the interrupt event. This simplifies the interrupthandler operation and assigns each interrupt event the same five-cycle overhead.
MSP430x13x, MSP430x14x
MIXED SIGNAL MICROCONTROLLER
SLAS272C – JULY 2000 – REVISED FEBRUARY 2001
peripheral file map (continued)
PERIPHERALS WITH BYTE ACCESS
UART1
(Only in ‘x14x)
UART0
Comparator_A
System Clock
Port P6
Port P5
Port P4
Port P3
Port P2
Transmit bufferUTXBUF.107Fh
Receive bufferURXBUF.107Eh
Baud rateUBR1.107Dh
Baud rateUBR0.107Ch
Modulation controlUMCTL.107Bh
Receive controlURCTL.107Ah
Transmit controlUTCTL.1079h
UART controlUCTL.1078h
Transmit bufferUTXBUF.0077h
Receive bufferURXBUF.0076h
Baud rateUBR1.0075h
Baud rateUBR0.0074h
Modulation controlUMCTL.0073h
Receive controlURCTL.0072h
Transmit controlUTCTL.0071h
UART controlUCTL.0070h
Comp._A port disableCAPD05Bh
Comp._A control2CACTL205Ah
Comp._A control1CACTL1059h
Basic clock system control2BCSCTL2058h
Basic clock system control1BCSCTL1057h
DCO clock frequency controlDCOCTL056h
Port P6 selectionP6SEL037h
Port P6 directionP6DIR036h
Port P6 outputP6OUT035h
Port P6 inputP6IN034h
Port P5 selectionP5SEL033h
Port P5 directionP5DIR032h
Port P5 outputP5OUT031h
Port P5 inputP5IN030h
Port P4 selectionP4SEL01Fh
Port P4 directionP4DIR01Eh
Port P4 outputP4OUT01Dh
Port P4 inputP4IN01Ch
Port P3 selectionP3SEL01Bh
Port P3 directionP3DIR01Ah
Port P3 outputP3OUT019h
Port P3 inputP3IN018h
Port P2 selectionP2SEL02Eh
Port P2 interrupt enableP2IE02Dh
Port P2 interrupt-edge selectP2IES02Ch
Port P2 interrupt flagP2IFG02Bh
Port P2 directionP2DIR02Ah
Port P2 outputP2OUT029h
Port P2 inputP2IN028h
36
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
peripheral file map (continued)
Port P1
Special Functions
MSP430x13x, MSP430x14x
MIXED SIGNAL MICROCONTROLLER
SLAS272C – JULY 2000 – REVISED FEBRUARY 2001
PERIPHERALS WITH BYTE ACCESS
Port P1 selectionP1SEL026h
Port P1 interrupt enableP1IE025h
Port P1 interrupt-edge selectP1IES024h
Port P1 interrupt flagP1IFG023h
Port P1 directionP1DIR022h
Port P1 outputP1OUT021h
Port P1 inputP1IN020h
SFR module enable 2ME2005h
SFR module enable 1ME1004h
SFR interrupt flag2IFG2003h
SFR interrupt flag1IFG1002h
SFR interrupt enable2IE2001h
SFR interrupt enable1IE1000h
absolute maximum ratings over operating free-air temperature (unless otherwise noted)
Voltage applied at V
Voltage applied to any pin (referenced to V
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 V
SS.
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
37
MSP430x13x, MSP430x14x
(see Notes 10 and 11)
XT2 crystal frequency, f
kHz
Processor frequency (signal MCLK), f
MHz
Input levels at Xin and Xout
MIXED SIGNAL MICROCONTROLLER
SLAS272C – JULY 2000 – REVISED FEBRUARY 2001
recommended operating conditions
PARAMETERMINNOMMAXUNITS
Supply voltage during program execution, VCC (AVCC = DVCC = VCC)
Supply voltage during flash memory programming, V
(AVCC = DVCC = VCC)
Supply voltage, V
Operating free-air temperature range, T
LFXT1 crystal frequency, f
Flash-timing-generator frequency, f
Cumulative program time, t
Mass erase time, t(MEras) (See also the flash memory, timing generator,control register FCTL2 section, see Note 14)
Low-level input voltage (TCK, TMS, TDI, RST/NMI), VIL (excluding Xin, Xout) VCC = 2.2 V/3 VV
High-level input voltage (TCK, TMS, TDI, RST/NMI), VIH
(excluding Xin, Xout)
p
NOTES: 11. In LF mode, the LFXT1 oscillator requires a watch crystal and the LFXT1 oscillator requires a 5.1-MΩ resistor from XOUT to VSS
12. In LF mode, the LFXT1 oscillator requires a watch crystal. In XT1 mode, FXT1 accepts a ceramic resonator or a crystal.
13. The cumulative program time must not be exceeded during a segment-write operation. This parameter is only relevant if segment
14. The mass erase duration generated by the flash timing generator is at least 11.1 ms. The cummulative mass erase time needed
SS
A
(LFXT1)
(XT2)
(System)
(FTG)
(see Note 13)
(CPT)
when VCC < 2.5 V. In XT1 mode, the LFXT1. and XT2 oscillators accept a ceramic resonator or a 4-MHz crystal frequency at
VCC ≥ 2.2 V . In XT1 mode, the LFXT1 and XT2 oscillators accept a ceramic resonator or an 8-MHz crystal frequency at VCC ≥ 2.8 V.
write option is used.
is 200 ms. This can be achieved by repeating the mass erase operation until the cumulative mass erase time is met (a minimum
of 19 cycles may be required).
Supply voltage range,
’F13x/’F14x, during
program execution
1.8 V3.6 V
2.7 V 3 V
Supply Voltage – V
Supply voltage range, ’F13x/’F14x,
during flash memory programming
Figure 3. Frequency vs Supply Voltage, MSP430F13x or MSP430F14x
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
I
(MCLK)(SMCLK)
,
,
T
40°C to 85°C
A
I
f
(
)
096 Hz
,
T
40°C to 85°C
A
I
,()
,
T
40°C to 85°C
A
I
f(MCLK)
(SMCLK)
T
40°C to 85°C
A
I
f
f
0 MH
SCG0
(see Note 16)
f
(ACLK)
768 Hz
SCG0 = 1 (see Note 16)
I
f
0 MH
f
0 MH
SCG0
f
(ACLK)
SCG0 = 1
MSP430x13x, MSP430x14x
MIXED SIGNAL MICROCONTROLLER
SLAS272C – JULY 2000 – REVISED FEBRUARY 2001
electrical characteristics over recommended operating free-air temperature (unless otherwise
noted)
supply current into AVCC + DVCC excluding external current, f
PARAMETERTEST CONDITIONSMINNOMMAXUNIT
Active mode, (see Note 15)
f
(AM)
(AM)
(LPM0)
(LPM2)
(LPM3)
(LPM4)
NOTES: 15. Timer_B is clocked by f(DCOCLK) = 1 MHz. All inputs are tied to 0 V or to VCC. Outputs do not source or sink any current.
16. Timer_B is clocked by f(ACLK) = 32,768 Hz. All inputs are tied to 0 V or to VCC. Outputs do not source or sink any current. The current
= f
f
= 32,768 Hz
(ACLK)
XTS=0, SELM=(0,1)
Active mode, (see Note 15)
f
= f
(MCLK)
ACLK
XTS=0, SELM=(0,1)
XTS=0, SELM=3
Low-power mode, (LPM0)F13x,
(see Note 15)
Low-power mode, (LPM2),
f(ACLK) = 32.768 Hz, SCG0 = 0
Low-power mode, (LPM3)
(MCLK)
f
Low-power mode, (LPM4)
(MCLK)
f
consumption in LPM2 and LPM3 are measured with ACLK selected.
(SMCLK)
= 4,
= f
=
(SMCLK)
= 32,768 Hz,
= 32,
=
= 0 Hz,
= 0 Hz,
= 1 MHz,
= 4 096 Hz,
= 0 MHz,
=
,
z,
(SMCLK)
z,
= 1
=
= 1
F13x,
F14x
F13x,
F14x
F14x
z,
= –
A
= –
A
= –
A
= –
A
TA = –40°C0.81.5
TA = 25°C
TA = 85°C1.62.8
TA = –40°C1.82.2
TA = 25°C
TA = 85°C2.33.9
TA = –40°C0.10.5
TA = 25°C
TA = 85°C0.82.5
TA = –40°C
TA = 25°C
TA = 85°C0.82.5
°
°
(System)
°
°
= 1 MHz
VCC = 2.2 V280350
VCC = 3 V420560
VCC = 2.2 V2.57
VCC = 3 V920
VCC = 2.2 V3245
VCC = 3 V5570
VCC = 2.2 V1114
VCC = 3 V1722
VCC = 2.2 V
VCC = 3 V
VCC = 2.2 V
VCC = 3 V
0.91.5
1.61.9
0.10.5
0.10.5
0.10.5
µ
µ
µ
µ
µA
µA
µA
µA
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
39
MSP430x13x, MSP430x14x
V
Positive-going input threshold voltage
V
V
Negative-going input threshold voltage
V
V
Input voltage hysteresis (V
V
)
V
V
2.2 V / 3 V
VOHHigh-level output voltage
V
VOLLow-level output voltage
V
MIXED SIGNAL MICROCONTROLLER
SLAS272C – JULY 2000 – REVISED FEBRUARY 2001
electrical characteristics over recommended operating free-air temperature (unless otherwise
noted) (continued)
Current consumption of active mode versus system frequency, F-version
I(AM) = I(AM) [1 MHz]
× f(System) [MHz]
Current consumption of active mode versus supply voltage, F-version
NOTES: 27. The leakage current for the Comparator_A terminals is identical to I
28. The input offset voltage can be cancelled by using the CAEX bit to invert the Comparator_A inputs on successive measurements.
The two successive measurements are then summed together.
CAF=0
TA = 25°C,
Overdrive 10 mV , with filter: CAF=1
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
VCC = 3 V80150240
VCC = 2.2 V1.41.93.4
VCC = 3 V0.91.52.6
lkg(Px.x)
specification.
µ
43
MSP430x13x, MSP430x14x
(
)
(Re
)
MIXED SIGNAL MICROCONTROLLER
SLAS272C – JULY 2000 – REVISED FEBRUARY 2001
electrical characteristics over recommended operating free-air temperature (unless otherwise
noted) (continued)
650
VCC = 3 V
600
Typical
550
500
– Reference Volts –mV
(REFVT)
450
V
400
–45–25–51535557595
TA – Free-Air Temperature – °C
Figure 8. V
vs Temperature, VCC = 3 V
RefVT
V
0 V
CC
1
0
CAON
650
VCC = 2.2 V
600
Typical
550
500
– Reference Volts –mV
(REFVT)
450
V
400
–45–25–51535557595
TA – Free-Air Temperature – °C
Figure 9. V
vs Temperature, VCC = 2.2 V
fVT
CAF
V+
V–
Low Pass Filter
+
_
0
1
0
1
τ≈ 2.0 µs
Figure 10. Block Diagram of Comparator_A Module
V
CAOUT
V–
400 mV
V+
Overdrive
t
(response)
Figure 11. Overdrive Definition
To Internal
Modules
CAOUT
Set CAIFG
Flag
44
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
MSP430x13x, MSP430x14x
MIXED SIGNAL MICROCONTROLLER
SLAS272C – JULY 2000 – REVISED FEBRUARY 2001
electrical characteristics over recommended operating free-air temperature (unless otherwise
noted) (continued)
POR
PARAMETERCONDITIONSV
t
Delay2.2 V/3 V150250µs
(POR)
V
(POR)
V
(POR)
V
(POR)
V
(min)
t
(Reset)
V
(POR)
V
(min)
POR
PUC/PORReset is accepted internally2.2 V/3 V2µs
V
POR
TA = –40°C1.41.8V
TA = +25°C1.11.5V
TA = +85°C0.81.2V
VCC
No POR
CC
MINNOMMAXUNIT
00.4V
POR
2
1.8
1.6
1.4
– V
1.2
1
(POR)
V
0.8
0.6
0.4
0.2
0
–40–20
1.8
1.4
Figure 12. Power-On Reset (POR) vs Supply Voltage
1.5
1.2
25°C
0
20406080
TA – Temperature – °C
Figure 13. V(POR) vs Temperature
t
1.2
0.8
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
45
MSP430x13x, MSP430x14x
f
MHz
f
MHz
f
MHz
f
MHz
f
MHz
f
MHz
f
MHz
f
MHz
f
R
7, DCO
MOD
DCOR
T
25°C
MHz
D
,
sel
,,
%/°C
MIXED SIGNAL MICROCONTROLLER
SLAS272C – JULY 2000 – REVISED FEBRUARY 2001
electrical characteristics over recommended operating free-air temperature (unless otherwise
noted) (continued)
DCO (see Note 29)
PARAMETERTEST CONDITIONSMINNOMMAXUNIT
R
= 0, DCO = 3, MOD = 0, DCOR = 0, TA = 25°CVCC = 2.2 V0.080.120.15
(DCO03)
(DCO13)
(DCO23)
(DCO33)
(DCO43)
(DCO53)
(DCO63)
(DCO73)
f
(DCO47)
(DCO77)
S
(Rsel)
S
(DCO)
t
D
V
NOTES: 29. The DCO frequency may not exceed the maximum system frequency defined by parameter processor frequency, f
30. This parameter is not production tested.
sel
VCC = 3 V0.080.130.16
R
= 1, DCO = 3, MOD = 0, DCOR = 0, TA = 25°CVCC = 2.2 V0.140.190.23
sel
VCC = 3 V0.140.180.22
R
= 2, DCO = 3, MOD = 0, DCOR = 0, TA = 25°CVCC = 2.2 V0.220.300.36
sel
VCC = 3 V0.220.280.34
R
= 3, DCO = 3, MOD = 0, DCOR = 0, TA = 25°CVCC = 2.2 V0.370.490.59
sel
VCC = 3 V0.370.470.56
R
= 4, DCO = 3, MOD = 0, DCOR = 0, TA = 25°CVCC = 2.2 V0.610.770.93
sel
VCC = 3 V0.610.750.90
R
= 5, DCO = 3, MOD = 0, DCOR = 0, TA = 25°CVCC = 2.2 V11.21.5
sel
VCC = 3 V11.31.5
R
= 6, DCO = 3, MOD = 0, DCOR = 0, TA = 25°CVCC = 2.2 V1.61.92.2
sel
VCC = 3 V1.692.02.29
R
= 7, DCO = 3, MOD = 0, DCOR = 0, TA = 25°CVCC = 2.2 V2.42.93.4
sel
VCC = 3 V2.73.23.65
R
= 4, DCO = 7, MOD = 0, DCOR = 0, TA = 25°CVCC = 2.2 V/3 V
NOTE 33: The signal applied to the USART0/1 receive signal/terminal (URXD0/1) should meet the timing requirements of t
URXS flip-flop is set. The URXS flip-flop is set with negative pulses meeting the minimum-timing condition of t
conditions to set the flag must be met independently from this timing constraint. The deglitch circuitry is active only on negative
transitions on the URXD0/1 line.
VCC = 2.2 V200430800
VCC = 3 V150280500
0.2 × V
CC
V
CC
to ensure that the
(t)
. The operating
(t)
V
V
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
47
MSP430x13x, MSP430x14x
V
2_5 V
ilt-i
V
I
REF+
mA
Anal
I
†
g
I
‡
g
VCC=3 V
V
C
5 µF
20
ns
I
into AV
t
ADC12ON
REFON
0
mA
I
gy
ADC12ON
mA
MIXED SIGNAL MICROCONTROLLER
SLAS272C – JULY 2000 – REVISED FEBRUARY 2001
electrical characteristics over recommended operating free-air temperature (unless otherwise
noted) (continued)
12-bit ADC, power supply and input range conditions (see Note 34)
PARAMETERTEST CONDITIONSMIN NOMMAXUNIT
AVCC and DVCC are connected together
AV
CC
REF+
VREF+
L(VREF)+
DL(VREF) +
V
eREF+
V
REF– /VeREF–
(V
eREF+
V
REF–/VeREF–
V
(P6.x/Ax)
ADC12
I
REF+
REF+
†
Not production tested, limits characterized
‡
Not production tested, limits verified by design
NOTES: 34. The leakage current is defined in the leakage current table with P6.x/Ax parameter.
–
35. The accuracy limits the minimum positive external reference voltage. Lower reference voltage levels may be applied with reduced
36. The accuracy limits the maximum negative external reference voltage. Higher reference voltage levels may be applied with reduced
37. The accuracy limits minimum external differential reference voltage. Lower differential reference voltage levels may be applied with
38. The analog input voltage range must be within the selected reference voltage range VR+ to VR– for valid conversion results.
39. The internal reference supply current is not included in current consumption parameter I
40. The internal reference current is supplied via terminal AVCC. Consumption is independent of the ADC12ON control bit, unless a
Analog supply voltage
Positive built-in reference
voltage output
Load current out of V
terminal
Load-current regulation
V
terminal
REF+
Load current regulation
V
terminal
REF+
Positive external
reference voltage input
Negative external
reference voltage input
Differential external
)
reference voltage input
Analog input voltage
range (see Note 38)
Operating supply current
(see Note 39)
Operating supply current
into AVCC terminal
(see Note 40)
Operating supply current
(see Note 40)
accuracy requirements.
accuracy requirements.
reduced accuracy requirements.
conversion is active. The REFON bit enables to settle the built-in reference before starting an A/D conversion.
CC
erminal
AVSS and DVSS are connected together
V
2_5 V = 1 for 2.5 V built-in reference
I
I
2_5 V = 0
I
Analog input voltage ~1.25 V;
2_5 V = 1
I
Error of conversion result ≤ 1 LSB
V
V
V
All P6.0/A0 to P6.7/A7 terminals. Analog inputs
selected in ADC12MCTLx register and P6Sel.x=1
0 ≤ x ≤ 7; V
f
SHT0=0, SHT1=0, ADC12DIV=0
f
ADC12ON = 0,
REFON = 1, 2_5V = 1
f
REFON = 1, 2_5V = 0
= V
(AVSS)
V(REF+)
V(REF)+
V(REF)
V(REF)
eREF+
eREF+
eREF+
ADC12CLK
ADC12CLK
ADC12CLK
(DVSS)
= 0 for 1.5 V bu
≤ I
(VREF+)
= 500 µA +/– 100 µA
p
og input voltage ~0.75 V;
+ = 500 µA ± 100 µA
+ =100 µA → 900 µA,
, ax ~0.5 x
> V
eREF–/VeREF–
> V
eREF–/VeREF–
> V
eREF–/VeREF–
≤ V
(AVSS)
= 5.0 MHz
= 1,
= 5.0 MHz
= 5.0 MHz
= 0,
= 0 V
n reference
max
REF+
(see Note 35)1.4V
(see Note 36)01.2V
(see Note 37)1.4V
P6.x/Ax
=
3 V2.42.52.6
2.2 V/3 V1.441.51.56
2.2 V0.01–0.5
3 V–1
2.2 V±2LSB
3 V±2
3 V±2LSB
VREF+
≤ V
(AVCC)
2.2 V0.651.3
3 V0.81.6
3 V0.50.8mA
2.2 V0.50.8
3 V0.50.8
=
2.23.6V
0V
.
ADC12
AVCC
AVCC
AVCC
V
V
V
48
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
MSP430x13x, MSP430x14x
MIXED SIGNAL MICROCONTROLLER
SLAS272C – JULY 2000 – REVISED FEBRUARY 2001
electrical characteristics over recommended operating free-air temperature (unless otherwise
noted) (continued)
12-bit ADC, built-in reference (see Note 41)
PARAMETERTEST CONDITIONSMIN NOMMAXUNIT
I
VeREF+
I
VREF–/VeREF–
C
VREF+
‡
Ci
‡
Z
i
†
T
REF+
†
Not production tested, limits characterized
‡
Not production tested, limits verified by design
NOTES: 41. The voltage source on V
42. The external reference is used during conversion to charge and discharge the capacitance array. The dynamic impedance should
43. The internal buffer operational amplifier and the accuracy specifications require an external capacitor.
44. The input capacitance is also the dynamic load for an external reference during conversion. The dynamic impedance of the reference
Static input current (see
Note 42)
Static input current (see
Note 42)
Capacitance at pin
V
(see Note 43)
REF+
Input capacitance (see
Note 44)
Input MUX ON
resistance(see Note 44)
Temperature coefficient
of built-in reference
to settle for this accuracy (See Figures 12 and 13).
follow the recommendations on analog-source impedance to allow the charge to settle for 12-bit accuracy.
supply should follow the recommendations on analog-source impedance to allow the charge to settle for 12-bit accuracy. All INL
and DNL tests uses two capacitors between pins V(REF+) and AVSS and V(REF–)/V(eREF–) and A VSS: 10 µF tantalum and 100 nF
ceramic.
eREF+
0V ≤V
0V ≤ V
REFON =1,
0 mA ≤ I
Only one terminal can be selected at one
time, P6.x/Ax
0V ≤ VAx ≤ V
I
V(REF)
0 mA ≤ I
and V
REF–/VeREF–
≤ V
eREF+
eREF–
VREF+
+ is a constant in the range of
V(REF)
AVCC
≤ V
AVCC
≤ I
V(REF)+(max)
AVCC
+ ≤ 1 mA
) needs to have low dynamic impedance for 12-bit accuracy to allow the charge
2.2 V/3 V±1µA
2.2 V/3 V±1µA
2.2 V/3 V510µF
2.2 V40pF
3 V2000Ω
2.2 V/3 V±100 ppm/°C
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
49
MSP430x13x, MSP430x14x
f(ADC12OSC)
()
3.7
6.3
MHz
t
(
)
t
‡
Sampling time
i(source)i
ns
MIXED SIGNAL MICROCONTROLLER
SLAS272C – JULY 2000 – REVISED FEBRUARY 2001
electrical characteristics over recommended operating free-air temperature (unless otherwise
noted) (continued)
12-bit ADC, timing parameters
PARAMETERTEST CONDITIONSMINNOMMAXUNIT
Settle time of internal
†
t
REF(ON)
CONVERT
t
ADC12ON
Sample
†
Not production tested, limits characterized
‡
Not production tested, limits verified by design
NOTES: 45. The condition is that the error in a conversion started after t
46. The condition is that the error in a conversion started after t
47. Ten Tau (τ) are needed to get an error of less than ±0.5 LSB. t
C
VREF+
100 µF
reference voltage (see
Figure 15 and Note 45)
Conversion time
Conversion time
‡
Settle time of the ADCA
p
capacitive load.
settled.
I
V(REF)+
V
ADC12DIV=0 [f(ADC12CLK)
=f(ADC12OSC)]
AV
C
f
OSC
A
External f
SMCLK: ADC12SSEL ≠ 0
V
R
Ci = 30 pF
τ = [R
= 0.5 mA, C
= 1.5 V, V
REF+
≤ V
CC(min)
VREF+
= 3.7 MHz to 6.3 MHz
VCC(min)
VCC(min)
AVCC(min)
i
source
i(source)
AVCC
≥ 5 µF, Internal oscillator,
≤ V
AVCC
ADC12(CLK)
≤ V
AVCC
< V
AVCC
= 400 Ω, Zi = 1000 Ω,
x+ Zi] x Ci;(see Note 47)
V(REF)
= 2.2 V
AVCC
≤ AV
≤ A
VCC(max),
from ACLK or MCLK or
≤ A
VCC(max)
< V
REF(ON)
ADC12ON
+ = 10 µF,
2.2 V
3 V
CC(max)
AVCC(max)
,
2.2 V/
3 V
(see Note 46)100ns
3 V1220
2.2 V1400
is less than ±0.5 LSB. The settling time depends on the external
is less than ±0.5 LSB. The reference and input signal are already
= 10 x (Ri + Zi) x Ci+ 800 ns
Sample
2.063.51µs
13×ADC12DIV×
1/f
ADC12(CLK)
17ms
µs
50
10 µF
1 µF
0
1 ms
t[REF(ON) ~ 0.66 x CVREF+ [ms] With C[VREF+] in µF
10 ms
Figure 15. Typical Settling Time of Internal Reference t
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
100 mst
REF(ON)
REF(ON)
vs External Capacitor on V
REF
+
E
Integral linearity error
2.2 V/3 V
LSB
MSP430x13x, MSP430x14x
MIXED SIGNAL MICROCONTROLLER
SLAS272C – JULY 2000 – REVISED FEBRUARY 2001
electrical characteristics over recommended operating free-air temperature (unless otherwise
noted) (continued)
12-bit ADC, linearity parameters
PARAMETERTEST CONDITIONSMIN NOMMAXUNIT
(I)
Differential linearity
E
D
error
E
Offset error
O
E
Gain error
G
T otal unadjusted
E
T
error
†
Not production tested, limits characterized
†
†
†
1.4 V ≤ (VeREF+ – VREF–/VeREF–) min ≤ 1.6 V
1.6 V < [V(eREF+) – V(REF–)/V(eREF–)] min ≤ [V(AVCC)]
(V
eREF+
C(VREF+) = 10 µF (tantalum) and 100 nF (ceramic)
(V
eREF+
Internal impedance of source Ri < 100 Ω,
C(VREF+) = 10 µF (tantalum) and 100 nF (ceramic)
(V
eREF+
C(VREF+) = 10 µF (tantalum) and 100 nF (ceramic)
(V
eREF+
C(VREF+) = 10 µF (tantalum) and 100 nF (ceramic)
– V
REF–/VeREF–)min
– V
REF–/VeREF–)min
– V
REF–/VeREF–)min
– V
REF–/VeREF–)min
≤ (V
≤ (V
≤ (V
≤ (V
eREF+
eREF+
eREF+
eREF+
– V
REF–/VeREF–
– V
REF–/VeREF–
– V
REF–/VeREF–
– V
REF–/VeREF–
),
2.2 V/3 V±1LSB
),
2.2 V/3 V±2±4LSB
),
2.2 V/3 V±1.1±2LSB
),
2.2 V/3 V±2±5LSB
±2
±1.7
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
51
MSP430x13x, MSP430x14x
MIXED SIGNAL MICROCONTROLLER
SLAS272C – JULY 2000 – REVISED FEBRUARY 2001
From
Apply External Reference [V
or Use Internal Reference [V
Power
Supply
(eREF+)
]
REF+
Apply
External
Reference
]
+
–
10 µF 100 nF
+
–
10 µF 100 nF
+
–
10 µF 100 nF
+
–
10 µF 100 nF
Figure 16. Supply Voltage and Reference Voltage Design V
From
Power
Supply
+
–
10 µF 100 nF
DV
CC
DV
SS
AV
CC
MSP430F13x
AV
MSP430F14x
SS
V
or V
REF+
V
(REF–)/V(eREF–)
(eREF+)
(REF–)/V(eREF–)
DV
CC
DV
SS
External Supply
+
–
Apply External Reference [V
or Use Internal Reference [V
Reference Is Internally
Switched to AV
(eREF+)
]
REF+
SS
]
10 µF 100 nF
+
–
10 µF 100 nF
Figure 17. Supply Voltage and Reference Voltage Design V
AV
CC
MSP430F13x
AV
V
V
MSP430F14x
SS
or V
REF+
(REF–)/V(eREF–)
(eREF+)
(REF–)/V(eREF–)
=AVSS, Internally Connected
52
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
I
gy
REFON
,,
A
V
†
,,
mV
TC
†
ADC12ON
INCH
0Ah
mV/°C
t
†
q
,,
s
I
Current into divider at channel 11
,,
A
V
AV
divider at channel 11
,,
V
t
ns
TCK frequency
MHz
(see Note 55)
I
(see Note 53)
y
t
F-versions only
MSP430x13x, MSP430x14x
MIXED SIGNAL MICROCONTROLLER
SLAS272C – JULY 2000 – REVISED FEBRUARY 2001
electrical characteristics over recommended operating free-air temperature (unless otherwise
noted) (continued)
12-bit ADC, temperature sensor and built-in Vmid
PARAMETERTEST CONDITIONSMIN NOMMAXUNIT
SENSOR
SENSOR
SENSOR
SENSOR(sample)
VMID
MID
ON(VMID)
†
Not production tested, limits characterized
‡
Not production tested, limits verified by design
NOTES: 48. The sensor current I
is high). Therefore it includes the constant current through the sensor and the reference.
49. The typical equivalent impedance of the sensor is 51 kΩ. The sample time needed is the sensor-on time t
50. No additional current is needed. The V
51. The on-time t
Operating supply current intoV
AVCC terminal (see Note 48)
Sample time required if channelADC12ON = 1, INCH = 0Ah,
10 is selected (see Note 49)
CC
On-time if channel 11 is selected ADC12ON = 1, INCH = 0Bh,
(see Note 51)Error of conversion result ≤ 1 LSB
SENSOR
ON(VMID)
is identical to sampling time t
ADC12ON=NA, TA = 25_C
ADC12ON = 1, INCH = 0Ah,
TA = 0°C
Error of conversion result ≤ 1 LSB
ADC12ON = 1, INCH = 0Bh,
(see Note 50)
ADC12ON = 1, INCH = 0Bh,
V
is consumed if (ADC12ON = 1 and V
is used during sampling.
MID
is ~0.5 x V
MID
Sample
= 0, INCH = 0Ah,
= 1,
=
AVCC
REFON
; no additional on time is needed.
JTAG, program memory and fuse
PARAMETERTEST CONDITIONSV
f
(TCK)
V
FB
FB
I
(DD-PGM)
I
(DD-Erase)
(retention)
NOTES: 52. TMS, TDI, and TCK pull-up resistors are implemented in all F versions.
JTAG/Test
Pullup resistors on TMS, TCK, TDI (see Note 52)2.2 V/ 3V256090kΩ
JTAG/fuse
F-versions only
(see Note 55)
53. Once the fuse is blown, no further access to the MSP430 JTAG/test feature is possible. The JTAG block is switched to bypass mode.
54. The supply voltage to blow the fuse is applied to the TDI pin.
55. f
may be restricted to meet the timing requirements of the module selected. Duration of the program/erase cycle is determined
(TCK)
by f
applied to the flash timing controller. It can be calculated as follows:
(FTG)
t
(word write)
t
(segment write, byte 0)
t
(segment write end sequence)
t
(mass erase)
t
(segment erase)
Fuse-blow voltage, F versions (see Note 54)2.2 V/3 V6.07.0V
Supply current on TDI with fuse blown100mA
Time to blow the fuse1ms
Current from DVCC when programming is active2.7 V/3.6 V35mA
Current from DVCC when erase is active2.7 V/3.6 V35mA
Write/erase cycles10
Data retention TJ = 25°C100years
= 33 x 1/f
= 5296 x 1/f
(FTG)
= 30 x 1/f
= 4817 x 1/f
(FTG)
(FTG)
=5 x 1/f(FTG)
(FTG)
=1), or (ADC12ON=1 AND INCH=0Ah and sample signal
2.2 V40120
3 V60160
2.2 V986986±5%
3 V986986±5%
2.2 V3.553.55±3%
3 V3.553.55±3%
2.2 V30
3 V30
2.2 VNA
3 VNA
2.2 V1.11.1±0.04
3 V1.5 1.50±0.04
2.2 VNA
3 VNA
SENSOR(ON)
CC
2.2 VDC5
3 VDC10
MINNOMMAXUNIT
4
5
10
µ
°
µ
µ
cycles
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
53
MSP430x13x, MSP430x14x
MIXED SIGNAL MICROCONTROLLER
SLAS272C – JULY 2000 – REVISED FEBRUARY 2001
input/output schematic
port P1, P1.0 to P1.7, input/output with Schmitt-trigger
P1SEL.x
P1DIR.x
Direction Control
From Module
P1OUT.x
Module X OUT
P1IN.x
EN
0
1
Pad Logic
0
1
P1.0/TACLK ..
P1.7/TA2
Module X IN
PnSel.xPnDIR.x
P1Sel.0P1DIR.0P1DIR.0P1OUT.0DV
P1Sel.1P1DIR.1P1DIR.1P1OUT.1Out0 signal
P1Sel.2P1DIR.2P1DIR.2P1OUT.2Out1 signal
P1Sel.3P1DIR.3P1DIR.3P1OUT.3Out2 signal
P1Sel.4P1DIR.4P1DIR.4P1OUT.4SMCLKP1IN.4unusedP1IE.4 P1IFG.4 P1IES.4
P1Sel.5P1DIR.5P1DIR.5P1OUT.5Out0 signal
P1Sel.6P1DIR.6P1DIR.6P1OUT.6Out1 signal
P1Sel.7P1DIR.7P1DIR.7P1OUT.7Out2 signal
†
Signal from or to Timer_A
Dir. CONTROL
FROM MODULE
D
P1IE.xP1IRQ.x
P1IFG.x
EN
Q
Set
Interrupt
Flag
PnOUT.xMODULE X OUTPnIN.xMODULE X INPnIE.x PnIFG.x PnIES.x
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).
D
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
59
MSP430x13x, MSP430x14x
MIXED SIGNAL MICROCONTROLLER
SLAS272C – JULY 2000 – REVISED FEBRUARY 2001
input/output schematic (continued)
port P4, P4.0 to P4.6, input/output with Schmitt-trigger
P4SEL.x
P4DIR.x
Direction Control
From Module
TBoutHiZ
P4OUT.x
Module X OUT
P4IN.x
0
1
0
1
EN
0: Input
1: Output
Pad Logic
P4.0/TB0 ..
P4.6/TB6
Bus Keeper
Module X IN
x: bit identifier, 0 to 6 for Port P4
PnSel.xPnDIR.x
P4Sel.0P4DIR.0P4DIR.0P4OUT.0Out0 signal
P4Sel.1P4DIR.1P4DIR.1P4OUT.1Out1 signal
P4Sel.2P4DIR.2P4DIR.2P4OUT.2Out2 signal
P4Sel.3P4DIR.3P4DIR.3P4OUT.3Out3 signal
P4Sel.4P4DIR.4P4DIR.4P4OUT.4Out4 signal
P4Sel.5P4DIR.5P4DIR.5P4OUT.5Out5 signal
P4Sel.6P4DIR.6P4DIR.6P4OUT.6Out6 signal
MSP430x13x, MSP430x14x
MIXED SIGNAL MICROCONTROLLER
SLAS272C – JULY 2000 – REVISED FEBRUARY 2001
input/output schematic (continued)
port P5, P5.1, input/output with Schmitt-trigger
P5SEL.1
SYNC
MM
STC
STE
P5DIR.1
DCM_SIMO
P5OUT.1
(SI)MO1
From USART1
P5IN.1
SI(MO)1
To USART1
0
1
0
1
EN
D
0: Input
1: Output
Pad Logic
P5.1/SIMO1
port P5, P5.2, input/output with Schmitt-trigger
P5SEL.2
SYNC
MM
STC
STE
P5DIR.2
DCM_SOMI
P5OUT.2
SO(MI)1
From USART1
P5IN.2
(SO)MI1
To USART1
0
1
0
1
EN
D
0: Input
1: Output
Pad Logic
P5.2/SOMI1
62
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
input/output schematic (continued)
port P5, P5.3, input/output with Schmitt-trigger
P5SEL.3
SYNC
MM
STC
STE
P5DIR.3
DCM_SIMO
P5OUT.3
UCLK1
From USART1
0
1
0
1
MSP430x13x, MSP430x14x
MIXED SIGNAL MICROCONTROLLER
SLAS272C – JULY 2000 – REVISED FEBRUARY 2001
0: Input
1: Output
Pad Logic
P5.3/UCLK1
P5IN.3
UCLK1
To USART1
NOTE: UART mode:The UART clock can only be an input. If UART mode and UART function are selected, the P5.3/UCLK1 direction
is always input.
SPI, slave mode:The clock applied to UCLK1 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 P5.3/UCLK1 (in slave mode).
EN
D
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
63
MSP430x13x, MSP430x14x
MIXED SIGNAL MICROCONTROLLER
SLAS272C – JULY 2000 – REVISED FEBRUARY 2001
input/output schematic (continued)
port P6, P6.0 to P6.7, input/output with Schmitt-trigger
P6SEL.x
P6DIR.x
Direction Control
From Module
P6OUT.x
Module X OUT
P6IN.x
0
1
0
1
EN
0: Input
1: Output
Pad Logic
P6.0 .. P6.7
Bus Keeper
Module X IN
From ADC
To ADC
x: Bit Identifier, 0 to 7 for Port P6
NOTE: Analog signals applied to digital gates can cause current flow from the positive to the negative terminal. The throughput current flows if
the analog signal is in the range of transitions 0→1 or 1←0. The value of the throughput current depends on the driving capability of the
gate. For MSP430, it is approximately 100 µA.
Use P6SEL.x=1 to prevent throughput current. P6SEL.x should be set, even if the signal at the pin is not being used by the ADC12.
JTAG pins TMS, TCK, TDI, TDO/TDI, input/output with Schmitt-trigger
TDO
Controlled by JTAG
Controlled by JTAG
MSP430x13x, MSP430x14x
SLAS272C – JULY 2000 – REVISED FEBRUARY 2001
JTAG
Test
&
Emulation
Module
Controlled
by JTAG
TDI
TMS
TCK
DV
CC
see Note 1
DV
CC
Fuse
Burn & Test
Fuse
DV
DV
CC
CC
TDO/TDI
TDI
TMS
During Programming Activity and
During Blowing of the Fuse, Pin
TDO/TDI Is Used to Apply the Test
Input Data for JTAG Circuitry
TCK
JTAG fuse check mode
MSP430 devices that have the fuse on the TDI terminal have a fuse check mode that tests the continuity of the
fuse the first time the JT AG port is accessed after a power-on reset (POR). When activated, a fuse check current,
I
, of 1 mA at 3 V, 2.5 mA at 5 V can flow from the TDI pin to ground if the fuse is not burned. Care must be
TF
taken to avoid accidentally activating the fuse check mode and increasing overall system power consumption.
Activation of the fuse check mode occurs with the first negative edge on the TMS pin after power up or if the
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 18). Therefore, the additional current flow can be prevented by holding the TMS pin high (default
condition).
MSP430x13x, MSP430x14x
MIXED SIGNAL MICROCONTROLLER
SLAS272C – JULY 2000 – REVISED FEBRUARY 2001
MECHANICAL DATA
PM (S-PQFP-G64) PLASTIC QUAD FLATPACK
49
64
0,50
48
0,27
0,17
33
1
7,50 TYP
10,20
SQ
9,80
12,20
SQ
11,80
16
0,08
32
17
M
0,05 MIN
0,13 NOM
Gage Plane
0,25
0°–7°
1,45
1,35
1,60 MAX
NOTES: A. All linear dimensions are in millimeters.
B. This drawing is subject to change without notice.
C. Falls within JEDEC MS-026
D. May also be thermally enhanced plastic with leads connected to the die pads.
0,75
0,45
Seating Plane
0,08
4040152/C 11/96
66
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
IMPORTANT NOTICE
T exas Instruments and its subsidiaries (TI) reserve the right to make changes to their products or to discontinue
any product or service without notice, and advise customers to obtain the latest version of relevant information
to verify, before placing orders, that information being relied on is current and complete. All products are sold
subject to the terms and conditions of sale supplied at the time of order acknowledgment, including those
pertaining to warranty, patent infringement, and limitation of liability.
TI warrants performance of its products to the specifications applicable at the time of sale in accordance with
TI’s standard warranty . T esting and other quality control techniques are utilized to the extent TI deems necessary
to support this warranty . Specific testing of all parameters of each device is not necessarily performed, except
those mandated by government requirements.
Customers are responsible for their applications using TI components.
In order to minimize risks associated with the customer’s applications, adequate design and operating
safeguards must be provided by the customer to minimize inherent or procedural hazards.
TI assumes no liability for applications assistance or customer product design. TI does not warrant or represent
that any license, either express or implied, is granted under any patent right, copyright, mask work right, or other
intellectual property right of TI covering or relating to any combination, machine, or process in which such
products or services might be or are used. TI’s publication of information regarding any third party’s products
or services does not constitute TI’s approval, license, warranty or endorsement thereof.
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. Representation
or reproduction of this information with alteration voids all warranties provided for an associated TI product or
service, is an unfair and deceptive business practice, and TI is not responsible nor liable for any such use.
Resale of TI’s products or services with
that product or service voids all express and any implied warranties for the associated TI product or service,
is an unfair and deceptive business practice, and TI is not responsible nor liable for any such use.
Also see: Standard Terms and Conditions of Sale for Semiconductor Products.
Copyright 2001, Texas Instruments Incorporated
statements different from or beyond the parameters
www.ti.com/sc/docs/stdterms.htm
Mailing Address:
Texas Instruments
Post Office Box 655303
Dallas, Texas 75265
stated by TI for
Loading...
+ hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.