1、 单片机应用系统设计与制作单片机应用系统设计与制作 课程设计报告课程设计报告 教 学 院 ( 部 )教 学 院 ( 部 ) 电气与电子信息工程学院电气与电子信息工程学院 教教 研研 室室 电气自动化电气自动化 指指 导导 教教 师师 课程设计时课程设计时 间间 2011.5.302011.5.302011.6.10 2011.6.10 课程设计班课程设计班 级级 电气自动化技术电气自动化技术 2009(*)班)班 学学 号号 2009* 2009* 姓姓 名名 * * 2 摘摘 要要 篮球计时计分器以单片机为核心,由计时器、计分器、综合控制器等组成。系统采 用模块化设计,主体分为计时显示模块、
2、计分显示模块、定时报警、按键控制键盘模块。 每个模块的程序结构简单、任务明确,易于编写、调试和修改。编程后利用 Keil 软件 来进行编译,再将生成的 HEX 文件装入芯片中,采用 Proteus 软件仿真,检验功能是否 能够正常实现,本设计中系统硬件电路主要由以下几个部分组成:单片机 AT89C52、计 时电路、计分电路、报警电路和按键开关。该系统具有赛程定时设置、赛程时间暂停、 及时刷新甲乙双方的成绩以及赛后成绩暂存等功能。 关键词:关键词:单片机,计时,计分,显示器,接口 ABSTRACTABSTRACT Time basketball scoring device as the cor
3、e 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
4、 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 hardw
5、are circuit mainly consists of the five components, including AT89C52, timing circuit, scoring circuit, alarm circuit and key switch circuit.The system has many features,such as setting the schedule time, scheduling time to pause, refreshing result of both parties timely, storing temporarily results after the match and so on. KEY WORDSKEY WORDS:Microcontroller, Timing, Scoring, Display, Interface 3 目目 录录 一、设计目的及要求 3 二、方案论证 3 三、元件及其功能简介