单片机的C语言应用程序设计_基于AT89S52单片机的篮球计时计分器
课 程: 单片机的C语言应用程序设计
题 目: 基于AT89S52单片机的篮球计时计分器
系 别:
专 业:
班 级:
姓 名:
学 号
组 员:
指导老师:
完成时间:
摘 要
随着单片机载各个领域的广泛应用,许多用单片机作控制的球赛计时计分器系统也应运产生,如用单片机控制LCD液晶显示器计时计分器,用单片机控制LED七段显示器计时计分器等。
本设计介绍一种有AT89S52编程控制基于LCD12864液晶显示的篮球比球赛计时计分系统。本系统具有赛程定时设置、赛程时间暂停、蜂鸣报警、记录犯规、比分加减、进行加时赛等功能。本设计具有价格低廉、性能稳定、操作方便且修改灵活等特点。广泛适合各类学校和小团体作为赛程计时计分。
主控芯片采用AT89S52单片机,采用C语言进行编程,编程后利用Keil uVision3来进行编译,再将生成的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 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 AT89S52 LCD12864 liquid crystal display based on game time scoring than basketball. The system has 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. Master chip AT89S52 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 circuit, through the ISP downloader hex file will burn to