stc89c52单片机表决器的设计本科论文.docVIP

  • 30
  • 0
  • 约1.44万字
  • 约 33页
  • 2017-06-19 发布于辽宁
  • 举报
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)

1亿VIP精品文档

相关文档