Datasheet 搜索 > TI(德州仪器) > MSP430P337 数据手册 > MSP430P337 数据手册 5/29 页

¥ 0
MSP430P337 数据手册 - TI(德州仪器)
制造商:
TI(德州仪器)
描述:
16 位超低功耗微控制器、32kB OTP、1KB RAM、USART、HW 乘法器、120 段 LCD
Pictures:
3D模型
符号图
焊盘图
引脚图
产品图
页面导航:
典型应用电路图在P1
封装尺寸在P27
封装信息在P27
应用领域在P2P29
导航目录
MSP430P337数据手册
Page:
of 29 Go
若手册格式错乱,请下载阅览PDF原文件

MSP430x33x
MIXED SIGNAL MICROCONTROLLERS
SLAS163 – FEBRUARY 1998
5
POST OFFICE BOX 655303 • DALLAS, TEXAS 75265
instruction set
The instruction set for this register-register architecture provides a powerful and easy-to-use assembly
language. The instruction set consists of 52 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), SR → (TOS), R8→ PC
Relative jump, un–/conditional e.g. JNE Jump-on equal bit = 0
Instructions that can operate on both word and byte data are differentiated by the suffix ’.B’ when a byte
operation is required.
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 1: S = source, D = destination.
Computed branches (BR) and subroutine calls (CALL) instructions use the same addressing modes as the other
instructions. These addressing modes provide
indirect
addressing, ideally suited for computed branches and
calls. The full use of this programming capability permits a program structure different from conventional 8- and
16-bit controllers. For example, numerous routines can easily be designed to deal with pointers and stacks
instead of using Flag type programs for flow control.
器件 Datasheet 文档搜索
AiEMA 数据库涵盖高达 72,405,303 个元件的数据手册,每天更新 5,000 多个 PDF 文件