Herunterladen Inhalt Inhalt Diese Seite drucken

Befehle Des Msp430F2274 - Texas Instruments Msp430 Benutzerhandbuch

Education system v3.3
Vorschau ausblenden Andere Handbücher für MSP430:
Inhaltsverzeichnis
A.

Befehle des MSP430F2274

Die folgende Tabelle 20 zeigt alle Befehle des MSP430 in einer Übersicht. Alle Befehle stellen 16-Bit
Worte dar. Die Befehle, die am Ende ein „(.B)" besitzen, können optional mit dem Kürzel „.B" auch
als Byte-Befehle behandelt werden. Bestimmte Peripherie-Module können nur mit Byte-Befehlen
behandelt werden, wie zum Beispiel die Ports. Alle Register, die mit einem Port in Verbindung stehen
sind 8-Bit breit und können nur mit Byte-Befehlen beschrieben und ausgelesen werden. So auch das
USART-Modul. Timer_A ist zum Beispiel ein Word-Befehl. Alle Befehle denen ein „*" voransteht sind
emulierte Befehle. Die genaue Beschreibung aller Befehle ist im User Guide [0] nachzulesen. Diese
wird an kleinen Beispielen durchgeführt, um die genau Funktionsweise schnell erkennen zu können.
In diesem findet man auch die genaue Registerbeschreibung sowie deren ausführliche Beschreibung.
Tabelle 20: Alle Befehle des MSP430 in Übersicht
Mnemonic
* ADC(.B)
dst
ADD(.B)
src,dst
ADDC(.B)
src,dst
AND(.B)
src,dst
BIC(.B)
src,dst
BIS(.B)
src,dst
BIT(.B)
src,dst
* BR
dst
CALL
dst
* CLR(.B)
dst
* CLRC
* CLRN
* CLRZ
CMP(.B)
scr,dst
* DADC(.B)
dst
DADD(.B)
scr,dst
* DEC(.B)
dst
* DECD(.B)
dst
* DINT
* EINT
* INC(.B)
dst
* INCD(.B)
dst
* INV(.B)
dst
JC/JHS
label
JEQ/JZ
label
JGE
label
JL
label
JMP
label
JN
label
JNC/JLO
label
Handbuch MSP430 Education System
Description
Add carry bit (C) to destination
Add source to destination
Add source and carry to destination
AND source and destination
Clear bits in destination
Set bits in destination
Test bit in destination
Branch to destination
Call destination
Clear destination
Clear carry bit
Clear negative bit
Clear zero bit
Compare Source and destination
Add C decimally to destination
Add source and C decimally to dst
Decrement destination
Increment destination
Disable interrupt
Enable interrupt
Increment destination
Double-Increment destination
Invert destination
Jump if C set/Jump if higher or same
Jump if equal/Jump if Zero-bit is set
Jump to label if graeter or equal
Jump to label if less
Jump to label unconditionally
Jump to label if N set
Jump if C not set/ Jump if lower
Literatur- und Quellenverzeichnis
dst + C –> dst
src + dst –> dst
src + dst + C –> dst
src .and. dst –> dst 0
.not.src .and. dst –> dst
src .or. dst –> dst
src .and. dst
dst-> PC
PC+2 –> stack, dst –> PC
0 -> dst
0 -> C
0 -> N
0 -> Z
dst – src
dst + C –> dst (decimally)
src + dst + C –> dst (decimally)
dst – 1 –> dst
dst – 2 –> dst
0 -> GIE
1 -> GIE
dst + 1 -> dst
dst + 2 -> dst
.not.dst -> dst
(N .XOR. V) = 0
(N .XOR. V) = 1
PC +2 x offset -> PC
Status Bits
V N Z C
* *
* *
* *
* *
* *
* *
0 *
* *
-
-
- -
-
-
- -
0 *
* *
-
-
- -
-
-
- -
-
-
- -
-
-
- 0
-
0
- -
-
-
0 -
* *
* *
* *
* *
* *
* *
* *
* *
* *
* *
-
-
- -
-
-
- -
* *
* *
* *
* *
* *
* *
-
-
- -
-
-
- -
-
-
- -
-
-
- -
-
-
- -
-
-
- -
-
-
- -
Seite 58

Quicklinks ausblenden:

Inhaltsverzeichnis
loading

Inhaltsverzeichnis