单片机考试试题及答案(10).pdf

上传人:Q****o 文档编号:56616561 上传时间:2022-11-02 格式:PDF 页数:7 大小:81.55KB
返回 下载 相关 举报
单片机考试试题及答案(10).pdf_第1页
第1页 / 共7页
单片机考试试题及答案(10).pdf_第2页
第2页 / 共7页
点击查看更多>>
资源描述

《单片机考试试题及答案(10).pdf》由会员分享,可在线阅读,更多相关《单片机考试试题及答案(10).pdf(7页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。

1、学习文档仅供参考单片机考试试题及答案(10)一 填空题共20 分,每题 4 分1、我们使用的单片机试验箱型号是。2、输入文件后,按F2 保存程序,此时文件扩展名是。3、提示装载完毕后,使用命令进行反汇编,检查程序是否正确装入。4、将 30H单元的内容 67H送 R1,用最少的指令实现,指令为:。5、弹出操作,使用指令。二、程序分析题共20 分,每题 10 分1、程序如下2506HM5:MOVSP,#58H;2509MOV10H,0FH;250CHMOV 11H,#0BH;250FHACALLXHD;2511HMOV20H,11H 2514HM5A:SJMPM5A XHD:PUSH 10H PU

2、SH 11H POP 10H POP 11H RET 问:执行后堆栈内容?执行:后,?2、解读以下程序,然后填写有关寄存器内容(1)MOV R1,#48H MOV 48H,#51H CJNE R1,#51H,00H JNCNEXT1 MOV A,#0FFH SJMP NEXT2 NEXT:MOV A,#0AAH NEXT2:SJMP NEXT2 累加器 A=()(2)MOVA,#0FBH MOVPSW,#10H ADDA,#7FH 假设,当执行完上述程序段后,将各位状态填入下表:学习文档仅供参考三、编程题共60 分,每题 30 分1.将片内 RAM 2 单元如 20H 的内容分成两段,并将它们

3、分别存入2 单元和 3 单元。高位清零。1.输入程序。参考程序:MOVR0,#21H MOVA,20H ANLA,#0FH MOVR0,A INC R0 MOVA,20H SWAPA ANLA,#0FH MOVR0 1.在某单元如20H存入待分字的某数如5BH。2.单步或带断点运行该段程序。3.运行过程中注意检查程序的变化,并在最后检查21H=,4.22H=。2、编程实现字符串长度统计:设在单片机内RAM 中从 STR单元开始有一字符串以ASC II 码存放,该字符串以$结束,试统计该字符串的长度,其结果存于LON单元。1输入所编程序START:CLRA;计数单元清零MOV R0,#STR L

4、OOP:CJNE R0,#24H,NEXT;判断字符串是否结束SJMP COMP NEXT:INTA INCR0 SJMP LOOP COMP:MOV LON,A;将长度存入LON单元SJMP$2在以 STR为首的地址内部RAM 单元开始存放待统计长度的数据块自设,并以24 作为数据块的结束标志。3单步或断点运行所编程序,注意观察每次转移后PC及统计长度单元LON的变化,并做好记录。4验证运行结果。5改变数据块长度,重做。单片机原理与应用试题010 答案文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1

5、H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O

6、1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5

7、O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O

8、5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10

9、O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G1

10、0O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G

11、10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4学习文档仅供参考1.填空题共 20 分,每题 4 分1、我们使用的单片机试验箱型号是TDN-MI。2、输入文件后,按F2 保存程序,此时文件扩展名是.ASM。3、提示装载完毕后,使用U000命令进行反汇编,检查程序

12、是否正确装入。4、将 30H单元的内容 67H送 R1,用最少的指令实现,指令为:MOV30H,#67H;MOVR1,30H。5、弹出操作,使用POPACC 指令。二、程序分析题共20 分,每题 10 分1、程序如下2506HM5:MOVSP,#58H;2509MOV10H,0FH;250CHMOV 11H,#0BH;250FHACALLXHD;2511HMOV20H,11H 2514HM5A:SJMPM5A XHD:PUSH 10H PUSH 11H POP 10H POP 11H RET 问:执行后堆栈内容?执行:后,?解1.执行指令时:?:?子程序返回时,点地址弹出,所以执行后,堆栈内容

13、如左图所示5C 0B 5B 0F 5A 25 59 11 58 执行:后,2、解读以下程序,然后填写有关寄存器内容(1)MOV R1,#48H MOV 48H,#51H 文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4

14、文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z

15、4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6

16、Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P

17、6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1

18、P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S

19、1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10

20、S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4学习文档仅供参考CJNE R1,#51H,00H JNCNEXT1 MOV A,#0FFH SJMP NEXT2 NEXT:MOV A,#0AAH NEXT2:SJMP NEXT2 累加器 A=()(2)MOVA,#0FBH MOVPSW,#10H ADDA,#7FH 解 MOVR1,#48H;48H?送 R1 MOV48H,#51H;51H送?(48H)CJNER1,#51H,00H;(R1)GN#51相比,相等,顺序执行JNC NEXT1;没借位转,NEXT1 MOVA,#0FFH;有借位,F

21、FH送 A SJMPNEXT2 NEXT1MOVA,#0AAH;0AAH 送 A NEXT2SJMPNEXT2 累加器 A=0AAH 2MOV A,#0FBH MOV PSW,#10H 00010000 送 PSW ADD A,#7FH 由 11111011+01111111-_ 1 01111010 所以,有进位CY=1,C6?7=1?10,=0;A 中有奇数个1,=1;有辅助进位位假设,当执行完上述程序段后,将各位状态填入下表:三、编程题共60 分,每题 30 分1.将片内 RAM 2 单元如 20H 的内容分成两段,并将它们分别存入2 单元和 3 单元。高位清零。1.输入程序。参考程序:

22、MOVR0,#21H 文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4

23、ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4

24、 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H

25、4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1

26、H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O

27、1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5

28、O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4学习文档仅供参考MOVA,20H ANLA,#0F

29、H MOVR0,A INC R0 MOVA,20H SWAPA ANLA,#0FH MOVR0 1.在某单元如20H存入待分字的某数如5BH。2.单步或带断点运行该段程序。3.运行过程中注意检查程序的变化,并在最后检查21H=,4.22H=。2、编程实现字符串长度统计:设在单片机内RAM 中从 STR单元开始有一字符串以ASC II 码存放,该字符串以$结束,试统计该字符串的长度,其结果存于LON单元。1输入所编程序START:CLRA;计数单元清零MOV R0,#STR LOOP:CJNE R0,#24H,NEXT;判断字符串是否结束SJMP COMP NEXT:INTA INCR0 SJM

30、P LOOP COMP:MOV LON,A;将长度存入LON单元SJMP$2在以 STR为首的地址内部RAM 单元开始存放待统计长度的数据块自设,并以24 作为数据块的结束标志。3单步或断点运行所编程序,注意观察每次转移后PC及统计长度单元LON的变化,并做好记录。4验证运行结果。5改变数据块长度,重做。单片机原理与应用试题0111.填空题共 20 分,每题 4 分1、开启微机电源,在软件所在目录键入命令,选择对应串口号,进入集成操作软件环境。2、对源文件进行汇编,生成浮动目标文件,文件扩展名是。3、用 命令设置断点。4、将立即数3052H送数据指针DPTR,使用指令。5、两寄存器交换数据,使

31、用指令。二、程序分析题共20 分,每题 10 分1、程序存储器空间表格如下:文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码

32、:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编

33、码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档

34、编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文

35、档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4

36、文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z

37、4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6

38、Z4学习文档仅供参考地址内容已知:片内的中为,执行以下程序后?,MOV 30H,A END:SJMPEND 执行程序后,(30H)=2、分析程序段:,;,;,1程序执行何种操作?2假设已知初值:60H=24H,(61H)=72H,则运行后,62H=。1.编程题共 60 分,每题 30 分1.编程实现以下逻辑运算Z=(M+N)*(O+P)。设 M,N,O,P 为片内 RAM30H 33H单元,输出结果单元Z地址为 34H。1.将以下程序输入到实习装置参考程序START:MOV A,M XRL A,N MOVB,A MOVA,O ORL A,P ANL A,B MOV Z,A 1.在 M P(30

39、H33H单元)装入待进行逻辑运算的数据自设。2.单步或带断点运行该段程序。3.运行过程中注意检查程序的变化,并在最后验证Z是否与理论值相符。文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4

40、I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G

41、4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9

42、G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F

43、9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4

44、F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M

45、4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10

46、M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4学习文档仅供参考2、设从内存 BLOCK 单元开始存放一无符号数的数据块,其长度为LEN。试找出其最小数,并存入MIN单元。1输入所编程序。COMP:MOVA,#0FFH;置比较的初始值MOVR2,#LEN;置数据块长度MOVR1,#BLOCK;置地址指针LOOP:CLR C SUBB A,R1;比较JCNEXT;假设小,则恢复原值MOVA,R1 SJMPNEXT1 NEXT:ADD A,R1 NEXT1:INC R1;假设大,则取下个数比较DJNZ:DJNZR2,LOOP MOVMN,A;存最小数SJMP$2确定好数据块的起

47、始地址和长度,并在相应的内部RAM 单元存入数据,同时作好记录。3单步或断点运行程序,注意循环次数是否等于数据块长度。4观察 PC,A和计数单元的变化并作好记录。5验证运行结果。SCR文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z1

48、0S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z

49、10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4

50、Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD4Z10S1P6Z4文档编码:CJ10M4F9G4I9 HH1G10O5O1H4 ZD

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 教育专区 > 高考资料

本站为文档C TO C交易模式,本站只提供存储空间、用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。本站仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知淘文阁网,我们立即给予删除!客服QQ:136780468 微信:18945177775 电话:18904686070

工信部备案号:黑ICP备15003705号© 2020-2023 www.taowenge.com 淘文阁