基于FreescaleHCS12系列单片机设计和实现抢答器外文翻译.doc_第1页
基于FreescaleHCS12系列单片机设计和实现抢答器外文翻译.doc_第2页
基于FreescaleHCS12系列单片机设计和实现抢答器外文翻译.doc_第3页
基于FreescaleHCS12系列单片机设计和实现抢答器外文翻译.doc_第4页
基于FreescaleHCS12系列单片机设计和实现抢答器外文翻译.doc_第5页
已阅读5页,还剩2页未读 继续免费阅读

下载本文档

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

文档简介

中文2075字外文资料原文Design and Implement of Responder Based on Freescale HCS12 Single Chip Microcomputer Responder is also known as the first signal discriminator, which is widely used in various competitions. It can judge the number of the first player accurately, fairly and intuitively. Currently, a variety of quiz responder has emerged on the market, in which a small responder is commonly designed with small-scale digital integrated circuit. Although the technology has been quite mature,but it is simple function, low intelligence, high fault, simple display, less flexibility, not convenience for upgrade, it has been unable to meet all kinds of requirements for intellectual competitions and variety shows. Therefore, it is necessary to develop some kinds of responder which are more suitable for applications.In recent years, with the rapid development of science and technology, the applications of single-chip microcomputer are becoming widely, which promotes the development of traditional measurement and control technology. In this paper, Freescale HCS12 1-3 is designed as a core component to achieve an intelligent digital responder with 8-channel 4-8, it has some breakthroughs on technology, function and other aspects, comparing with the past responder. It is characterized by simple structure, powerful, good reliability, practicability, so that the competition can really carried out on just, fair and open rules. The basic functions of responder designed in this paper are: (1) The system can limit the competition time and answer time of the alarm; (2) The system can identify the answer signal and identify the players number; (3) The system can calculate score for each player and display the scores.Responder can accommodate 8 players numbered 1 to 8. In addition, LED digital tubes are designed to display the latched data. After race host clears the system, if participants press switch, and after answer is certificated whether it is correct or not, the number of first player to answer in action is immediately shown by digital tubes. Responder should have a strong ability to distinguish players to answer in the action, its resolution reaches at least a few ms After the requirements and functions of responder are analyzed, the following circuits are required in general:1、Responder circuitThe circuit has two functions: one is to identify the number of the player who press button, and to save the number; the other is to prohibit the other players from buttoning or to make other buttons not available2、Timing circuits Host can set competition time and answer time by the time pre-set-circuit. If nobody can answer question within the set time, all players will not get score, then the host will announce the answer. Besides, if someone gets the chance to answer the question, but does not give the right result before the allowable time, he or she wont get the score, the overtime signal will be also send, the host will declare the right answer. Freescale HCS12 contains timer module, the timer module can be directly used.3、Overtime circuit HCS12 will send overtime signal when time goes beyond the set time, this signal will be transferred to the PC computer by the serial port. The next question will be proceeded to answer.4、Scores count and display circuit. When host presses the answer key, it is time to start to answer, if one player presses the answer key, his or her number will be recorded, his or her score will be counted and displayed on the LED digital tubes. Bedside the circuits designed above, some necessary logicdesigns are also necessary. The logic designs are as following:First, the host will read the question which will show in the LCD; next, the PC computer will send letter k, which means that play is beginning to competition. At the same time, timing circuit starts to work, if nobody gets the chance to answer the question within permitted time, microcontroller will send the word chao shi to PC computer; If someone presses the competition key within the specified time, microcontroller will send his or her number. If the time goes beyond the permitted time, PC computer will send next which means turning to the next question, the next question will be automatically showed to answer. If some player gets the chance to answer the question, his or her number and scores will decrease 1 automatically and show in the digital tubes, then microcontroller sends next to go on the next question. If the score is few than 0 after decreasing, player is eliminated. The right answer will show on the LCD. Finally, if all the questions are done, microcontroller will send e to end the game, then the scores of all players will be computed, the highest one will be shown on the digital tubes.Responder hardware is firstly designed;Responder hardware is taken directly from the hardware resources of Freescale HCS12 development board developed by Suzhou University. The development board takes MC9S12DG128 as the core, using modular design approach, it extracts part of I/O resources,and it also provides each module with a corresponding interface circuit. It also provides A/D input channels, PWM low-pass filter circuits, 16-key keyboard input channels, 8-bit digital I/O circuits, SPI I/O circuits, SCI communication circuits,IC but I/O expansion circuits and so.In this paper, the hardware modules, the pin connections and the corresponding interfaces of the development board are listed and unified to redesign by actual needs of the system. Before the start of the main program, the total interruptions are turned off and each module is initialized. The initialization of each module has been done in the corresponding initialization subprogram of each module. Here we only need call the corresponding initialization subprogram. After the initialization of each module is completed,the total interruptions should be turned on. The main body of the main program is a loop structure; there are also several sub-cycles in the main loop, which are used for the cycle waiting of each loop. After the completion of the initialization, the system has been waited for the signal of competition start with the circular mode until the signal comes. When this signal is received, the system checks whether the cycle time is overtime, if it is overtime, the system changes to the next question, otherwise, the system checks the competition signal, if some player competes to answer, then the system checks whether the answer time is out, if the time is not out, the system judges whether the result is true, if the result is right, the player is added 1 point, otherwise, the player is subtracted 1 point, and the system enters the next question. To the player whose score will be subtracted, the system needs to check whether the score is low than 0, if it does, this players input channel is turned off. To be noted that, if the competition flag is 1, it should be cleared Responder is one of the essential devices in various knowledge and intellectual contests, the development of better and more intelligent digital responder is very significant. Responder designed in this paper can achieve a responders basic functions through experimental prototype testing. It reaches the design target with reasonable design, simple structure, good commonality, strong function, reliable answer and quick reaction. However, as hardware limitations of development board, some functions have not been able to achieve, such as the development board does not have enough LED digital tubes to display all players scores simultaneously, the host can not adjust answer time according the difficulty of the question and so on. These issues will remain to be addressed in future development.4外文资料译文基于Freescale HCS12系列单片机设计和实现抢答器抢答器也被称为第一信号鉴别器,它被广泛应用于各种比赛。它可以判断一个选手的数量准确,公正,直观。目前,有多种抢答器已经出现在市场上,在其中一个小的抢答器通常用小规模数字集成电路设计。虽然该技术已相当成熟,但它功能简单,智能低,高容错,显示简单,灵活性较差,不便于进行升级,它已经无法满足各种智力竞赛,综艺节目的要求。因此,有必要开发一些种类的抢答器,可以更适合的应用。近年来,随着科学技术的飞速发展,单片机的应用正在变得广泛,从而促进传统的测量和控制技术的发展。在本文中,飞思卡尔的HCS12 1-3 被设计成一个核心组成部分,实现了智能数字抢答器与8通道 4-8 ,但对技术,功能等方面有所突破,与过去相比响应。它的特点是结构简单,功能强大,可靠性好,实用性,从而使比赛能够真正进行了公正,公平,公开的规则。抢答器的设计本文的基本功能是:(1)该系统可以限制竞争时间和回答的报警时间;(2)该系统能识别应答信号并确定该选手的号码;(3)该系统可以计算每个选手的分数,并显示分数。抢答器可容纳8名选手编号为1到8。此外, LED数码管的设计,显示锁存数据。之后的比赛主持人清除系统中,如果选手按下开关,无论之后的回答是否正确,第一个选手在行动回答的数目是由数码管立即显示。抢答器应具有较强的分辨能力的选手在动作来回答,其分辨率达到至少几毫秒后响应方的要求和功能进行了分析,下面的电路是必需的,一般:1、抢答器电路该电路有两个功能:一个是确定谁按下按钮,播放器的数量,并保存号码,另一种是从扣扣禁止的其他选手或作出其他按钮不可用2时序电路主机可以设置比赛时间和时间预先设定电路答题时间。如果没有人能在设定的时间内回答问题,所有选手都不会得到分数,那么主机将公布答案。此外,如果有人得到机会来回答这个问题,但在允许的时间之前没有给出正确的结果,他或她不会得到分数,加班的信号也会被发送,主机将宣布正确答案。飞思卡尔HCS12包含定时模块,定时模块,可直接使用。3、加班电路HCS12将发送超时信号,当时间超过设定的时间,这个信号将通过串口传送到PC机。接下来的问题将进行回答。4、评分计数和显示电路。当主持人按下了抢答键,表示开始回答,如果一个选手按下了抢答键,他或她的编号将被记录,他或她的分数将计算并显示在LED数码管显示。设计也是必要的。逻辑设计是如下:首先,主机会读取这将在LCD显示的问题,其次, PC机将发送字母“K” ,这意味着该剧开始竞争。与此同时,定时电路开始工作,如果没有人得到机会允许的时间内回答问题,微控制器会发出单词“超市”到PC电脑,如果有人按下指定时间内竞争的关键,单片机将送他或她的编号。如果时间超出了允许的时间, PC机将发送“下一步”,这意味着将目光转向了下一个问题,下一个问题

温馨提示

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

评论

0/150

提交评论