《2021年单片机复习知识点.pdf》由会员分享,可在线阅读,更多相关《2021年单片机复习知识点.pdf(10页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。
1、学习资料收集于网络,仅供参考学习资料单片机原理及应用考试复习知识点第 1 章 计算机基础知识考试知识点:1、各种进制之间的转换(1)各种进制转换为十进制数方法:各位按权展开相加即可。(2)十进制数转换为各种进制方法:整数部分采用“除基取余法”,小数部分采用“乘基取整法”。(3)二进制数与十六进制数之间的相互转换方法:每四位二进制转换为一位十六进制数。2、带符号数的三种表示方法(1)原码:机器数的原始表示,最高位为符号位(0+1-),其余各位为数值位。(2)反码:正数的反码与原码相同。负数的反码把原码的最高位不变,其余各位求反。(3)补码:正数的补码与原码相同。负数的补码为反码加1。原码、反码的
2、表示范围:-127+127,补码的表示范围:-128+127。3、计算机中使用的编码(1)BCD 码:每 4 位二进制数对应1 位十进制数。(2)ASCII 码:7 位二进制数表示字符。09 的 ASCII 码 30H 39H,A 的|精.|品.|可.|编.|辑.|学.|习.|资.|料.*|*|*|*|欢.|迎.|下.|载.第 1 页,共 10 页学习资料收集于网络,仅供参考学习资料ASCII 码 41H,a 的 ASCII 码 61H。第 2 章 Mcs-51 单片机的硬件结构考试知识点:1、Mcs-51 单片机的内部逻辑结构单片机是把CPU、存储器、输入输出接口、定时/计数器和时钟电路集成
3、到一块芯片上的微型计算机,主要由以下几个部分组成。(1)中央处理器CPU 包括运算器和控制器。运算电路以ALU 为核心,完成算术运算和逻辑运算,运算结果存放于ACC中,运算结果的特征存放于PSW 中。控制电路是单片机的指挥控制部件,保证单片机各部分能自动而协调地工作。程序计数器PC 是一个 16 位寄存器,PC 的内容为将要执行的下一条指令地址,具有自动加1 功能,以实现程序的顺序执行。(2)存储器分类:随机存取存储器RAM:能读能写,信息在关机后消失。可分为静态RAM(SRAM)和动态 RAM(DRAM)两种。只读存储器:信息在关机后不会消失。掩膜 ROM:信息在出厂时由厂家一次性写入。可编
4、程 PROM:信息由用户一次性写入。r 可擦除可编程EPROM:写入后的内容可由紫外线照射擦除。电可擦除可编程EEPROM:可用电信号进行清除和改写。|精.|品.|可.|编.|辑.|学.|习.|资.|料.*|*|*|*|欢.|迎.|下.|载.第 2 页,共 10 页文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY
5、3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W
6、6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY
7、3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W
8、6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY
9、3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W
10、6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8学习资料收集于网络,仅供参考学习资料存储容量:存储容量指存储器可以容纳的二进制信息量,M 位地
11、址总线、N 位数据总线的存储器容量为2M N 位。Mcs-51 单片机的存储器有内部RAM(128B,高 128B 为专用寄存器)、外部 RAM(64KB)、内部 ROM(4KB 掩膜 ROM)、外部 ROM(64KB)。(3)输入输出接口4 个 8 位并行 I/O 口(P0、P1、P2、P3)(4)其它资源一个全双工串行口、5 个中断源、2 个 16 位的定时/计数器、时钟电路。2、Mcs-51 单片机的信号引脚(1)电源部分:VCC 接+5V、VSS 接地。(2)时钟电路部分:XTAL1 和 XTAL2 接晶振。1 个机器周期=6 个状态=12 个拍节6MHZ 的晶体机器周期2us,12M
12、HZ 的晶体机器周期1us。(3)I/O 口部分:P0 8 位数据总线/地址总线低8 位、P1用户口、P2 地址高 8 位、P3 第二功能。(4)控制部分:地址锁存控制信号ALE,用于控制把P0 口输出的低8 位地址送入锁存器锁存地起来。外部程序存储器读选通信号PSEN,低电平有效,以实现外部ROM 单元的读操作。访问程序存储器控制信号EA,低电平时只读外部ROM,高电平时先读内部|精.|品.|可.|编.|辑.|学.|习.|资.|料.*|*|*|*|欢.|迎.|下.|载.第 3 页,共 10 页文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3
13、C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 Z
14、V4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3
15、C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 Z
16、V4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3
17、C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 Z
18、V4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3
19、C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8学习资料收集于网络,仅供参考学习资料ROM,再读外部ROM。复位信号 RST,当输入的复位信号延续2 个机器周期以上高电平时即为有效。复位值:PC=0000H,SP=07H,P0=0FFH。3、内部 RAM 的基本结构与功能Mcs-51 的内部数据存储器低128 单元区,称为内部 RAM,地址为 007FH。(1)寄存器区(001FH)共分为 4 组,组号依次为0、1、2、3,每组有 8 个寄存器,在组中按 R7R0编号。由 PSW 中 RS1、RS0 位
20、的状态组合来决定哪一组。(2)位寻址区(20H 2FH)可对单元中的每一位进行位操作,16 个字节单元共128 个可寻址位,位地址为 007FH。位起始地址D0=(字节地址-20H)*8(3)用户 RAM 区(30H7FH)堆栈、缓冲区堆栈是在内部RAM 中开辟的,最大特点就是“后进先出”的数据操作原则。两项功能:保护断点和保护现场。两种操作:进栈和出栈。SP 堆栈指针,它的内容就是堆栈栈顶单元的地址。4、专用寄存器(内部数据存储器高128 单元)(1)累加器 A(ACC)(2)寄存器 B(3)程序状态字PSW CY 进位标志位,最高位的进位或借位。AC 半进位标志位,低4 位向高 4 位的进
21、位或借位。|精.|品.|可.|编.|辑.|学.|习.|资.|料.*|*|*|*|欢.|迎.|下.|载.第 4 页,共 10 页文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D
22、7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3
23、HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D
24、7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3
25、HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D
26、7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3
27、HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8学习资料收集于网络,仅供参考学习资料OV 溢出标志位,同符号数相加,结果为异符号,有溢出;异符号数相减,结果和减数符号相同,有溢出。P A 中 1 的个数,奇数个P=1,偶数个 P=0。(4)数据指针DPTR:Mcs-51 中惟一一个
28、供用户使用的16 位寄存器。高8位 DPH,低 8 位 DPL。第 3 章 Mcs-51 单片机指令系统考试知识点:1、寻址方式(1)立即寻址(#data,#data16)例:MOV A,#00H(2)直接寻址(direct)内部 RAM:007FH、特殊功能寄存器例:MOV A,00H(3)寄存器寻址(A、B、Rn、DPTR)(4)寄存器间接寻址(Ri、DPTR)例:MOVX A,DPTR(5)变址寻址(A+DPTR,A+PC)例:MOVC A,A+DPTR(6)位寻址(bit)202FH:007FH、特殊功能寄存器例:MOV C,00H(7)相对寻址(rel)例:JZ rel 2、数据传送
29、类指令(1)内部 RAM 数据传送指令MOV 目的,源;目的源交换指令:XCH A,direct/Rn/Ri;A 和源交换XCHD A,Ri;只换低 4 位|精.|品.|可.|编.|辑.|学.|习.|资.|料.*|*|*|*|欢.|迎.|下.|载.第 5 页,共 10 页文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码
30、:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5
31、H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码
32、:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5
33、H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码
34、:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5
35、H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8学习资料收集于网络,仅供参考学习资料SWAP A;A 的高低 4 位交换注意:A 作目的
36、操作数会影响P。PUSH direct POP direct(2)外部 RAM 数据传送指令MOVX A,Ri/DPTR;外部地址内容AMOVXRi/DPTR,A;A 外部地址内容(3)ROM 数据传送指令MOVC A,A+DPTR/A+PC;查表指令3、算术运算指令(1)加法指令ADD/ADDC A,#data/direct/Rn/Ri;会影响 CY、AC、OV、P INC A/direct/Rn/Ri/DPTR;加 1,P DA A;十进制调整,大于9 加 6(2)减法指令SUBB A,#data/direct/Rn/Ri;会影响 CY、AC、OV、P DEC A/direct/Rn/Ri
37、;减 1(3)乘除指令MUL AB;(A)*(B)BA,会影响 CY=0,OV,P DIV AB;(A)/(B)的商 A,余数 B4、逻辑运算及移动指令(1)逻辑运算指令ANL/ORL/XRL A,#data/direct/Rn/Ri|精.|品.|可.|编.|辑.|学.|习.|资.|料.*|*|*|*|欢.|迎.|下.|载.第 6 页,共 10 页文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:
38、CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H
39、6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:
40、CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H
41、6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:
42、CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H
43、6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8学习资料收
44、集于网络,仅供参考学习资料ANL/ORL/XRL direct,A/#data 与清 0,或 置 1,异或 取反CLR/CPL A;清 0 和取反(2)移位指令RL/RR/RLC/RRC A 注意:每左移一位相当于乘2,每右移一位相当于除2,带进位的移会影响CY 和 P。5、控制转移类指令(1)无条件转移指令LJMP addr16;addr16 PC,64KB AJMP addr11;(PC)+2PC,addr11 PC10 0,2KB SJMP rel;(PC)+2+rel PC,256B JMP A+DPTR;(A)+(DPTR)PC,64KB(2)条件转移指令累加器 A 判 0 转移指令
45、JZ rel;A 为 0 JNZ rel;A 不为 0 比较不相等转移指令CJNE A/Rn/Ri,#data,rel CJNE A,direct,rel 注意:第一操作数和第二操作数不相等,程序转移,若第一大于第二,CY=0,第一小于第二,CY=1。第一操作数和第二操作数相等,程序顺序执行,CY=0。|精.|品.|可.|编.|辑.|学.|习.|资.|料.*|*|*|*|欢.|迎.|下.|载.第 7 页,共 10 页文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3
46、C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 Z
47、V4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3
48、C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 Z
49、V4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3
50、C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 ZV4P2U4D7J8文档编码:CY3R3C3M4I3 HA2B7X5H6W6 Z