Académique Documents
Professionnel Documents
Culture Documents
RealTime TechnoSoft
MSP430
RealTime TechnoSoft
RealTime TechnoSoft
MSP430
CPU Features
Designed for modern programming techniques
Calculated branching, Table processing
RISC Architecture
27 Instruction and 7 addressing modes
Orthogonal architecture
Every instruction usable with every addressing mode
RealTime TechnoSoft
MSP430
CPU Features
Access entire memory range
No paging required
RealTime TechnoSoft
MSP430G2553 Registers
RealTime TechnoSoft
MSP430
RealTime TechnoSoft
MSP430
Dedicated RO R1 R2 R3
PC SP
General Purpose R4 R5
SR
CG
. .
R15
RealTime TechnoSoft
MSP430
RealTime TechnoSoft
MSP430
RealTime TechnoSoft
MSP430
RealTime TechnoSoft
MSP430
RealTime TechnoSoft
MSP430
General-Purpose Registers
R4 to R15 Can be used for Data registers Address pointers or Index values
RealTime TechnoSoft
RealTime TechnoSoft
MSP430
Addressing Modes
RealTime TechnoSoft
MSP430
RealTime TechnoSoft
MSP430
RealTime TechnoSoft
MSP430
Symbolic Mode:
Example: MOV EDE,TONI; EDE = (PC + X) TONI = (PC + Y)
RealTime TechnoSoft
MSP430
Absolute Mode:
Example: MOV &EDE,&TONI ; EDE = 0F016h ; TONI = 01114h
RealTime TechnoSoft
MSP430
RealTime TechnoSoft
MSP430
RealTime TechnoSoft
MSP430
Immediate Mode:
Example: MOV #45h,TONI
RealTime TechnoSoft
MSP430G2553 Instructions
RealTime TechnoSoft
MSP430
Instruction Set:
27core instructions and 24 emulated instructions. Core ins->unique op-codes Emulated-> code easier to write and read
RealTime TechnoSoft
MSP430
Double-Operand:
Word or Byte instruction (.B,.W) Examples: MOV (.B) ADD (.B) SUB (.B) MUL (.W) ADDC (.B)
RealTime TechnoSoft
MSP430
Single-Operand:
Example: RRC (B) RRA (B) SWP (B) PUSH (.B)
RealTime TechnoSoft
MSP430
Jump:
Example: JMP JC JNC JN
RealTime TechnoSoft
Q&A
RealTime TechnoSoft