to the MSP430x4xx Family User’s Guide,
Literature Number SLAU056
The Texas Instruments MSP430family ofultra-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. Thedigitally controlled oscillator (DCO) allows wake-up from low-power modesto activemode in less
than 6 μs.
The MSP430F42xA series are microcontroller configurations with three independent 16-bit sigma-delta A/D
converters, each with an integrated differential programmable gain amplifier input stage. Also included are a
built-in 16-bit timer, 128 LCD segment drive capability, hardware multiplier, and 14 I/O pins.
Typical applications include high-resolution applications such as handheld metering equipment, weigh scales,
and energy meters.
This integrated circuit can be damaged by ESD. Texas Instruments recommends that all integrated circuits be handled with
appropriate precautions. Failure to observe proper handling and installation procedures cancause damage. ESD damagecan range
from subtle performance degradation to complete device failure. Precision integrated circuits may be more susceptible to damage
because very small parametric changes could cause the device not to meet its published specifications. These devices have limited
built-in ESD protection.
Please be aware that an important notice concerning availability, standard warranty, and use in critical applications of
Texas Instruments semiconductor products and disclaimers thereto appears at the end of this data sheet.
PRODUCTION DATA information is current as of publication date.
Products conform to specifications per the terms of Texas Instruments
standard warranty. Production processing does not necessarily include
testing of all parameters.
TDO/TDI54I/OTest data output port. TDO/TDI data output or programming data input terminal.
TDI/TCLK55ITest data input or test clock input. The device protection fuse is connected to TDI.
TMS56ITest mode select. TMS is used as an input port for device programming and test.
TCK57ITest clock. TCK is the clock input port for device programming and test.
RST/NMI58IReset input or nonmaskable interrupt input port
P2.5/URXD059I/OGeneral-purpose digital I/O / receive data in—USART0/UART mode
P2.4/UTXD060I/OGeneral-purpose digital I/O / transmit data out—USART0/UART mode
P2.3/SVSIN61I/OGeneral-purpose digital I/O / Analog input to brownout, supply voltage supervisor
AV
SS
DV
SS
AV
CC
I
ODESCRIPTION
General-purpose digital I/O/ external clock input-USART0/UART orSPI mode, clock output—USART0/SPI
mode / LCD segment output 24 (See Note 1)
General-purpose digital I/O / Timer_A Capture: CCI2A input, Compare: Out2 output / LCD segment output
25 (See Note 1)
General-purpose digital I/O / slave out/master in of USART0/SPI mode / LCD segment output 26
(See Note 1)
General-purpose digital I/O / slave in/master out of USART0/SPI mode / LCD segment output 27
(See Note 1)
48I/O
50I/OGeneral-purpose digital I/O / SVS: output of SVS comparator / LCD segment output 30 (See Note 1)
62
63Digital supply voltage, negative terminal
64
General-purpose digital I/O / Timer_A and SD16 clock signal TACLK input / ACLK output (divided by 1,
2, 4, or 8) / LCD segment output 28 (See Note 1)
General-purpose digital I/O/ Timer_A, Capture: CCI1A, CCI1B input, Compare: Out1 output / LCD segment
output 31 (See Note 1)
General-purpose digital I/O / Timer_A, Capture: CCI0B input / MCLK output.
Note: TA0 is only an input on this pin / BSL receive
Analog supply voltage, negative terminal. Supplies SD16, SVS, brownout, oscillator, and LCD resistive
divider circuitry.
Analog supply voltage, positive terminal. Supplies SD16, SVS, brownout, oscillator, and LCD resistive
divider circuitry; must not power up prior to DV
CC
.
NOTE 1: LCD function is selected automatically when applicable LCD module control bits are set, not with PxSEL bits.
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
5
MSP430F42xA
MIXED SIGNAL MICROCONTROLLER
SLAS587 -- FEBRUARY 2008
short-form description
CPU
The MSP430 CPU has a 16-bit RISC architecture
that is highly transparent to the application. All
operations, other than program-flow instructions,
areperformedasregisteroperationsin
conjunction with seven addressing modes for the
source operand and four addressing modes for
the destination operand.
The CPU is integrated with 16 registers that
provide reduced instruction execution time. The
register-to-register operation execution time is
one cycle of the CPU clock.
Four of the registers, R0 to R3, are dedicated as
program counter, stack pointer, status register,
andconstantgenerator,respectively. The
remainingregistersaregeneral-purpose
registers.
Peripherals are connected to the CPU using data,
address, and control buses, and can be handled
with all instructions.
instruction set
The instruction set consists of 51 instructions with
three formats and seven address modes. Each
instruction can operate on word and byte data.
Table 1 shows examples of the three types of
instruction formats; the address modes are listed
in Table 2.
The MSP430 has one active mode and five software-selectable low-power modes of operation. An interrupt
event can wake up the device from any of the five low-power modes, service the request, and restore back to
the low-power mode on return from the interrupt program.
The following six operating modes can be configured by software:
DActive mode (AM)
--All clocks are active.
DLow-power mode 0 (LPM0)
--CPU is disabled.
ACLK and SMCLK remain active, MCLK is available to modules.
FLL+ loop control remains active.
DLow-power mode 1 (LPM1)
--CPU is disabled.
ACLK and SMCLK remain active, MCLK is available to modules.
FLL+ loop control is disabled.
DLow-power mode 2 (LPM2)
--CPU is disabled.
MCLK, FLL+ loop control, and DCOCLK are disabled.
DCO dc generator remains enabled.
ACLK remains active.
DLow-power mode 3 (LPM3)
--CPU is disabled.
MCLK, FLL+ loop control, and DCOCLK are disabled.
DCO dc generator is disabled.
ACLK remains active.
DLow-power mode 4 (LPM4)
--CPU is disabled.
ACLK is disabled.
MCLK, FLL+ loop control, and DCOCLK are disabled.
DCO dc generator is disabled.
Crystal oscillator is stopped.
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
7
MSP430F42xA
MIXED SIGNAL MICROCONTROLLER
SLAS587 -- FEBRUARY 2008
interrupt vector addresses
The interrupt vectors andthe power-upstarting address are located in the address range of0FFFFh to0FFE0h.
The vector contains the 16-bit address of the appropriate interrupt-handler instruction sequence.
3. (Non)maskable: the individual interrupt-enable bit can disable an interrupt event, but the general interrupt-enable cannot.
4. 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 (from 0600h to 0BFFh).
NMIIFG (see Notes 1 and 3)
OFIFG (see Notes 1 and 3)
ACCVIFG (see Notes 1 and 3)
SD16CCTLx SD16OVIFG,
CCIFGs, and TACTL TAIFG
WDTIFG
KEYV
(see Note 1)
SD16CCTLx SD16IFG
(see Notes 1 and 2)
TACCR1 and TACCR2
(see Notes 1 and 2)
P1IFG.0toP1IFG.7
(see Notes 1 and 2)
P2IFG.0toP2IFG.7
(see Notes 1 and 2)
Reset0FFFEh15, highest
(Non)maskable
(Non)maskable
(Non)maskable
Maskable0FFF8h12
Maskable0FFEAh5
Maskable0FFE8h4
Maskable0FFE2h1
0FFFCh14
0FFFAh13
0FFF6h11
0FFEEh7
0FFE6h3
0FFE4h2
8
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
MSP430F42xA
MIXED SIGNAL MICROCONTROLLER
SLAS587 -- FEBRUARY 2008
special function registers
Most interruptand module enable bits are collected into the lowest address space. Special function register bits
that are not allocated to a functional purpose are not physically present in the device. Simple software access
is provided with this arrangement.
interrupt enable 1 and 2
Address
0hURXIE0ACCVIENMIIE
76540
UTXIE0OFIEWDTIE
rw–0rw–0rw–0
rw–0rw–0rw–0
32 1
WDTIE:Watchdog timer interruptenable. Inactive if watchdog modeis selected. Active if watchdogtimer
Legend: rw--0,1:Bit can be read and written. It Is reset or set by PUC.
76540321
rw--(0,1):Bit can be read and written. It Is reset or set by POR.
SFR Bit Not Present in Device.
memory organization
MSP430F423AMSP430F425AMSP430F427A
Memory
Interrupt vector
Code memory
Information memorySize256 Byte
Boot memorySize1kB
RAMSize256 Byte
Peripherals16 bit
Size
Flash
Flash
8bit
8-bit SFR
8KB
0FFFFh to 0FFE0h
0FFFFh to 0E000h
010FFh to 01000h
0FFFh to 0C00h
02FFh to 0200h
01FFh to 0100h
0FFh to 010h
0Fh to 00h
32 1
16KB
0FFFFh to 0FFE0h
0FFFFh to 0C000h
256 Byte
010FFh to 01000h
1kB
0FFFh to 0C00h
512 Byte
03FFh to 0200h
01FFh to 0100h
0FFh to 010h
0Fh to 00h
0FFFFh to 0FFE0h
0FFFFh to 08000h
256 Byte
010FFh to 01000h
0FFFh to 0C00h
05FFh to 0200h
01FFh to 0100h
0FFh to 010h
0Fh to 00h
32KB
1kB
1KB
bootstrap loader (BSL)
The MSP430 bootstrap loader (BSL) enables users to program the flash memory or RAM using a UART serial
interface. Access to the MSP430 memory via the BSL is protected by user-defined password. For complete
description of the features of the BSLand itsimplementation, see the application report Features of the MSP430Bootstrap Loader, literature number SLAA089.
BSL FUNCTIONPM PACKAGE PINS
Data transmit53 - P1.0
Data receive52 - P1.1
10
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
MSP430F42xA
K
MIXED SIGNAL MICROCONTROLLER
SLAS587 -- FEBRUARY 2008
flash memory
The flash memory can be programmed via the JTAG port, the bootstrap loader, or in-system by the CPU. The
CPU c an perform single-byteand single-wordwrites tothe flash memory.Features ofthe flash memory include:
DFlash memory has n segments of main memory and two segments of information memory (A and B) of
128 bytes each. Each segment in main memory is 512 bytes in size.
DSegments 0 to n may be erased in one step, or each segment may be individually erased.
DSegments A and B can be erased individually, or as a group with segments 0 to n.
Segments A and B are also called information memory.
DNew devices may have some bytes programmed in the information memory (needed for test during
manufacturing). The user should perform an erase of the information memory prior to the first use.
8KB
0FFFFh
0FE00h
0FDFFh
0FC00h
0FBFFh
0FA00h
0F9FFh
0E400h
0E3FFh
0E200h
0E1FFh
0E000h
010FFh
01080h
0107Fh
01000h
16KB
0FFFFh
0FE00h
0FDFFh
0FC00h
0FBFFh
0FA00h
0F9FFh
0C400h
0C3FFh
0C200h
0C1FFh
0C000h
010FFh
01080h
0107Fh
01000h
B
32
0FFFFh
0FE00h
0FDFFh
0FC00h
0FBFFh
0FA00h
0F9FFh
08400h
083FFh
08200h
081FFh
08000h
010FFh
01080h
0107Fh
01000h
Segment 0
With Interrupt Vectors
Segment 1
Segment 2
Main Memory
Segment n--1
Segment n
Segment A
Information Memory
Segment B
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
11
MSP430F42xA
MIXED SIGNAL MICROCONTROLLER
SLAS587 -- FEBRUARY 2008
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 MSP430x4xx Family User’s Guide, literature number
SLAU056.
oscillator and system clock
The clock system in the MSP430F42xA family of devices is supported by the FLL+ module, which includes
support for a 32768-Hz watch crystal oscillator, an internal digitally-controlled oscillator (DCO), and a
high-frequency crystal oscillator. The FLL+ clock module is designed to meet the requirements of both low
system cost and low power consumption. The FLL+ 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 turn-on clock source and stabilizes in less than 6 μs. The
FLL+ module provides the following clock signals:
DAuxiliary clock (ACLK), sourced from a 32768-Hz watch crystal or a high-frequency crystal.
DMain clock (MCLK), the system clock used by the CPU.
DSub-Main clock (SMCLK), the subsystem clock used by the peripheral modules.
DACLK/n, the buffered output of ACLK, ACLK/2, ACLK/4, or ACLK/8.
brownout, supply voltage supervisor (SVS)
The brownout circuit is implemented to provide the proper internal reset signal to the device during power on
and power off. The SVS 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 (SVM) (the
device is not automatically reset).
The CPU begins code execution after the brownout circuit releases the device reset. However, V
have ramped to V
reaches V
CC(min)
CC(min)
. If desired, the SVS circuit can be used to determine when VCCreaches V
at that time. The user must ensure the default FLL+ settings are not changed until V
CC(min)
digital I/O
There are two 8-bit I/O ports implemented—ports P1 and P2 (only six P2 I/O signals are available on external
pins):
DAll individual I/O bits are independently programmable.
DAny combination of input, output, and interrupt conditions is possible.
DEdge-selectable interrupt input capability for all the eight bits of port P1 and six bits of P2.
DRead/write access to port-control registers is supported by all instructions.
NOTE:
Six bits of port P2 (P2.0 to P2.5) are available on external pins, but all control and data bits for port
P2 are implemented.
Basic Timer1
CC
.
may not
CC
The Basic Timer1 has two independent 8-bit timers that can be cascaded to form a 16-bit timer/counter. Both
timers can be read and written by software. The Basic Timer1 can be used to generate periodic interrupts and
clock for the LCD module.
LCD drive
The LCD driver generates the segment and common signals required to drive an LCD display. The LCD
controller has dedicated data memory to hold segment drive information. Common and segment signals are
generated as defined by the mode. Static, 2-MUX, 3-MUX, and 4-MUX LCDs are supported by this peripheral.
12
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
MSP430F42xA
A
MIXED SIGNAL MICROCONTROLLER
SLAS587 -- FEBRUARY 2008
watchdog timer (WDT+)
The primary function of the 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 anapplication, the module can be configured asan interval timer and can generate interruptsat selected time
intervals.
Timer_A3
Timer_A3 is a 16-bit timer/counter with three capture/compare registers. Timer_A3 can support multiple
capture/compares, PWM outputs, and interval timing. Timer_A3 also has extensive interrupt capabilities.
Interrupts may be generated from the counter on overflow conditions and from each of the capture/compare
registers.
The MSP430F42xA devices have one hardware USART peripheral module (USART0) that is used for serial
data communication. The USART supports synchronous SPI (3 or 4 pin) and asynchronous UART
communication protocols, using double-buffered transmit and receive channels.
hardware multiplier
The multiplication operation is supported by a dedicated peripheral module. The module performs 16×16,
16×8, 8×16, and 8×8 bit operations. The module is capable of supporting signed and unsigned multiplication,
as well as signed and unsigned multiply and accumulateoperations. Theresult of an operation can be accessed
immediately after the operands have been loaded into the peripheral registers. No additional clock cycles are
required.
SD16
The SD16 moduleintegrates three independent16-bit sigma-delta A/Dconverters, internal temperaturesensor,
and built-in voltage reference. Each channel is designed with a fully differential analog input pair and
programmable gain amplifier input stage.
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
13
Loading...
+ 29 hidden pages
You need points to download manuals.
1 point = 1 manual.
You can buy points or you can get point for every manual you upload.