MSP430 Programming Reference r3-1 PDF
MSP430 Programming Reference r3-1 PDF
Revision 3
1. CPU Registers
The CPU incorporates sixteen 20-bit registers. R0, R1, R2 and R3 have dedicated functions. R4 to R15 are working registers
for general use.
PC, R0
SP, R1
SR, CG1, R2
CG2, R3
R4 - R15
Six commonly-used constants are generated with the constant generator registers
R2 and R3, without requiring an additional 16-bit word of program code. The
constants are selected with the source-register addressing modes.
R4 to R15, are general-purpose registers. All of these registers can be used as data
registers, address pointers, or index values, and they can be accessed with byte or
word instructions.
2. Interrupt Vectors
VECTOR NAME
RESET_VECTOR
NMI_VECTOR
TIMERB0_VECTOR
TIMERB1_VECTOR
COMPARATORA_VECTOR
WDT_VECTOR
USCIAB0RX_VECTOR
USCIAB0TX_VECTOR
ADC12_VECTOR
TIMERA0_VECTOR
TIMERA1_VECTOR
PORT1_VECTOR
USART1RX_VECTOR
USART1TX_VECTOR
PORT2_VECTOR
BASICTIMER_VECTOR
DMA_VECTOR
DAC12_VECTOR
3. Instruction Set
4.10. Timer_A
4.11. Timer_B
4.18. Comparator_A
4.20. ADC12
4.21. DAC12
RTCYEARH, RTC Year High-Byte Register, Calendar Mode with Hexadecimal Format
RTCYEARH, RTC Year High-Byte Register, Calendar Mode with BCD Format
RTCYEARL, RTC Year Low-Byte Register, Calendar Mode with Hexadecimal Format
6. References
This programming reference is a compilation of information provided by Texas Instruments in various datasheets, user
guides, and application notes.
[1] TI, MSP430xG461x Mixed Signal Microcontroller, Oct. 2007.
[2] TI, MSP430x4xx Family User's Guide (SLAU056H), Apr. 2009.
[3] TI, MSP430FG4618/F2013 Experimenter's Board User's Guide (SLAU213A), Oct. 2007.