Texas Instruments MSP430x11x1 warranty Cpu, Instruction set, Instruction Word Formats

Page 4

MSP430x11x1

MIXED SIGNAL MICROCONTROLLER

SLAS241C ± SEPTEMBER 1999 ± REVISED JUNE 2000

short-form description (continued)

CPU

All sixteen registers are located inside the CPU, providing reduced instruction execution time. This reduces a register-register operation execution time to one cycle of the processor.

Program Counter

Stack Pointer

Status Register

PC/R0

SP/R1

SR/CG1/R2

Four registers are reserved for special use as a program counter, a stack pointer, a status register, and a constant generator. The remaining twelve registers are available as general-purpose registers.

Peripherals are connected to the CPU using a data address and control buses and can be handled easily with all instructions for memory manipulation.

instruction set

Constant Generator

CG2/R3

 

 

 

 

General-Purpose Register

R4

 

R5

 

General-Purpose Register

 

 

 

 

General-Purpose Register

R14

 

R15

 

General-Purpose Register

 

 

The instructions set for this register-register architecture provides a powerful and easy-to-use assembly language. The instruction set consists of 51 instructions with three formats and seven addressing modes. Table 1 provides a summation and example of the three types of instruction formats; the addressing modes are listed in Table 2.

Table 1. Instruction Word Formats

Dual operands, source-destination

e.g. ADD R4, R5

R4 + R5 R5

Single operands, destination only

e.g. CALL R8

PC (TOS), R8 PC

Relative jump, un-/conditional

e.g. JNE

Jump-on equal bit = 0

 

 

 

Most instructions can operate on both word and byte data. Byte operations are identified by the suffix B.

Examples:

Instructions for word operation

Instructions for byte operation

 

 

MOV

 

EDE,TONI

MOV.B

EDE,TONI

 

 

ADD

 

#235h,&MEM

ADD.B

#35h,&MEM

 

 

PUSH

 

R5

PUSH.B

R5

 

 

 

SWPB

 

R5

Ð

 

 

 

 

 

 

Table 2. Address Mode Descriptions

 

 

 

 

 

 

 

 

 

 

ADDRESS MODE

s

d

 

SYNTAX

EXAMPLE

OPERATION

 

 

 

 

 

 

 

 

 

 

Register

 

MOV Rs, Rd

MOV R10, R11

 

R10 R11

 

 

 

 

 

 

 

 

 

Indexed

 

MOV X(Rn), Y(Rm)

MOV 2(R5), 6(R6)

M(2 + R5) M(6 + R6)

 

 

 

 

 

 

 

 

 

 

Symbolic (PC relative)

 

MOV EDE, TONI

 

 

M(EDE) M(TONI)

 

 

 

 

 

 

 

 

 

 

Absolute

 

MOV &MEM, &TCDAT

 

 

M(MEM) M(TCDAT)

 

 

 

 

 

 

 

 

 

Indirect

 

 

MOV @Rn, Y(Rm)

MOV @R10, Tab(R6)

M(R10) M(Tab + R6)

 

 

 

 

 

 

 

 

 

Indirect autoincrement

 

 

MOV @Rn+, RM

MOV @R10+, R11

M(R10) R11, R10 + 2 R10

 

 

 

 

 

 

 

 

 

 

Immediate

 

 

MOV #X, TONI

MOV #45, TONI

 

#45 M(TONI)

 

 

 

 

 

 

 

 

NOTE: s = source d = destination

Rs/Rd = source register/destination register Rn = register number

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

4

POST OFFICE BOX 655303 DALLAS, TEXAS 75265

Image 4
Contents Description MSP430x11x1Tssop Functional block diagram Available Options Packaged DevicesPIN Sowb PIN Tssop Pulldown resistor of 30 k Ω is needed on F11x1Terminal Functions Short-form descriptionProcessing unit Terminal Description NameAddress Mode Descriptions CPUInstruction set Instruction Word FormatsLow-power consumption capabilities Operation modes and interruptsStatus register R2 SCG1SCG0 SCG1 SCG0Interrupt vector addresses CaifgWdtifg CCIFG1, CCIFG2, TaifgSpecial function registers WdtifgOfifg NmiifgFunctions of the bootstrap loader Boot ROM containing bootstrap loaderMemory organization Features of the bootstrap loader are Hardware resources used for serial input/outputWDT VCC RST/NMI PIN Test PINBootstrap loader Starts VCCTest InternalFlash memory Flash memory control register FCTL1Erase 0128h, bit1, Erase a segment Flash memory, timing generator, control register FCTL2WRT Flash memory control register FCTL3 FN0±FN5SSEL0, SSEL1 AclkBusy KeyvAccvifg WaitLock Flash memory, interrupt and security key violationEmex Accv PUCPOR NmirsPeripherals Oscillator and system clockClock Signals Digital I/OWatchdog timer TimerA Three capture/compare registersTimerA 3 capture/compare registers TimerA, MSP430x11x1 ConfigurationComparatorA Caout CAFCACTL2.4 CATCTL2.7Slope a/d conversion CACTL1Caex Caon Caies Caifg Rsel REF1 REF0 CACTL2Peripherals with Byte Access Peripherals with Word AccessPeripheral file map Recommended operating conditions Absolute maximum ratings²MIN NOM MAX Units MSP430x11x1 Devices Frequency vs Supply VoltageParameter Test Conditions MIN TYP MAX Unit IAMILPM2 ILPM3Outputs Port 1 to P2 P1.0 to P1.7, P2.0 to P2.5 Leakage currentInternal signals TAx, Smclk at TimerA Inputs Px.x, TAxParameter Test Conditions VCC MIN TYP MAX Unit Port P1, P2 P1.x to P2.xOutputs P1.x, P2.x, TAx ComparatorA see NoteVRefVT vs Temperature, VCC = 3 V, C1121 VRefVT vs Temperature, VCC = 2.2 V, C1121PUC/POR CAF CaonRAM Parameter MIN NOM MAX UnitDCO Variance MaxDcoclk DCO StepsWake-up from lower power modes LPMx Principle characteristics of the DCOJTAG/programming Port P1, P1.0 to P1.3, input/output with Schmitt-trigger Input/output schematicGND P1DIR.4 P1OUT.4 Smclk P1IFG.4 P1IES.4P1DIR.5 P1OUT.5 P1IFG.5 P1IES.5Port P2, P2.0 to P2.2, input/output with Schmitt-trigger CAPD.XPort P2, P2.3 to P2.4, input/output with Schmitt-trigger P2DIR.3 P2OUT.3P2IFG.3 P1IES.3 P2DIR.4 P2OUT.4P2SEL.5 VCC P2DIR.5P2OUT.5 P2IRQ.5Port P2, unbonded bits P2.6 and P2.7 Pins DIM MAX DW R-PDSO-GPlastic SMALL-OUTLINE Package PIN ShownPins Shown Pins DIM MAX MINPW R-PDSO-G Plastic SMALL-OUTLINE Package 15 NOM Gage Plane Seating Plane 20 MAXImportant Notice