05061微控制器原理及应用试卷参考答案.doc_第1页
05061微控制器原理及应用试卷参考答案.doc_第2页
05061微控制器原理及应用试卷参考答案.doc_第3页
05061微控制器原理及应用试卷参考答案.doc_第4页
05061微控制器原理及应用试卷参考答案.doc_第5页
免费预览已结束,剩余1页可下载查看

下载本文档

版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领

文档简介

ocusing on ways and means of improving and upgrading work, further development of three to split. (A) fully grasp no unauthorised created. The township no unauthorised created the existing building one household, one document survey and file storage work must be unconditional and full coverage. Main corridor leading to the town (road, river) village, the Central built-up area of the town on both sides must be to create a no unauthorised village. According to five hundred villages created and shanty towns, villages, old houses, reconstruction of old plant, expand create, upgrading creates files, the real no unauthorised village created into the benefit of the people of very good thing. (B) to strictly manage count as unauthorised controls. Promoting the new control work to move the center of gravity, management measures to the front, and earnestly pipes effectively. A strict new unauthorised network responsibility. Sectors such as land, housing and basic stations (stations) and the Township of grid accountability mechanisms must be strictly in accordance with the new regulatory requirements, effective implementation of the area of responsibility of the new inspections, suppression, demolition work to ensure that the new zero tolerance. Second, public security, water, electricity, water, oceans and fisheries, tourism collaboration, market supervision departments should strictly enforce the illegal construction of disposal of relevant provisions of the regulations, effective fulfilment of responsibilities, particularly in electricity and water supply, and other units may not be new illegal buildings to supply water and electricity supply. While more regulation to prevent personal privacy violations. Illicit trading in illegal construction in the Ministry of public security sector to strictly from the blow. Three is to create additional offence reporting system of incentives. According to building law and covers an area of nature, to report timely degree divided report grade, effective after the removal of certain incentives. (C) integrated implementation , building demolition, modification, use combination. Demolition is the means and purpose built is. To adhere to the building demolished, combination of construction and demolition waste, demolished with combined efforts to improve the scientific level of three to split; second, we must pay attention to three to split and five hundred and five water treatment, three of the four sides, the shackDistrict transformation, and dangerous old room transformation and two road sides, series work organic combined up, active do River, and along demolition work, and manpower advance village in the, and old residential demolition work, to improved masses housing conditions and live environment; three to put three modified a split as traditional low, and small, and bulk industry structure transformation upgrade of important initiatives to caught, speed up advance industry Park, effective optimization park environment微控制器原理及应用试题参考答案及评分标准注意:本套试题共五道大题,满分100分。一、填空(每空1分,共30分)1MCS-51单片机有4 个I/O口,它们分别是 P0P1P2P3 ,共有 32 根I/O线。2MCS-51单片机共有 32 个工作寄存器,地址为 00H-1FH 。 21 个特殊功能寄存器,分布在 80H-FFH 的地址中。3MCS-51单片机程序存储器指令地址使用计数器为 PC ,外接数据存储器地址指针为 DPTR ,堆栈的地址指针为 SP 。4MCS-51单片机共有 5 个中断源,每个中断源有 2 级优先权;在MCS-51单片机中断源中,其中外部中断源 2 个。5MCS-51单片机的串行口有 4种工作方式,工作时RXD占用 P3.0 引脚,TXD占用 P3.1 引脚。6MCS-51单片机的复位由 RST 引脚加 高 电平实现,复位时,SP初始化为 07H 。7PSW是一个 8 位专用寄存器,用于存放程序运行中的各种 状态 信息。8MCS-51的指令系统共有 111 条指令,按其功能可分为 5 类。9MCS-51单片机的定时器T0中断的矢量地址是 000BH ,定时器T1中断的矢量地址是 001BH 。10ADC0809是 A/D 接口芯片,DAC0832是 D/A 接口芯片。11MCS-51单片机内部有定时器/计数器 2 个,它们具有 定时和 计数 功能。二、简明回答下列问题(每题3分,共15分)1 MCS-51单片机的端口P0P3 用作通用I/O口时,要注意什么?答案要点: P0口用作输出口用时,内部没有上拉电阻,处于开路状态,需要外接上拉电阻; P1P3口用作输出口用时,内部有上拉电阻,不需要外接上拉电阻; P0P3口用作输入口用时,需要先将端口置1。2 MCS-51的定时器/计数器有几种工作模式,它们有什么特点?答案要点: MCS-51的定时器/计数器有4种工作模式; 特点如下:方式0:13位计数器 方式1:16位计数器 方式2:自动装载的8位计数器 方式3:T0分为两个8位计数器,T1停止工作3 什么是堆栈?堆栈有哪些功能?堆栈指示器SP的作用是什么?在程序设计时,为什么还要对SP重新赋值?答案要点: 堆栈是片内数据RAM区中,数据先进后出或先进后先出的区域。堆栈指示器SP的作用是存放当前的堆栈栈顶所指存储单元的一个6位寄存器。系统复位后,SP初始化为07H,与工作寄存器地址重叠。4 MOV,MOVC,MOVX指令有什么区别?分别用于哪些场合?答案要点: MOV内部数据传输指令 MOVC程序存储器数据传输指令 MOVX外部数据传输指令5单片机主要应用在哪些方面?(写四个以上即可)答案要点:智能仪表家用电器工业控制汽车电子 办公自动化等三、分析指令(共15分)已知MCS-51单片机内部RAM (10H)=00H,(30H)=40H,(40H)=10H,P1口为B,分析指令执行后各单元的内容,并加以注释。MOV R0 , #30HMOV A , R0MOV R1 , AMOV B , R1MOV R1 , P1MOV P1 , P2MOV 10H , #20H指令执行后各单元的内容(10H)= 20H ,(30H)= 40H ,(40H)= CAH , (P1)= CAH , (P2)= CAH ,(A)= 40H , (B)= 10H , (R0)= 30H , (R1)= 40H 四、编写程序(每题10分,共30分) 请分别编写用软件延时1ms的程序段。并说明延时时间是如何计算的。(80C51使用12M晶振)。答案要点:DELAY: MOV R6,# 4DELAY1:MOV R7,#250DELAY2:DJNZ R7,DELAY2DJNZ R6,DELAY1RET250*4*1s=1000s=1ms 编写程序16位相加程序。设被加数放于片内RAM的20H(低位字节)、21H(高位字节),加数放于22H(低位字节)、23H(高位字节),运算结果的和数存放于20H(低位字节)、21H(高位字节)中。答案要点:START: MOV R0,#20HMOV R1,#22HMOV A,R0ADD A,R1MOV R0 ,AINC R0INC R1MOV A,R0ADDC A,R1MOV R0 ,A 编程实现把内部RAM中从20H单元开始的20个单字节数传送到片外RAM 8000H开始的单元中去。答案要点:START: MOV DPTR,#8000HMOV R0,#20HMOV R1,#20HSTART1: MOV A,R0 MOVX DPTR,AINC R0INC DPTRDJNZ R1,START1 RET五、应用分析(共10分)下图是ADC0809与单片机接口电路图,请根据电路图完成下列任务。1 A/D启动信号由哪几条指令产生?2 A/D转换通道端口地址分别是多少?3 根据图形编写采集8路模拟量程序,并将结果存入20H地址开始的内部RAM中。答案要点: A/D启动信号由下列指令产生MOV DPTR,#7FF8HMOVX DPTR,A A/D转换通道端口地址 77FF8H-7FFFH ORG 0000HLJMP STARTORG 0003HLJMP INTOORG 0100H START: MOV SP,#60HMOV R0,#20HMOV R2,#8MOV DPTR,#7FF8HMOVX DPTR,ASETB IT0SETB EX0SETB EALOOP: SJMP LOOPINTO: MOVX A ,DPTRMOV R0,AINC R0INC DPTRDJNZ R2,CLR EASJMP INT2INT1: MOVX DPTR,AINT2: RETI要考好语文,要拥有较高语文素养,能较好的驾驭语言文字提高自己的生活水平和生活质量,就不仅需要科学有效的学习方法,更要有热爱语文、享受语文的情感投入。去年中考,我所教班级的语文成绩优异and improve idle land of utilization, real achieved environment improved and productivity development mutual promoting total win. Five, firmly implement, promoting work ahead, to create highlights. Third deployment, implementation of seven, then it is imperative to strengthen responsibility and improve the mechanisms and implementation. All localities and departments must be convinced that goals, going all out, mustering spirit, work together to ensure that this years objectives carry out tasks, at the forefront. First, we must strengthen the leadership to implement. Departments at all levels should always work and rural five water treatment, three to split in an important position, and carry the main responsibility, main leader personally, leaders arrested and layers of responsibility rank transmission pressure established hierarchical accountability, and work together to promote the work of the mechanism, a concerted effort pay attention to implementation. County nongban, flood, three to one down to further play a leading catch total, integrated and coordinated role of all kinds is long, Sheriff Inspector to effectively fulfill their responsibilities, formed the alignment on the fire line and management a lively situation. Second, we must strengthen the test implementation of the Governor. Role play the Governor got the baton, for agricultural and rural focus and five water treatment, three to split work, refine improve assessment methods and evaluation system, accurate assessment. Combined with dare play, tree benchmark style building five major operations, carry on and gain firsthand experience of supervision, in particular, to strengthen the focus on the long signs go left, names such as supervision, urged all levels longer on duty in place. Through the supervisory assessment, to promote habits, stimulating power. Third, we must strengthen implementation style. Departments at all levels to work in rural areas and five water treatment, three to split as training cadres for major platforms, compete against large examination room, inspection cadres work performance of the ring, wate

温馨提示

  • 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
  • 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
  • 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
  • 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
  • 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
  • 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
  • 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

评论

0/150

提交评论