学历助学中心

单片机应用技术中断系统应用:单元作业练习题

发布时间: 2022-05-13 17:59:15


nid="ylr3anatp6fp4hik5z9zya" data-questiontype="1" data-num="1" style="color: rgb(51, 51, 51); font-family: "Segoe UI", "Lucida Grande", Helvetica, Arial, "Microsoft YaHei", FreeSans, Arimo, "Droid Sans", "wenquanyi micro hei", "Hiragino Sans GB", "Hiragino Sans GB W3", FontAwesome, sans-serif; font-size: 14px; background-color: rgb(241, 240, 240);">
单片机中断系统有几个中断源?
  • 1
  • 2
  • 4
  • 5
参考答案: D  
解析:
nid="ylr3anatarbkxzfkoxjqgw" data-questiontype="1" data-num="2" style="color: rgb(51, 51, 51); font-family: "Segoe UI", "Lucida Grande", Helvetica, Arial, "Microsoft YaHei", FreeSans, Arimo, "Droid Sans", "wenquanyi micro hei", "Hiragino Sans GB", "Hiragino Sans GB W3", FontAwesome, sans-serif; font-size: 14px; background-color: rgb(241, 240, 240);">
2.(5分)
单选题
nly="readonly" name="getScore" value="5" disabled="disabled" style="color: red; font-style: inherit; font-variant: inherit; font-weight: 700; font-stretch: inherit; font-size: 20px; line-height: 1.2; font-family: Constantia, Georgia; text-rendering: optimizelegibility; -webkit-font-smoothing: antialiased; cursor: not-allowed; vertical-align: middle; display: block; width: 75px; padding: 5px 10px; background: rgb(238, 238, 238); border-width: 1px; border-style: solid; border-color: rgb(221, 221, 221); border-radius: 0px; transition: border-color 0.15s ease-in-out 0s, box-shadow 0.15s ease-in-out 0s, -webkit-box-shadow 0.15s ease-in-out 0s; text-align: center; position: absolute;"/>
关于中断优先级,下面说法不正确的是哪一个?
  • 低优先级可被高优先级中断
  • 高优先级不能被低优先级中断
  • 任何一种中断一旦得到响应,不会再被它的同级中断源所中断
  • 自然优先级中INT0优先级*高,任何时候它都可以中断其他4个中断源正在执行的服务
参考答案: D  
解析:
nid="ylr3anat9zzkqloowqjiw" data-questiontype="1" data-num="3" style="color: rgb(51, 51, 51); font-family: "Segoe UI", "Lucida Grande", Helvetica, Arial, "Microsoft YaHei", FreeSans, Arimo, "Droid Sans", "wenquanyi micro hei", "Hiragino Sans GB", "Hiragino Sans GB W3", FontAwesome, sans-serif; font-size: 14px; background-color: rgb(241, 240, 240);">
3.(5分)
单选题
nly="readonly" name="getScore" value="5" disabled="disabled" style="color: red; font-style: inherit; font-variant: inherit; font-weight: 700; font-stretch: inherit; font-size: 20px; line-height: 1.2; font-family: Constantia, Georgia; text-rendering: optimizelegibility; -webkit-font-smoothing: antialiased; cursor: not-allowed; vertical-align: middle; display: block; width: 75px; padding: 5px 10px; background: rgb(238, 238, 238); border-width: 1px; border-style: solid; border-color: rgb(221, 221, 221); border-radius: 0px; transition: border-color 0.15s ease-in-out 0s, box-shadow 0.15s ease-in-out 0s, -webkit-box-shadow 0.15s ease-in-out 0s; text-align: center; position: absolute;"/>

        中断请求,CPU在响应中断后,必须在中断服务程序中用软件将其清除。

  • T0
  • T1
  • 外部中断
  • 串行口中断
参考答案: D  
解析:
nid="ylr3anatvqvmllmr5b8zwq" data-questiontype="3" data-num="4" style="color: rgb(51, 51, 51); font-family: "Segoe UI", "Lucida Grande", Helvetica, Arial, "Microsoft YaHei", FreeSans, Arimo, "Droid Sans", "wenquanyi micro hei", "Hiragino Sans GB", "Hiragino Sans GB W3", FontAwesome, sans-serif; font-size: 14px; background-color: rgb(241, 240, 240);">
4.(5分)
判断题
在同一个优先级别中,多个中断源按照自然优先权顺序被响应。
  • A) 正确
  • B) 错误
参考答案: A  
解析:
nid="ylr3anatgj9gww0lkiuacq" data-questiontype="1" data-num="5" style="color: rgb(51, 51, 51); font-family: "Segoe UI", "Lucida Grande", Helvetica, Arial, "Microsoft YaHei", FreeSans, Arimo, "Droid Sans", "wenquanyi micro hei", "Hiragino Sans GB", "Hiragino Sans GB W3", FontAwesome, sans-serif; font-size: 14px; background-color: rgb(241, 240, 240);">
5.(5分)
单选题
nly="readonly" name="getScore" value="5" disabled="disabled" style="color: red; font-style: inherit; font-variant: inherit; font-weight: 700; font-stretch: inherit; font-size: 20px; line-height: 1.2; font-family: Constantia, Georgia; text-rendering: optimizelegibility; -webkit-font-smoothing: antialiased; cursor: not-allowed; vertical-align: middle; display: block; width: 75px; padding: 5px 10px; background: rgb(238, 238, 238); border-width: 1px; border-style: solid; border-color: rgb(221, 221, 221); border-radius: 0px; transition: border-color 0.15s ease-in-out 0s, box-shadow 0.15s ease-in-out 0s, -webkit-box-shadow 0.15s ease-in-out 0s; text-align: center; position: absolute;"/>
当T1在下列哪种情况下, T1中断请求标志位TF1自动置1,向CPU申请中断。
  • 赋初值时
  • 计数溢出
  • 启动时
  • 设置工作方式时
参考答案: B  
解析:
nid="ylr3anat9lvogneojs9gaa" data-questiontype="3" data-num="6" style="color: rgb(51, 51, 51); font-family: "Segoe UI", "Lucida Grande", Helvetica, Arial, "Microsoft YaHei", FreeSans, Arimo, "Droid Sans", "wenquanyi micro hei", "Hiragino Sans GB", "Hiragino Sans GB W3", FontAwesome, sans-serif; font-size: 14px; background-color: rgb(241, 240, 240);">
6.(5分)
判断题
中断系统是单片机的一个外部设备。
  • A) 正确
  • B) 错误
参考答案: B  
解析:
nid="ylr3anatorpin5ub964dfg" data-questiontype="1" data-num="7" style="color: rgb(51, 51, 51); font-family: "Segoe UI", "Lucida Grande", Helvetica, Arial, "Microsoft YaHei", FreeSans, Arimo, "Droid Sans", "wenquanyi micro hei", "Hiragino Sans GB", "Hiragino Sans GB W3", FontAwesome, sans-serif; font-size: 14px; background-color: rgb(241, 240, 240);">
7.(5分)
单选题
nly="readonly" name="getScore" value="0" disabled="disabled" style="color: red; font-style: inherit; font-variant: inherit; font-weight: 700; font-stretch: inherit; font-size: 20px; line-height: 1.2; font-family: Constantia, Georgia; text-rendering: optimizelegibility; -webkit-font-smoothing: antialiased; cursor: not-allowed; vertical-align: middle; display: block; width: 75px; padding: 5px 10px; background: rgb(238, 238, 238); border-width: 1px; border-style: solid; border-color: rgb(221, 221, 221); border-radius: 0px; transition: border-color 0.15s ease-in-out 0s, box-shadow 0.15s ease-in-out 0s, -webkit-box-shadow 0.15s ease-in-out 0s; text-align: center; position: absolute;"/>
要编写定时器T1的中断服务程序,按如下编写: void timer1() interrupt n 其中n应为哪一个?
  • 1
  • 2
  • 3
  • 4
参考答案: C  
解析:
nid="ylr3anat55xcnsqv4unoiw" data-questiontype="3" data-num="8" style="color: rgb(51, 51, 51); font-family: "Segoe UI", "Lucida Grande", Helvetica, Arial, "Microsoft YaHei", FreeSans, Arimo, "Droid Sans", "wenquanyi micro hei", "Hiragino Sans GB", "Hiragino Sans GB W3", FontAwesome, sans-serif; font-size: 14px; background-color: rgb(241, 240, 240);">
8.(5分)
判断题
单片机的中断系统提高了CPU的工作效率。
  • A) 正确
  • B) 错误
参考答案: A  
解析:
nid="ylr3anatv7tefvaiwcrfjg" data-questiontype="1" data-num="9" style="color: rgb(51, 51, 51); font-family: "Segoe UI", "Lucida Grande", Helvetica, Arial, "Microsoft YaHei", FreeSans, Arimo, "Droid Sans", "wenquanyi micro hei", "Hiragino Sans GB", "Hiragino Sans GB W3", FontAwesome, sans-serif; font-size: 14px; background-color: rgb(241, 240, 240);">
9.(5分)
单选题
nly="readonly" name="getScore" value="5" disabled="disabled" style="color: red; font-style: inherit; font-variant: inherit; font-weight: 700; font-stretch: inherit; font-size: 20px; line-height: 1.2; font-family: Constantia, Georgia; text-rendering: optimizelegibility; -webkit-font-smoothing: antialiased; cursor: not-allowed; vertical-align: middle; display: block; width: 75px; padding: 5px 10px; background: rgb(238, 238, 238); border-width: 1px; border-style: solid; border-color: rgb(221, 221, 221); border-radius: 0px; transition: border-color 0.15s ease-in-out 0s, box-shadow 0.15s ease-in-out 0s, -webkit-box-shadow 0.15s ease-in-out 0s; text-align: center; position: absolute;"/>

MCS-51系列单片机CPU开中断语句是       

  • EA=1;
  • ES=1;
  • EA=0;
  • EX0=1;
参考答案: A  
解析:
nid="ylr3anat47vhrqql5jlmww" data-questiontype="1" data-num="10" style="color: rgb(51, 51, 51); font-family: "Segoe UI", "Lucida Grande", Helvetica, Arial, "Microsoft YaHei", FreeSans, Arimo, "Droid Sans", "wenquanyi micro hei", "Hiragino Sans GB", "Hiragino Sans GB W3", FontAwesome, sans-serif; font-size: 14px; background-color: rgb(241, 240, 240);">
10.(5分)
单选题
nly="readonly" name="getScore" value="5" disabled="disabled" style="color: red; font-style: inherit; font-variant: inherit; font-weight: 700; font-stretch: inherit; font-size: 20px; line-height: 1.2; font-family: Constantia, Georgia; text-rendering: optimizelegibility; -webkit-font-smoothing: antialiased; cursor: not-allowed; vertical-align: middle; display: block; width: 75px; padding: 5px 10px; background: rgb(238, 238, 238); border-width: 1px; border-style: solid; border-color: rgb(221, 221, 221); border-radius: 0px; transition: border-color 0.15s ease-in-out 0s, box-shadow 0.15s ease-in-out 0s, -webkit-box-shadow 0.15s ease-in-out 0s; text-align: center; position: absolute;"/>
中断是指通过什么来改变CPU的执行方向?
  • 硬件
  • 软件
  • 调用函数
  • 选择语句
参考答案: A  
解析:
nid="ylr3anatrpzhroz1ljsyg" data-questiontype="1" data-num="11" style="color: rgb(51, 51, 51); font-family: "Segoe UI", "Lucida Grande", Helvetica, Arial, "Microsoft YaHei", FreeSans, Arimo, "Droid Sans", "wenquanyi micro hei", "Hiragino Sans GB", "Hiragino Sans GB W3", FontAwesome, sans-serif; font-size: 14px; background-color: rgb(241, 240, 240);">
11.(5分)
单选题
nly="readonly" name="getScore" value="5" disabled="disabled" style="color: red; font-style: inherit; font-variant: inherit; font-weight: 700; font-stretch: inherit; font-size: 20px; line-height: 1.2; font-family: Constantia, Georgia; text-rendering: optimizelegibility; -webkit-font-smoothing: antialiased; cursor: not-allowed; vertical-align: middle; display: block; width: 75px; padding: 5px 10px; background: rgb(238, 238, 238); border-width: 1px; border-style: solid; border-color: rgb(221, 221, 221); border-radius: 0px; transition: border-color 0.15s ease-in-out 0s, box-shadow 0.15s ease-in-out 0s, -webkit-box-shadow 0.15s ease-in-out 0s; text-align: center; position: absolute;"/>
单片机中断系统有几个中断优先级别?
  • 1
  • 2
  • 4
  • 5
参考答案: B  
解析:
nid="ylr3anat7qjkzd3jfunucw" data-questiontype="3" data-num="12" style="color: rgb(51, 51, 51); font-family: "Segoe UI", "Lucida Grande", Helvetica, Arial, "Microsoft YaHei", FreeSans, Arimo, "Droid Sans", "wenquanyi micro hei", "Hiragino Sans GB", "Hiragino Sans GB W3", FontAwesome, sans-serif; font-size: 14px; background-color: rgb(241, 240, 240);">
12.(5分)
判断题
如果CPU正在响应更高优先级别的中断请求,当前请求将不会响应。
  • A) 正确
  • B) 错误
参考答案: A  
解析:
nid="ylr3anatabklj9z6caflq" data-questiontype="1" data-num="13" style="color: rgb(51, 51, 51); font-family: "Segoe UI", "Lucida Grande", Helvetica, Arial, "Microsoft YaHei", FreeSans, Arimo, "Droid Sans", "wenquanyi micro hei", "Hiragino Sans GB", "Hiragino Sans GB W3", FontAwesome, sans-serif; font-size: 14px; background-color: rgb(241, 240, 240);">
13.(5分)
单选题
nly="readonly" name="getScore" value="5" disabled="disabled" style="color: red; font-style: inherit; font-variant: inherit; font-weight: 700; font-stretch: inherit; font-size: 20px; line-height: 1.2; font-family: Constantia, Georgia; text-rendering: optimizelegibility; -webkit-font-smoothing: antialiased; cursor: not-allowed; vertical-align: middle; display: block; width: 75px; padding: 5px 10px; background: rgb(238, 238, 238); border-width: 1px; border-style: solid; border-color: rgb(221, 221, 221); border-radius: 0px; transition: border-color 0.15s ease-in-out 0s, box-shadow 0.15s ease-in-out 0s, -webkit-box-shadow 0.15s ease-in-out 0s; text-align: center; position: absolute;"/>

当CPU响应外部中断0 INT0的中断请求后,程序计数器PC的内容是      

  • 0003H
  • 000BH
  • 00013H
  • 001BH
参考答案: A  
解析:
nid="ylr3anatkoday8pl0qxakw" data-questiontype="3" data-num="14" style="color: rgb(51, 51, 51); font-family: "Segoe UI", "Lucida Grande", Helvetica, Arial, "Microsoft YaHei", FreeSans, Arimo, "Droid Sans", "wenquanyi micro hei", "Hiragino Sans GB", "Hiragino Sans GB W3", FontAwesome, sans-serif; font-size: 14px; background-color: rgb(241, 240, 240);">
14.(5分)
判断题
中断服务程序和子函数的调用过程完全一样。
  • A) 正确
  • B) 错误
参考答案: B  
解析:
nid="ylr3anatj6lkkys5bejoaq" data-questiontype="3" data-num="15" style="color: rgb(51, 51, 51); font-family: "Segoe UI", "Lucida Grande", Helvetica, Arial, "Microsoft YaHei", FreeSans, Arimo, "Droid Sans", "wenquanyi micro hei", "Hiragino Sans GB", "Hiragino Sans GB W3", FontAwesome, sans-serif; font-size: 14px; background-color: rgb(241, 240, 240);">
15.(5分)
判断题
定时器T0的计满溢出中断是外部中断。
  • A) 正确
  • B) 错误
参考答案: B  
解析:
nid="ylr3anat1ptetg6hcttv9q" data-questiontype="3" data-num="16" style="color: rgb(51, 51, 51); font-family: "Segoe UI", "Lucida Grande", Helvetica, Arial, "Microsoft YaHei", FreeSans, Arimo, "Droid Sans", "wenquanyi micro hei", "Hiragino Sans GB", "Hiragino Sans GB W3", FontAwesome, sans-serif; font-size: 14px; background-color: rgb(241, 240, 240);">
16.(5分)
判断题
只要提出中断请求,CPU会立刻响应中断。
  • A) 正确
  • B) 错误
参考答案: B  
解析:
nid="ylr3anatuoxebdqik0zkrw" data-questiontype="3" data-num="17" style="color: rgb(51, 51, 51); font-family: "Segoe UI", "Lucida Grande", Helvetica, Arial, "Microsoft YaHei", FreeSans, Arimo, "Droid Sans", "wenquanyi micro hei", "Hiragino Sans GB", "Hiragino Sans GB W3", FontAwesome, sans-serif; font-size: 14px; background-color: rgb(241, 240, 240);">
17.(5分)
判断题
定时器的中断请求标志,其撤除办法是由硬件自动完成的。
  • A) 正确
  • B) 错误
参考答案: A  
解析:
nid="ylr3anaterddcddzan0ylq" data-questiontype="3" data-num="18" style="color: rgb(51, 51, 51); font-family: "Segoe UI", "Lucida Grande", Helvetica, Arial, "Microsoft YaHei", FreeSans, Arimo, "Droid Sans", "wenquanyi micro hei", "Hiragino Sans GB", "Hiragino Sans GB W3", FontAwesome, sans-serif; font-size: 14px; background-color: rgb(241, 240, 240);">
18.(5分)
判断题
单片机所连接的所有外部设备都可以是中断源。
  • A) 正确
  • B) 错误
参考答案: B  
解析:
nid="ylr3anatmkho08kpi0cmcg" data-questiontype="3" data-num="19" style="color: rgb(51, 51, 51); font-family: "Segoe UI", "Lucida Grande", Helvetica, Arial, "Microsoft YaHei", FreeSans, Arimo, "Droid Sans", "wenquanyi micro hei", "Hiragino Sans GB", "Hiragino Sans GB W3", FontAwesome, sans-serif; font-size: 14px; background-color: rgb(241, 240, 240);">
19.(5分)
判断题
要想响应中断,总允许为EA必须为1。
  • A) 正确
  • B) 错误
参考答案: A  
解析:
nid="ylr3anatr4ppzauphsvmiw" data-questiontype="1" data-num="20" style="color: rgb(51, 51, 51); font-family: "Segoe UI", "Lucida Grande", Helvetica, Arial, "Microsoft YaHei", FreeSans, Arimo, "Droid Sans", "wenquanyi micro hei", "Hiragino Sans GB", "Hiragino Sans GB W3", FontAwesome, sans-serif; font-size: 14px; background-color: rgb(241, 240, 240);">
20.(5分)
单选题
nly="readonly" name="getScore" value="5" disabled="disabled" style="color: red; font-style: inherit; font-variant: inherit; font-weight: 700; font-stretch: inherit; font-size: 20px; line-height: 1.2; font-family: Constantia, Georgia; text-rendering: optimizelegibility; -webkit-font-smoothing: antialiased; cursor: not-allowed; vertical-align: middle; display: block; width: 75px; padding: 5px 10px; background: rgb(238, 238, 238); border-width: 1px; border-style: solid; border-color: rgb(221, 221, 221); border-radius: 0px; transition: border-color 0.15s ease-in-out 0s, box-shadow 0.15s ease-in-out 0s, -webkit-box-shadow 0.15s ease-in-out 0s; text-align: center; position: absolute;"/>
主程序被打断的地方称为什么?
  • 中断源
  • 入口地址
  • 中断矢量
  • 断点
参考答案: D  
解析:

更多培训课程,学习资讯,课程优惠,课程开班,学校地址等学校信息,请进入 学历助学中心网站详细了解
咨询电话:13691352034

相关文章

最新文章

相关课程2

温馨提示:提交留言后老师会第一时间与您联系! 热线电话:400-850-8622