1、 1 目目 录录 摘要摘要: : 3 3 ABSTACTABSTACT 3 3 第一章第一章 绪论绪论 5 5 1.1 设计意义 5 1.2 系统的基本要求及本人所做工作 5 第二章第二章 方案选择及设计思想方案选择及设计思想 6 6 2.1 系统显示模块 6 2.1.1 1602 接口说明. 6 2.1.2 1602A 的部分使用说明 7 2.2 单片机设计模块 8 2.3 键盘模块 . 10 第三章第三章 硬件设计硬件设计 1010 3.1 原理框图 . 10 3.2 工作原理 . 11 3.2.1 LCD 显示器 LCD1602 11 3.2.2 时钟电路 11 3.2.3 复位电路 1
2、2 3.2.4 按键电路 12 3.3 元件清单 . 13 3.4 电路图 . 13 第四章第四章 软件设计流程及描述软件设计流程及描述 1414 4.1 系统模块层次结构图 . 14 4.2 程序流程图 . 14 4.3 初始化程序 . 16 4.3.1 T0,T1 的初始化 16 4.3.2 LCD 初始化 16 4.4 LCD 内部程序 16 4.4.1 读忙判断程序 16 4.4.2 写函数 . 17 4.5 按键扫描 . 18 第五章第五章 测试测试 1919 5.1 测试工具 . 19 5.2 测试结果 . 19 5.3 仿真图 . 19 第六章第六章 总结总结 2020 参考文献
3、参考文献 2020 2 附录附录 2020 致谢致谢 3333 3 篮球计时计分器设计篮球计时计分器设计 张玲 物理与电子信息学院应用电子技术教育专业 07 级 指导教师:赖春红 摘要摘要: :此次设计隶属于计算机控制技术弱电课程设计,主要通过基于单片机 AT89S51 芯片作为本次核心控制元件,利用 1602aLCD 作为显示器件,键盘输入 电路等相关的软件的有机结合以及喇叭等辅助器件, 构成了一个满足基本设计要 求的篮球计时计分器。 本系统可满足倒计时方式显示单节比赛剩余时间, 可暂停, 显示双方得分,按键输入可修改分值,如有错误可进行分值的相应修改。整场比 赛结束时有声音提示。系统符合一
4、般篮球计时器的工作要求。采用液晶显示器 1602aLCD,因为其微功耗、小体积、使用灵活等诸多优点在袖珍式仪表和低功耗 应用系统中得到越来越广泛的应用,而且有利于硬件实物的成功。设计的主要方 法主要是先通过仿真确定方案的可行性, 然后在进行局部测试看实物是否满足仿 真的设计要求,最后把整体电路搭建完成做最后的测试和调试。 关键词关键词: AT89S51 按键输入 点阵字符型液晶模块 1602A, 计数器 计时器 The Basketballs Timing and Score Indicator Design zhangling School of Physics and Electronic
5、 Information, Grade 2007, Instructor:Lai Chunhong Abstact:This design belongs to the computer control technology elv curriculum design, mainly through based on AT89S51 single-chip microcomputer chip as the core control device, using 1602aLCD as a display device, keyboard input circuit and other rele
6、vant software organic combination of the auxiliary devices and speakers, constructed a satisfying basic design requirements of basketball timing JiFenQi. This system can satisfy the countdown display single day game remaining time, can pause, show both parties scoring, keystroke can be modified to score, if there are any errors can be conducted a value of corresponding modification. The game ended when sound reminders. System complies with the general basketball timer requireme