• 12-Bit Analog-to-Digital Converter (ADC) With
Internal Shared Reference, Sample-and-Hold, and
Autoscan Feature
• Dual 12-Bit Digital-to-Analog Converters (DACs)
With Synchronization
• Voltage Comparator
• Hardware Multiplier Supports 32-Bit Operations
• Serial Onboard Programming, No External
Programming Voltage Needed
• Six-Channel Internal DMA
• RTC Module With Supply Voltage Backup Switch
• Table 3-1 Summarizes the Available Family
Members
• For Complete Module Descriptions, See the
MSP430x5xx and MSP430x6xx Family User's
Guide (SLAU208)
1.2Applications
•Analog and Digital Sensor Systems•Thermostats
•Digital Motor Control•Digital Timers
•Remote Controls•Hand-Held Meters
1
An IMPORTANT NOTICE at the end of this data sheet addresses availability, warranty, changes, use in safety-critical applications,
intellectual property matters and other important disclaimers. PRODUCTION DATA.
The TI MSP430™ family of ultra-low-power microcontrollers consists of several devices featuring different
sets of peripherals targeted for various applications. The architecture, combined with five low-power
modes, is optimized to achieve extended battery life in portable measurement applications. The device
features a powerful 16-bit RISC CPU, 16-bit registers, and constant generators that contribute to
maximum code efficiency. The digitally controlled oscillator (DCO) allows the device to wake up from lowpower modes to active mode in 3 µs (typical).
The MSP430F533x devices are microcontrollers with an integrated 3.3-V LDO, a high-performance 12-bit
ADC, a comparator, two USCIs, a hardware multiplier, DMA, four 16-bit timers, an RTC module with alarm
capabilities, and up to 74 I/O pins.
www.ti.com
Device Information
PART NUMBERPACKAGEBODY SIZE
MSP430F5338IPZLQFP (100)14 mm × 14 mm
MSP430F5338IZQWBGA (113)7 mm × 7 mm
(1) For the most current device, package, and ordering information, see the Package Option Addendum in
Section 8, or see the TI website at www.ti.com.
(2) The sizes shown here are approximations. For the package dimensions with tolerances, see the
Table 3-1 summarizes the available family members.
www.ti.com
Table 3-1. Family Members
USCI
DEVICETimer_A
MSP430F5338256185, 3, 3722212No74
MSP430F5336128185, 3, 3722212No74
MSP430F5335256185, 3, 3722-12No74
MSP430F5333128105, 3, 3722-12No74
FLASHSRAMADC12_A DAC12_AComp_B
(KB)(KB)(Ch)(Ch)(Ch)
(3)
Timer_B
CHANNEL CHANNEL
(4)
A:B:
UART,
IrDA, SPI
SPI, I2C
(1)(2)
USBI/OPACKAGE
12 ext,100 PZ,
4 int113 ZQW
12 ext,100 PZ,
4 int113 ZQW
12 ext,100 PZ,
4 int113 ZQW
12 ext,100 PZ,
4 int113 ZQW
(1) For the most current package and ordering information, see the Package Option Addendum in Section 8, or see the TI website at
www.ti.com.
(2) Package drawings, standard packing quantities, thermal data, symbolization, and PCB design guidelines are available at
www.ti.com/packaging.
(3) Each number in the sequence represents an instantiation of Timer_A with its associated number of capture/compare registers and PWM
output generators available. For example, a number sequence of 3, 5 would represent two instantiations of Timer_A, the first
instantiation having 3 and the second instantiation having 5 capture/compare registers and PWM output generators, respectively.
(4) Each number in the sequence represents an instantiation of Timer_B with its associated number of capture/compare registers and PWM
output generators available. For example, a number sequence of 3, 5 would represent two instantiations of Timer_B, the first
instantiation having 3 and the second instantiation having 5 capture/compare registers and PWM output generators, respectively.
DVCC125L1Digital power supply
DVSS126M1Digital ground supply
(2)
VCORE
27M2Regulated core power supply (internal use only, no external current loading)
P5.228L3I/OGeneral-purpose digital I/O
DVSS29M3Digital ground supply
DNC30J4Do not connect. It is strongly recommended to leave this terminal open.
P5.331L4I/OGeneral-purpose digital I/O
P5.432M4I/OGeneral-purpose digital I/O
P5.533J5I/OGeneral-purpose digital I/O
P1.0/TA0CLK/ACLK34L5I/OTimer TA0 clock signal TACLK input
DMA external trigger input
General-purpose digital I/O with port interrupt and mappable secondary function
Default mapping: USCI_B0 SPI slave transmit enable; USCI_A0 clock input/output
General-purpose digital I/O with port interrupt and mappable secondary function
Default mapping: USCI_B0 SPI slave in/master out; USCI_B0 I2C data
General-purpose digital I/O with port interrupt and mappable secondary function
Default mapping: USCI_B0 SPI slave out/master in; USCI_B0 I2C clock
General-purpose digital I/O with port interrupt and mappable secondary function
Default mapping: USCI_B0 clock input/output; USCI_A0 SPI slave transmit enable
General-purpose digital I/O with port interrupt and mappable secondary function
Default mapping: USCI_A0 UART transmit data; USCI_A0 SPI slave in/master out
General-purpose digital I/O with port interrupt and mappable secondary function
Default mapping: USCI_A0 UART receive data; USCI_A0 slave out/master in
General-purpose digital I/O with port interrupt and mappable secondary function
Default mapping: no secondary function
General-purpose digital I/O with port interrupt and mappable secondary function
Default mapping: no secondary function
General-purpose digital I/O with port interrupt
ACLK output (divided by 1, 2, 4, 8, 16, or 32)
General-purpose digital I/O with port interrupt
BSL transmit output
General-purpose digital I/O with port interrupt
BSL receive input
General-purpose digital I/O with port interrupt
USCI_B1 SPI slave out/master in; USCI_B1 I2C clock
P8.767E12I/OGeneral-purpose digital I/O
P9.068E11I/OGeneral-purpose digital I/O
P9.169F9I/OGeneral-purpose digital I/O
P9.270D12I/OGeneral-purpose digital I/O
P9.371D11I/O
General-purpose digital I/O
P9.472E9I/OGeneral-purpose digital I/O
P9.573C12I/OGeneral-purpose digital I/O
P9.674C11I/OGeneral-purpose digital I/O
P9.775D9I/OGeneral-purpose digital I/O
VSSU76PU ground supply
PU.077A12I/O
B11,
B12
General-purpose digital I/O, controlled by PU control register. Port U is supplied by
the LDOO rail.
NC78B10No connect
PU.179A11I/O
General-purpose digital I/O, controlled by PU control register. Port U is supplied by
over operating free-air temperature range (unless otherwise noted)
MINMAXUNIT
Voltage applied at VCCto V
SS
Voltage applied to any pin (excluding VCORE, VBUS, V18)
(2)
–0.34.1V
–0.3VCC+ 0.3V
Diode current at any device pin±2mA
Maximum junction temperature, T
Storage temperature, T
(3)
stg
J
–55150°C
95°C
(1) 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.
(2) All voltages referenced to VSS. VCORE is for internal device use only. No external DC loading or voltage should be applied.
(3) Higher temperature may be applied during board soldering according to the current JEDEC J-STD-020 specification with peak reflow
temperatures not higher than classified on the device label on the shipping boxes or reels.
5.2ESD Ratings
VALUEUNIT
V
Electrostatic dischargeV
(ESD)
Human-body model (HBM), per ANSI/ESDA/JEDEC JS-001
Charged-device model (CDM), per JEDEC specification JESD22-C101
(1)
(2)
±1000
±250
(1) JEDEC document JEP155 states that 500-V HBM allows safe manufacturing with a standard ESD control process. Pins listed as
±1000 V may actually have higher performance.
(2) JEDEC document JEP157 states that 250-V CDM allows safe manufacturing with a standard ESD control process. Pins listed as ±250 V
may actually have higher performance.
5.3Recommended Operating Conditions
MINNOMMAX UNIT
PMMCOREVx = 01.83.6
V
CC
V
SS
V
BAT,RTC
V
BAT,MEM
T
A
T
J
C
BAK
C
VCORE
C
DVCC
C
VCORE
Supply voltage during program execution and flash
programming (AVCC1 = DVCC1 = DVCC2 = DVCC3 =V
DVCC= VCC)
Backup-supply voltage with backup memory retainedTA= –40°C to +85°C1.203.6V
Operating free-air temperatureI version–4085°C
Operating junction temperatureI version–4085°C
Capacitance at pin VBAK14.710nF
Capacitor at VCORE
(1) TI recommends powering AVCCand DVCCfrom the same source. A maximum difference of 0.3 V between AVCCand DVCCcan be
tolerated during power up and operation.
(2) The minimum supply voltage is defined by the supervisor SVS levels when it is enabled. See the threshold parameters in Section 5.22
for the exact values and further details.
(3) A capacitor tolerance of ±20% or better is required.
(4) The MSP430 CPU is clocked directly with MCLK. Both the high and low phase of MCLK must not exceed the pulse duration of the
specified maximum frequency.
(5) Modules may have a different maximum input clock specification. See the specification of the respective module in this data sheet.
Processor frequency (maximum MCLK frequency)
(see Figure 5-1)
5.4Active Mode Supply Current Into VCCExcluding External Current
over recommended operating free-air temperature (unless otherwise noted)
PARAMETERV
I
AM, Flash
I
AM, RAM
(1) All inputs are tied to 0 V or to VCC. Outputs do not source or sink any current.
(2) The currents are characterized with a Micro Crystal MS1V-T1K crystal with a load capacitance of 12.5 pF. The internal and external load
capacitance are chosen to closely match the required 12.5 pF.
(3) Characterized with program executing typical data processing. LDO disabled (LDOEN = 0).
5.5Low-Power Mode Supply Currents (Into VCC) Excluding External Current
over recommended ranges of supply voltage and operating free-air temperature (unless otherwise noted)
–40°C25°C60°C85°C
TYPMAXTYPMAXTYPMAXTYPMAX
I
LPM0,1MHz
I
LPM2
I
LPM3,XT1LF
PARAMETERV
2.2 V0717587818599
Low-power mode 0
Low-power mode 2
(3)(4)
2.2 V06.36.79.99.01116
(5)(4)
2.2 V11.61.94.86.6
Low-power mode 3,
crystal mode
(6)(4)
PMMCOREVxUNIT
CC
3 V37883988994108
3 V36.67.011101218
01.61.82.44.76.510.5
21.72.04.96.7
01.92.12.75.06.810.8µA
3 V
11.92.15.17.0
22.02.25.27.1
32.02.22.95.47.312.6
(1)(2)
µA
µA
(1) All inputs are tied to 0 V or to VCC. Outputs do not source or sink any current.
(2) The currents are characterized with a Micro Crystal CC4V-T1A SMD crystal with a load capacitance of 9 pF. The internal and external
load capacitance are chosen to closely match the required 9 pF.
(3) Current for watchdog timer clocked by SMCLK included. ACLK = low-frequency crystal operation (XTS = 0, XT1DRIVEx = 0).
= 32768 Hz, PMMREGOFF = 1, RTC in backup domain active
ACLK
= 32768 Hz, PMMREGOFF = 1, RTC in backup domain active, no
ACLK
MCLK
ACLK
= f
= f
MCLK
SMCLK
= f
DCO
= f
DCO
SMCLK
= f
= 0 MHz
= 0 MHz
ACLK
= f
MCLK
www.ti.com
= 0 MHz
5.6Thermal Resistance Characteristics
PARAMETERVALUEUNIT
θ
JA
θ
JC(TOP)
θ
JB
Junction-to-ambient thermal resistance, still air
Junction-to-case (top) thermal resistance
Junction-to-board thermal resistance
(3)
(1)
(2)
(1) The junction-to-ambient thermal resistance under natural convection is obtained in a simulation on a JEDEC-standard, High-K board, as
specified in JESD51-7, in an environment described in JESD51-2a.
(2) The junction-to-case (top) thermal resistance is obtained by simulating a cold plate test on the package top. No specific JEDEC-
standard test exists, but a close description can be found in the ANSI SEMI standard G30-88.
(3) The junction-to-board thermal resistance is obtained by simulating in an environment with a ring cold plate fixture to control the PCB
over recommended ranges of supply voltage and operating free-air temperature (unless otherwise noted)
PARAMETERTEST CONDITIONSV
V
Positive-going input threshold voltageV
IT+
V
Negative-going input threshold voltageV
IT–
V
Input voltage hysteresis (V
hys
R
Pullup or pulldown resistor
Pull
C
Input capacitanceVIN= VSSor V
I
IT+
(2)
– V
)V
IT–
For pullup: VIN= V
For pulldown: VIN= V
SS
CC
CC
CC
1.8 V0.801.40
3 V1.502.10
1.8 V0.451.00
3 V0.751.65
1.8 V0.30.8
3 V0.41.0
(1) Same parametrics apply to clock input pin when crystal bypass mode is used on XT1 (XIN) or XT2 (XT2IN).
(2) Also applies to RST pin when pullup or pulldown resistor is enabled.
5.8Inputs – Ports P1, P2, P3, and P4
(1)
MINTYPMAX UNIT
203550kΩ
over recommended ranges of supply voltage and operating free-air temperature (unless otherwise noted)
PARAMETERTEST CONDITIONSV
t
External interrupt timing
(int)
(2)
Port P1, P2, P3, P4: P1.x to P4.x,
External trigger pulse duration to set interrupt flag
(1) Some devices may contain additional ports with interrupts. See the block diagram and terminal function descriptions.
(2) An external signal sets the interrupt flag every time the minimum interrupt pulse duration t
shorter than t
(int)
.
is met. It may be set by trigger signals
(int)
CC
2.2 V, 3 V20ns
5pF
MINMAX UNIT
5.9Leakage Current – General-Purpose I/O
over recommended ranges of supply voltage and operating free-air temperature (unless otherwise noted)
I
lkg(Px.x)
PARAMETERTEST CONDITIONSV
High-impedance leakage current
(1)(2)
CC
1.8 V, 3 V±50nA
(1) The leakage current is measured with VSSor VCCapplied to the corresponding pin(s), unless otherwise noted.
(2) The leakage of the digital port pins is measured individually. The port pin is selected for input and the pullup or pulldown resistor is
(1) To improve EMI on the XT1 oscillator, the following guidelines should be observed.
• Keep the trace between the device and the crystal as short as possible.
• Design a good ground plane around the oscillator pins.
• Prevent crosstalk from other clock or data lines into oscillator pins XIN and XOUT.
• Avoid running PCB traces underneath or adjacent to the XIN and XOUT pins.
• Use assembly materials and processes that avoid any parasitic load on the oscillator XIN and XOUT pins.
• If conformal coating is used, ensure that it does not induce capacitive/resistive leakage between the oscillator pins.
(2) When XT1BYPASS is set, XT1 circuit is automatically powered down. Input signal is a digital square wave with parametrics defined in
the Schmitt-trigger Inputs section of this datasheet.
(3) Maximum frequency of operation of the entire device cannot be exceeded.
(4) Oscillation allowance is based on a safety factor of 5 for recommended crystals. The oscillation allowance is a function of the
XT1DRIVEx settings and the effective load. In general, comparable oscillator allowance can be achieved based on the following
guidelines, but should be evaluated based on the actual crystal selected for the application:
• For XT1DRIVEx = 0, C
• For XT1DRIVEx = 1, 6 pF ≤ C
• For XT1DRIVEx = 2, 6 pF ≤ C
• For XT1DRIVEx = 3, C
(5) Includes parasitic bond and package capacitance (approximately 2 pF per pin).
L,eff
L,eff
≤ 6 pF.
L,eff
L,eff
≥ 6 pF.
≤ 9 pF.
≤ 10 pF.
Because the PCB adds additional capacitance, TI recommends verifying the correct load by measuring the ACLK frequency. For a
correct setup, the effective load capacitance should always match the specification of the used crystal.
(6) Requires external capacitors at both terminals. Values are specified by crystal manufacturers.
(7) Frequencies below the MIN specification set the fault flag. Frequencies above the MAX specification do not set the fault flag.
Frequencies in between might set the flag.
(8) Measured with logic-level input frequency but also applies to operation with crystals.
over recommended ranges of supply voltage and operating free-air temperature (unless otherwise noted)
PARAMETERTEST CONDITIONSV
f
= 4 MHz, XT2OFF = 0,
OSC
XT2BYPASS = 0, XT2DRIVEx = 0,200
TA= 25°C
f
= 12 MHz, XT2OFF = 0,
OSC
XT2BYPASS = 0, XT2DRIVEx = 1,260
I
DVCC,XT2
XT2 oscillator crystal current
consumption
TA= 25°C
f
= 20 MHz, XT2OFF = 0,
OSC
XT2BYPASS = 0, XT2DRIVEx = 2,325
TA= 25°C
f
= 32 MHz, XT2OFF = 0,
OSC
XT2BYPASS = 0, XT2DRIVEx = 3,450
TA= 25°C
f
XT2,HF0
f
XT2,HF1
f
XT2,HF2
f
XT2,HF3
f
XT2,HF,SW
XT2 oscillator crystal frequency,
mode 0
XT2 oscillator crystal frequency,
mode 1
XT2 oscillator crystal frequency,
mode 2
XT2 oscillator crystal frequency,
mode 3
XT2 oscillator logic-level squarewave input frequency
XT2DRIVEx = 0, XT2BYPASS = 0
XT2DRIVEx = 1, XT2BYPASS = 0
XT2DRIVEx = 2, XT2BYPASS = 0
XT2DRIVEx = 3, XT2BYPASS = 0
XT2BYPASS = 1
(4) (3)
(3)
(3)
(3)
(3)
XT2DRIVEx = 0, XT2BYPASS = 0,
f
XT2,HF0
= 6 MHz, C
L,eff
= 15 pF
XT2DRIVEx = 1, XT2BYPASS = 0,
OA
HF
Oscillation allowance for
HF crystals
(5)
f
XT2DRIVEx = 2, XT2BYPASS = 0,
f
XT2,HF1
XT2,HF2
= 12 MHz, C
= 20 MHz, C
L,eff
L,eff
= 15 pF
= 15 pF
XT2DRIVEx = 3, XT2BYPASS = 0,
t
START,HF
C
L,eff
f
Fault,HF
f
f
XT2BYPASS = 0, XT2DRIVEx = 0,0.5
Start-up time3 Vms
TA= 25°C, C
f
XT2BYPASS = 0, XT2DRIVEx = 3,0.3
TA= 25°C, C
Integrated effective load
capacitance, HF mode
(6) (1)
Duty cycleMeasured at ACLK, f
Oscillator fault frequency
(7)
XT2BYPASS = 1
XT2,HF3
= 6 MHz
OSC
= 20 MHz
OSC
= 32 MHz, C
= 15 pF
L,eff
= 15 pF
L,eff
(8)
= 15 pF
L,eff
= 20 MHz40%50%60%
XT2,HF2
(1) Requires external capacitors at both terminals. Values are specified by crystal manufacturers.
(2) To improve EMI on the XT2 oscillator the following guidelines should be observed.
• Keep the traces between the device and the crystal as short as possible.
• Design a good ground plane around the oscillator pins.
• Prevent crosstalk from other clock or data lines into oscillator pins XT2IN and XT2OUT.
• Avoid running PCB traces underneath or adjacent to the XT2IN and XT2OUT pins.
• Use assembly materials and processes that avoid any parasitic load on the oscillator XT2IN and XT2OUT pins.
• If conformal coating is used, ensure that it does not induce capacitive/resistive leakage between the oscillator pins.
(3) Maximum frequency of operation of the entire device cannot be exceeded.
(4) When XT2BYPASS is set, the XT2 circuit is automatically powered down.
(5) Oscillation allowance is based on a safety factor of 5 for recommended crystals.
(6) Includes parasitic bond and package capacitance (approximately 2 pF per pin).
Because the PCB adds additional capacitance, TI recommends verifying the correct load by measuring the ACLK frequency. For a
correct setup, the effective load capacitance should always match the specification of the used crystal.
(7) Frequencies below the MIN specification set the fault flag. Frequencies above the MAX specification do not set the fault flag.
Frequencies in between might set the flag.
(8) Measured with logic-level input frequency but also applies to operation with crystals.
over recommended ranges of supply voltage and operating free-air temperature (unless otherwise noted)
PARAMETERTEST CONDITIONSV
f
VLO
df
VLO/dT
df
VLO
VLO frequencyMeasured at ACLK1.8 V to 3.6 V69.414kHz
VLO frequency temperature driftMeasured at ACLK
/dVCCVLO frequency supply voltage driftMeasured at ACLK
(1)
(2)
CC
1.8 V to 3.6 V0.5%/°C
1.8 V to 3.6 V4%/V
Duty cycleMeasured at ACLK1.8 V to 3.6 V40%50%60%
(1) Calculated using the box method: (MAX(–40°C to +85°C) – MIN(–40°C to +85°C)) / MIN(–40°C to +85°C) / (85°C – (–40°C))
(2) Calculated using the box method: (MAX(1.8 V to 3.6 V) – MIN(1.8 V to 3.6 V)) / MIN(1.8 V to 3.6 V) / (3.6 V – 1.8 V)
over recommended ranges of supply voltage and operating free-air temperature (unless otherwise noted)
I
REFO
PARAMETERTEST CONDITIONSV
REFO oscillator current
consumption
TA= 25°C1.8 V to 3.6 V3µA
CC
REFO frequency calibratedMeasured at ACLK1.8 V to 3.6 V32768Hz
f
REFO
df
REFO/dT
df
REFO
/dV
REFO absolute tolerance
calibrated
REFO frequency temperature driftMeasured at ACLK
REFO frequency supply voltage
CC
drift
Full temperature range1.8 V to 3.6 V±3.5%
TA= 25°C3 V±1.5%
Measured at ACLK
(1)
(2)
1.8 V to 3.6 V0.01%/°C
1.8 V to 3.6 V1.0%/V
Duty cycleMeasured at ACLK1.8 V to 3.6 V40%50%60%
t
START
REFO start-up time40%/60% duty cycle1.8 V to 3.6 V25µs
(1) Calculated using the box method: (MAX(–40°C to +85°C) – MIN(–40°C to +85°C)) / MIN(–40°C to +85°C) / (85°C – (–40°C))
(2) Calculated using the box method: (MAX(1.8 V to 3.6 V) – MIN(1.8 V to 3.6 V)) / MIN(1.8 V to 3.6 V) / (3.6 V – 1.8 V)
SVMLE = 1, dV
SVMLE = 1, dV
SVMLE = 0→1, SVMLFP = 112.5
SVMLE = 0→1, SVMLFP = 0100
/dt = 10 mV/µs, SVMLFP = 12.5
CORE
/dt = 1 mV/µs, SVMLFP = 020
CORE
nA
nA
5.26 Wake-up Times From Low-Power Modes and Reset
over recommended ranges of supply voltage and operating free-air temperature (unless otherwise noted)
PARAMETERTEST CONDITIONSMINTYPMAX UNIT
f
≥ 4 MHz36.5
t
WAKE-UP-FAST
LPM3, or LPM4 to active(where n = 0, 1, 2, or 3),µs
(1)
mode
SVSLFP = 1
Wake-up time from LPM2,PMMCOREV = SVSMLRRL = n
Wake-up time from LPM2,PMMCOREV = SVSMLRRL = n
t
WAKE-UP-SLOW
t
WAKE-UP-LPM5
t
WAKE-UP-RESET
LPM3 or LPM4 to active(where n = 0, 1, 2, or 3),150165µs
(2)
mode
Wake-up time from LPM3.5 or
LPM4.5 to active mode
(3)
Wake-up time from RST or
BOR event to active mode
SVSLFP = 0
(3)
(1) This value represents the time from the wake-up event to the first active edge of MCLK. The wake-up time depends on the performance
mode of the low-side supervisor (SVSL) and low-side monitor (SVML). Fastest wake-up times are possible with SVSLand SVMLin full
performance mode or disabled when operating in AM, LPM0, and LPM1. Various options are available for SVSLand SVMLwhile
operating in LPM2, LPM3, and LPM4. See the Power Management Module and Supply Voltage Supervisor chapter in the MSP430x5xxand MSP430x6xx Family User's Guide (SLAU208).
(2) This value represents the time from the wake-up event to the first active edge of MCLK. The wake-up time depends on the performance
mode of the low-side supervisor (SVSL) and low-side monitor (SVML). In this case, the SVSLand SVMLare in normal mode (low
current) mode when operating in AM, LPM0, and LPM1. Various options are available for SVSLand SVMLwhile operating in LPM2,
LPM3, and LPM4. See the Power Management Module and Supply Voltage Supervisor chapter in the MSP430x5xx and MSP430x6xxFamily User's Guide (SLAU208).
(3) This value represents the time from the wake-up event to the reset vector execution.
5.34 12-Bit ADC, Power Supply and Input Range Conditions
over recommended ranges of supply voltage and operating free-air temperature (unless otherwise noted)
PARAMETERTEST CONDITIONSV
AVCC and DVCC are connected together,
AV
CC
V
(Ax)
I
ADC12_A
C
I
R
I
Analog supply voltageAVSS and DVSS are connected together,2.23.6V
V(AVSS) = V(DVSS) = 0 V
Analog input voltage range
Operating supply current into
AVCCterminal
(3)
Input capacitance2.2 V2025pF
(2)
All ADC12 analog input pins Ax0AV
f
ADC12CLK
= 5 MHz
(4)
Only one terminal Ax can be selected at one
time
Input MUX ON resistance0 V ≤ VIN ≤ V(AVCC)102001900Ω
(1) The leakage current is specified by the digital I/O input leakage.
(2) The analog input voltage range must be within the selected reference voltage range VR+to VR–for valid conversion results. If the
reference voltage is supplied by an external source or if the internal voltage is used and REFOUT = 1, then decoupling capacitors are
required. See Section 5.40 and Section 5.41.
(3) The internal reference supply current is not included in current consumption parameter I
(4) ADC12ON = 1, REFON = 0, SHT0 = 0, SHT1 = 0, ADC12DIV = 0
CC
2.2 V150200
3 V150250
.
ADC12
(1)
MINTYPMAX UNIT
V
CC
µA
5.35 12-Bit ADC, Timing Parameters
over recommended ranges of supply voltage and operating free-air temperature (unless otherwise noted)
PARAMETERTEST CONDITIONSV
CC
For specified performance of ADC12 linearity
f
ADC12CLK
f
ADC12OSC
t
CONVERT
t
Sample
parameters using an external reference voltage or0.454.85.0
AVCC as reference
SREF0 = 0. The specified performance of the ADC12 linearity is ensured when using the ADC12OSC. For other clock sources, the
specified performance of the ADC12 linearity is ensured with f
(3) SREF2 = 0, SREF1 = 1, SREF0 = 0, ADC12SR = 0, REFOUT = 0. The specified performance of the ADC12 linearity is ensured when
using the ADC12OSC divided by 2.
(4) The ADC12OSC is sourced directly from MODOSC inside the UCS.
(5) 13 × ADC12DIV × 1/f
(6) Approximately 10 Tau (τ) are needed to get an error of less than ±0.5 LSB:
t
Sample
= ln(2
n+1
ADC12CLK
) x (RS+ RI) × CI+ 800 ns, where n = ADC resolution = 12, RS= external source resistance
5.36 12-Bit ADC, Linearity Parameters Using an External Reference Voltage
over recommended ranges of supply voltage and operating free-air temperature (unless otherwise noted)
PARAMETERTEST CONDITIONSV
E
I
E
D
E
O
E
G
E
T
Integral
linearity error
Differential
linearity error
Offset error
Gain error
(1)
(1)
(3)
(3)(2)
Total unadjusted
error
1.4 V ≤ dVREF ≤ 1.6 V
1.6 V < dVREF
(2)
dVREF ≤ 2.2 V
dVREF > 2.2 V
dVREF ≤ 2.2 V
dVREF > 2.2 V
(2)
(2)
(2)
(2)
(2)
(2)
CC
2.2 V, 3 VLSB
2.2 V, 3 V±1LSB
2.2 V, 3 V±3±5.6
2.2 V, 3 V±1.5±3.5
2.2 V, 3 V±1±2.5LSB
2.2 V, 3 V±3.5±7.1
2.2 V, 3 V±2±5
(1) Parameters are derived using the histogram method.
(2) The external reference voltage is selected by: SREF2 = 0 or 1, SREF1 = 1, SREF0 = 0. dVREF = VR+- VR-. VR+< AVCC. VR-> AVSS.
Unless otherwise mentioned, dVREF > 1.5 V. Impedance of the external reference voltage R < 100 Ω, and two decoupling capacitors,
10 µF and 100 nF, should be connected to VREF+/VREF- to decouple the dynamic current. See also the MSP430F5xx and
MSP430F6xx Family User's Guide (SLAU208).
(3) Parameters are derived using a best fit curve.
MINTYPMAX UNIT
±2
±1.7
LSB
LSB
5.37 12-Bit ADC, Linearity Parameters Using AVCC as Reference Voltage
over recommended ranges of supply voltage and operating free-air temperature (unless otherwise noted)
PARAMETERTEST CONDITIONSV
E
E
E
E
E
Integral linearity error
I
Differential linearity error
D
Offset error
O
Gain error
G
Total unadjusted errorSee
T
(3)
(3)
(1)
(1)
See
See
See
See
(2)
(2)
(2)
(2)
(2)
(1) Parameters are derived using the histogram method.
(2) AVCC as reference voltage is selected by: SREF2 = 0, SREF1 = 0, SREF0 = 0.
(3) Parameters are derived using a best fit curve.
CC
2.2 V, 3 V±1.7LSB
2.2 V, 3 V±1LSB
2.2 V, 3 V±1±2LSB
2.2 V, 3 V±2±4LSB
2.2 V, 3 V±2±5LSB
MINTYPMAX UNIT
5.38 12-Bit ADC, Linearity Parameters Using the Internal Reference Voltage
over recommended ranges of supply voltage and operating free-air temperature (unless otherwise noted)
(1) The external reference voltage is selected by: SREF2 = 0, SREF1 = 0, SREF0 = 1. dVREF = VR+- VR-.
(2) Parameters are derived using the histogram method.
(3) Parameters are derived using a best fit curve.
(4) The gain error and the total unadjusted error are dominated by the accuracy of the integrated reference module absolute accuracy. In
this mode the reference voltage used by the ADC12_A is not available on a pin.
5.39 12-Bit ADC, Temperature Sensor and Built-In V
MID
over recommended ranges of supply voltage and operating free-air temperature (unless otherwise noted)
PARAMETERTEST CONDITIONSV
V
SENSOR
TC
SENSOR
t
SENSOR(sample)
V
MID
t
VMID(sample)
(1)
See
Temperature coefficient of sensor ADC12ON = 1, INCH = 0AhmV/°C
Sample time required ifADC12ON = 1, INCH = 0Ah,
channel 10 is selected
(2)(3)
AVCCdivider at channel 11V
Sample time required ifADC12ON = 1, INCH = 0Bh,
channel 11 is selected
(4)
ADC12ON = 1, INCH = 0Ah,
TA= 0°C
Error of conversion result ≤ 1 LSB
ADC12ON = 1, INCH = 0Bh,
V
is approximately 0.5 × V
MID
AVCC
Error of conversion result ≤ 1 LSB
(1) The temperature sensor is provided by the REF module. See the REF module parametric, I
the temperature sensor.
CC
2.2 V680
3 V680
2.2 V2.25
3 V2.25
2.2 V100
3 V100
2.2 V1.061.11.14
3 V1.461.51.54
2.2 V, 3 V1000ns
, regarding the current consumption of
REF+
(2) The temperature sensor offset can be significant. A single-point calibration is recommended to minimize the offset error of the built-in
temperature sensor. The TLV structure contains calibration values for 30°C ±3°C and 85°C ±3°C for each of the available reference
voltage levels. The sensor voltage can be computed as V
V
Guide (SLAU208).
can be computed from the calibration values for higher accuracy. See also the MSP430F5xx and MSP430F6xx Family User's
SENSOR
SENSE
= TC
× (Temperature,°C) + V
SENSOR
(3) The typical equivalent impedance of the sensor is 51 kΩ. The sample time required includes the sensor-on time t
(4) The on-time t
over recommended ranges of supply voltage and operating free-air temperature (unless otherwise noted)
PARAMETERTEST CONDITIONSV
V
eREF+
V
REF-/VeREF-
V
–Differential external
eREF+
V
REF-/VeREF-
I
, I
VeREF+
/VeREF-
C
VREF-
VREF+/-
Positive external
reference voltage input
Negative external
reference voltage input
reference voltage input
Static input currentµA
Capacitance at VREF+
or VREF- terminal
V
> V
eREF+
V
eREF+
V
eREF+
1.4 V ≤ V
f
ADC12CLK
Conversion rate 200 ksps
1.4 V ≤ V
f
ADC12CLK
Conversion rate 20 ksps
(5)
REF-/VeREF-
> V
REF-/VeREF-
> V
REF-/VeREF-
eREF+
= 5 MHz, ADC12SHTx = 1h,2.2 V, 3 V–2626
eREF+
= 5 MHZ, ADC12SHTx = 8h,2.2 V, 3 V–1.2+1.2
≤ V
≤ V
AVCC
AVCC
(2)
(3)
(4)
, V
, V
eREF-
eREF-
= 0 V,
= 0 V,
(1) The external reference is used during ADC conversion to charge and discharge the capacitance array. The input capacitance, Ci, is also
the dynamic load for an external reference during conversion. The dynamic impedance of the reference supply should follow the
recommendations on analog-source impedance to let the charge settle for 12-bit accuracy.
(2) The accuracy limits the minimum positive external reference voltage. Lower reference voltage levels may be applied with reduced
accuracy requirements.
(3) The accuracy limits the maximum negative external reference voltage. Higher reference voltage levels may be applied with reduced
accuracy requirements.
(4) The accuracy limits minimum external differential reference voltage. Lower differential reference voltage levels may be applied with
reduced accuracy requirements.
(5) Two decoupling capacitors, 10 µF and 100 nF, should be connected to VREF to decouple the dynamic current required for an external
reference source if it is used for the ADC12_A. See also the MSP430x5xx and MSP430x6xx Family User's Guide (SLAU208).
Capacitance at VREF+REFON = REFOUT = 1,
terminal0 mA ≤ I
Temperature coefficientI
of built-in reference
Temperature coefficientI
of built-in reference
(7)
(7)
Power supply rejection
ratio (DC)
Power supply rejection
ratio (AC)
Settling time of reference
(8)
voltage
= +10 µA , –1000 µA
VREF+
AVCC= AV
REFVSEL = {0, 1, 2}, REFON = REFOUT = 1
VREF+
is a constant in the rangeppm/
VREF+
of 0 mA ≤ I
is a constant in the rangeppm/
VREF+
of 0 mA ≤ I
AVCC= AV
for each reference level,
CC(min)
(6)
≤ I
(max)
VREF+
≤ –1 mA°C
VREF+
≤ –1 mA°C
VREF+
through AV
CC(min)
REFOUT = 02.2 V, 3 V20
REFOUT = 12.2 V, 3 V2050
,
CC(max)
REFOUT = 0 or 1
AVCC= AV
CC(min)
through AV
CC(max)
,
REFOUT = 0 or 1
AVCC= AV
REFVSEL = {0, 1, 2}, REFOUT = 0,75
CC(min)
through AV
CC(max)
,
REFON = 0 → 1
AVCC= AV
C
= C
VREF
REFVSEL = {0, 1, 2}, REFOUT = 1,
CC(min)
VREF
through AV
(max),
CC(max)
,
REFON = 0 → 1
(1) The reference is supplied to the ADC by the REF module and is buffered locally inside the ADC. The ADC uses two internal buffers, one
smaller and one larger for driving the V
used as the reference for the conversion and uses the larger buffer. When REFOUT = 0, the reference is only used as the reference for
terminal. When REFOUT = 1, the reference is available at the V
REF+
the conversion and uses the smaller buffer.
(2) The internal reference current is supplied by the AVCC terminal. Consumption is independent of the ADC12ON control bit, unless a
conversion is active. REFOUT = 0 represents the current contribution of the smaller buffer. REFOUT = 1 represents the current
contribution of the larger buffer without external load.
(3) The temperature sensor is provided by the REF module. Its current is supplied by terminal AVCC and is equivalent to I
REFON = 1 and REFOUT = 0.
(4) For devices without the ADC12, the parametric with ADC12SR = 0 are applicable.
(5) Contribution only due to the reference and buffer including package. This does not include resistance due to PCB traces or other
external factors.
(6) Connect two decoupling capacitors, 10 µF and 100 nF, to VREF to decouple the dynamic current required for an external reference
source if it is used for the ADC12_A. See also the MSP430x5xx and MSP430x6xx Family User's Guide (SLAU208).
(7) Calculated using the box method: (MAX(–40°C to +85°C) – MIN(–40°C to +85°C)) / MIN(–40°C to +85°C)/(85°C – (–40°C)).
(8) The condition is that the error in a conversion started after t
capacitive load when REFOUT = 1.
is less than ±0.5 LSB. The settling time depends on the external
(1) No load at the output pin, DAC12_0 or DAC12_1, assuming that the control bits for the shared pins are set properly.
(2) Current into reference terminals not included. If DAC12IR = 1 current flows through the input divider; see Reference Input specifications.
(3) PSRR = 20 log (ΔAVCC/ ΔV
(4) The internal reference is not used.
DAC12_xOUT
)
MINTYPMAX UNIT
µA
dB
5.43 12-Bit DAC, Linearity Specifications
over recommended ranges of supply voltage and operating free-air temperature (unless otherwise noted) (see Figure 5-17)
(4) The offset calibration can be done if DAC12AMPx = {2, 3, 4, 5, 6, 7}. The output operational amplifier is switched off with DAC12AMPx =
{0, 1}. TI recommends configuring the DAC12 module before initiating calibration. Port activity during calibration may effect accuracy
and is not recommended.
MINTYPMAX UNIT
ppm
FSR/
°C
Figure 5-17. Linearity Test Load Conditions and Gain/Offset Definition
over recommended ranges of supply voltage and operating free-air temperature (unless otherwise noted)
PARAMETERTEST CONDITIONSV
VeREF+2.2 V, 3 VV
Reference input voltage
range
DAC12IR = 0
DAC12IR = 1
(1) (2)
(3) (4)
CC
DAC12_0 IR = DAC12_1 IR = 020MΩ
Ri
(VREF+)
Ri
(VeREF+)
,
Reference input resistance
DAC12_0 IR = 1, DAC12_1 IR = 048
(5)
DAC12_0 IR = 0, DAC12_1 IR = 148
DAC12_0 IR = DAC12_1 IR = 1,
DAC12_0 SREFx = DAC12_1 SREFx
(6)
2.2 V, 3 V
(1) For a full-scale output, the reference input voltage can be as high as 1/3 of the maximum output voltage swing (AVCC).
(2) The maximum voltage applied at reference input voltage terminal VeREF+ = (AVCC– V
(3) For a full-scale output, the reference input voltage can be as high as the maximum output voltage swing (AVCC).
(4) The maximum voltage applied at reference input voltage terminal VeREF+ = (AVCC– V
(5) This impedance depends on tradeoff in power savings. Current devices have 48 kΩ for each channel when divide is enabled. Can be
) / (3 × (1 + EG)).
E(O)
) / (1 + EG).
E(O)
increased if performance can be maintained.
(6) When DAC12IR = 1 and DAC12SREFx = 0 or 1 for both channels, the reference input resistive dividers for each DAC are in parallel
reducing the reference input resistance.
MINTYPMAX UNIT
AV
AV
AV
CC
/ 3+ 0.2
CC
AV
+ 0.2
CC
CC
24
5.46 12-Bit DAC, Dynamic Specifications
V
= VCC, DAC12IR = 1 (see Figure 5-19 and Figure 5-20), over recommended ranges of supply voltage and operating free-
over recommended ranges of supply voltage and operating free-air temperature (unless otherwise noted)
PARAMETERTEST CONDITIONSMINTYPMAX UNIT
DV
CC(PGM/ERASE)
I
PGM
I
ERASE
I
, I
MERASE
t
CPT
t
Retention
t
Word
t
Block, 0
t
Block, 1–(N–1)
t
Block, N
t
Seg Erase
f
MCLK,MRG
BANK
(1) The cumulative program time must not be exceeded when writing to a 128-byte flash block. This parameter applies to all programming
methods: individual word or byte write and block write modes.
(2) These values are hardwired into the flash controller state machine.
Program and erase supply voltage1.83.6V
Average supply current from DVCC during program35mA
Average supply current from DVCC during erase611mA
Average supply current from DVCC during mass erase or
bank erase
Cumulative program timeSee
(1)
Program and erase endurance10
4
10
611mA
16ms
5
cycles
Data retention durationTJ= 25°C100years
See
See
(2)
(2)
(2)
(2)
(2)
6485µs
4965µs
3749µs
5573µs
2332ms
01MHz
Word or byte program timeSee
Block program time for first byte or wordSee
Block program time for each additional byte or word, except
for last byte or word
Block program time for last byte or wordSee
Erase time for segment, mass erase, and bank erase when
available
MCLK frequency in marginal read mode
(FCTL4.MRG0 = 1 or FCTL4.MRG1 = 1)
5.52 JTAG and Spy-Bi-Wire Interface
over recommended ranges of supply voltage and operating free-air temperature (unless otherwise noted)
PARAMETERMINTYPMAXUNIT
f
SBW
t
SBW,Low
t
SBW, En
t
SBW,Rst
f
TCK
R
internal
Spy-Bi-Wire input frequency2.2 V, 3 V020MHz
Spy-Bi-Wire low clock pulse duration2.2 V, 3 V0.02515µs
Spy-Bi-Wire enable time (TEST high to acceptance of first clock edge)
Spy-Bi-Wire return to normal operation time15100µs
TCK input frequency (4-wire JTAG)
(2)
Internal pulldown resistance on TEST2.2 V, 3 V456080kΩ
(1) Tools that access the Spy-Bi-Wire interface must wait for the t
first SBWTCK clock edge.
(2) f
may be restricted to meet the timing requirements of the module selected.
TCK
(1)
time after pulling the TEST/SBWTCK pin high before applying the
The MSP430F533x devices include an integrated 3.3-V LDO, a high-performance 12-bit ADC, a
comparator, two USCIs, a hardware multiplier, DMA, four 16-bit timers, an RTC module with alarm
capabilities, and up to 74 I/O pins.
6.2CPU
The MSP430 CPU has a 16-bit RISC architecture that is highly transparent to the application. All
operations, other than program-flow instructions, are performed as register operations in conjunction with
seven addressing modes for source operand and four addressing modes for destination operand.
The CPU is integrated with 16 registers that provide reduced instruction execution time. The register-toregister operation execution time is one cycle of the CPU clock.
Four of the registers, R0 to R3, are dedicated as program counter, stack pointer, status register, and
constant generator, respectively. The remaining registers are general-purpose registers (see Figure 6-1).
Peripherals are connected to the CPU using data, address, and control buses. Peripherals can be
managed with all instructions.
The instruction set consists of the original 51 instructions with three formats and seven address modes
and additional instructions for the expanded address range. Each instruction can operate on word and
byte data. Table 6-1 shows examples of the three types of instruction formats; Table 6-2 shows the
address modes.
Table 6-1. Instruction Word Formats
INSTRUCTION WORD FORMATEXAMPLEOPERATION
Dual operands, source-destinationADD R4,R5R4 + R5 → R5
Single operands, destination onlyCALL R8PC → (TOS), R8 → PC
Relative jump, un/conditionalJNEJump-on-equal bit = 0
These devices have one active mode and seven software-selectable low-power modes of operation. An
interrupt event can wake up the device from any of the low-power modes, service the request, and restore
back to the low-power mode on return from the interrupt program.
Software can configure the following operating modes:
•Active mode (AM)
– All clocks are active
•Low-power mode 0 (LPM0)
– CPU is disabled
– ACLK and SMCLK remain active, MCLK is disabled
– FLL loop control remains active
•Low-power mode 1 (LPM1)
– CPU is disabled
– FLL loop control is disabled
– ACLK and SMCLK remain active, MCLK is disabled
•Low-power mode 2 (LPM2)
– CPU is disabled
– MCLK, FLL loop control, and DCOCLK are disabled
– DC generator of the DCO remains enabled
– ACLK remains active
•Low-power mode 3 (LPM3)
– CPU is disabled
– MCLK, FLL loop control, and DCOCLK are disabled
– DC generator of the DCO is disabled
– ACLK remains active
•Low-power mode 4 (LPM4)
– CPU is disabled
– ACLK is disabled
– MCLK, FLL loop control, and DCOCLK are disabled
– DC generator of the DCO is disabled
– Crystal oscillator is stopped
– Complete data retention
•Low-power mode 3.5 (LPM3.5)
– Internal regulator disabled
– No data retention
– RTC enabled and clocked by low-frequency oscillator
– Wake-up signal from RST/NMI, RTC_B, P1, P2, P3, and P4
•Low-power mode 4.5 (LPM4.5)
– Internal regulator disabled
– No data retention
– Wake-up signal from RST/NMI, P1, P2, P3, and P4
The interrupt vectors and the power-up start address are located in the address range 0FFFFh to 0FF80h.
The vector contains the 16-bit address of the appropriate interrupt-handler instruction sequence (see
Table 6-3).
Table 6-3. Interrupt Sources, Flags, and Vectors of MSP430F533x Configurations
(1) Multiple source flags
(2) A reset is generated if the CPU tries to fetch instructions from within peripheral space or vacant memory space.
(Non)maskable: the individual interrupt-enable bit can disable an interrupt event, but the general-interrupt enable cannot disable it.
(3) Interrupt flags are located in the module.
(4) Only on devices with peripheral module DAC12_A, otherwise reserved.
The BSL enables users to program the flash memory or RAM using a UART serial interfaces. Access to
the device memory by the BSL is protected by an user-defined password. Use of the BSL requires
external access to six pins (see Table 6-5). BSL entry requires a specific entry sequence on the
RST/NMI/SBWTDIO and TEST/SBWTCK pins. For complete description of the features of the BSL and its
implementation, see MSP430 Programming With the Bootloader (BSL) (SLAU319).
Table 6-5. UART BSL Pin Requirements and Functions
The MSP430 family supports the standard JTAG interface which requires four signals for sending and
receiving data. The JTAG signals are shared with general-purpose I/O. The TEST/SBWTCK pin is used to
enable the JTAG signals. In addition to these signals, the RST/NMI/SBWTDIO is required to interface with
MSP430 development tools and device programmers. Table 6-6 lists the JTAG pin requirements. For
further details on interfacing to development tools and device programmers, see the MSP430™ HardwareTools User's Guide (SLAU278). For a complete description of the features of the JTAG interface and its
implementation, see MSP430 Programming Via the JTAG Interface (SLAU320).
Table 6-6. JTAG Pin Requirements and Functions
DEVICE SIGNALDIRECTIONFUNCTION
PJ.3/TCKINJTAG clock input
PJ.2/TMSINJTAG state control
PJ.1/TDI/TCLKINJTAG data input, TCLK input
PJ.0/TDOOUTJTAG data output
TEST/SBWTCKINEnable JTAG pins
RST/NMI/SBWTDIOINExternal reset
VCCPower supply
VSSGround supply
6.8.2Spy-Bi-Wire Interface
In addition to the standard JTAG interface, the MSP430 family supports the two wire Spy-Bi-Wire
interface. Spy-Bi-Wire can be used to interface with MSP430 development tools and device programmers.
Table 6-7 lists the Spy-Bi-Wire interface pin requirements. For further details on interfacing to
development tools and device programmers, see the MSP430 Hardware Tools User's Guide (SLAU278).
For a complete description of the features of the JTAG interface and its implementation, see MSP430Programming Via the JTAG Interface (SLAU320).
Table 6-7. Spy-Bi-Wire Pin Requirements and Functions
DEVICE SIGNALDIRECTIONFUNCTION
TEST/SBWTCKINSpy-Bi-Wire clock input
RST/NMI/SBWTDIOIN, OUTSpy-Bi-Wire data input/output
VCCPower supply
VSSGround supply
6.9Flash Memory (Link to User's Guide)
The flash memory can be programmed by the JTAG port, Spy-Bi-Wire (SBW), the BSL, or in-system by
the CPU. The CPU can perform single-byte, single-word, and long-word writes to the flash memory.
Features of the flash memory include:
•Flash memory has n segments of main memory and four segments of information memory (A to D) of
128 bytes each. Each segment in main memory is 512 bytes in size.
•Segments 0 to n may be erased in one step, or each segment may be individually erased.
•Segments A to D can be erased individually, or as a group with segments 0 to n. Segments A to D are
also called information memory.
The RAM is made up of n sectors. Each sector can be completely powered down to save leakage;
however, all data is lost. Features of the RAM include:
•RAM has n sectors. The size of a sector can be found in Memory Organization.
•Each sector 0 to n can be complete disabled; however, data retention is lost.
•Each sector 0 to n automatically enters low power retention mode when possible.
6.11 Backup RAM
The backup RAM provides a limited number of bytes of RAM that are retained during LPMx.5 and during
operation from a backup supply if the Battery Backup System module is implemented.
There are 8 bytes of backup RAM available on MSP430F533x. It can be wordwise accessed by the
control registers BAKMEM0, BAKMEM1, BAKMEM2, and BAKMEM3.
6.12 Peripherals
Peripherals are connected to the CPU through data, address, and control buses and can be handled using
all instructions. For complete module descriptions, see the MSP430x5xx and MSP430x6xx Family User'sGuide (SLAU208).
Up to nine 8-bit I/O ports are implemented: P1 through P6, P8, and P9 are complete, P7 contains six
individual I/O ports, and PJ contains four individual I/O ports.
•All individual I/O bits are independently programmable.
•Any combination of input, output, and interrupt conditions is possible.
•Programmable pullup or pulldown on all ports.
•Programmable drive strength on all ports.
•Edge-selectable interrupt input capability for all the eight bits of ports P1, P2, P3, and P4.
•Read and write access to port-control registers is supported by all instructions.
•Ports can be accessed byte-wise (P1 through P9) or word-wise in pairs (PA through PD).
6.12.2 Port Mapping Controller (Link to User's Guide)
The port mapping controller allows the flexible and reconfigurable mapping of digital functions to port P2.
Table 6-8 lists the mnemonic for each function that can be assigned.
Table 6-8. Port Mapping Mnemonics and Functions
VALUEPxMAPy MNEMONICINPUT PIN FUNCTIONOUTPUT PIN FUNCTION
6.12.3 Oscillator and System Clock (Link to User's Guide)
The clock system is supported by the Unified Clock System (UCS) module that includes support for a 32kHz watch crystal oscillator (in XT1 LF mode; XT1 HF mode is not supported), an internal very-low-power
low-frequency oscillator (VLO), an internal trimmed low-frequency oscillator (REFO), an integrated internal
digitally controlled oscillator (DCO), and a high-frequency crystal oscillator XT2. The UCS module is
designed to meet the requirements of both low system cost and low power consumption. The UCS module
features digital frequency locked loop (FLL) hardware that, in conjunction with a digital modulator,
stabilizes the DCO frequency to a programmable multiple of the watch crystal frequency. The internal
DCO provides a fast turnon clock source and stabilizes in 3 µs (typical). The UCS module provides the
following clock signals:
•Auxiliary clock (ACLK), sourced from a 32-kHz watch crystal (XT1), a high-frequency crystal (XT2), the
internal low-frequency oscillator (VLO), the trimmed low-frequency oscillator (REFO), or the internal
digitally-controlled oscillator DCO.
•Main clock (MCLK), the system clock used by the CPU. MCLK can be sourced by same sources
available to ACLK.
•Sub-Main clock (SMCLK), the subsystem clock used by the peripheral modules. SMCLK can be
sourced by same sources available to ACLK.
•ACLK/n, the buffered output of ACLK, ACLK/2, ACLK/4, ACLK/8, ACLK/16, ACLK/32.
6.12.4 Power-Management Module (PMM) (Link to User's Guide)
The PMM includes an integrated voltage regulator that supplies the core voltage to the device and
contains programmable output levels to provide for power optimization. The PMM also includes supply
voltage supervisor (SVS) and supply voltage monitoring (SVM) circuitry, as well as brownout protection.
The brownout circuit is implemented to provide the proper internal reset signal to the device during poweron and power-off. The SVS and SVM circuitry detects if the supply voltage drops below a user-selectable
level and supports both supply voltage supervision (the device is automatically reset) and supply voltage
monitoring (the device is not automatically reset). SVS and SVM circuitry is available on the primary
supply and core supply.
6.12.5 Hardware Multiplier (MPY) (Link to User's Guide)
The multiplication operation is supported by a dedicated peripheral module. The module performs
operations with 32-, 24-, 16-, and 8-bit operands. The module supports signed and unsigned multiplication
as well as signed and unsigned multiply-and-accumulate operations.
6.12.6 Real-Time Clock (RTC_B) (Link to User's Guide)
The RTC_B module can be configured for real-time clock (RTC) or calendar mode providing seconds,
minutes, hours, day of week, day of month, month, and year. Calendar mode integrates an internal
calendar which compensates for months with less than 31 days and includes leap year correction. The
RTC_B also supports flexible alarm functions and offset-calibration hardware. The implementation on this
device supports operation in LPM3.5 mode and operation from a backup supply.
The application report Using the MSP430 RTC_B Module With Battery Backup Supply (SLAA665)
describes how to use the RTC_B with battery backup supply functionality to retain the time and keep the
RTC counting through loss of main power supply, and how to perform correct reinitialization when the
main power supply is restored.
6.12.7 Watchdog Timer (WDT_A) (Link to User's Guide)
The primary function of the WDT_A module is to perform a controlled system restart after a software
problem occurs. If the selected time interval expires, a system reset is generated. If the watchdog function
is not needed in an application, the module can be configured as an interval timer and can generate
interrupts at selected time intervals.
The SYS module handles many of the system functions within the device. These include power-on reset
and power-up clear handling, NMI source selection and management, reset interrupt vector generators,
bootloader entry mechanisms, and configuration management (device descriptors). SYS also includes a
data exchange mechanism through JTAG called a JTAG mailbox that can be used in the application.
Table 6-10 lists the SYS interrupt vector registers.
Table 6-10. System Module Interrupt Vector Registers
The DMA controller allows movement of data from one memory address to another without CPU
intervention. For example, the DMA controller can be used to move data from the ADC12_A conversion
memory to RAM. Using the DMA controller can increase the throughput of peripheral modules. The DMA
controller reduces system power consumption by allowing the CPU to remain in sleep mode, without
having to awaken to move data to or from a peripheral. Table 6-11 lists the trigger assignments for each
DMA channel.
6.12.10 Universal Serial Communication Interface (USCI) (Links to User's Guide: UART
Mode, SPI Mode, I2C Mode)
The USCI modules are used for serial data communication. The USCI module supports synchronous
communication protocols such as SPI (3-pin or 4-pin) and I2C, and asynchronous communication
protocols such as UART, enhanced UART with automatic baudrate detection, and IrDA. Each USCI
module contains two portions, A and B.
The USCI_An module provides support for SPI (3-pin or 4-pin), UART, enhanced UART, or IrDA.
The USCI_Bn module provides support for SPI (3-pin or 4-pin) or I2C.
The MSP430F533x series includes two complete USCI modules (n = 0 to 1).
6.12.11 Timer TA0 (Link to User's Guide)
Timer TA0 is a 16-bit timer/counter (Timer_A type) with five capture/compare registers (see Table 6-12).
TA0 can support multiple capture/compares, PWM outputs, and interval timing. TA0 also has extensive
interrupt capabilities. Interrupts may be generated from the counter on overflow conditions and from each
capture/compare register.
Table 6-12. Timer TA0 Signal Connections
www.ti.com
INPUT PIN NUMBERDEVICEMODULEMODULEDEVICEOUTPUT PIN NUMBER
Timer TA1 is a 16-bit timer/counter (Timer_A type) with three capture/compare registers(see Table 6-13).
TA1 supports multiple capture/compares, PWM outputs, and interval timing. TA1 also has extensive
interrupt capabilities. Interrupts may be generated from the counter on overflow conditions and from each
capture/compare register.
Timer TA2 is a 16-bit timer/counter (Timer_A type) with three capture/compare registers(see Table 6-14).
TA2 supports multiple capture/compares, PWM outputs, and interval timing. TA2 also has extensive
interrupt capabilities. Interrupts may be generated from the counter on overflow conditions and from each
capture/compare register.
Table 6-14. Timer TA2 Signal Connections
www.ti.com
INPUT PIN NUMBERDEVICEMODULEMODULEDEVICEOUTPUT PIN NUMBER
Timer TB0 is a 16-bit timer/counter (Timer_B type) with seven capture/compare registers(see Table 6-15).
TB0 supports multiple capture/compares, PWM outputs, and interval timing. TB0 also has extensive
interrupt capabilities. Interrupts may be generated from the counter on overflow conditions and from each
capture/compare register.
The primary function of the Comparator_B module is to support precision slope analog-to-digital
conversions, battery voltage supervision, and monitoring of external analog signals.
6.12.16 ADC12_A (Link to User's Guide)
The ADC12_A module supports fast 12-bit analog-to-digital conversions. The module implements a 12-bit
SAR core, sample select control, reference generator, and a 16-word conversion-and-control buffer. The
conversion-and-control buffer allows up to 16 independent ADC samples to be converted and stored
without any CPU intervention.
6.12.17 DAC12_A (Link to User's Guide)
The DAC12_A module is a 12-bit R-ladder voltage-output DAC. The DAC12_A may be used in 8-bit or 12bit mode, and may be used with the DMA controller. When multiple DAC12_A modules are present, they
may be grouped together for synchronous operation.
6.12.18 CRC16 (Link to User's Guide)
The CRC16 module produces a signature based on a sequence of entered data values and can be used
for data checking purposes. The CRC16 module signature is based on the CRC-CCITT standard.
6.12.19 Voltage Reference (REF) Module (Link to User's Guide)
www.ti.com
The REF module generates all of the critical reference voltages that can be used by the various analog
peripherals in the device.
6.12.20 LDO and PU Port
The integrated 3.3-V power system incorporates an integrated 3.3-V LDO regulator that allows the entire
MSP430 microcontroller to be powered from nominal 5-V LDOI when it is made available for the system.
Alternatively, the power system can supply power only to other components within the system, or it can be
unused altogether.
The Port U Pins (PU.0/PU.1) function as general-purpose high-current I/O pins. These pins can only be
configured together as either both inputs or both outputs. Port U is supplied by the LDOO rail. If the 3.3-V
LDO is not being used in the system (disabled), the LDOO pin can be supplied externally.
6.12.21 Embedded Emulation Module (EEM) (Link to User's Guide)
The EEM supports real-time in-system debugging. The L version of the EEM has the following features:
•Eight hardware triggers or breakpoints on memory access
•Two hardware triggers or breakpoints on CPU register write access
•Up to 10 hardware triggers can be combined to form complex triggers or breakpoints
Table 6-16 lists the register base address for all of the available peripheral modules.
Table 6-16. Peripherals
MODULE NAMEBASE ADDRESSOFFSET ADDRESS RANGE
Special Functions (see Table 6-17)0100h000h-01Fh
PMM (see Table 6-18)0120h000h-010h
Flash Control (see Table 6-19)0140h000h-00Fh
CRC16 (see Table 6-20)0150h000h-007h
RAM Control (see Table 6-21)0158h000h-001h
Watchdog (see Table 6-22)015Ch000h-001h
UCS (see Table 6-23)0160h000h-01Fh
SYS (see Table 6-24)0180h000h-01Fh
Shared Reference (see Table 6-25)01B0h000h-001h
Port Mapping Control (see Table 6-26)01C0h000h-003h
Port Mapping Port P2 (see Table 6-26)01D0h000h-007h
Port P1, P2 (see Table 6-27)0200h000h-01Fh
Port P3, P4 (see Table 6-28)0220h000h-01Fh
Port P5, P6 (see Table 6-29)0240h000h-00Bh
Port P7, P8 (see Table 6-30)0260h000h-00Bh
Port P9 (see Table 6-31)0280h000h-00Bh
Port PJ (see Table 6-32)0320h000h-01Fh
Timer TA0 (see Table 6-33)0340h000h-02Eh
Timer TA1 (see Table 6-34)0380h000h-02Eh
Timer TB0 (see Table 6-35)03C0h000h-02Eh
Timer TA2 (see Table 6-36)0400h000h-02Eh
Battery Backup (see Table 6-37)0480h000h-01Fh
RTC_B (see Table 6-38)04A0h000h-01Fh
32-bit Hardware Multiplier (see Table 6-39)04C0h000h-02Fh
DMA General Control (see Table 6-40)0500h000h-00Fh
DMA Channel 0 (see Table 6-40)0510h000h-00Ah
DMA Channel 1 (see Table 6-40)0520h000h-00Ah
DMA Channel 2 (see Table 6-40)0530h000h-00Ah
DMA Channel 3 (see Table 6-40)0540h000h-00Ah
DMA Channel 4 (see Table 6-40)0550h000h-00Ah
DMA Channel 5 (see Table 6-40)0560h000h-00Ah
USCI_A0 (see Table 6-41)05C0h000h-01Fh
USCI_B0 (see Table 6-42)05E0h000h-01Fh
USCI_A1 (see Table 6-43)0600h000h-01Fh
USCI_B1 (see Table 6-44)0620h000h-01Fh
ADC12_A (see Table 6-45)0700h000h-03Fh
DAC12_A (see Table 6-46)0780h000h-01Fh
Comparator_B (see Table 6-47)08C0h000h-00Fh
LDO and Port U configuration (see Table 6-48)0900h000h-014h
(1) For a detailed description of the individual control register offset addresses, see the MSP430x5xx and MSP430x6xx Family User's Guide
UCS control 0UCSCTL000h
UCS control 1UCSCTL102h
UCS control 2UCSCTL204h
UCS control 3UCSCTL306h
UCS control 4UCSCTL408h
UCS control 5UCSCTL50Ah
UCS control 6UCSCTL60Ch
UCS control 7UCSCTL70Eh
UCS control 8UCSCTL810h
(Base Address of Port Mapping Control: 01C0h, Port P2: 01D0h)
REGISTER DESCRIPTIONREGISTEROFFSET
Port mapping passwordPMAPPWD00h
Port mapping controlPMAPCTL02h
Port P2.0 mappingP2MAP000h
Port P2.1 mappingP2MAP101h
Port P2.2 mappingP2MAP202h
Port P2.3 mappingP2MAP303h
Port P2.4 mappingP2MAP404h
Port P2.5 mappingP2MAP505h
Port P2.6 mappingP2MAP606h
Port P2.7 mappingP2MAP707h
Table 6-27. Port P1, P2 Registers (Base Address: 0200h)
REGISTER DESCRIPTIONREGISTEROFFSET
Port P1 inputP1IN00h
Port P1 outputP1OUT02h
Port P1 directionP1DIR04h
Port P1 pullup/pulldown enableP1REN06h
Port P1 drive strengthP1DS08h
Port P1 selectionP1SEL0Ah
Port P1 interrupt vector wordP1IV0Eh
Port P1 interrupt edge selectP1IES18h
Port P1 interrupt enableP1IE1Ah
Port P1 interrupt flagP1IFG1Ch
Port P2 inputP2IN01h
Port P2 outputP2OUT03h
Port P2 directionP2DIR05h
Port P2 pullup/pulldown enableP2REN07h
Table 6-27. Port P1, P2 Registers (Base Address: 0200h) (continued)
REGISTER DESCRIPTIONREGISTEROFFSET
Port P2 drive strengthP2DS09h
Port P2 selectionP2SEL0Bh
Port P2 interrupt vector wordP2IV1Eh
Port P2 interrupt edge selectP2IES19h
Port P2 interrupt enableP2IE1Bh
Port P2 interrupt flagP2IFG1Dh
Table 6-28. Port P3, P4 Registers (Base Address: 0220h)
REGISTER DESCRIPTIONREGISTEROFFSET
Port P3 inputP3IN00h
Port P3 outputP3OUT02h
Port P3 directionP3DIR04h
Port P3 pullup/pulldown enableP3REN06h
Port P3 drive strengthP3DS08h
Port P3 selectionP3SEL0Ah
Port P3 interrupt vector wordP3IV0Eh
Port P3 interrupt edge selectP3IES18h
Port P3 interrupt enableP3IE1Ah
Port P3 interrupt flagP3IFG1Ch
Port P4 inputP4IN01h
Port P4 outputP4OUT03h
Port P4 directionP4DIR05h
Port P4 pullup/pulldown enableP4REN07h
Port P4 drive strengthP4DS09h
Port P4 selectionP4SEL0Bh
Port P4 interrupt vector wordP4IV1Eh
Port P4 interrupt edge selectP4IES19h
Port P4 interrupt enableP4IE1Bh
Port P4 interrupt flagP4IFG1Dh
www.ti.com
Table 6-29. Port P5, P6 Registers (Base Address: 0240h)
REGISTER DESCRIPTIONREGISTEROFFSET
Port P5 inputP5IN00h
Port P5 outputP5OUT02h
Port P5 directionP5DIR04h
Port P5 pullup/pulldown enableP5REN06h
Port P5 drive strengthP5DS08h
Port P5 selectionP5SEL0Ah
Port P6 inputP6IN01h
Port P6 outputP6OUT03h
Port P6 directionP6DIR05h
Port P6 pullup/pulldown enableP6REN07h
Port P6 drive strengthP6DS09h
Port P6 selectionP6SEL0Bh
Table 6-30. Port P7, P8 Registers (Base Address: 0260h)
REGISTER DESCRIPTIONREGISTEROFFSET
Port P7 inputP7IN00h
Port P7 outputP7OUT02h
Port P7 directionP7DIR04h
Port P7 pullup/pulldown enableP7REN06h
Port P7 drive strengthP7DS08h
Port P7 selectionP7SEL0Ah
Port P8 inputP8IN01h
Port P8 outputP8OUT03h
Port P8 directionP8DIR05h
Port P8 pullup/pulldown enableP8REN07h
Port P8 drive strengthP8DS09h
Port P8 selectionP8SEL0Bh
Table 6-31. Port P9 Register (Base Address: 0280h)
REGISTER DESCRIPTIONREGISTEROFFSET
Port P9 inputP9IN00h
Port P9 outputP9OUT02h
Port P9 directionP9DIR04h
Port P9 pullup/pulldown enableP9REN06h
Port P9 drive strengthP9DS08h
Port P9 selectionP9SEL0Ah
Table 6-32. Port J Registers (Base Address: 0320h)
REGISTER DESCRIPTIONREGISTEROFFSET
Port PJ inputPJIN00h
Port PJ outputPJOUT02h
Port PJ directionPJDIR04h
Port PJ pullup/pulldown enablePJREN06h
Port PJ drive strengthPJDS08h
Table 6-33. TA0 Registers (Base Address: 0340h)
REGISTER DESCRIPTIONREGISTEROFFSET
TA0 controlTA0CTL00h
Capture/compare control 0TA0CCTL002h
Capture/compare control 1TA0CCTL104h
Capture/compare control 2TA0CCTL206h
Capture/compare control 3TA0CCTL308h
Capture/compare control 4TA0CCTL40Ah
TA0 counterTA0R10h
Capture/compare 0TA0CCR012h
Capture/compare 1TA0CCR114h
Capture/compare 2TA0CCR216h
Capture/compare 3TA0CCR318h
Capture/compare 4TA0CCR41Ah
TA0 expansion 0TA0EX020h
TA0 interrupt vectorTA0IV2Eh
ADC12 control 0ADC12CTL000h
ADC12 control 1ADC12CTL102h
ADC12 control 2ADC12CTL204h
Interrupt flagADC12IFG0Ah
Interrupt enableADC12IE0Ch
Interrupt vector wordADC12IV0Eh
ADC memory control 0ADC12MCTL010h
ADC memory control 1ADC12MCTL111h
ADC memory control 2ADC12MCTL212h
ADC memory control 3ADC12MCTL313h
ADC memory control 4ADC12MCTL414h
ADC memory control 5ADC12MCTL515h
ADC memory control 6ADC12MCTL616h
ADC memory control 7ADC12MCTL717h
ADC memory control 8ADC12MCTL818h
Comp_B control 0CBCTL000h
Comp_B control 1CBCTL102h
Comp_B control 2CBCTL204h
Comp_B control 3CBCTL306h
Comp_B interruptCBINT0Ch
Comp_B interrupt vector wordCBIV0Eh
6.13.5 Port P5, P5.0 and P5.1, Input/Output With Schmitt Trigger
Figure 6-6. Port P5 (P5.0 and P5.1) Schematic
Table 6-53. Port P5 (P5.0 and P5.1) Pin Functions
PIN NAME (P5.x)xFUNCTION
P5.0/VREF+/VeREF+0 P5.0 (I/O)
VeREF+
VREF+
P5.1/VREF-/VeREF-1 P5.1 (I/O)
VeREFVREF-
(1) X = Don't care
(2) Default condition
(3) Setting the P5SEL.0 bit disables the output driver and the input Schmitt trigger to prevent parasitic cross currents when applying analog
signals. An external voltage can be applied to VeREF+ and used as the reference for the ADC12_A, Comparator_B, or DAC12_A.
(4) Setting the P5SEL.0 bit disables the output driver and the input Schmitt trigger to prevent parasitic cross currents when applying analog
signals. The ADC12_A, VREF+ reference is available at the pin.
(5) Setting the P5SEL.1 bit disables the output driver and the input Schmitt trigger to prevent parasitic cross currents when applying analog
signals. An external voltage can be applied to VeREF- and used as the reference for the ADC12_A, Comparator_B, or DAC12_A.
(6) Setting the P5SEL.1 bit disables the output driver and the input Schmitt trigger to prevent parasitic cross currents when applying analog
(1) X = Don't care
(2) Setting the P6SEL.x bit disables the output driver and the input Schmitt trigger to prevent parasitic cross currents when applying analog
signals.
(3) The ADC12_A channel Ax is connected internally to AVSSif not selected by the respective INCHx bits.
(1) X = Don't care
(2) Setting the P7SEL.x bit disables the output driver and the input Schmitt trigger to prevent parasitic cross currents when applying analog
signals.
(3) The ADC12_A channel Ax is connected internally to AVSSif not selected by the respective INCHx bits.
(1) X = Don't care
(2) Default condition
(3) The pin direction is controlled by the JTAG module.
(4) In JTAG mode, pullups are activated automatically on TMS, TCK, and TDI/TCLK. PJREN.x are don't care.
Table 6-62 list the complete contents of the device descriptor tag-length-value (TLV) structure for each
device type.
www.ti.com
DESCRIPTIONADDRESS
Info Block
Die Record
ADC12 Calibration
(1) NA = Not applicable
Table 6-62. MSP430F533x Device Descriptor Table
SIZE
(bytes)
Info length01A00h106h06h06h06h
CRC length01A01h106h06h06h06h
CRC value01A02h2per unitper unitper unitper unit
Device ID01A04h2812Ah8128h8127h8125h
Hardware revision01A06h1per unitper unitper unitper unit
Firmware revision01A07h1per unitper unitper unitper unit
Die record tag01A08h108h08h08h08h
Die record length01A09h10Ah0Ah0Ah0Ah
Lot/wafer ID01A0Ah4per unitper unitper unitper unit
Die X position01A0Eh2per unitper unitper unitper unit
Die Y position01A10h2per unitper unitper unitper unit
Test results01A12h2per unitper unitper unitper unit
ADC12 calibration tag01A14h111h11h11h11h
ADC12 calibration length01A15h110h10h10h10h
ADC gain factor01A16h2per unitper unitper unitper unit