单片机课程设计-篮球计时计分器.doc

单片机课程设计-篮球计时计分器.doc

  1. 1、本文档共30页,可阅读全部内容。
  2. 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
  3. 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载
  4. 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
河南理工大学 单片机课程设计报告 篮球计时计分器 姓 名: 俞顺杨 学 号: 0720210024 专业班级: 07电气5班 指导老师: 张宏伟   __ 所在学院: 万方科技学院 __ 2010年7月4 日 摘要 本设计是篮球计时计分器,主要在篮球比赛中用于记录整个赛程的比赛时间和显示甲、乙两队在比赛过程中的比分情况。该计时计分器有部分组成:一部分用来实现计时功能,其基本原理和定时闹钟相似;另一部分用来实现计分功能,其基本原理和计数器相似,只不过所要记录和显示的对象是按键按下的次数,每按下一次计数值加一。 主控芯片采用AT89C51,采用汇编语言进行编程,编程后利用WAVE600来进行编译,再生成的HEX文件装入芯片中,采用proteus软件来仿真,检验功能是否能够正常实现。 我自己在制作的过程中,先是制了一个定时闹钟,然后又制作一个计数器,但是始终不能用一片芯片来实现两种功能。后来经过我查询资料和上单片机爱好者、老古单片机网、以及周立功单片机论坛交流后,我终于发现问题出现在程序上,不是硬件连接图的问题。然后,我将我的程序重新进行修改,终于实现了主体功能。 该设计能够实现计时和计分功能,采用共阴极数码管进行动态显示,加分的部分用按键来完成,每按一次发送一个计数脉冲,计数值加一。但是效果病不是很完美,计时显示部分有时候会出现不稳定的情况,通过对晶振和电容值调整后仍然没有改变效果,而且该设计最大遗憾是没有实现中场时交换比分和结束时进行报警的功能。 1 概述·····························································3 1.1 设计背景····················································3 1.2 设计内容····················································3 1.3 设计任务和要求··············································4 2系统总体方案及硬件设计············································5 2.1 总体方案····················································5 2.2 硬件原理图··················································6 2.3 AT89S51单片机及其引脚说明···································7 2.4显示电路设计···············································9 2.5电源电路····················································10 2.6 复位电路···················································11 3 软件设计·························································12 3.1 主流程图···························································13 3.2 独立键盘服务程序的设计·····································13 3.3 显示子程序的设计············································13 3.4 系统软件的调试··············································13 3.5源程序代码··················································13 4 Proteus软件仿真·················································15 5课程设计体会·····················································17 参考文献···································································17 附1 源程序代码················································

文档评论(0)

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

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

1亿VIP精品文档

相关文档