DBrownout Detector
DBasic Timer With Real-Time Clock Feature
DSupply Voltage Supervisor/Monitor With
Programmable Level Detection
DOn-Chip Comparator
DSerial Onboard Programming,
No External Programming Voltage Needed
Programmable Code Protection by Security
Fuse
DBootstrap Loader
DOn-Chip Emulation Module
DMSP430FG47x Family Members Include
MSP430FG477: 32KB+256B Flash Memory
2KB RAM
MSP430FG478: 48KB+256B Flash Memory
2KB RAM
MSP430FG479: 60KB+256B Flash Memory
2KB RAM
DAvailable in 113-Ball BGA (ZQW) and
80-Pin QFP (PN) Packages (see Available
Options)
DFor Complete Module Descriptions, See the
MSP430x4xx Family User’s Guide,
Literature Number SLAU056
description
The Texas Instruments MSP430 family of ultralow-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 wake-up from low-power modes to active mode in less
than 6 s.
The MSP430FG47x is a microcontroller configuration with two 16-bit timers, a basic timer with a real-time clock,
a high performance 16-bit sigma-delta A/D converter, dual 12-bit D/A converters, two configurable operational
amplifiers, two universal serial communication interface, 48 I/O pins, and a liquid crystal display driver.
Typical applications for this device include analog and digital sensor systems, digital motor control, remote
controls, thermostats, digital timers, hand-held meters, etc.
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 can cause damage. ESD damage can 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.
Copyright 2011, Texas Instruments Incorporated
POST OFFICE BOX 655303 DALLAS, TEXAS 75265
1
MSP430FG47x
MIXED SIGNAL MICROCONTROLLER
SLAS580D -- OCTOBER 2008 -- REVISED MARCH 2011
AVAILABLE OPTIONS
T
A
-- 4 0 Cto85C
†
For the most current package and ordering information, see the Package Option Addendum at the end
of this document, or see the TI web site at www.ti.com.
‡
Package drawings, thermal data, and symbolization are available at www.ti.com/packaging.
PLASTIC 113-BALL BGA (ZQW)PLASTIC 80-PIN QFP (PN)
MSP430FG477IZQW
MSP430FG478IZQW
MSP430FG479IZQW
PACKAGED DEVICES
DEVELOPMENT TOOL SUPPORT
All MSP430 microcontrollers include an Embedded Emulation Module (EEM) allowing advanced debugging
and programming through easy to use development tools. Recommended hardware options include the
following:
DDebugging and Programming Interface
--MSP--FET430UIF (USB)
--MSP--FET430PIF (Parallel Port)
DDebugging and Programming Interface with Target Board
†
‡
MSP430FG477IPN
MSP430FG478IPN
MSP430FG479IPN
--MSP--FET430U80 (PN package)
DProduction Programmer
--MSP--GANG430
2
POST OFFICE BOX 655303 DALLAS, TEXAS 75265
pin designation, MSP430FG47xIZQW
A1
A2
A3A4A5A6A7A8A9A10
B1
B2
B3B4B5B6B7B8B9B10
C1
C2
C3
D1
D2
E1
E2
F1
F2
G1
G2
MIXED SIGNAL MICROCONTROLLER
D4D5D6D7D8D9
E5
E4
F4
F5
G4
G5
E7
E6
E8
F8
G8
MSP430FG47x
SLAS580D -- OCTOBER 2008 -- REVISED MARCH 2011
A11
A12
B11
B12
C11
C12
D11
D12
E11
F11
G11
E12
F12
G12
E9
F9
G9
H1
H2
J1
J2
K1
K2
L1
L2
L3L4L5L6L7L8L9L10
M1
M2
H5H6H7H8
H4
J4J5J6J7J8J9
H9
H11
J11
K11
L11
M11
H12
J12
K12
L12
M12M3M4M5M6M7M8M9M10
Note: For terminal assignments, see the MSP430xG47x Terminal Functions table.
POST OFFICE BOX 655303 DALLAS, TEXAS 75265
3
MSP430FG47x
MIXED SIGNAL MICROCONTROLLER
SLAS580D -- OCTOBER 2008 -- REVISED MARCH 2011
pin designation, MSP430FG47xIPN
SS2
CC2DVSS1
DV
DV
P2.3/TB2
RST/NMI
TCK
P2.5/UCA0RXD/UCA0SOMI
P2.4/UCA0TXD/UCA0SIMO
TMS
TDI/TCLK
XT2OUT
XT2IN
TDO/TDI
P6.0/A0+/OA0O
P6.2/OA0I1 (SW0A)
P6.1/A0-/OA0FB
P6.3/A1+/OA1O
P6.4/A1-/OA1FB
P6.5/OA0I2 (SW0B)
P6.6/OA1I1 (SW1A)
DV
CC1
P2.2/TB1
P2.1/TB0/S0
P2.0/TA2/S1
P2.6/CAOUT/S2
P2.7/S3
GND
XIN
XOUT
GND
P4.7/S4
P4.6/S5
P4.5/S6
P4.4/S7
P4.3/S8
P4.2/S9
P4.1/S10
P4.0/S11
S12
S13
80 79
78 77 76 75 74 73 72 71 70 69 68 67 66 65
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
S16
S14
S15
S17
S18
S19
80-pin
IPN PACKAGE
(TOP VIEW)
S22
S23
P5.0/S20
P5.1/S21
S24
S25
64
63 62 61
60
V
REF
P6.7/OA1I2/SVSIN (SW1B)
59
P1.0/TA0/OA0RFB
58
P1.1/TA0/MCLK/OA1RFB
57
P1.2/TA1/A4-/OA0I3 (SW0C)
56
P1.3/TBOUTH/SVSOUT/A4+/OA1I3 (SW1C)
55
P1.4/TBCLK/SMCLK/A3-/OA1I0/DAC1
54
AV
53
52
51
50
49
48
47
46
45
44
43
42
41
37
38 39 40
COM0
P5.2/COM1
P5.3/COM2
P5.5/R23
P5.4/COM3
LCDCAP/R33
P5.7/R03
P5.6/LCDREF/R13
SS
AV
CC
P1.5/TACLK/ACLK/A3+
P1.6/CA0/A2-/OA0I0/DAC0
P1.7/CA1/A2+
P3.7/S31
P3.6/S30
P3.5/S29
P3.4/S28
P3.3/UCB0CLK/UCA0STE
P3.2/UCB0SOMI/UCB0SCL/S27
P3.1/UCB0SIMO/UCB0SDA/S26
P3.0/UCB0STE/UCA0CLK
4
POST OFFICE BOX 655303 DALLAS, TEXAS 75265
functional block diagram
MSP430FG47x
MIXED SIGNAL MICROCONTROLLER
SLAS580D -- OCTOBER 2008 -- REVISED MARCH 2011
XIN/
XT2IN
Oscillators
FLL+
CPU
64kB
incl. 16
Registers
EEM
JTAG
Interface
XOUT/
XT2OUT
22
MCLK
ACLK
SMCLK
DVCC1/2 DVSS1/2
Flash
60kB
48kB
32kB
MAB
MDB
Brownout
Protection
SVS,
SVM
RST/NMI
RAM
2kB
2kB
2kB
LCD_A
128
Segments
1,2,3,4
Mux
AVCCAVSSP1.x/P2.x
SD16_A
with
Buffer
1 Channel
SigmaDelta A/D
Converter
DAC12
12-Bit
2
Channels
Voltage
Out
Watchdog
WDT+
15-Bit
OA0, OA1
2 OpAmps
Timer_A3
3 CC
Registers
Comparator
_A
Timer_B3
3 CC
Registers,
Shadow
Reg
capability
Timer &
2x8
Ports
P1/P2
2x8 I/O
Interrupt
Basic
Real-
Time
Clock
P3.x/P4.x
P5.x/P6.x
Ports
P3/P4
P5/P6
4x8 I/O
USCI A0
UART/
LIN,
IrDA, SPI
USCI B0
SPI, I2C
4x8
POST OFFICE BOX 655303 DALLAS, TEXAS 75265
5
MSP430FG47x
I/ODESCRIPTIO
N
MIXED SIGNAL MICROCONTROLLER
SLAS580D -- OCTOBER 2008 -- REVISED MARCH 2011
TERMINAL
NO.
NAME
AV
CC
AV
SS
DV
CC1
DV
SS1
DV
CC2
DV
SS2
P1.0/TA0/
OA0RFB
P1.1/TA0/MCLK/
OA1RFB
P1.2/TA1/A4--/
OA0I3 (SW0C)
P1.3/TBOUTH/
SVSOUT/A4+/
OA1I3 (SW1C)
P1.4/TBCLK/
SMCLK/A3--/
OA1I0/DAC1
P1.5/TACLK/
ACLK/A3+
P1.6/CA0/A2--/
OA0I0/DAC0
P1.7/CA1/A2+49G11I/O
P2.0/TA2/S14
P2.1/TB0/S03C1I/O
80
113
PIN
PIN
52F12Analog supply voltage, positive terminal.
53E12Analog supply voltage, negative terminal.
1A1Digital supply voltage, positive terminal. Supplies all digital parts.
79A3Digital supply voltage, negative terminal. Supplies all digital parts.
80A2Digital supply voltage, positive terminal. Supplies all digital parts.
B2
78
B3
58C11I/O
57C12I/O
56D11I/O
55D12I/O
54E11I/O
51F11I/O
50G12I/O
C2
C3
Digital supply voltage, negative terminal. Supplies all digital parts.
General-purpose digital I/O pin
Timer_A, capture: CCI0A input, compare: Out0 output
Range switch to OA0 output
BSL transmit
General-purpose digital I/O pin
Timer_A, capture: CCI0B input, compare: Out0 output
MCLK signal output
Range switch to OA1 output
BSL receive
General-purpose digital I/O pin
Timer_A, capture: CCI1A input, compare: Out1 output
SD16 negative analog input A4
OA0, analog input I3
General-purpose digital I/O pin/Timer_A, capture: CCI2A input, compare: Out2 output
switch all PWM digital output ports to high impedance -- Timer_B TB0 to TB2
SVS comparator output
SD16 positive analog input A4
OA1, analog input I3
General-purpose digital I/O pin/
Timer_B, clock signal TBCLK input
SMCLK signal output
SD16 negative analog input A3
OA1, analog input I0
DAC12.1 output
General-purpose digital I/O pin
Timer_A, clock signal TACLK input
ACLK signal output
SD16 positive analog input A3
General-purpose digital I/O pin
Comparator_A input 0
SD16 negative analog input A2
OA0, analog input I0
DAC12.0 output
General-purpose digital I/O pin
Comparator_A input 1
SD16 positive analog input A2
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
source operand and four addressing modes for
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, and Table 2 lists 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 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
--FLL+ loop control remains active
DLow-power mode 1 (LPM1)
--CPU is disabled
--ACLK and SMCLK remain active
--FLL+ loop control is disabled
DLow-power mode 2 (LPM2)
--CPU is disabled
--MCLK, FLL+ loop control, and DCOCLK are disabled
--DCO’s dc generator remains enabled
--ACLK remains active
DLow-power mode 3 (LPM3)
--CPU is disabled
--MCLK, FLL+ loop control, and DCOCLK are disabled
--DCO’s 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’s dc generator is disabled
--Crystal oscillator is stopped
POST OFFICE BOX 655303 DALLAS, TEXAS 75265
11
MSP430FG47x
MIXED SIGNAL MICROCONTROLLER
SLAS580D -- OCTOBER 2008 -- REVISED MARCH 2011
interrupt vector addresses
The interrupt vectors and the power-up starting address are located in the address range 0xFFFF to 0xFFC0.
The vector contains the 16-bit address of the appropriate interrupt-handler instruction sequence.
If the reset vector (located at address 0xFFFE) contains 0xFFFF (e.g., flash is not programmed) the CPU goes
into LPM4 immediately after power--up.
INTERRUPT SOURCEINTERRUPT FLAGSYSTEM INTERRUPT
Power-Up
External Reset
Watchdog
PC Out--of--Range (see Note 4)
Flash Memory Access Violation
NOTES: 1. Multiple source flags
Flash Memory
NMI
Oscillator Fault
Timer_B3TBCCR0 CCIFG0 (see Note 2)Maskable0xFFFA13
Timer_B3
Comparator_ACAIFGMaskable0xFFF611
Watchdog Timer+WDTIFGMaskable0xFFF410
USCI_A0/USCI_B0 receive
USCI_B0 I2C status
USCI_A0/USCI_B0 transmit
USCI_B0 I2C receive/transmit
SD16_ASD16CCTLx SD16OVIFG, SD16CCTLx SD16IFG
Timer_A3TACCR0 CCIFG0 (see Note 2)Maskable0xFFEC6
Timer_A3
I/O Port P1 (Eight Flags)P1IFG.0 to P1IFG.7 (see Notes 1 and 2)Maskable0xFFE84
DAC12DAC12_0IFG, DAC12_1IFGMaskable0xFFE63
I/O Port P2 (Eight Flags)P2IFG.0 to P2IFG.7 (see Notes 1 and 2)Maskable0xFFE21
Basic Timer1/RTCBTIFGMaskable0xFFE00, lowest
2. Interrupt flags are located in the module.
3. A reset is generated if the CPU tries to fetch instructions from within the module register memory address range (0h to 01FFh).
(Non)maskable: the individual interrupt-enable bit can disable an interrupt event, but the general-interrupt enable cannot disable it.
4. Access and key violations, KEYV and ACCVIFG.
5. In SPI mode: UCB0RXIFG. In I2C mode: UCALIFG, UCNACKIFG, ICSTTIFG, UCSTPIFG.
6. In UART/SPI mode: UCB0TXIFG. In I2C mode: UCB0RXIFG, UCB0TXIFG.
NMIIFG (see Notes 1 and 3)
OFIFG (see Notes 1 and 3)
ACCVIFG (see Notes 1, 2 and 4)
TBCCR1 CCIFG1 ... TBCCR3 CCIFG3,
TBIFG (see Notes 1 and 2)
UCA0RXIFG, UCB0RXIFG
UCA0TXIFG, UCB0TXIFG
TACCR1 CCIFG1 and TACCR2 CCIFG2,
TAIFG (see Notes 1 and 2)
PORIFG
RSTIFG
WDTIFG
KEYV
(see Note 1)
(see Notes 1 and 5)
(see Note 1 and 6)
(see Notes 1 and 2)
Reset0xFFFE15, highest
(Non)maskable
(Non)maskable
(Non)maskable
Maskable0xFFF812
Maskable0xFFF29
Maskable0xFFF08
Maskable0xFFEE7
Maskable0xFFEA5
Maskable0xFFE42
WORD
ADDRESS
0xFFFC14
PRIORITY
12
POST OFFICE BOX 655303 DALLAS, TEXAS 75265
MSP430FG47x
MIXED SIGNAL MICROCONTROLLER
SLAS580D -- OCTOBER 2008 -- REVISED MARCH 2011
special function registers
Most interrupt and module-enable bits are collected in the lowest address space. Special-function register bits
not allocated to a functional purpose are not physically present in the device. This arrangement provides simple
software access.
interrupt enable 1 and 2
Address76543210
00h
WDTIEWatchdog timer interrupt enable. Inactive if watchdog mode is selected. Active if watchdog
WDTIFGSet on watchdog timer overflow (in watchdog mode) or security key violation.
Reset on V
power-up or a reset condition at RST/NMI pin in reset mode.
CC
OFIFGFlag set on oscillator fault.
RSTIFGExternal reset interrupt flag. Set on a reset condition at RST
on V
power-up.
CC
PORIFGPower-on interrupt flag. Set on V
NMIIFGSet via RST
Address76543210
03h
BTIFG
rw--0rw--1rw--0rw--1rw--0
/NMI pin.
NMIIFGRSTIFGPORIFGOFIFGWDTIFG
rw--0rw--(0)rw--(1)rw-- 1rw--(0)
/NMI pin in reset mode. Reset
power-up.
CC
UCB0
TXIFG
UCB0
RXIFG
UCA0
TXIFG
UCA0
RXIFG
UCA0RXIFGUSCI_A0 receive interrupt flag
UCA0TXIFGUSCI_A0 transmit interrupt flag
UCB0RXIFGUSCI_B0 receive interrupt flag
UCB0TXIFGUSCI_B0 transmit interrupt flag
BTIFGBasic Timer1 interrupt flag
Legendrw:
rw-0,1:
rw-(0,1):
Bit can be read and written.
Bit can be read and written. It is Reset or Set by PUC.
Bit can be read and written. It is Reset or Set by POR.
SFR bit is not present in device
14
POST OFFICE BOX 655303 DALLAS, TEXAS 75265
MSP430FG47x
MIXED SIGNAL MICROCONTROLLER
SLAS580D -- OCTOBER 2008 -- REVISED MARCH 2011
memory organization
MSP430FG477MSP430FG478MSP430FG479
Memory
Main: interrupt vector
Main: code memory
Information memorySize
Boot memorySize
RAMSize2KB
Peripherals16-bit
bootstrap loader (BSL)
The MSP430 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 BSL and its implementation, see the application report Features of the MSP430 BootstrapLoader, literature number SLAA089.
Size
Flash
Flash
Flash
ROM
8-bit
8-bit SFR
32KB
0FFFFh to 0FFE0h
0FFFFh to 08000h
256 Byte
010FFh to 01000h
1KB
0FFFh to 0C00h
09FFh to 0200h
01FFh to 0100h
0FFh to 010h
0Fh to 00h
48KB
0FFFFh to 0FFE0h
0FFFFh to 04000h
256 Byte
010FFh to 01000h
1KB
0FFFh to 0C00h
2KB
09FFh to 0200h
01FFh to 0100h
0FFh to 010h
0Fh to 00h
60KB
0FFFFh to 0FFE0h
0FFFFh to 01100h
256 Byte
010FFh to 01000h
1KB
0FFFh to 0C00h
2KB
09FFh to 0200h
01FFh to 0100h
0FFh to 010h
0Fh to 00h
BSL FUNCTIONPN PACKAGE PINSZQW PACKAGE PINS
Data Transmit58 - P1.0C11 - P1.0
Data Receive57 - P1.1C12 - P1.1
flash memory (Flash)
The flash memory can be programmed via the JTAG port, the bootstrap loader, 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:
DFlash 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.
DSegments 0 to n may be erased in one step, or each segment may be individually erased.
DSegments 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.
DSegment A might contain calibration data. After reset, segment A is protected against programming or
erasing. It can be unlocked, but care should be taken not to erase this segment if this calibration data is
required.
DFlash content integrity check with marginal read modes.
POST OFFICE BOX 655303 DALLAS, TEXAS 75265
15
MSP430FG47x
MIXED SIGNAL MICROCONTROLLER
SLAS580D -- OCTOBER 2008 -- REVISED MARCH 2011
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 MSP430FG47x is supported by the FLL+ module, which includes support for a
32768-Hz watch crystal oscillator, an internal digitally-controlled oscillator (DCO), and a 8-MHz high-frequency
crystal oscillator (XT1), plus a 8-MHz high-frequency crystal oscillator (XT2). 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 sub-system clock used by the peripheral modules
DACLK/n, the buffered output of ACLK, ACLK/2, ACLK/4, or ACLK/8
brownout, supply voltage supervisor
The brownout circuit is implemented to provide the proper internal reset signal to the device during power on
and power off. The supply voltage supervisor (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 six 8-bit I/O ports implemented, ports P1 through P6.
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 ports P1 and P2.
DRead/write access to port-control registers is supported by all instructions.
CC
.
may not
CC
16
POST OFFICE BOX 655303 DALLAS, TEXAS 75265
MSP430FG47x
DEVICEINPUT
MODULEINPUT
MODUL
E
A
MIXED SIGNAL MICROCONTROLLER
SLAS580D -- OCTOBER 2008 -- REVISED MARCH 2011
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 an application, the module can be configured as an interval timer and can generate interrupts at selected time
intervals.
Basic Timer1 and Real-Time Clock
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 is extended to provide an integrated real-time
clock (RTC). An internal calendar compensates for month with less than 31 days and includes leap year
correction.
LCD_A driver with regulated charge pump
The LCD_A driver generates the segment and common signals required to drive an LCD display. The LCD_A
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.
The module can provide a LCD voltage independent of the supply voltage via an integrated charge pump.
Furthermore, it is possible to control the level of the LCD v oltage and, thus, contrast in software.
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.
TIMER_A3 SIGNAL CONNECTIONS
INPUT PIN NUMBER
PNZQW
P1.5 -- 51F11TAC L KTAC L K
P1.5 -- 51F11TAINCLKINCLK
P1.0 -- 58C11TA0CCI0A
P1.1 -- 57C12TA0CCI0B
P1.2 -- 56D11TA1CCI1A
P2.0 -- 4C2TA 2CCI2A
DEVICE INPUTMODULE INPUTMODULE
SIGNAL
ACLKACLK
SMCLKSMCLK
DV
SS
DV
CC
CAOUT (internal)CCI1B
DV
SS
DV
CC
ACLK (internal)CCI2B
DV
SS
DV
CC
NAME
GND
V
CC
GND
V
CC
GND
V
CC
BLOCK
TimerN
CCR0TA0
CCR1TA1
CCR2TA2
MODULE
OUTPUT
SIGNAL
OUTPUT PIN NUMBER
PNZQW
P1.0 -- 58C11
P1.1 -- 57C12
P1.2 -- 56D11
P2.0 -- 4C2
POST OFFICE BOX 655303 DALLAS, TEXAS 75265
17
MSP430FG47x
DEVICEINPUT
MODULEINPUT
MODUL
E
MIXED SIGNAL MICROCONTROLLER
SLAS580D -- OCTOBER 2008 -- REVISED MARCH 2011
Timer_B3
Timer_B3 is a 16-bit timer/counter with three capture/compare registers. Timer_B3 can support multiple
capture/compares, PWM outputs, and interval timing. Timer_B3 also has extensive interrupt capabilities.
Interrupts may be generated from the counter on overflow conditions and from each of the capture/compare
registers.
TIMER_B3 SIGNAL CONNECTIONS
INPUT PIN NUMBER
PNZQW
P1.4 -- 54E11TBCLKTBCLK
P1.4 -- 54E11TBCLK
P2.1 -- 3C1TB0CCI0A
P2.1 -- 3C1TB0CCI0B
P2.2 -- 2B1TB1CCI1A
P2.2 -- 2B1TB1CCI1B
P2.3 -- 77B4TB2CCI2A
NOTE 1: The inversion of TBCLK is done inside the module.
DEVICE INPUTMODULE INPUTMODULE
SIGNAL
ACLKACLK
SMCLKSMCLK
(See Note 1)
V
SS
V
CC
V
SS
V
CC
ACLK (internal)CCI2B
V
SS
V
CC
NAME
INCLK
GND
V
CC
GND
V
CC
GND
V
CC
BLOCK
TimerNA
CCR0TB0
CCR1TB1
CCR2TB2
MODULE
OUTPUT
SIGNAL
OUTPUT PIN NUMBER
PNZQW
P2.1 -- 3C1
P2.2 -- 2B1
P2.3 -- 77B4
universal serial communication interfaces (USCIs) (USCI_A0, USCI_B0)
The USCI module is used for serial data communication. The USCI module supports synchronous
communication protocols such as SPI (3 pin or 4 pin), I2C, and asynchronous communication protocols such
as UART, enhanced UART with automatic baudrate detection (LIN), and IrDA.
USCI_A0 provides support for SPI (3 pin or 4 pin), UART, enhanced UART and IrDA.
USCI_B0 provides support for SPI (3 pin or 4 pin) and I2C.
Comparator_A
The primary function of the comparator_A module is to support precision slope analog-to-digital conversions,
battery-voltage supervision, and monitoring of external analog signals.
18
POST OFFICE BOX 655303 DALLAS, TEXAS 75265
MSP430FG47x
MODUL
E
MODUL
E
MIXED SIGNAL MICROCONTROLLER
SLAS580D -- OCTOBER 2008 -- REVISED MARCH 2011
SD16_A
The SD16_A module supports 16-bit analog-to-digital conversions. The module implements a 16-bit
sigma-delta core and a reference generator. In addition to external analog inputs, an internal V
temperature sensor are also available.
DAC12
The DAC12 module is a 12-bit R-ladder voltage-output DAC. The DAC12 may be used in 8-bit or 12-bit mode.
When multiple DAC12 modules are present, they may be grouped together for synchronous operation.
OA
The MSP430FG47x has two configurable low-current general-purpose operational amplifiers. Each OA input
and output terminal is software-selectable and offer a flexible choice of connections for various applications.
The OA op amps primarily support front-end analog signal conditioning prior to analog-to-digital conversion.
OA0 SIGNAL CONNECTIONS
INPUT PIN NUMBER
PNZQW
P1.6 -- 50G12OA0I0OAxI0
P6.2 -- 65A9OA0I1OAxI1
P6.5 -- 62B10OA0I2OAxIA
P1.2 -- 56D11OA0I3OAxIB
P1.4 -- 54E11OA1I0OAxI0
P6.6 -- 61A11OA1I1OAxI1
P6.7 -- 59B12OA1I2OAxIA
P1.3 -- 55D12OA1I3OAxIB
DEVICE
INPUT
SIGNAL
MODULEMODULE
INPUT NAME
BLOCK
OA0OA0OUTOA0O
OA1OA1OUTOA1O
MODULE
OUTPUT
SIGNAL
CC
OUTPUT PIN NUMBER
PNZQW
P6.0 -- 67B8
P6.4 -- 64A10
sense and
POST OFFICE BOX 655303 DALLAS, TEXAS 75265
19
MSP430FG47x
Timer_B3Capture/compareregister
2
TBCCR
2
0196h
Capture/compareregister
1
TBCCR
1
0194h
p/p
g
_
g
p
p
Timer_A3Capture/compareregister
2
TACCR
2
0176h
Capture/compareregister
1
TACCR
1
0174h
p/p
g
_
g
p
p
F
lash
l
2
FCTL2
012Ah
DAC12DAC12_1dat
a
DAC12_1DA
T
01CAh
DAC12_1contro
l
DAC12_1CT
L
01C2h
_
_
SD16_
A
Generalcontro
l
SD16CTL
0100h
Channel0control
SD16CCTL0
0102h
B
)
y
ppg
ppg
MIXED SIGNAL MICROCONTROLLER
SLAS580D -- OCTOBER 2008 -- REVISED MARCH 2011
peripheral file map
PERIPHERALS WITH WORD ACCESS
WatchdogWatchdog timer controlWDTCTL0120h
Timer_B3Capture/compare register 2TBCCR20196h
Capture/compare register 1
Capture/compare register 0
Timer_B registerTBR0190h
Capture/compare control 2TBCCTL20186h
Capture/compare control 1TBCCTL10184h
Capture/compare control 0TBCCTL00182h
Timer_B controlTBCTL0180h
Timer_B interrupt vectorTBIV011Eh
Timer_A3Capture/compare register 2TACCR20176h
Capture/compare register 1
Capture/compare register 0
Timer_A registerTAR0170h
Capture/compare control 2TACCTL20166h
Capture/compare control 1TACCTL10164h
Capture/compare control 0TACCTL00162h
Timer_A controlTACTL0160h
Timer_A interrupt vectorTAI V012Eh
FlashFlash c ontrol 4
Flash control 3
contro
Flash control 1
DAC12DAC12_1 dataDAC12_1DAT01CAh
DAC12_1 control
DAC12_0 data
DAC12_0 control
SD16_AGeneral controlSD16CTL0100h
(see also:
Peripherals with
yteAccess
OA switchesSwitch control register 1SWCTL_100CEh
OA switchesSwitch control register
OA1Operational amplifier 1 control register 1OA1CTL100C3h
OA0Operational amplifier 0 control register 1OA0CTL100C1h
SD16_A
(see also:
Peripherals with
Word Access)
Channel 0 control
Channel 0 conversion memory
Interrupt vector word registerSD16IV0110h
PERIPHERALS WITH BYTE ACCESS
Switch control register 1
Operational amplifier 1 control register 0OA1CTL000C2h
Operational amplifier 0 control register 0OA0CTL000C0h
Channel 0 input control
Analog enable
TBCCR1
TBCCR0
TACCR1
TACCR0
FCTL4
FCTL3
FCTL1
DAC12_1CTL
DAC12_0DAT
DAC12_0CTL01C0h
SD16CCTL0
SD16MEM0
SWCTL
SWCTL1
SD16INCTL0
SD16AE
0194h
0192h
0174h
0172h
01BEh
012Ch
0128h
01C2h
01C8h
0102h
0112h
00CFh
00CEh
0B0h
0B7h
20
POST OFFICE BOX 655303 DALLAS, TEXAS 75265
peripheral file map (continued)
/
p
_
LCD_ALCD voltage control 1
USCI A0/B0
Comparator_A
Brownout, SVSSVS control register (reset by brownout signal)SVSCTL056h
FLL+ ClockFLL+ control 1FLL_CTL1054h
MIXED SIGNAL MICROCONTROLLER
SLAS580D -- OCTOBER 2008 -- REVISED MARCH 2011
LCDAVCTL1
LCD voltage control 0
LCD voltage port control 1
LCD voltage port control 0
LCD memory 20
:
LCD memory 16
LCD memory 15
:
LCD memory 1
LCD control and mode
USCI A0 auto baud rate controlUCA0ABCTL0x005D
USCI A0 transmit bufferUCA0TXBUF0x0067
USCI A0 receive bufferUCA0RXBUF0x0066
USCI A0 statusUCA0STAT0x0065
USCI A0 modulation c ontrolUCA0MCTL0x0064
USCI A0 baud rate control 1UCA0BR10x0063
USCI A0 baud rate control 0UCA0BR00x0062
USCI A0 control 1UCA0CTL10x0061
USCI A0 control 0UCA0CTL00x0060
USCI A0 IrDA receive controlUCA0IRRCTL0x005F
USCI A0 IrDA transmit controlUCA0IRTCTL0x005E
USCI B0 transmit bufferUCB0TXBUF0x006F
USCI B0 receive bufferUCB0RXBUF0x006E
USCI B0 statusUCB0STAT0x006D
USCI B0 I2C Interrupt enableUCB0CIE0x006C
USCI B0 baud rate control 1UCB0BR10x006B
USCI B0 baud rate control 0UCB0BR00x006A
USCI B0 control 1UCB0CTL10x0069
USCI B0 control 0UCB0CTL00x0068
USCI B0 I2C slave addressUCB0SA0x011A
USCI B0 I2C own addressUCB0OA0x0118
Comparator_A port disableCAPD05Bh
Comparator_A control2CACTL205Ah
Comparator_A control1CACTL1059h
FLL+ control 0FLL_CTL0053h
System clock frequency controlSCFQCTL052h
System clock frequency integratorSCFI1051h
System clock frequency integratorSCFI0050h
LCDAVCTL0
LCDAPCTL1
LCDAPCTL0
LCDM20
:
LCDM16
LCDM15
:
LCDM1
LCDACTL
0AFh
0AEh
0ADh
0ACh
0A4h
:
0A0h
09Fh
:
091h
090h
MSP430FG47x
POST OFFICE BOX 655303 DALLAS, TEXAS 75265
21
MSP430FG47x
MIXED SIGNAL MICROCONTROLLER
SLAS580D -- OCTOBER 2008 -- REVISED MARCH 2011
peripheral file map (continued)
PERIPHERALS WITH BYTE ACCESS
RTC
(Basic Timer1)
Port P6
Port P5
Port P4
Port P3
Port P2
Real-time clock year high byte
Real-time clock year low byte
Real-time clock month
Real-time clock day of month
Basic Timer1 counter
Basic Timer1 counter
Real-time counter 4
(Real-time clock day of week)
Real-time counter 3
(Real-time clock hour)
Real-time counter 2
(Real-time clock minute)
Real-time counter 1
(Real-time clock second)
Real-time clock control
Basic Timer1 control
errup
SFR interrupt flag 1IFG1002h
SFR interrupt enable 2IE2001h
FR interrupt enable 1IE1000h
P1SEL2
P1SEL
057h
026h
MSP430FG47x
POST OFFICE BOX 655303 DALLAS, TEXAS 75265
23
MSP430FG47x
(seeNote1
)
f
f
MIXED SIGNAL MICROCONTROLLER
SLAS580D -- OCTOBER 2008 -- REVISED MARCH 2011
absolute maximum ratings over operating free-air temperature (see Note 1)
Voltage applied at VCCto V
SS
Voltage applied to any pin (see Note 2)--0.3 V to V
Diode current at any device terminal .2mA......................................................
Storage temperature, T
: (unprogrammed device, see Note 3)--55C to 150C.......................
stg
(programmed device, see Note 3)--40Cto85C..........................
NOTES: 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 V
is applied to the TDI/TCLK pin when blowing the JTAG fuse.
3. Higher temperature may be applied during board soldering process 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.
. The JTAG fuse-blow voltage, VFB, is allowed to exceed the absolute maximum rating. The voltage
SS
recommended operating conditions
MINNOMMAX UNITS
Supply voltage during program execution,
V
(AVCC=DVCC=VCC)
CC
Supply voltage during flash memory programming,
V
(AVCC=DVCC=VCC)
CC
Supply voltage, VSS(AVSS=DVSS=VSS)00V
Operating free-air temperature range, T
LFXT1 crystal frequency, f
(see Note 1)
XT2 crystalfrequency,
Systemfrequency, MCLK,ACLK, SMCLK ,
NOTES: 1. In LF mode, the LFXT1 oscillator requires a watch crystal. In XT1 mode, LFXT1 accepts a ceramic resonator or a crystal.
(LFXT1)
(XT2)
A
LF selected,
XTS_FLL = 0
XT1 selected,
XTS_FLL = 1
XT1 selected,
XTS_FLL = 1
(System)
Watch crystal32.768kHz
Ceramic resonator0.456MHz
Crystal16MHz
Ceramic resonator0.458
Crystal18
VCC=1.8Vdc4.15
VCC=2.5Vdc8
1.83.6V
2.23.6V
-- 4 085C
--0.3 V to 4.1 V......................................................
+0.3V.......................................
CC
MHz
MHz
f
System
8 MHz
4.15 MHz
Figure 1. Frequency vs Supply Voltage, Typical Characteristics
24
(MHz)
Supply voltage range,
MSP430FG47x, during
program execution
1.8
Supply Voltage - V
POST OFFICE BOX 655303 DALLAS, TEXAS 75265
2.22.53.6
Supply voltage range , MSP430FG47x,
during flash memory programming
MSP430FG47x
f=f
f
(MCLK
)
=
f
(SMCLK)
=1MHz
A
)
Lowpowermode(LPM0
)
A
f
A
Low-powermode(LPM3)
V
f
(MCLK
)f(SMCLK)
0MHz,
A
ALCD_Aenabled,LCDCPEN=0
:
(
,
LCD(ACLK)
/
)
V
Low-powermode(LPM3)
f
(MCLK
)f(SMCLK)
0MHz,
2.2
V
A
ALCD_Aenabled,LCDCPEN=0
:
(
,
LCD(ACLK)
/
)
3
V
V
f
f
A
f
0Hz,SCG
0=1(seeNote2)
V
MIXED SIGNAL MICROCONTROLLER
SLAS580D -- OCTOBER 2008 -- REVISED MARCH 2011
electrical characteristics over recommended operating free-air temperature (unless otherwise
noted)
supply current into AVCC+DVCCexcluding external current
PARAMETERTEST CONDITIONSV
Active mode (see Note 1)
I
(AM)
f
(ACLK)
= 32,768 Hz
=1MHz,
XTS = 0, SELM = (0,1)
I
(LPM0)
Low-power mode(LPM0
(see Note 1)
Low-power mode (LPM2),
I
(LPM2)
(MCLK) =f(SMCLK) = 0 MHz,
f(ACLK) = 32,768 Hz, SCG0 = 0 (see Note 2)
-
I
(LPM3)
f
(MCLK)=f(SMCLK)
f
= 32,768 Hz, SCG0 = 1
(ACLK)
Basic Timer1 enabled ,ACLK selected
LCD
enabled,LCDCPEN = 0:
(static mode , f
=0MHz,
LCD=f(ACLK)
(see Note 2 and Note 3)
-
I
(LPM3)
f
(MCLK)=f(SMCLK)
f
= 32,768 Hz, SCG0 = 1
(ACLK)
Basic Timer1 enabled ,ACLK selected
LCD
enabled,LCDCPEN = 0:
(4-mux mode, f
=0MHz,
LCD=f(ACLK)
(see Note 2 and Note 3)
Low-power mode (LPM4)
I
(LPM4)
(MCLK)
(ACLK)
=0MHz,
=
=
(SMCLK)
=
NOTES: 1. Timer_Aisclockedbyf
2. All inputs are tied to 0 V or to V
3. The LPM3 currents are characterized with a Micro Crystal CC4V--T1A (9pF) crystal and OSCCAPx = 01h.
,
/32)
/32)
=0MHz,
(DCOCLK)
CC
2.2 V262295
=--40Cto85C
T
A
3V420460
=--40Cto85C
T
A
2.2 V3262
3V5177
2.2 V59
T
=--40Cto85C
A
3V713
TA=--40C1.01.8
TA=25C
T
A
=60C
2.2
TA=85C2.34.0
=--40C1.22.0
T
A
=25C
T
A
T
A
=60C
3
TA=85C2.74.5
TA=--40C1.03.0
T
=25C
A
2.2 V
TA=85C
=--40C1.83.3
T
A
=25C
T
A
T
A
=85C
3V
TA=--40C0.10.5
TA=25C
TA=60C
2.2
TA=85C1.73.0
TA=--40C0.10.8
TA=25C
TA=60C
3
TA=85C1.53.5
= 1 MHz. All i nputs are tied to 0 V or to VCC. Outputs do not source or sink any current.
. Outputs do not source or sink any current.
CC
MINTYPMAXUNIT
1.01.8
1.12.0
1.22.0
1.42.2
1.13.2
3.56.0
2.04.0
4.27.5
0.10.5
0.71.1
0.10.8
0.81.2
Current consumption of active mode versus system frequency
I
(AM)=I(AM)
[1 MHz] f
Current consumption of active mode versus supply voltage
I
(AM)=I(AM) [3 V]
+ 200 A/V (VCC–2.2V)
(System)
[MHz]
POST OFFICE BOX 655303 DALLAS, TEXAS 75265
25
MSP430FG47x
MIXED SIGNAL MICROCONTROLLER
SLAS580D -- OCTOBER 2008 -- REVISED MARCH 2011
typical characteristics -- LPM4 current
2.0
1.8
1.6
1.4
1.2
1.0
0.8
0.6
-- Low-Power Mode 4 Current -- A
0.4
LPM4
I
0.2
0.0
--40.0 --20.0 0.0 20.0 40.0 60.0 80.0 100.0 120.0
Vcc=3.6V
Vcc=3.0V
Vcc=2.2V
Vcc=1.8V
TA-- Temperature -- C
TA-- Temperature -- C
Figure 2. I
-- LPM4 Current vs Temperature
LPM4
26
POST OFFICE BOX 655303 DALLAS, TEXAS 75265
MSP430FG47x
V
V
V
PortP1,P2:P1.xtoP2.x,externaltriggersigna
l
_
A
_
A
y
f
Timer_Aclockfrequencyexternally
f
_
A
MIXED SIGNAL MICROCONTROLLER
SLAS580D -- OCTOBER 2008 -- REVISED MARCH 2011
electrical characteristics over recommended operating free-air temperature (unless otherwise
noted) (continued)