单片机原理及应用课程设计_抢答器控制模拟程序设计.docx
《单片机原理及应用课程设计_抢答器控制模拟程序设计.docx》由会员分享,可在线阅读,更多相关《单片机原理及应用课程设计_抢答器控制模拟程序设计.docx(16页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、Gay is now a provincial key construction project of aluminum Ltd-province with an annual output of 50,000 tons of technical innovation project of environmental protection and energy saving of electrolytic aluminum project manager. In this technological transformation projects, he has overall respons
2、ibility for the day-to-day affairs of the project. In order to ensure that southern companys control the scale of investment, strengthen field management, pay special attention to project progress, and ensure a successful operation, the overall goal. He and Engineering Department under the leadershi
3、p of all the staff in the companys technical command, on the difficulties and to overcome technical difficulties in the process, work hard, have made outstanding achievements, mainly reflected in the following aspects: first, careful organization and management achieved remarkable results. Technical
4、 innovation project of the year, started and completed a series of bids and completed to date, from production engineering to put into production after nearly a year, has achieved very significant results. A project first 56 slots from dismantling the old slot just 168 days, civil engineering, insta
5、llation, commissioning, guarantee engineering quality under the premise, on the production side transformation under difficult conditions, created the national industrys fastest speeds. II 32 large prebaked electrolytic cell on November 7 has been installed, marks has an annual production capacity o
6、f 50,000 tons of electrolytic aluminum production capacity of aluminum. Entire project almost 8 months earlier than planned, achieved the goal of production transformation benefits that year, created favorable conditions for aluminum through South. Second, effectively control the investment. Project
7、 is subject to a scientific approach to bidding, bidding to make savings of 20 million Yuan, in the implementation process of the project, every domestic prices of steel, cement and other building materials, the old buildings on the base encountered great difficulties in dealing with significant inc
8、rease in the volume of civil engineering, but through rationalization and optimization, project control in fixed investment of 350 million Yuan. Third, environmental energy-saving effect of the project. Project investment of nearly 30 million Yuan, using large prebake technology and aluminum oxide d
9、ense phase and hyper dense phase conveying technology, fluoride and other harmful gases purification efficiency of up to 98%. Compared with Soderberg cell before the modification, power consumption can be reduced by 1500 tons of electrolytic aluminum, and project environmental protection and energy
10、saving effect is obvious. Four are in a relatively short period of time to the normal production. After four months of efforts, a project has put into operation all the 54 240KA large cell into regular production, stable current channel conditions and all the economic indicators are good, current ef
11、ficiency in October had reached 93%, is close to and reach the domestic advanced level. In the case of production half of the cell, this effect can be achieved and better level in the industry. 50,000 tons of electrolytic modification process, from preliminary study to equipment selection, cost cont
12、rol, project progress, quality control and coordination among the various sub-projects and various professional, technical command under the correct leadership, both from an overall perspective, emphasis on integrity, and earnestly implement the relevant laws and regulations, strictly act according
13、to the contract. He tried to learn relevant knowledge, good style of business, operational and organizational coordination ability, project efficiency, quality and safety assurance system in place, with all units involved with the coordination and good . 计算机与通信工程学院单片机原理及应用实训总结报告设计题目:抢答器控制模拟程序设计 学生姓名
14、:系 别:计算机与通信工程学院专 业:信息工程班 级:09-1学 号:指导教师:陈晓雷 副教授2011年12月23日郑州轻工业学院实 训 任 务 书题目:抢答器控制模拟程序设计专业、班级 信息工程09-1 学号 姓名主要内容、基本要求、主要参考资料等:基本要求:具有8个抢答输入显示抢答剩余时间(初始10秒)显示抢答成功者扩展要求:抢答成功后有声音提示时间分辨率小于10ms完善其他自定义功能设计方案简述:1. 定时抢答器的总体框图如下图所示,它由主体电路和扩展电路两部分组成。主体电路完成基本的抢答功能,即开始抢答后,当选手按动抢答键时,能显示选手的编号,同时能封锁输入电路,禁止其他选手抢答,扩展
15、电路完成定时抢答的功能。2. 定时抢答器的工作过程是:接通电源时,节目主持人将开关置于“消除”位置,抢答器处于禁止工作状态,编号显示器灭灯,定时器倒计时,当定时时间到,却没有选手抢答时,系统报警,并封锁输入电路,禁止选手超时后抢答。当选手在定时时间内按动抢答键时,抢答器要完成以下四项工作:优先编码电路立即分辨出抢答者的编号,并由锁存器进行锁存,然后由译码显示电路显示编号;扬声器发出短暂的声响,提醒节目主持人注意;控制电路要对输入编码电路进行封锁,避免其他选手再次进行抢答;控制电路要使定时器停止工作,时间显示器上显示剩余的抢答时间,并保持到主持人将系统消零为止,当选手将问题回答完毕,主持人操作控
16、制开关,使系统回复到禁止工作状态,以便进行下一轮抢答。 3主程序流程图主程序设置抢答时间和回答问题时间定时器及并行口初始化将时间计数器及启动标志值1开中断采并行口数据为0吗?启动标志=1吗?判断抢答组号将抢答组发光二极管点亮判断哪一组为抢答组将抢答组号送显示抢答时间到了吗?输出响铃信号提示超时继续抢答比赛吗?系统返回NYYYNYN主程序流程图抢答器电路设计:抢答电路的功能有两个:一是分辨选手按键的先后,并锁存抢答者的编号,供译码显示电路用;二是是其他选手的按键操作无效。选用优先编码器74LS148和RS锁存器,74LS138,74LS279可完成上述功能。译码电路选用74LS48芯片工作原理为
17、:当主持人控制开关处于“清除”位置时,RS触发器R为低电平,输出端(4Q1Q)全部为低电平。于是74LS48的BI=0,显示器灭灯;74LS148的选通输入ST=0,74LS148处于工作状态,此时锁存器电路不工作。当主持人开关拨到开“始位”置,优先编码电路和锁存电路同时开始工作,等待输入信号I7,I0。当有选手按下键时,74LS148的输出Y2Y1Y0=010,Yex=0。经RS锁存器后,CTR=1,BI=1,74LS279处于工作状态,4Q3Q2Q=101。经过74LS48译码后,显示器显示选手编号。此外,CTR=1,是74LS148的ST为高电平,74LS148处于禁止工作状态,封锁了其
18、他选手按键的输入。当按下的键松开后,74LS148的Yes为高电平,但由于CTR维持高电平不变,所以74LS148仍处于禁止工作状态,其他选手的输入不会被接收,保证了抢答者的优先性以及抢答电路的准确性。抢答完后主持人使抢答电路复位,以便进行下一轮抢答。整体电路仿真图:程序代码:#include #define uint unsigned int #define uchar unsigned char /*- 共阴极数码管编码表 0 - f显示 -*/ uchar code table=0x3f,0x06,0x5b,0x4f,0x66,0x6d,0x7d,0x07,0x7f,0x6f,0x7f,
19、0x7c,0x39,0x5e,0x79,0x71; sbit start= P36; sbit stop=P35; sbit reset = P37; sbit key1 = P10; /8个抢答按键sbit key2 = P11; sbit key3 = P12; sbit key4 = P13; sbit key5 = P14; sbit key6 = P15; sbit key7 = P16; sbit key8 = P17; sbit buzzer = P34; bit start_flag = 0; bit stop_flag=0; bit key1_flag = 0; /按键抢答标
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 单片机 原理 应用 课程设计 抢答 控制 模拟 程序设计
限制150内