The MSP430 is an ultralow-power mixed signal microcontroller family consisting of several devices that feature
different sets of modules targeted to various applications. The microcontroller is designed to be battery operated
for an extended application lifetime. With 16-bit RISC architecture, 16-bit integrated registers on the CPU, and
a constant generator, the MSP430 achieves maximum code efficiency. The digitally-controlled oscillator,
together with the frequency-locked-loop (FLL), provides a wakeup from a low-power mode to active mode in
less than 6 ms.
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.
†
MSP430P313/E313 not recommended for new designs – replaced by MSP430P315/E315.
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 2000, Texas Instruments Incorporated
1
MSP430x31x
40°C to 85°C
†
25°C
MIXED SIGNAL MICROCONTROLLERS
SLAS165D – FEBRUARY 1998 – REVISED APRIL 2000
description (continued)
Typical applications include sensor systems that capture analog signals, converting them to digital values, and
then processes the data and displays them or transmits them to a host system. The timer/port module provides
single-slope A/D conversion capability for resistive sensors.
AVAILABLE OPTIONS
PACKAGED DEVICES
T
A
SSOP
48-Pin
(DL)
SSOP
56-Pin
(DL)
MSP430C312IDL
MSP430C313IDL
°
–
MSP430C311SIDL
°
MSP430P315SIDL
MSP430C314IDL
MSP430C315IDL
MSP430P313IDL
†
MSP430P315IDL
°
†
MSP430P313/E313 not recommended for new designs – replaced by MSP430P315/E315.
——
JLCC
68-Pin
(FZ)
PMS430E313FZ
PMS430E315FZ
functional block diagram
MSP430C312,313,314,315 and MSP430P313†,315 and PMS430E313,315
CIN27ICounter enable. CIN input enables counter (TPCNT1) (timer/port).
COM0–COM352–55OCommon output pins. COM0–COM3 are used for LCD back planes.
P0.013I/OGeneral-purpose digital I/O pin
P0.1/RXD14I/OGeneral-purpose digital I/O pin, receive data input port – 8-bit (timer/counter)
P0.2/TXD15I/OGeneral-purpose digital I/O pin, transmit data output port – 8-bit (timer/counter)
P0.3–P0.716–20I/OFive general-purpose digital I/O pins, bit 3–7
R239IInput of second positive analog LCD level (V2) (LCD)
R1310IInput of third positive analog LCD level (V3 of V4) (LCD)
RST/NMI5IReset input or nonmaskable interrupt input
S029OSegment line S0 (LCD)
S130OSegment line S1 (LCD)
S2/O2–S5/O531–34OSegment lines (S2 to S5) or digital output port O2 to O5, group 1 (LCD)
S6/O6–S9/O935–38OSegment lines (S6 to S9) or digital output port O6 to O9, group 2 (LCD)
S10/O10–S13/O1339–42OSegment lines (S10 to S13) or digital output port O10 to O13, group 3 (LCD)
S14/O14–S17/O1743–46OSegment lines (S14 to S17) or digital output port O14 to O17, group 4 (LCD)
S18/O1847OSegment line (S18) or digital output port O18 , group 5 (LCD)
S22/O22–S23/O2348,49OSegment lines (S22 to S23) or digital output port O22 to O23, group 6 (LCD)
S26/O2650OSegment line (S26) or digital output port O26, group 7 (LCD)
S27/O27/CMPI51I/OSegment line (S27) or digital output port O27 group 7, can be used as a comparator input port CMPI
TCK4ITest clock. TCK is a clock input terminal for device programming and test.
TDI/VPP2ITest data input port. TDI/VPP is used as a data input terminal or an input for programming voltage.
TDO/TDI1I/OTest data output port. TDO/TDI is used as a data output terminal or as a data input during
TMS3ITest mode select. TMS is an input terminal for device programming and test.
TP0.021O/ZGeneral-purpose 3-state digital output port, bit 0 (timer/port)
TP0.122O/ZGeneral-purpose 3-state digital output port, bit 1 (timer/port)
TP0.223O/ZGeneral-purpose 3-state digital output port, bit 2 (timer/port)
TP0.324O/ZGeneral-purpose 3-state digital output port, bit 3( timer/port)
TP0.425O/ZGeneral-purpose 3-state digital output port, bit 4 (timer/port)
TP0.526I/O/Z General-purpose 3-state digital I/O pin, bit 5 (timer/port)
V
CC
V
SS
XBUF6OClock signal output of system clock (MCLK) or crystal clock (ACLK)
Xin11IInput terminal of crystal oscillator
Xout/TCLK12I/OOutput terminal of crystal oscillator or test clock input
†
MSP430P313/E313 not recommended for new designs – replaced by MSP430P315/E315.
8Supply voltage
7Ground reference
(timer/port)
programming.
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
3
MSP430x31x
MIXED SIGNAL MICROCONTROLLERS
SLAS165D – FEBRUARY 1998 – REVISED APRIL 2000
functional block diagram
MSP430C31 1S and MSP430P315S
XINXoutXBUFRST/NMI
VCCV
SS
P0.1–6
TDI/VPP
TDO/TDI
TMS
TCK
Oscillator
FLL
System Clock
CPU
Incl. 16 Reg.
Test
JTAG
ACLK
MCLK
MAB, 16 Bit
MDB, 16 Bit
2 kB
ROM
16 kB
OTP
C: ROM
P: OTP
Watchdog
Timer
15/16 Bit
128/512B
RAM
Bus
Conv
TP0.5
Power-On-
Reset
MAB, 4 Bit
MCB
MDB, 8 Bit
Timer/Port
Applications:
A/D Conv.
Timer, O/P
4
TP0.0–3
8-bit Timer/
Serial Protocol
CIN
Counter
Support
CMPI
Basic
Timer1
f
LCD
TXD
RXD
6
I/O Port
6 I/O’s, All With
Interr. Cap.
2 Int. Vectors
LCD
64 Segments
1, 2, 3, 4 MUX
R13R23
COM0–3
S2–16/O2–16
S27/O27/CMPI
4
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
I/O
DESCRIPTION
MSP430x31x
MIXED SIGNAL MICROCONTROLLERS
SLAS165D – FEBRUARY 1998 – REVISED APRIL 2000
Terminal Functions
MSP430C311S, MSP430P315S
48-pin SSOP package
TERMINAL
NAMENO.
CIN24ICounter enable. CIN input enables counter (TPCNT1) (timer/port).
COM0–COM344–47OCommon output pins, COM0–COM3 are used for LCD back planes.
P0.1/RXD12I/OGeneral-purpose digital I/O pin, receive data input port – 8-Bit (timer/counter)
P0.2/TXD13I/OGeneral-purpose digital I/O pin, transmit data output port – 8-Bit (timer/counter)
P0.314I/OGeneral-purpose digital I/O pins, bit 3
P0.415I/OGeneral-purpose digital I/O pins, bit 4
P0.516I/OGeneral-purpose digital I/O pins, bit 5
P0.617I/OGeneral-purpose digital I/O pins, bit 6
R238IInput of second positive analog LCD level (V2) (LCD)
R139IInput of third positive analog LCD level (V3 of V4) (LCD)
RST/NMI4IReset input or nonmaskable interrupt input
S2/O2–S5/O525–28OSegment lines (S2 to S5) or digital output port O2 to O5, group 1 (LCD)
S6/O6–S9/O929–32OSegment lines (S6 to S9) or digital output port O6 to O9, group 2 (LCD)
S10/O10–S13/O1333–36OSegment lines (S10 to S13) or digital output port O10 to O13, group 3 (LCD)
S14/O14–S16/O1637–39OSegment lines (S14 to S17) or digital output port O14 to O17, group 4 (LCD)
S27/O27/CMPI43I/OSegment line (S27) or digital output port O27 group 7, can be used as a comparator input port CMPI
TCK3ITest clock. TCK is a clock input terminal for device programming and test.
TDI/VPP1ITest data input port. TDI/VPP is used as a data input terminal or an input for programming voltage.
TDO/TDI48I/OTest data output port. TDO/TDI is used as a data output terminal or as a data input during
TMS2ITest mode select. TMS is an input terminal for device programming and test.
TP0.019O/ZGeneral-purpose 3-state digital output port, bit 0 (timer/port)
TP0.120O/ZGeneral-purpose 3-state digital output port, bit 1 (timer/port)
TP0.221O/ZGeneral-purpose 3-state digital output port, bit 2 (timer/port)
TP0.322O/ZGeneral-purpose 3-state digital output port, bit 3 (timer/port)
TP0.523I/O/Z General-purpose 3-state digital I/O pin, bit 5 (timer/port)
V
CC
V
SS
XBUF5OClock signal output of system clock (MCLK) or crystal clock (ACLK)
Xin10IInput terminal of crystal oscillator
Xout/TCLK11I/OOutput terminal of crystal oscillator or test clock input
7Supply voltage
6, 41Ground references
(timer/port)
programming.
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
5
MSP430x31x
MIXED SIGNAL MICROCONTROLLERS
SLAS165D – FEBRUARY 1998 – REVISED APRIL 2000
short-form description
processing unit
The processing unit is based on a consistent and orthogonal designed CPU and instruction set. This design
structure results in a RISC-like architecture, highly transparent to the application development and
distinguishable by the 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
Program Counter
Sixteen registers located inside the CPU provide
reduced instruction execution time. This reduces
Stack Pointer
a register-register operation execution time to one
cycle of the processor frequency.
Four registers are reserved for special use as a
Status Register
Constant Generator
program counter, a stack pointer , a status register,
and a constant generator. The remaining ones are
General-Purpose Register
available as general-purpose registers.
Peripherals connected to the CPU using a data
General-Purpose Register
address and control bus can be handled easily
with all instructions for memory manipulation.
instruction set
The instruction set for this register-register
General-Purpose RegisterR14
General-Purpose Register
architecture provides a powerful and easy-to-use
assembly language. The instruction set consists of 51 instructions with three formats and seven addressing
modes. Table 1 provides a summation and example of the three types of instruction formats; the addressing
modes are listed in Table 2.
Table 1. Instruction Word Formats
Dual operands, source-destination e.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
PC/R0
SP/R1
SR/CG1/R2
CG2/R3
R4
R5
R15
Each instruction that operates on word and byte data is identified by the suffix B.
Examples:Instructions for word operationInstructions for byte operation
Computed branches (BR) and subroutine call (CALL) instructions use the same addressing modes as the other
instructions. These addressing modes provide
calls. The full use of this programming capability permits a program structure different from conventional 8- and
16-bit controllers. For example, numerous routines can easily be designed to deal with pointers and stacks
instead of using flag type programs for flow control.
operation modes and interrupts
indirect
addressing, ideally suited for computed branches and
The MSP430 operating modes support various advanced requirements for ultra low-power and ultra-low energy
consumption. This is achieved by the management of the operations during the different module operation
modes and CPU states. The requirements are fully supported during interrupt event handling. An interrupt event
awakens the system from each of the various operating modes and returns with the RETI instruction to the mode
that was selected before the interrupt event. The clocks used are ACLK and MCLK. ACLK is the crystal
frequency and MCLK , a multiple of ACLK, is used as the system clock.
The software can configure five operating modes:
D
Active mode (AM). The CPU is enabled with different combinations of active peripheral modules.
D
Low-power mode 0 (LPM0). The CPU is disabled, peripheral operation continues, ACLK and MCLK signals
are active, and loop control for MCLK is active.
D
Low-power mode 1 (LPM1). The CPU is disabled, peripheral operation continues, ACLK and MCLK signals
are active, and loop control for MCLK is inactive.
D
Low-power mode 2 (LPM2). The CPU is disabled, peripheral operation continues, ACLK signal is active,
and MCLK and loop control for MCLK are inactive.
D
Low-power mode 3 (LPM3). The CPU is disabled, peripheral operation continues, ACLK signal is active,
MCLK and loop control for MCLK are inactive, and the dc generator for the digital controlled oscillator (DCO)
(³MCLK generator) is switched off.
D
Low-power mode 4 (LPM4). The CPU is disabled, peripheral operation continues, ACLK signal is inactive
(crystal oscillator stopped), MCLK and loop control for MCLK are inactive, and the dc generator for the DCO
is switched off.
The special function registers (SFR) include module-enable bits that stop or enable the operation of the specific
peripheral module. All registers of the peripherals may be accessed if the operational function is stopped or
enabled. However, some peripheral current-saving functions are accessed through the state of local register
bits. An example is the enable/disable of the analog voltage generator in the LCD peripheral, which is turned
on or off using one register bit.
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
7
MSP430x31x
P0.1IFG
Maskable
0FFF8h
12
MIXED SIGNAL MICROCONTROLLERS
SLAS165D – FEBRUARY 1998 – REVISED APRIL 2000
operation modes and interrupts (continued)
The most general bits that influence current consumption and support fast turn-on from low power operating
modes are located in the status register (SR). Four of these bits control the CPU and the system clock generator:
SCG1, SCG0, OscOff, and CPUOff.
159870
Reserved For Future
Enhancements
rw-0rw-0rw-0rw-0rw-0rw-0rw-0rw-0rw-0rw-0
interrupt vector addresses
The interrupt vectors and the power-up starting address are located in the ROM with an address range of
0FFFFh-0FFE0h. The vector contains the 16-bit address of the appropriate interrupt handler instruction
sequence.
2. Timer/port interrupt flags are located in the timer/port registers
3. Non maskable: 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 bit cannot.
VSCG1SCG0OscOffCPUOffGIENZC
WDTIFG (see Note 1)
NMIIFG (see Notes 1 and 3)
OFIFG (see Notes 1 and 4)
RC1FG, RC2FG, EN1FG
(see Note 2)
P0.27IFG (see Note 1)
Reset0FFFEh15, highest
Nonmaskable,
(Non)maskable
Maskable0FFEAh5
Maskable0FFE0h0, lowest
0FFFCh14
0FFF6h11
0FFF2h9
0FFF0h8
0FFEEh7
0FFECh6
0FFE8h4
0FFE6h3
0FFE4h2
8
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
MSP430x31x
MIXED SIGNAL MICROCONTROLLERS
SLAS165D – FEBRUARY 1998 – REVISED APRIL 2000
special function registers
Most interrupt and module enable bits are collected into the lowest address space. Special function register bits
that are not allocated to a functional purpose are not physically present in the device. Simple software access
is provided with this arrangement.
interrupt enable 1 and 2
Address
0h
76540
WDTIE: Watchdog Timer enable signal
OFIE:Oscillator fault enable signal
P0IE.0:Dedicated I/O P0.0
P0IE.1:P0.1 or 8-Bit Timer/Counter, RXD
Address
01hBTIE
76540
321
P0IE.1OFIEWDTIE
rw-0rw-0rw-0rw-0
321
P0IE.0
TPIE
rw-0
TPIE: Timer/Port enable signal
BTIE: Basic Timer1 enable signal
interrupt flag register 1 and 2
Address
02hNMIIFGP0IFG.0
76540
rw-0rw-1rw-0
321
P0IFG.1OFIFGWDTIFG
rw-0rw-0
WDTIFG:Set on overflow or security key violation
OR
Reset on VCC power-on or reset condition at RST/NMI-pin
OFIFG:Flag set on oscillator fault
P0.0IFG:Dedicated I/O P0.0
P0.1IFG:P0.1 or 8-Bit Timer/Counter, RXD
NMIIFG:Signal at RST
Address
03hBTIFG
76540
rw
/NMI-pin
321
BTIFG:Basic Timer1 flag
module enable register 1 and 2
Address
04h
76540321
rw-0
Address
05h
Legendrw:
rw-0:
76540321
Bit can be read and written.
Bit can be read and written. It is reset by PUC
SFR bit is not present in device.
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
9
Loading...
+ 21 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.