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

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

ID:6694677

大小:395.00 KB

页数:29页

时间:2018-01-22

单片机课程设计-篮球计时器_第1页
单片机课程设计-篮球计时器_第2页
单片机课程设计-篮球计时器_第3页
单片机课程设计-篮球计时器_第4页
单片机课程设计-篮球计时器_第5页
资源描述:

《单片机课程设计-篮球计时器》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库

1、本科课程设计报告单片机课程设计报告篮球计时计分器姓名:学号:专业班级:07电气5班指导老师: __所在学院:__2010年7月4日28--本科课程设计报告摘要本设计是篮球计时计分器,主要在篮球比赛中用于记录整个赛程的比赛时间和显示甲、乙两队在比赛过程中的比分情况。该计时计分器有部分组成:一部分用来实现计时功能,其基本原理和定时闹钟相似;另一部分用来实现计分功能,其基本原理和计数器相似,只不过所要记录和显示的对象是按键按下的次数,每按下一次计数值加一。主控芯片采用AT89C51,采用汇编语言进行编程,编程后

2、利用WAVE600来进行编译,再生成的HEX文件装入芯片中,采用proteus软件来仿真,检验功能是否能够正常实现。我自己在制作的过程中,先是制了一个定时闹钟,然后又制作一个计数器,但是始终不能用一片芯片来实现两种功能。后来经过我查询资料和上单片机爱好者、老古单片机网、以及周立功单片机论坛交流后,我终于发现问题出现在程序上,不是硬件连接图的问题。然后,我将我的程序重新进行修改,终于实现了主体功能。该设计能够实现计时和计分功能,采用共阴极数码管进行动态显示,加分的部分用按键来完成,每按一次发送一个计数脉冲,

3、计数值加一。但是效果病不是很完美,计时显示部分有时候会出现不稳定的情况,通过对晶振和电容值调整后仍然没有改变效果,而且该设计最大遗憾是没有实现中场时交换比分和结束时进行报警的功能。本设计可以实现:1、能记录整个赛程的比赛时间,并能修改比赛时间2、能随时刷新甲、乙两队在整个过程中的比分3、中场交换比赛场地时,能交换甲、乙两队比分的位置4、比赛结束时,能发出报警声,等功能28--本科课程设计报告1概述·······················································

4、······31.1设计背景····················································31.2设计内容····················································31.3设计任务和要求··············································42系统总体方案及硬件设计············································52.1总体方案·······

5、·············································52.2硬件原理图··················································62.3AT89S51单片机及其引脚说明···································72.4显示电路设计···············································92.5电源电路·······························

6、·····················102.6复位电路···················································113软件设计·························································123.128--本科课程设计报告主流程图···························································133.2独立键盘服务程序的设计··············

7、·······················133.3显示子程序的设计············································133.4系统软件的调试··············································133.5源程序代码··················································134Proteus软件仿真···········································

8、······155课程设计体会·····················································17参考文献···································································17附1源程序代码···················································18附2系统原理图·····

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。