•For Complete Module Descriptions, See the
MSP430x2xx Family User’s Guide (SLAU144)document, or see the TI web site at www.ti.com.
•Low-Cost Sensor Systems
3Description
The Texas Instruments MSP430™ family of ultra-lowpower 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 batterylifeinportable 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 wake-up
from low-power modes to active mode in less than
1 µs.
The MSP430G2231 devices are ultra-low-power
mixed signal microcontrollers with a built-in 16-bit
timer and ten I/O pins. The MSP430G2231 devices
havea10-bitA/Dconverterandbuilt-in
communicationcapabilityusingsynchronous
protocols (SPI or I2C). For configuration details, see
Table 1.
Typical applications include low-cost sensor systems
that capture analog signals, convert them to digital
values, and then process the data for display or for
transmission to a host system.
Device Information
ORDER NUMBERBODY SIZE
MSP430G2231IRSARQ1RSA (16)4 mm x 4 mm
MSP430G2231IPW4RQ1PW (14)5 mm x 4.4 mm
(1) For the most current part, package, and ordering information,
see the Package Option Addendum at the end of this
PACKAGE
(PIN)
MSP430G2231-Q1
(1)
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.
NOTE: Page numbers for previous revisions may differ from page numbers in the current version.
REVISIONDESCRIPTION
SLAS787Product Preview release
SLAS787AProduction Data release
Formatting and document organization changes throughout.
SLAS787B
Removed all information related to operation at 105°C.
Removed all device variants except for MSP430G2231.
Added Device and Documentation Support and Mechanical, Packaging, and Orderable Information.
6Device Characteristics
Table 1 shows the features of the MSP430G2231 device.
P1.0/General-purpose digital I/O pin
TA0CLK/Timer0_A, clock signal TACLK input
ACLK/ACLK signal output
A0ADC10 analog input A0
P1.1/General-purpose digital I/O pin
TA0.0/32I/OTimer0_A, capture: CCI0A input, compare: Out0 output
A1ADC10 analog input A1
P1.2/General-purpose digital I/O pin
TA0.1/43I/OTimer0_A, capture: CCI1A input, compare: Out1 output
A2ADC10 analog input A2
P1.3/General-purpose digital I/O pin
ADC10CLK/ADC10, conversion clock output
A3/ADC10 analog input A3
VREF-/VEREFADC10 negative reference voltage
P1.4/General-purpose digital I/O pin
SMCLK/SMCLK signal output
A4/65I/OADC10 analog input A4
VREF+/VEREF+/ADC10 positive reference voltage
TCKJTAG test clock, input terminal for device programming and test
P1.5/General-purpose digital I/O pin
TA0.0/Timer0_A, compare: Out0 output
A5/76I/OADC10 analog input A5
SCLK/USI: clock input in I2C mode; clock input/output in SPI mode
TMSJTAG test mode select, input terminal for device programming and test
P1.6/General-purpose digital I/O pin
TA0.1/Timer0_A, capture: CCI1A input, compare: Out1 output
A6/ADC10 analog input A6
SDO/USI: Data output in SPI mode
SCL/USI: I2C clock in I2C mode
TDI/TCLKJTAG test data input or test clock input during programming and test
P1.7/General-purpose digital I/O pin
A7/ADC10 analog input A7
SDI/98I/OUSI: Data input in SPI mode
SDA/USI: I2C data in I2C mode
TDO/TDI
XIN/Input terminal of crystal oscillator
P2.6/1312I/OGeneral-purpose digital I/O pin
TA0.1Timer0_A, compare: Out1 output
XOUT/Output terminal of crystal oscillator
P2.7General-purpose digital I/O pin
RST/Reset
NMI/109INonmaskable interrupt input
SBWTDIOSpy-Bi-Wire test data input/output during programming and test
TEST/Selects test mode for JTAG pins on Port 1. The device protection fuse is connected to TEST.
SBWTCKSpy-Bi-Wire test clock input during programming and test
DVCC115, 16NASupply voltage
DVSS1413, 14NAGround reference
QFN Pad-PadNAQFN package pad connection to VSSrecommended.
(1) TDO or TDI is selected via JTAG instruction.
(2) If XOUT/P2.7 is used as an input, excess current flows until P2SEL.7 is cleared. This is due to the oscillator output driver connection to
(1)
this pad after reset.
NO.I/ODESCRIPTION
PWRSA
21I/O
54I/O
87I/O
JTAG test data output terminal or test data input during programming and test
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.
Peripherals are connected to the CPU using data,
address, and control buses, and can be handled 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.
MSP430G2231-Q1
SLAS787B –NOVEMBER 2011–REVISED MARCH 2014
Instruction Set (continued)
8.2 Instruction Set
The instruction set consists of 51 instructions with
three formats and seven address modes. Each
instruction can operate on word and byte data.
Table 3 shows examples of the three types of
instruction formats, and Table 4 shows the address
modes.
The MSP430 has one active mode and five software selectable low-power modes of operation. An interrupt
event can wake up the device from any of the low-power modes, service the request, and restore back to the
low-power mode on return from the interrupt program.
The following six operating modes can be configured by software:
•Active mode (AM)
– All clocks are active
•Low-power mode 0 (LPM0)
– CPU is disabled
– ACLK and SMCLK remain active, MCLK is disabled
•Low-power mode 1 (LPM1)
– CPU is disabled
– ACLK and SMCLK remain active, MCLK is disabled
– DCO's dc generator is disabled if DCO not used in active mode
•Low-power mode 2 (LPM2)
– CPU is disabled
– MCLK and SMCLK are disabled
– DCO's dc generator remains enabled
– ACLK remains active
•Low-power mode 3 (LPM3)
– CPU is disabled
– MCLK and SMCLK are disabled
– DCO's dc generator is disabled
– ACLK remains active
•Low-power mode 4 (LPM4)
– CPU is disabled
– ACLK is disabled
– MCLK and SMCLK are disabled
– DCO's dc generator is disabled
– Crystal oscillator is stopped
The interrupt vectors and the power-up starting address are located in the address range 0FFFFh to 0FFC0h.
The vector contains the 16-bit address of the appropriate interrupt handler instruction sequence.
If the reset vector (located at address 0FFFEh) contains 0FFFFh (for example, flash is not programmed) the
CPU goes into LPM4 immediately after power-up.
Table 5. Interrupt Sources, Flags, and Vectors
INTERRUPT SOURCEINTERRUPT FLAGPRIORITY
Power-UpPORIFG
External ResetRSTIFG
Watchdog Timer+WDTIFGReset0FFFEh31, highest
Flash key violationKEYV
PC out-of-range
(1)
(2)
NMINMIIFG(non)-maskable
Oscillator faultOFIFG(non)-maskable0FFFCh30
Flash memory access violationACCVIFG
(2)(3)
Watchdog Timer+WDTIFGmaskable0FFF4h26
Timer_A2TACCR0 CCIFG
Timer_A2TACCR1 CCIFG, TAIFG
ADC10ADC10IFG
USIUSIIFG, USISTTIFG
I/O Port P2 (two flags)P2IFG.6 to P2IFG.7
I/O Port P1 (eight flags)P1IFG.0 to P1IFG.7
(6)
See
(4)
(2)(4)
(4)(5)
(2)(4)
(2)(4)
(2)(4)
(1) A reset is generated if the CPU tries to fetch instructions from within the module register memory address range (0h to 01FFh) or from
within unused address ranges.
(2) Multiple source flags
(3) (non)-maskable: the individual interrupt-enable bit can disable an interrupt event, but the general interrupt enable cannot.
(4) Interrupt flags are located in the module.
(5) MSP430G2x31 only
(6) The interrupt vectors at addresses 0FFDEh to 0FFC0h are not used in this device and can be used for regular program code if
Most interrupt and module enable bits are collected into the lowest address space. Special function register bits
not allocated to a functional purpose are not physically present in the device. Simple software access is provided
with this arrangement.
Legendrw:Bit can be read and written.
rw-0,1:Bit can be read and written. It is reset or set by PUC.
rw-(0,1):Bit can be read and written. It is reset or set by POR.
SFR bit is not present in device.
Table 6. Interrupt Enable Register 1 and 2
Address76543210
00hACCVIENMIIEOFIEWDTIE
rw-0rw-0rw-0rw-0
WDTIEWatchdog Timer interrupt enable. Inactive if watchdog mode is selected. Active if Watchdog Timer is configured in
WDTIFGSet on watchdog timer overflow (in watchdog mode) or security key violation.
OFIFGFlag set on oscillator fault.
PORIFGPower-On Reset interrupt flag. Set on VCCpower-up.
RSTIFGExternal reset interrupt flag. Set on a reset condition at RST/NMI pin in reset mode. Reset on VCCpower-up.
NMIIFGSet via RST/NMI pin
Address76543210
03h
Reset on VCCpower-on or a reset condition at the RST/NMI pin in reset mode.
MemorySize2KB
Main: interrupt vectorFlash0xFFFF to 0xFFC0
Main: code memoryFlash0xFFFF to 0xF800
Information memorySize256 Byte
RAMSize128B
Peripherals16-bit01FFh to 0100h
Flash010FFh to 01000h
027Fh to 0200h
8-bit0FFh to 010h
8-bit SFR0Fh to 00h
8.7 Flash Memory
The flash memory can be programmed using the Spy-Bi-Wire or JTAG port or in-system by the CPU. The CPU
can perform single-byte and single-word writes to the flash memory. Features of the flash memory include:
•Flash memory has n segments of main memory and four segments of information memory (A to D) of
64 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.
•Segment A contains calibration data. After reset segment A is protected against programming and erasing. It
can be unlocked but care should be taken not to erase this segment if the device-specific calibration data is
required.
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 MSP430x2xx Family User's Guide (SLAU144).
8.8.1 Oscillator and System Clock
The clock system is supported by the basic clock module that includes support for a 32768-Hz watch crystal
oscillator, an internal very-low-power low-frequency oscillator and an internal digitally controlled oscillator (DCO).
The basic clock module is designed to meet the requirements of both low system cost and low power
consumption. The internal DCO provides a fast turn-on clock source and stabilizes in less than 1µs. The basic
clock module provides the following clock signals:
•Auxiliary clock (ACLK), sourced either from a 32768-Hz watch crystal or the internal LF oscillator.
•Main clock (MCLK), the system clock used by the CPU.
•Sub-Main clock (SMCLK), the sub-system clock used by the peripheral modules.
Table 9. DCO Calibration Data (Provided From Factory In Flash Information
Memory Segment A)
DCO FREQUENCYSIZEADDRESS
1 MHz
CALIBRATION
REGISTER
CALBC1_1MHZbyte010FFh
CALDCO_1MHZbyte010FEh
8.8.2 Brownout
The brownout circuit is implemented to provide the proper internal reset signal to the device during power on and
power off.
8.8.3 Digital I/O
There is one 8-bit I/O port implemented—port P1—and two bits of I/O port P2:
•All individual I/O bits are independently programmable.
•Any combination of input, output, and interrupt condition is possible.
•Edge-selectable interrupt input capability for all the eight bits of port P1 and the two bits of port P2.
•Read/write access to port-control registers is supported by all instructions.
•Each I/O has an individually programmable pull-up/pull-down resistor.
8.8.4 WDT+ Watchdog Timer
The primary function of the watchdog timer (WDT+) module is to perform a controlled system restart after a
software problem occurs. If the selected time interval expires, a system reset is generated. If the watchdog
function is not needed in an application, the module can be disabled or configured as an interval timer and can
generate interrupts at selected time intervals.
Timer_A2 is a 16-bit timer/counter with two capture/compare registers. Timer_A2 can support multiple
capture/compares, PWM outputs, and interval timing. Timer_A2 also has extensive interrupt capabilities.
Interrupts may be generated from the counter on overflow conditions and from each of the capture/compare
registers.
Table 10. Timer_A2 Signal Connections – Device With ADC10
The universal serial interface (USI) module is used for serial data communication and provides the basic
hardware for synchronous communication protocols like SPI and I2C.
8.8.7 ADC10
The ADC10 module supports fast, 10-bit analog-to-digital conversions. The module implements a 10-bit SAR
core, sample select control, reference generator and data transfer controller, or DTC, for automatic conversion
result handling, allowing ADC samples to be converted and stored without any CPU intervention.
Flash control 2FCTL2012Ah
Flash control 1FCTL10128h
Watchdog Timer+Watchdog/timer controlWDTCTL0120h
REGISTER
NAME
Table 12. Peripherals With Byte Access
MODULEREGISTER DESCRIPTIONOFFSET
ADC10ADC analog enableADC10AE004Ah
ADC data transfer control 1ADC10DTC1049h
ADC data transfer control 0ADC10DTC0048h
USIUSI control 0USICTL0078h
USI control 1USICTL1079h
USI clock controlUSICKCTL07Ah
USI bit counterUSICNT07Bh
USI shift registerUSISR07Ch
Basic Clock System+Basic clock system control 3BCSCTL3053h
Basic clock system control 2BCSCTL2058h
Basic clock system control 1BCSCTL1057h
DCO clock frequency controlDCOCTL056h
Port P2Port P2 resistor enableP2REN02Fh
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
Table 12. Peripherals With Byte Access (continued)
MODULEREGISTER DESCRIPTIONOFFSET
Port P1Port P1 resistor enableP1REN027h
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
Supply voltage range,
during flash memory
programming
Supply voltage range,
during program execution
Legend:
16 MHz
System Frequency - MHz
12 MHz
6 MHz
1.8 V
Supply Voltage - V
3.3 V
2.7 V
2.2 V
3.6 V
MSP430G2231-Q1
SLAS787B –NOVEMBER 2011–REVISED MARCH 2014
9Specifications
www.ti.com
9.1 Absolute Maximum Ratings
Voltage applied at VCCto V
Voltage applied to any pin
SS
(2)
(1)
–0.3 V to 4.1 V
–0.3 V to VCC+ 0.3 V
Diode current at any device pin±2 mA
Storage temperature range, T
(3)
stg
Unprogrammed device–55°C to 150°C
Programmed device–55°C to 150°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. The JTAG fuse-blow voltage, VFB, is allowed to exceed the absolute maximum rating. The voltage is
applied to the TEST pin when blowing the JTAG fuse.
(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.
9.2 Recommended Operating Conditions
Typical values are specified at VCC= 3.3 V and TA= 25°C (unless otherwise noted)
9.3 Active Mode Supply Current Into VCCExcluding External Current
over recommended ranges of supply voltage and operating free-air temperature (unless otherwise noted)
I
AM,1MHz
PARAMETERTEST CONDITIONST
f
= f
Active mode (AM)
current (1 MHz)
DCO
f
ACLK
Program executes in flash,
= f
MCLK
= 32768 Hz,
BCSCTL1 = CALBC1_1MHZ,µA
DCOCTL = CALDCO_1MHZ,
= 1 MHz,2.2 V220
SMCLK
A
CPUOFF = 0, SCG0 = 0, SCG1 = 0,
OSCOFF = 0
(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 is chosen to closely match the required 9 pF.
V
CC
3 V300370
(1)(2)
MINTYPMAX UNIT
9.4 Typical Characteristics – Active Mode Supply Current (Into VCC)
Figure 3. Active Mode Current vs Supply Voltage, TA= 25°CFigure 4. Active Mode Current vs DCO Frequency
(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.
(3) Current for brownout and WDT clocked by SMCLK included.
(4) Current for brownout and WDT clocked by ACLK included.
(5) Current for brownout included.
over recommended ranges of supply voltage and operating free-air temperature (unless otherwise noted)
PARAMETERTEST CONDITIONSV
V
V
V
R
C
Positive-going input threshold voltageV
IT+
Negative-going input threshold voltageV
IT–
Input voltage hysteresis (V
hys
Pullup/pulldown resistor3 V203550kΩ
Pull
Input capacitanceVIN= VSSor V
I
IT+
– V
)3 V0.31V
IT–
For pullup: VIN= V
For pulldown: VIN= V
SS
CC
CC
CC
3 V1.352.25
3 V0.751.65
MINTYPMAX UNIT
0.45 V
0.25 V
CC
CC
0.75 V
0.55 V
5pF
CC
CC
9.8 Leakage Current – Ports Px
over recommended ranges of supply voltage and operating free-air temperature (unless otherwise noted)
I
lkg(Px.y)
PARAMETERTEST CONDITIONSV
High-impedance leakage current
(1) (2)
CC
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/pulldown resistor is
disabled.
MINMAX UNIT
9.9 Outputs – Ports Px
over recommended ranges of supply voltage and operating free-air temperature (unless otherwise noted)
PARAMETERTEST CONDITIONSV
V
V
High-level output voltageI
OH
Low-level output voltageI
OL
(1) The maximum total current, I
specified.
(OHmax)
and I
= –6 mA
(OHmax)
= 6 mA
(OLmax)
, for all outputs combined should not exceed ±48 mA to hold the maximum voltage drop
(OLmax)
(1)
(1)
CC
3 VVCC– 0.3V
3 VVSS+ 0.3V
MINTYPMAX UNIT
9.10 Output Frequency – Ports Px
over recommended ranges of supply voltage and operating free-air temperature (unless otherwise noted)
f
Px.y
f
Port_CLK
PARAMETERTEST CONDITIONSV
Port output frequency
(with load)
Px.y, CL= 20 pF, RL= 1 kΩ
Clock output frequencyPx.y, CL= 20 pF
(2)
(1) (2)
CC
3 V12MHz
3 V16MHz
(1) A resistive divider with 2 × 0.5 kΩ between VCCand VSSis used as load. The output is connected to the center tap of the divider.
(2) The output voltage reaches at least 10% and 90% VCCat the specified toggle frequency.
over recommended ranges of supply voltage and operating free-air temperature (unless otherwise noted)
V
CC(start)
V
(B_IT–)
V
hys(B_IT–)
t
d(BOR)
t
(reset)
PARAMETERTEST CONDITIONSV
See Figure 11dVCC/dt ≤ 3 V/s0.7 × V
See Figure 11 through Figure 13dVCC/dt ≤ 3 V/s1.35V
See Figure 11dVCC/dt ≤ 3 V/s130mV
See Figure 112000µs
Pulse duration needed at RST/NMI pin to
accepted reset internally
CC
2.2 V, 3 V2µs
(1) The current consumption of the brownout module is already included in the ICCcurrent consumption data. The voltage level V
V
(2) During power up, the CPU begins code execution following a period of t
must not be changed until VCC≥ V
hys(B_IT–)
is ≤ 1.8 V.
CC(min)
, where V
after VCC= V
is the minimum supply voltage for the desired operating frequency.
CC(min)
d(BOR)
(B_IT–)
MINTYPMAX UNIT
(B_IT–)
+ V
. The default DCO settings
hys(B_IT–)
(B_IT–)
V
+
Figure 12. V
CC(drop)
Level With a Square Voltage Drop to Generate a POR or BOR Signal
(1) To improve EMI on the XT1 oscillator, the following guidelines should be observed.
(a) Keep the trace between the device and the crystal as short as possible.
(b) Design a good ground plane around the oscillator pins.
(c) Prevent crosstalk from other clock or data lines into oscillator pins XIN and XOUT.
(d) Avoid running PCB traces underneath or adjacent to the XIN and XOUT pins.
(e) Use assembly materials and techniques that avoid any parasitic load on the oscillator XIN and XOUT pins.
(f) If conformal coating is used, ensure that it does not induce capacitive or resistive leakage between the oscillator pins.
(g) Do not route the XOUT line to the JTAG header to support the serial programming adapter as shown in other documentation. This
signal is no longer required for the serial programming adapter.
(2) Includes parasitic bond and package capacitance (approximately 2 pF per pin).
Because the PCB adds additional capacitance, it is recommended to verify 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.
(3) 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.
(4) Measured with logic-level input frequency but also applies to operation with crystals.
f
Reference buffer supplyADC10ON = 0, REFON = 1,
current with ADC10SR = 0
ADC10CLK
(4)
REF2_5V = 0, REFOUT = 1,
= 5.0 MHz,
ADC10SR = 0
I
REFB,1
f
Reference buffer supplyADC10ON = 0, REFON = 1,
current with ADC10SR = 1
ADC10CLK
(4)
REF2_5V = 0, REFOUT = 1,
= 5.0 MHz,
ADC10SR = 1
C
I
R
I
Input capacitance3 V27pF
Input MUX ON resistance0 V ≤ VAx≤ V
Only one terminal Ax can be selected
at one time
CC
(1) The leakage current is defined in the leakage current table with Px.y/Ax parameter.
(2) The analog input voltage range must be within the selected reference voltage range VR+to VR–for valid conversion results.
(3) The internal reference supply current is not included in current consumption parameter I
(4) The internal reference current is supplied via terminal VCC. Consumption is independent of the ADC10ON control bit, unless a
conversion is active. The REFON bit enables the built-in reference to settle before starting an A/D conversion.
SREF1 = 1, SREF0 = 0
0 V ≤ VEREF+ ≤ VCC– 0.15 V ≤ 3 V,
SREF1 = 1, SREF0 = 1
(3)
CC
3 V±1
3 V0
3 V±1µA
(1) The external reference is used during conversion to charge and discharge the capacitance array. The input capacitance, CI, is also the
dynamic load for an external reference during conversion. The dynamic impedance of the reference supply should follow the
recommendations on analog-source impedance to allow the charge to settle for 10-bit accuracy.
(2) The accuracy limits the minimum positive external reference voltage. Lower reference voltage levels may be applied with reduced
accuracy requirements.
(3) Under this condition the external reference is internally buffered. The reference buffer is active and requires the reference buffer supply
current I
(4) The accuracy limits the maximum negative external reference voltage. Higher reference voltage levels may be applied with reduced
. The current consumption can be limited to the sample and conversion period with REBURST = 1.
REFB
accuracy requirements.
(5) The accuracy limits the minimum external differential reference voltage. Lower differential reference voltage levels may be applied with
reduced accuracy requirements.
MINTYPMAX UNIT
1.4V
CC
1.43
1.4V
CC
V
9.26 10-Bit ADC, Timing Parameters
over recommended ranges of supply voltage and operating free-air temperature (unless otherwise noted)
PARAMETERTEST CONDITIONSV
f
ADC10CLK
f
ADC10OSC
ADC10 input clockFor specified performance of
frequencyADC10 linearity parameters
9.28 10-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
I
SENSOR
TC
SENSOR
t
Sensor(sample)
I
VMID
V
MID
t
VMID(sample)
Temperature sensor supplyREFON = 0, INCHx = 0Ah,
current
Sample time required if channelADC10ON = 1, INCHx = 0Ah,
10 is selected
Current into divider at channel 11 ADC10ON = 1, INCHx = 0Bh3 V
VCCdivider at channel 113 V1.5V
Sample time required if channelADC10ON = 1, INCHx = 0Bh,
11 is selected
(1) The sensor current I
high). When REFON = 1, I
input (INCH = 0Ah).
(1)
(3)
TA= 25°C
ADC10ON = 1, INCHx = 0Ah
(2)
Error of conversion result ≤ 1 LSB
ADC10ON = 1, INCHx = 0Bh,
V
≉ 0.5 × V
MID
(5)
is consumed if (ADC10ON = 1 and REFON = 1) or (ADC10ON = 1 and INCH = 0Ah and sample signal is
SENSOR
SENSOR
is included in I
Error of conversion result ≤ 1 LSB
. When REFON = 0, I
REF+
CC
applies during conversion of the temperature sensor
SENSOR
CC
3 V60µA
3 V3.55mV/°C
3 V30µs
3 V1220ns
(2) The following formula can be used to calculate the temperature sensor output voltage:
V
Sensor,typ
V
Sensor,typ
(3) The typical equivalent impedance of the sensor is 51 kΩ. The sample time required includes the sensor-on time t
(4) No additional current is needed. The V
(5) The on-time t
= TC
= TC
(273 + T [°C] ) + V
Sensor
T [°C] + V
Sensor
is included in the sampling time t
VMID(on)
Sensor(TA
Offset,sensor
[mV] or
= 0°C) [mV]
is used during sampling.
MID
VMID(sample)
; no additional on time is needed.
MINTYPMAX UNIT
9.29 Flash Memory
over recommended ranges of supply voltage and operating free-air temperature (unless otherwise noted)
V
CC(PGM/ERASE)
f
FTG
I
PGM
I
ERASE
t
CPT
t
CMErase
t
Retention
t
Word
t
Block, 0
t
Block, 1-63
t
Block, End
t
Mass Erase
t
Seg Erase
PARAMETERTEST
CONDITIONS
Program and erase supply voltage2.23.6V
Flash timing generator frequency257476kHz
Supply current from VCCduring program2.2 V, 3.6 V15mA
Supply current from VCCduring erase2.2 V, 3.6 V17mA
Cumulative program time
(1)
Cumulative mass erase time2.2 V, 3.6 V20ms
Program/erase endurance10
Data retention durationTJ= 25°C15years
Word or byte program time
Block program time for first byte or word
Block program time for each additional byte or
word
Block program end-sequence wait time
Mass erase time
Segment erase time
(2)
(2)
(2)
(2)
(2)
(2)
V
CC
MINTYPMAXUNIT
2.2 V, 3.6 V10ms
4
10593t
(4)
SENSOR(on)
10
.
5
30t
25t
18t
6t
4819t
µA
cycles
FTG
FTG
FTG
FTG
FTG
FTG
(1) The cumulative program time must not be exceeded when writing to a 64-byte flash block. This parameter applies to all programming
methods: individual word/byte write and block write modes.
(2) These values are hardwired into the Flash Controller's state machine (t
Spy-Bi-Wire return to normal operation time2.2 V, 3 V15100µs
TCK input frequency
(2)
Internal pulldown resistance on TEST2.2 V, 3 V256090kΩ
(1) Tools that access the Spy-Bi-Wire interface must wait for the maximum t
applying the first SBWTCK clock edge.
(2) f
9.32 JTAG Fuse
may be restricted to meet the timing requirements of the module selected.
TCK
(1)
time after pulling the TEST/SBWTCK pin high before
SBW,En
CC
2.2 V, 3 V1µs
2.2 V05MHz
3 V010MHz
over recommended ranges of supply voltage and operating free-air temperature (unless otherwise noted)
PARAMETERTEST CONDITIONSMINMAXUNIT
V
CC(FB)
V
FB
I
FB
t
FB
Supply voltage during fuse-blow conditionTA= 25°C2.5V
Voltage level on TEST for fuse blow67V
Supply current into TEST during fuse blow100mA
Time to blow fuse1ms
MINTYPMAXUNIT
(1) Once the fuse is blown, no further access to the JTAG/Test, Spy-Bi-Wire, and emulation feature is possible, and JTAG is switched to
All MSP430™ microcontrollers are supported by a wide variety of software and hardware development tools.
Tools are available from TI and various third parties. See them all at www.ti.com/msp430tools.
11.1.1.1 Hardware Features
See the Code Composer Studio for MSP430 User's Guide (SLAU157) for details on the available features.
MSP4304-Wire2-WireClockStateTrace
ArchitectureJTAGJTAGControlSequencerBuffer
MSP430YesYes2NoYesNoNoNo
Break-RangeLPMx.5
pointsBreak-Debugging
(N)pointsSupport
11.1.1.2 Recommended Hardware Options
11.1.1.2.1 Target Socket Boards
The target socket boards allow easy programming and debugging of the device using JTAG. They also feature
header pin outs for prototyping. Target socket boards are orderable individually or as a kit with the JTAG
programmer and debugger included. The following table shows the compatible target boards and the supported
packages.
PackageTarget Board and Programmer BundleTarget Board Only
14-pin TSSOP (PW)
11.1.1.2.2 Experimenter Boards
MSP-FET430U14MSP-TS430PW14
MSP-FET430U28AMSP-TS430PW28A
Experimenter Boards and Evaluation kits are available for some MSP430 devices. These kits feature additional
hardware components and connectivity for full system evaluation and prototyping. See www.ti.com/msp430tools
for details.
11.1.1.2.3 Debugging and Programming Tools
Hardware programming and debugging tools are available from TI and from its third party suppliers. See the full
list of available tools at www.ti.com/msp430tools.
11.1.1.2.4 Production Programmers
The production programmers expedite loading firmware to devices by programming several devices
simultaneously.
Part NumberPC PortFeaturesProvider
MSP-GANGSerial and USBProgram up to eight devices at a time. Works with PC or standalone.Texas Instruments
11.1.1.3 Recommended Software Options
11.1.1.3.1 Integrated Development Environments
Software development tools are available from TI or from third parties. Open source solutions are also available.
This device is supported by Code Composer Studio™ IDE (CCS).
11.1.1.3.2 MSP430Ware
MSP430Ware is a collection of code examples, data sheets, and other design resources for all MSP430 devices
delivered in a convenient package. MSP430Ware is available as a component of CCS or as a standalone
package.
MSP430 Flasher is an open-source, shell-based interface for programming MSP430 microcontrollers through a
FET programmer or eZ430 using JTAG or Spy-Bi-Wire (SBW) communication. MSP430 Flasher can be used to
download binary files (.txt or .hex) files directly to the MSP430 Flash without the need for an IDE.
11.1.1.4 Community Resources
The following links connect to TI community resources. Linked contents are provided "AS IS" by the respective
contributors. They do not constitute TI specifications and do not necessarily reflect TI's views; see TI's Terms of
Use.
TI E2E Community
TI's Engineer-to-Engineer (E2E) Community. Created to foster collaboration among engineers. At e2e.ti.com, you
can ask questions, share knowledge, explore ideas, and help solve problems with fellow engineers.
TI Embedded Processors Wiki
Texas Instruments Embedded Processors Wiki. Established to help developers get started with embedded
processors from Texas Instruments and to foster innovation and growth of general knowledge about the
hardware and software surrounding these devices.
11.1.2 Device and Development Tool Nomenclature
To designate the stages in the product development cycle, TI assigns prefixes to the part numbers of all
MSP430™ MCU devices and support tools. Each MSP430™ MCU commercial family member has one of three
prefixes: MSP, PMS, or XMS (for example, MSP430F5259). Texas Instruments recommends two of three
possible prefix designators for its support tools: MSP and MSPX. These prefixes represent evolutionary stages of
product development from engineering prototypes (with XMS for devices and MSPX for tools) through fully
qualified production devices and tools (with MSP for devices and MSP for tools).
Device development evolutionary flow:
XMS – Experimental device that is not necessarily representative of the final device's electrical specifications
PMS – Final silicon die that conforms to the device's electrical specifications but has not completed quality and
reliability verification
MSP – Fully qualified production device
Support tool development evolutionary flow:
MSPX – Development-support product that has not yet completed Texas Instruments internal qualification
testing.
MSP – Fully-qualified development-support product
XMS and PMS devices and MSPX development-support tools are shipped against the following disclaimer:
"Developmental product is intended for internal evaluation purposes."
MSP devices and MSP development-support tools have been characterized fully, and the quality and reliability of
the device have been demonstrated fully. TI's standard warranty applies.
Predictions show that prototype devices (XMS and PMS) have a greater failure rate than the standard production
devices. Texas Instruments recommends that these devices not be used in any production system because their
expected end-use failure rate still is undefined. Only qualified production devices are to be used.
TI device nomenclature also includes a suffix with the device family name. This suffix indicates the package type
(for example, PZP) and temperature range (for example, T). Figure 17 provides a legend for reading the
complete device name for any family member.
CC = Embedded RF Radio
MSP = Mixed Signal Processor
XMS = Experimental Silicon
PMS = Prototype Device
430 MCU PlatformTI’s Low Power Microcontroller Platform
Device TypeMemory Type
C = ROM
F = Flash
FR = FRAM
G = Flash or FRAM (Value Line)
L = No Nonvolatile Memory
Specialized Application
AFE = Analog Front End
BT = Preprogrammed with Bluetooth
BQ = Contactless Power
CG = ROM Medical
FE = Flash Energy Meter
FG = Flash Medical
FW = Flash Electronic Flow Meter
Series1 Series = Up to 8 MHz
2 Series = Up to 16 MHz
3 Series = Legacy
4 Series = Up to 16 MHz w/ LCD
5 Series = Up to 25 MHz
6 Series = Up to 25 MHz w/ LCD
0 = Low Voltage Series
Feature SetVarious Levels of Integration Within a Series
Optional: A = RevisionN/A
Optional: Temperature Range S = 0°C to 50 C
C to 70 C
I = -40 C to 85 C
T = -40 C to 105 C
°
C = 0°°
°°
°°
Packaging
www.ti.com/packaging
Optional: Tape and ReelT = Small Reel (7 inch)
R = Large Reel (11 inch)
No Markings = Tube or Tray
Optional: Additional Features -EP = Enhanced Product (-40°C to 105°C)
-HT = Extreme Temperature Parts (-55°C to 150°C)
-Q1 = Automotive Q100 Qualified
MSP 430 F 5 438 A I ZQW T XX
Processor Family
Series
Optional: Temperature Range
430 MCU Platform
PackagingDevice Type
Optional: A = Revision
Optional: Tape and Reel
Feature Set
Optional: Additional Features
www.ti.com
MSP430G2231-Q1
SLAS787B –NOVEMBER 2011–REVISED MARCH 2014
Figure 17. Device Nomenclature
11.2 Documentation Support
11.2.1 Related Documents
The following documents describe the MSP430G2231 device. Copies of these documents are available on the
Internet at www.ti.com.
SLAU144 MSP430x2xx Family User's Guide. Detailed information on the modules and peripherals available in
SLAZ417 MSP430G2231 Device Erratasheet. Describes the known exceptions to the functional specifications
11.3 Community Resources
The following links connect to TI community resources. Linked contents are provided "AS IS" by the respective
contributors. They do not constitute TI specifications and do not necessarily reflect TI's views; see TI's Terms of
Use.
TI E2E Community
TI's Engineer-to-Engineer (E2E) Community. Created to foster collaboration among engineers. At e2e.ti.com, you
can ask questions, share knowledge, explore ideas, and help solve problems with fellow engineers.
Texas Instruments Embedded Processors Wiki. Established to help developers get started with embedded
processors from Texas Instruments and to foster innovation and growth of general knowledge about the
hardware and software surrounding these devices.
11.4 Trademarks
MSP430, Code Composer Studio are trademarks of Texas Instruments.
All other trademarks are the property of their respective owners.
11.5 Electrostatic Discharge Caution
These devices have limited built-in ESD protection. The leads should be shorted together or the device placed in conductive foam
during storage or handling to prevent electrostatic damage to the MOS gates.
11.6 Glossary
SLYZ022 — TI Glossary.
This glossary lists and explains terms, acronyms and definitions.
12Mechanical, Packaging, and Orderable Information
The following pages include mechanical packaging and orderable information. This information is the most
current data available for the designated devices. This data is subject to change without notice and revision of
this document. For browser-based versions of this data sheet, refer to the left-hand navigation.
The marketing status values are defined as follows:
ACTIVE: Product device recommended for new designs.
LIFEBUY: TI has announced that the device will be discontinued, and a lifetime-buy period is in effect.
NRND: Not recommended for new designs. Device is in production to support existing customers, but TI does not recommend using this part in a new design.
PREVIEW: Device has been announced but is not in production. Samples may or may not be available.
OBSOLETE: TI has discontinued the production of the device.
(2)
Eco Plan - The planned eco-friendly classification: Pb-Free (RoHS), Pb-Free (RoHS Exempt), or Green (RoHS & no Sb/Br) - please check http://www.ti.com/productcontent for the latest availability
information and additional product content details.
TBD: The Pb-Free/Green conversion plan has not been defined.
Pb-Free (RoHS): TI's terms "Lead-Free" or "Pb-Free" mean semiconductor products that are compatible with the current RoHS requirements for all 6 substances, including the requirement that
lead not exceed 0.1% by weight in homogeneous materials. Where designed to be soldered at high temperatures, TI Pb-Free products are suitable for use in specified lead-free processes.
Pb-Free (RoHS Exempt): This component has a RoHS exemption for either 1) lead-based flip-chip solder bumps used between the die and package, or 2) lead-based die adhesive used between
the die and leadframe. The component is otherwise considered Pb-Free (RoHS compatible) as defined above.
Green (RoHS & no Sb/Br): TI defines "Green" to mean Pb-Free (RoHS compatible), and free of Bromine (Br) and Antimony (Sb) based flame retardants (Br or Sb do not exceed 0.1% by weight
in homogeneous material)
(3)
MSL, Peak Temp. - The Moisture Sensitivity Level rating according to the JEDEC industry standard classifications, and peak solder temperature.
(4)
There may be additional marking, which relates to the logo, the lot trace code information, or the environmental category on the device.
(5)
Multiple Device Markings will be inside parentheses. Only one Device Marking contained in parentheses and separated by a "~" will appear on a device. If a line is indented then it is a continuation
of the previous line and the two combined represent the entire Device Marking for that device.
(6)
Lead/Ball Finish - Orderable Devices may have multiple material finish options. Finish options are separated by a vertical ruled line. Lead/Ball Finish values may wrap to two lines if the finish
value exceeds the maximum column width.
Important Information and Disclaimer:The information provided on this page represents TI's knowledge and belief as of the date that it is provided. TI bases its knowledge and belief on information
provided by third parties, and makes no representation or warranty as to the accuracy of such information. Efforts are underway to better integrate information from third parties. TI has taken and
continues to take reasonable steps to provide representative and accurate information but may not have conducted destructive testing or chemical analysis on incoming materials and chemicals.
TI and TI suppliers consider certain information to be proprietary, and thus CAS numbers and other limited information may not be available for release.
PACKAGE OPTION ADDENDUM
www.ti.com
26-Nov-2014
Addendum-Page 2
In no event shall TI's liability arising out of such information exceed the total purchase price of the TI part(s) at issue in this document sold by TI to Customer on an annual basis.
OTHER QUALIFIED VERSIONS OF MSP430G2231-Q1 :
•
Catalog: MSP430G2231
•
Enhanced Product: MSP430G2231-EP
NOTE: Qualified Version Definitions:
•
Catalog - TI's standard catalog product
•
Enhanced Product - Supports Defense, Aerospace and Medical Applications
Texas Instruments Incorporated and its subsidiaries (TI) reserve the right to make corrections, enhancements, improvements and other
changes to its semiconductor products and services per JESD46, latest issue, and to discontinue any product or service per JESD48, latest
issue. Buyers should obtain the latest relevant information before placing orders and should verify that such information is current and
complete. All semiconductor products (also referred to herein as “components”) are sold subject to TI’s terms and conditions of sale
supplied at the time of order acknowledgment.
TI warrants performance of its components to the specifications applicable at the time of sale, in accordance with the warranty in TI’s terms
and conditions of sale of semiconductor products. Testing and other quality control techniques are used to the extent TI deems necessary
to support this warranty. Except where mandated by applicable law, testing of all parameters of each component is not necessarily
performed.
TI assumes no liability for applications assistance or the design of Buyers’ products. Buyers are responsible for their products and
applications using TI components. To minimize the risks associated with Buyers’ products and applications, Buyers should provide
adequate design and operating safeguards.
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 relating to any combination, machine, or process in which TI components or services are used. Information
published by TI regarding third-party products or services does not constitute a license to use such products or services or a warranty or
endorsement thereof. Use of such information may require a license from a third party under the patents or other intellectual property of the
third party, or a license from TI under the patents or other intellectual property of TI.
Reproduction of significant portions of TI 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. TI is not responsible or liable for such altered
documentation. Information of third parties may be subject to additional restrictions.
Resale of TI components or services with statements different from or beyond the parameters stated by TI for that component or service
voids all express and any implied warranties for the associated TI component or service and is an unfair and deceptive business practice.
TI is not responsible or liable for any such statements.
Buyer acknowledges and agrees that it is solely responsible for compliance with all legal, regulatory and safety-related requirements
concerning its products, and any use of TI components in its applications, notwithstanding any applications-related information or support
that may be provided by TI. Buyer represents and agrees that it has all the necessary expertise to create and implement safeguards which
anticipate dangerous consequences of failures, monitor failures and their consequences, lessen the likelihood of failures that might cause
harm and take appropriate remedial actions. Buyer will fully indemnify TI and its representatives against any damages arising out of the use
of any TI components in safety-critical applications.
In some cases, TI components may be promoted specifically to facilitate safety-related applications. With such components, TI’s goal is to
help enable customers to design and create their own end-product solutions that meet applicable functional safety standards and
requirements. Nonetheless, such components are subject to these terms.
No TI components are authorized for use in FDA Class III (or similar life-critical medical equipment) unless authorized officers of the parties
have executed a special agreement specifically governing such use.
Only those TI components which TI has specifically designated as military grade or “enhanced plastic” are designed and intended for use in
military/aerospace applications or environments. Buyer acknowledges and agrees that any military or aerospace use of TI components
which have not been so designated is solely at the Buyer's risk, and that Buyer is solely responsible for compliance with all legal and
regulatory requirements in connection with such use.
TI has specifically designated certain components as meeting ISO/TS16949 requirements, mainly for automotive use. In any case of use of
non-designated products, TI will not be responsible for any failure to meet ISO/TS16949.
ProductsApplications
Audiowww.ti.com/audioAutomotive and Transportationwww.ti.com/automotive
Amplifiersamplifier.ti.comCommunications and Telecomwww.ti.com/communications
Data Convertersdataconverter.ti.comComputers and Peripheralswww.ti.com/computers
DLP® Productswww.dlp.comConsumer Electronicswww.ti.com/consumer-apps
DSPdsp.ti.comEnergy and Lightingwww.ti.com/energy
Clocks and Timerswww.ti.com/clocksIndustrialwww.ti.com/industrial
Interfaceinterface.ti.comMedicalwww.ti.com/medical
Logiclogic.ti.comSecuritywww.ti.com/security
Power Mgmtpower.ti.comSpace, Avionics and Defensewww.ti.com/space-avionics-defense
Microcontrollersmicrocontroller.ti.comVideo and Imagingwww.ti.com/video
RFIDwww.ti-rfid.com
OMAP Applications Processorswww.ti.com/omapTI E2E Communitye2e.ti.com
Wireless Connectivitywww.ti.com/wirelessconnectivity