2010 ~ 2011 学年 第 2 学期 《单片机应用系统设计与制作》 课程设计报告 教 学院 ( 部 ) 电气与电子信息工程学院 教 研 室 电气自动化 指 导 教 师 课程设计时 间 2011.5.30~2011.6.10 课程设计班 级 电气自动化技术 2 0 0 9 (* )班 学 号 2009******** 姓 名 张 * * 2 单片机应用系统设计与制作 课程设计成绩评定表 课程设计题目:篮球计时记分器 课程设计答辩或质疑记录: 1 、 2 、 成绩评定依据: 成绩评定依据: 课程设计考勤情况(2 0 %): 课程设计答辩情况(3 0 %): 完成设计任务及报告规范性(50%): 最终评定成绩(以优、良、中、及格、不及格评定) 指导教师签字: 2 0 1 1 年 6 月 2 0 日 3 摘 要 篮球计时计分器以单片机为核心,由计时器、计分器、综合控制器等组成。系统采用模块化设计,主体分为计时显示模块、计分显示模块、定时报警、按键控制键盘模块。每个模块的程序结构简单、任务明确,易于编写、调试和修改。编程后利用 Keil 软件来进行编译,再将生成的 HEX 文件装入芯片中,采用 Proteus 软件仿真,检验功能是否能够正常实现,本设计中系统硬件电路主要由以下几个部分组成:单片机AT89C52、计时电路、计分电路、报警电路和按键开关。该系统具有赛程定时设置、赛程时间暂停、及时刷新甲乙双方的成绩以及赛后成绩暂存等功能。 关键词:单片机,计时,计分,显示器,接口 ABSTRACT Time basketball scoring device as the core of SCM includes the timer, scoring devices, integrated controller and other components.This system is used of the modular design, in which the main display module is divided into time display module, scoring display module, timing alarm module, and key control keyboard module. Program structure of each module is simple and clear. So it is easy to write, debug and modify. After programming, firstly we can use Keil software to compile and then generate the HEX file into the chip. Secondly we use the Proteus software simulation to test whether the normal function to achieve. The design of hardware circuit mainly consists of...