1、 电子技术专业专科毕业论文电子技术专业专科毕业论文 题 目:基于单片机数字时钟设计 作者姓名: 学 号: 专 业: 电子信息工程技术 2011 年年 12 月月 摘摘 要要 本设计以数字集成电路技术为基础、单片机技术为核心。软件设计模块化结构、C 语言编程。系统通过带字库的 LCD12864 显示数据,通过 4*4 矩阵键盘控制显示文字、 公历日期(年、月、日、星期) 、时间(时、分、秒) 文字反白、自定义字符、图片显 示,可以通过键盘调整时间、日期,温度,同时按下键盘时,七段数码管显示相应键位 的键位标识。在内容安排上首先描述系统硬件工作原理,着重介绍了各硬件接口技术和 各个接口模块的功能;
2、其次,详细阐述了程序的各个模块和实现过程。 关键词:关键词: 单片机;数字温度日历表设计 Abstract The design is based on digital integrated circuit.microcontroller technology is the core of the system,The software design uses module structure,C programming language. System by taking the fonts LCD12864 display data, through 4 * 4 matrix keyboa
3、rd control displays text, calendar dates (year, month, day, week), time (hour, minutes and seconds), word against white, customize characters, photos. Can via keyboard adjust time, date, and press the keyboard, 7 segment digital pipe display corresponding cryogenically keys logo. First the arrangeme
4、nt of the content of the system hardware principle are introduced, and the hardware interface technology and the function of each interface module, Secondly, this paper expounds the program modules and realization process. Key word: MCU; Keyboard display the simulation system;LCD12864;The clock 目 录
5、引言引言 4 1 设计要求设计要求 5 1.1 基本要求 . 5 1.2 发挥部分 . 5 2 方案设计与论证方案设计与论证 5 2.1 控制部分方案论证 . 5 2.2 显示部分方案论证 . 5 3 系统框图及工作原理系统框图及工作原理 6 3.1 系统框图 . 6 3.2 工作原理 . 6 3.2.1 硬件工作原理 . 6 3.2.2 软件工作原理 . 6 4 硬件原理分析及设计硬件原理分析及设计 7 4.1 单片机时钟电路 . 7 4.2 单片机复位电路 . 7 4.2.1 复位电路的可靠性设计 . 7 4.3 键盘电路 . 8 4.4 显示电路 . 8 4.4.1 LCD 显示电路 8
6、 4.4.2 七段数码管显示电路 . 8 4.4 整体电路图 . 9 4.5 系统硬件设计所需的元件 . 10 5 软件设计软件设计 10 5.1 软件总体设计及框图 . 10 5.2 软件重要子程序设计及框图 11 5.2.1 显示部分 11 5.2.2 键盘扫描部分 . 12 5.2.3 时钟部分 . 12 5.2.4 延时部分 . 13 6 硬件安装制作硬件安装制作 14 6.1 PCB 板制作 . 14 6.2 元件焊接 . 14 7 电路调试电路调试 15 7.1 硬件调试 . 15 7.2 软件调试 15 8 测试结果测试结果 15 9 结论结论 16 致谢致谢 17 参考文献参考文献 18 引言引言 仪器仪表的键盘显示系统,是实现通过键盘的控制,使 LCD 屏幕有相应 的显示,广泛用于各个领域,如电脑、家电、数字仪器等,成为人们直观了 解和控制仪器、设备的运行状态的重要依据,给人们的生活带了方便,成为 现代人们生活、工作的必需品。数字化显示系统告别了以前老式的监控和计 算仪器、设置状