Web Analytics
Datasheet 搜索 > 8位微控制器 > ATMEL(爱特美尔) > AT89C51RB2-SLSUM 数据手册 > AT89C51RB2-SLSUM 产品设计参考手册 6/116 页
AT89C51RB2-SLSUM
器件3D模型
31.125
导航目录
AT89C51RB2-SLSUM数据手册
Page:
of 116 Go
若手册格式错乱,请下载阅览PDF原文件
The 8051 Instruction Set
Atmel 8051 Microcontrollers Hardware Manual 1-4
4316E–8051–01/07
1.3 Arithmetic
Instructions
The menu of arithmetic instructions is listed in Table 1-2. The table indicates the
addressing modes that can be used with each instruction to access the <byte> operand.
For example, the ADD A, <byte> instruction can be written as:
ADD A,7FH (direct addressing)
ADD A,@ R0(indirect addressing)
ADD A,R7 (register addressing)
ADD A,# 127(immediate constant)
The execution times listed in Table 1-2 assume a 12 MHz clock frequency and X1
mode. All of the arithmetic instructions execute in 1 µs except the INC DPTR instruction,
which takes 2 µs, and the Multiply and Divide instructions, which take 4 µs.
Note that any byte in the internal Data Memory space can be incremented or decre-
mented without going through the Accumulator.
One of the INC instructions operates on the 16-bit Data Pointer. The Data Pointer is
used to generate 16-bit addresses for external memory, so being able to increment it in
one 16-bit operation is a useful feature.
The MUL AB instruction multiplies the Accumulator by the data in the B register and puts
the 16-bit product into the concatenated B and Accumulator registers.
The DIV AB instruction divides the Accumulator by the data in the B register and leaves
the 8-bit quotient in the Accumulator, and the 8-bit remainder in the B register.
Oddly enough, DIV AB finds less use in arithmetic “divide” routines than in radix conver-
sions and programmable shift operations. An example of the use of DIV AB in a radix
conversion will be given later. In shift operations, dividing a number by 2
n
shifts its n bits
to the right. Using DIV AB to perform the division completes the shift in 4 µs leaves the B
register holding the bits that were shifted out.
Table 1-2. A list of the Atmel 8051 Arithmetic Instructions.
Mnemonic Operation Addressing Modes
Execution Time in X1
Mode
@12 MHz (µs)
Dir Ind Reg
Im
m
ADD A, <byt>e A = A + <byte> X X X X
ADDC A,
<byte>
A = A + <byte> + C X X X X 1
SUBB A,
<byte>
A = A – <byte> – C X X X X 1
INC A A = A + 1 Accumulator only 1
INC <byte> <byte> = <byte> + 1 X X X 1
INC DPTR DPTR = DPTR + 1 Data Pointer only 2
DEC A A = A – 1 Accumulator only 1
DEC <byte> <byte> = <byte> – 1 X X X 1
MUL AB B:A = B × A ACC and B only 4
DIV AB
A = Int [A/B]
B = Mod [A/B]
ACC and B only 4
DA A Decimal Adjust Accumulator only 1

AT89C51RB2-SLSUM 数据手册

ATMEL(爱特美尔)
127 页 / 1.49 MByte
ATMEL(爱特美尔)
116 页 / 1.72 MByte
ATMEL(爱特美尔)
19 页 / 0.45 MByte
ATMEL(爱特美尔)
3 页 / 0.28 MByte

AT89C51RB2 数据手册

ATMEL(爱特美尔)
ATMEL(爱特美尔)
8051 体系结构闪存 ISP(系统内可编程)微控制器,AtmelAtmel 可提供闪存 8051 微控制器,具有系统内可编程 (ISP),可在并行或串行模式中采用适当的软件进行编程。### 8051 体系结构微控制器,AtmelAtmel 的 8 位微控制器 (MCU) 基于 8051 指令集,结合久经考验的技术和最新特征及功能,所有均具有高级闪存。### 设备系列单周期芯 闪存 ISP(系统内可编程) 闪存(可重新编程) CAN 网络 MCU USB MCU ROMless
ATMEL(爱特美尔)
ATMEL  AT89C51RB2-SLSUM  微控制器, 8位, 高性能闪存, AT89C51, 60 MHz, 16 KB, 1 KB, 44 引脚, LCC
ATMEL(爱特美尔)
ATMEL  AT89C51RB2-RLTUM  微控制器, 8位, 高性能闪存, AT89C51, 60 MHz, 16 KB, 1 KB, 44 引脚, VQFP
Microchip(微芯)
AT89C51 系列 60 MHz 16 KB 闪存 1.25 KB SRAM 8 位 微控制器 - DIP-40
Microchip(微芯)
51系列 60MHz 16K@x8bit
Microchip(微芯)
8位微控制器 -MCU 16kB Flash 1280B RAM 2.7V-5.5V
ATMEL(爱特美尔)
Microchip(微芯)
51系列 40MHz 16K@x8bit
ATMEL(爱特美尔)
器件 Datasheet 文档搜索
器件加载中...
AiEMA 数据库涵盖高达 72,405,303 个元件的数据手册,每天更新 5,000 多个 PDF 文件