STC89C52单片机表决器设计课程设计.doc

  1. 1、本文档共33页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
STC89C52单片机表决器设计课程设计

摘 要 表决器是一种常见的电子产品,尤其是在各类投票中,为了实现投票的公平性,性能优良的表决器往往更能得到各单位的青睐。这里通过两种设计方案的对比,最终选定了用STC89C52单片机实现表决器电路。由于单片机具有可编程定时器和中断设备,便于实现显示表决人数和抢答是否成功的精确控制。所用方案电路结构简单,易于实现,它用3颗LED灯来进行显示,且具有简单精准的报警功能。所选方案的一个很重要的特点在于具有灵活性,投票的每个人可以根据自己的意愿选择“同意”、“反对”的两个不同按键。自行进行投票表决,这样进一步保证了公平性。由于它具有成本低廉,结构简单,且性能优良的诸多优点,必定会得到广泛的应用。 关键字:STC89C52单片机,LED灯,表决器,投票表决 ABSTRACT Voting is a common electronic product, especially in all kinds of voting, in order to achieve the fairness of voting, the performance of the voting machine is often better available to all units of all ages. Here through the comparison of two design options, the final selection with STC89C52single-chip implementation of the voting circuit. As the microcontroller has a programmable timer and interrupt devices, easy to achieve the number of voting and answer to achieve the success of the precise control. The circuit structure is simple, easy to implement, it uses three LED lights to display, and has a simple and accurate alarm function. A very important feature of the chosen program is the flexibility to vote for everyone who can choose agree and oppose the two different keys according to their own wishes. To vote on their own, so as to further ensure the fairness. Because of its low cost, simple structure, and excellent performance of many advantages, will be widely used. Key Words: STC89C52 single chip, LED lights, voting machine, vote 目 录 第1章 引言 1 第2章 STC89C52单片机 2 2.1 STC89C52单片机概述 2 2.2 STC89C52单片机设计要求 4 2.3 STC89C52单片机设计方案 5 2.3 STC89C52单片机硬件组成 5 2.4 STC89C52单片机引脚 7 2.4.1 STC89C52单片机引脚实物图 7 2.4.2 STC89C52单片机引脚功能 7 2.5 STC89C52单片机模块设计 9 2.5.1 STC89C52单片机主控制模块设计 9 2.5.2 STC89C52单片机按键模块设计 11 2.5.3 STC89C52单片机LED模块设计 12 第3章 三人表决器的功能调试 13 3.1 调试过程 13 3.2 检测电路 13 3.3 仿真调试 13 3.4 调试出现的问题 15 第4章 三人表决器软件设计 16 4.1.1 开发语言介绍 16 4.2开发软件介绍 16 4.2.1 Keil 4 16 4.2.2 Proteus ISIS 20 第5章 实物及程序展示 23 5.1实物展示 23 5.2程序展示 23 第6章 结论 24 参考文献 25 致谢 26 引言 电子技术是电类相关专业的基础课程,近年来通过教学改革虽然精简了理论教学,加强了实践教学,但是有时理论和实践脱节。本文以三人表决器为例,介绍该课题的教学过程:复习导入、任务分析、设计安装、总结扩展

文档评论(0)

bokegood + 关注
实名认证
内容提供者

该用户很懒,什么也没介绍

1亿VIP精品文档

相关文档