1、 . 摘摘 要要 随着单片机载各个领域的广泛应用,许多用单片机作控制的球赛计时计分器系统也应 运产生, 如用单片机控制 LCD 液晶显示器计时计分器, 用单片机控制 LED 七段显示器计时 计分器等。 本设计介绍一种有 A T89S52 编程控制基于 LCD12864 液晶显示的篮球比球赛计时计分 系统。本系统具有赛程定时设置、赛程时间暂停、蜂鸣报警、记录犯规、比分加减、进行加 时赛等功能。本设计具有价格低廉、性能稳定、操作方便且修改灵活等特点。广泛适合各类 学校和小团体作为赛程计时计分。 主控芯片采用 A T89S52 单片机,采用 C 语言进行编程,编程后利用 Keil uVision3
2、来进行编 译,再将生成的 HEX 文件装入芯片中,采用 proteus 软件来仿真,检验功能是否能够正常实 现。仿真成功后,焊接硬件电路,通过 ISP 下载器将 hex 文件烧制到单片机。 关键词:单片机 液晶显示 蜂鸣报警 定时设置 Abstract With the MCU contains a wide range of applications in various fields, many with a single chip timing for the control of the game scoring device transport system should also
3、produce, such as liquid crystal display LCD with MCU time scoring device, LED seven segment display with microcontroller timing control points, etc. . This paper describes a programmable control with A T89S52 LCD12864 liquid crystal display based on game time scoring than basketball. The system has
4、a set time schedule, schedule time to pause, beep alarm, record fouls, the score addition and subtraction, for overtime and other functions. This design has low price, stable performance, easy to operate and modify flexible. Wide for all types of schools and small groups as the race time points. Mas
5、ter chip A T89S52 microcontroller, using C programming language, programmed to be compiled using Keil uVision3, and then generate the HEX file into the chip, using proteus simulation software, testing whether the function of the normal implementation. After a successful simulation, welding hardware
6、circuit, through the ISP downloader hex file will burn to the microcontroller. Key Words: Scm, liquid crystal display Beep Alarm Timing Set 目目 录录 1 1 计方案选择与论证计方案选择与论证 1 1.11.1 方案选择与论证方案选择与论证 . 1 1.1.1 1.1.1 方案一方案一 利用数字电路和数码管实现利用数字电路和数码管实现 1 1.1.2 1.1.2 方案二方案二 采用单片机和液晶显示电路实现采用单片机和液晶显示电路实现 2 1.1.3 1.1.3 最终方案的选择最终方案的选择 2 2 2 系统硬件实现系统硬件实现 3 2.12.1 单片机选择单片机选择 . 3 2.22.2 硬件电路实现硬件电路实现 . 4 2.2.12.2.1 电源模块电源模块 . 4 2.2.2 2.2.2 时钟电路模块时钟电路模块 4 2.2.3 2.2.3 复位电路模块复位电路模块 5 2.2.42.2.4 按键控制键盘模块按键控制键盘模