Texas Instruments MSP430x1xx manual 17.MSP430 Instruction Set, Mnemonic Description

Models: MSP430x1xx

1 432
Download 432 pages 41.81 Kb
Page 111
Image 111

Instruction Set

Table 3−17.MSP430 Instruction Set

Mnemonic

 

Description

 

 

V

N

Z

C

ADC(.B)

dst

Add C to destination

dst + C dst

*

*

*

*

ADD(.B)

src,dst

Add source to destination

src + dst dst

*

*

*

*

ADDC(.B)

src,dst

Add source and C to destination

src + dst + C dst

*

*

*

*

AND(.B)

src,dst

AND source and destination

src .and. dst dst

0

*

*

*

BIC(.B)

src,dst

Clear bits in destination

.not.src .and. dst dst

BIS(.B)

src,dst

Set bits in destination

src .or. dst dst

BIT(.B)

src,dst

Test bits in destination

src .and. dst

0

*

*

*

BR

dst

Branch to destination

dst PC

CALL

dst

Call destination

PC+2 stack, dst PC

CLR(.B)

dst

Clear destination

0 dst

CLRC

 

Clear C

0 C

 

0

CLRN

 

Clear N

0 N

 

0

CLRZ

 

Clear Z

0 Z

 

0

CMP(.B)

src,dst

Compare source and destination

dst − src

*

*

*

*

DADC(.B)

dst

Add C decimally to destination

dst + C dst (decimally)

*

*

*

*

DADD(.B)

src,dst

Add source and C decimally to dst.

src + dst + C dst (decimally)

*

*

*

*

DEC(.B)

dst

Decrement destination

dst − 1

dst

*

*

*

*

DECD(.B)

dst

Double-decrement destination

dst − 2

dst

*

*

*

*

DINT

 

Disable interrupts

0 GIE

EINT

 

Enable interrupts

1 GIE

INC(.B)

dst

Increment destination

dst +1 dst

*

*

*

*

INCD(.B)

dst

Double-increment destination

dst+2 dst

*

*

*

*

INV(.B)

dst

Invert destination

.not.dst dst

*

*

*

*

JC/JHS

label

Jump if C set/Jump if higher or same

 

 

JEQ/JZ

label

Jump if equal/Jump if Z set

 

 

JGE

label

Jump if greater or equal

 

 

JL

label

Jump if less

 

 

JMP

label

Jump

PC + 2 x offset PC

JN

label

Jump if N set

 

 

JNC/JLO

label

Jump if C not set/Jump if lower

 

 

JNE/JNZ

label

Jump if not equal/Jump if Z not set

 

 

MOV(.B)

src,dst

Move source to destination

src dst

NOP

 

No operation

 

 

POP(.B)

dst

Pop item from stack to destination

@SP dst, SP+2 SP

PUSH(.B)

src

Push source onto stack

SP − 2

SP, src @SP

RET

 

Return from subroutine

@SP PC, SP + 2 SP

RETI

 

Return from interrupt

 

 

*

*

*

*

RLA(.B)

dst

Rotate left arithmetically

 

 

*

*

*

*

RLC(.B)

dst

Rotate left through C

 

 

*

*

*

*

RRA(.B)

dst

Rotate right arithmetically

 

 

0

*

*

*

RRC(.B)

dst

Rotate right through C

 

 

*

*

*

*

SBC(.B)

dst

Subtract not(C) from destination

dst + 0FFFFh + C dst

*

*

*

*

SETC

 

Set C

1 C

 

1

SET

 

Set N

1 N

 

1

SETZ

 

Set Z

1 C

 

1

SUB(.B)

src,dst

Subtract source from destination

dst + .not.src + 1 dst

*

*

*

*

SUBC(.B)

src,dst

Subtract source and not(C) from dst.

dst + .not.src + C dst

*

*

*

*

SWPB

dst

Swap bytes

 

 

SXT

dst

Extend sign

 

 

0

*

*

*

TST(.B)

dst

Test destination

dst + 0FFFFh + 1

0

*

*

1

XOR(.B)

src,dst

Exclusive OR source and destination

src .xor. dst dst

*

*

*

*

 

 

 

 

 

 

 

 

 

† Emulated Instruction

RISC 16−Bit CPU

3-75

Page 111
Image 111
Texas Instruments MSP430x1xx manual 17.MSP430 Instruction Set, Mnemonic Description

MSP430x1xx specifications

The Texas Instruments MSP430x1xx series is a family of ultra-low-power microcontrollers that are highly regarded in the embedded systems community for their versatility and performance. Designed for applications ranging from portable instrumentation to low-power industrial devices, the MSP430x1xx combines flexibility and efficiency with advanced features tailored for energy-sensitive applications.

One of the standout characteristics of the MSP430x1xx is its ultra-low-power operation. This series offers several low-power modes that can significantly extend battery life in portable devices. The microcontroller can be in active mode, low-power mode, or even in a deep sleep state, allowing developers to optimize power consumption based on the application's requirements. In fact, some configurations can operate at just a few microamps, making it ideal for battery-operated devices.

Another key feature is the 16-bit RISC architecture that provides powerful processing capabilities while maintaining a low power profile. The MSP430x1xx series supports a maximum clock speed of 16 MHz, allowing for efficient task execution while consuming minimal energy. This architecture ensures that programs run smoothly while the microcontroller remains energy efficient.

The MSP430x1xx is equipped with various integrated peripherals, including analog-to-digital converters (ADCs), timers, and communication interfaces like UART, SPI, and I2C. The inclusion of a powerful ADC enables the microcontroller to handle sensor readings with high accuracy, making it suitable for applications like environmental monitoring and medical devices. The integrated timers provide essential functionality for real-time applications, allowing for event-driven programming and precise timing control.

Memory options in the MSP430x1xx series are also robust, with configurations offering flash memory sizes from 1 KB to 64 KB. This flexibility allows developers to choose the optimal memory size for their specific applications, accommodating a wide range of requirements.

Additionally, the MSP430x1xx microcontrollers are designed with a wide operating voltage range, typically from 1.8V to 3.6V, making them compatible with various power sources and further enhancing their usability in diverse applications.

In summary, the Texas Instruments MSP430x1xx series of microcontrollers is an excellent choice for developers seeking low-power, high-performance solutions for embedded applications. With an efficient architecture, a rich set of peripherals, and flexible memory options, these microcontrollers are positioned to meet the growing demands of modern electronic designs, particularly in battery-powered and energy-sensitive applications.