lcd1602篮球比赛计时计分器本科毕业设计

本科毕业设计

题 目 LCD1602篮球比赛计时计分器 学 院 管理科学与工程学院 专 业 电子信息工程

摘要

本课题设计采用单片机AT89C51为核心,设计出篮球计分计时系统,可以实现单节比赛12分钟倒计时、24秒进攻时间倒计时、开始/暂停倒计时、改变节次、单节结束报警、两队比分分别加1分、加2分、加3分等各种显示效果。

本系统利用LCD1602液晶显示器作为显示器件,显示节次、12分钟倒计时、24秒倒计时、主客队双方比分,通过3*3矩阵键盘来控制计时器和计数器工作,单节比赛结束时LED发光二极管闪烁报警。

该设计采用LCD1602液晶显示器,因为其微功耗、小体积、使用灵活等诸多优点在袖珍式仪表和低功耗应用系统中得到越来越广泛的应用,通过仿真基本上实现了上述功能,操作简单,性能稳定,符合一般篮球计分器的工作要求。

关键词:AT89C51;矩阵键盘;LCD1602;计数器;计时器

Abstract

This design project using AT89C51 microcontroller as the core, design basketball scoring timing system, countdown to a single game of 12 minutes, 24 seconds shot clock countdown, start / pause and change the section, a single end alarm, the teams were, respectively, add 1 point, 2 points, plus 3 grading a variety of display.

This system uses the LCD1602 LCD monitor as a display, Display Session, 12 minutes 24 seconds of the countdown, countdown to the main visiting team score by 3 * 3 matrix keyboard to control the timer and counter, LED blinks when a single end of the game alarm.

The design uses LCD1602 LCD display to get more and more widely in the pocket-sized instrument and low-power applications because of its micro-power, small size, the use of flexible and many other advantages through simulation basically realize the above functions, the operation simple, stable performance, in line with the general basketball scoring requirements.

Key word: AT89C51;Matrix Keyboard;LCD1602;Counter;Timer

目 录

1引言 ............................................................................................................................................ 1

1.1 本课题选取的目的及意义 ...................................................................................... 1 1.2 本系统的主要研究内容 ........................................................................................... 2

2系统分析 ................................................................................................................................. 3

2.1 系统构成 ...................................................................................................................... 3 2.2 系统工作原理 ............................................................................................................. 3

3系统硬件设计 ....................................................................................................................... 4

3.1 系统硬件总体设计 .................................................................................................... 4 3.2 AT89C51单片机 ........................................................................................................ 5

3.2.1 AT89C51简介 ...................................................................................................... 5 3.2.2 主要特性 ............................................................................................................... 6 3.2.3 管脚说明 ............................................................................................................... 7 3.2.4 芯片擦出 ............................................................................................................... 9 3.2.5 空闲节电模式 ....................................................................................................... 9 3.2.6 掉电模式 ............................................................................................................. 10 3.2.7 程序储存器的加密 ............................................................................................. 11 3.2.8 AT89C51的极限参数 ........................................................................................ 11

3.3 LCD1602液晶显示模块 ........................................................................................ 11

3.3.1

显示器介绍 ..................................................................................................... 11

3.4 3*3矩阵键盘模块 .................................................................................................... 15 3.5 时钟电路模块 ............................................................................................................ 16 3.6 复位电路模块 ............................................................................................................ 17 3.7 元件清单 .................................................................................................................... 17

4系统软件设计 ..................................................................................................................... 18 5 Protues ISIS软件仿真 ................................................................................................. 22

5.1 Proteus运行流程 ..................................................................................................... 22 5.2 Proteus功能仿真 ..................................................................................................... 22

5.3 Proteus仿真结果 ..................................................................................................... 23

6结论 .......................................................................................................................................... 24 参考文献 ................................................................................................................................... 25 致谢 .............................................................................................................................................. 26 附录 .............................................................................................................................................. 27

联系客服:779662525#qq.com(#替换为@) 苏ICP备20003344号-4