文档详情

基于单片机的多功能数字时钟.doc

发布:2016-09-28约2.12万字共46页下载文档
文本预览下载声明
数 字 时 钟 论 文 论文题目: 学生姓名 王华 (1010940412) 张金婉 (1010940428) 学院: 电子信息与工程学院 专业班级: 电科1004 起止时间:年月— 年月关键词:单片机STC89C52、电子闹钟、DS1302 Abstract Electric clock has become necessary in peoples daily life, it has been widely used in various places. Electric clock was usually hanged in high places. This design has intruduced infrared remote control technology which make the time modification and timing function more convenient, so it has a better prospect to put into practice. The system is made up of the clock circuit module, control module, temperature sample module, keyboard and display module, and the power supply module. In order to achieve the function of time information collection such as minutes, seconds and years, the real-time clock use DS1302 technology which makes the circuit structure very concise. It can ensure to achieve various requirements and make the system circuit stability improved. At the same time, it uses C language on the functional modules of the system programming, and it has the keyboard control function Keywords: single-chip microcomputer-STC89C52 ,clock,DS1302 目 录 1 引言 1 2 概述 1 2.1 系统设计任务 1 2.2 系统设计 2 3 系统硬件设计 4 3.1系统硬件电路芯片选型介绍 4 3.1.1 STC89C52单片机介绍 4 3.1.2 DS1302时钟芯片介绍 7 3.2系统硬件电路设计 10 3.2.1单片机最小系统电路设计 10 3.2.2系统供电系统电路设计 12 3.2.3按键调整电路设计 12 3.2.4时钟电路设计 13 3.2.5 LCD1602显示电路设计 14 3.2.6 系统闹钟电路设计 15 3.3 系统整体电路及PCB线路板绘制 15 3.3.1 Protel99SE软件介绍 15 3.3.2 系统原理图与PCB绘制 16 4 系统软件设计 18 4.1 C语言介绍 18 4.2 系统整体及各部分程序流程 18 4.2.1 系统整体程序流程 18 4.2.2 DS1302时钟读写程序流程 19 4.2.3 按键扫描子程序流程 20 4.2.4 闹铃部分程序流程 21 5 系统焊接与调试 22 5.1 电路焊接调试 22 5.2 系统功能测试 22 5.3 系统误差分析 23 5.4 设计总结 23 致 谢 24 参考文献 25 附录1系统元器件清单 27 附录2 系统源程序 28 1 引言 传统在信息高速发展的今天,几乎每个行业都实现了机械自动化,单片机(又称为微控制器)的出现是计算机发展史上的一个重要里程碑,它以体积小、功能全、性价比高等诸多优点而独具特色,在工业控制、尖端武器、通信设备、信息处理、家用电器等嵌入式应用领域中独占鳌头。51系列单片机是国内目前应用最广泛的8位单片机之一,单片机的使用使得仪器的智能化、小型化、可靠化方面都得到了很大的改善,让很多仪器的原理与设计都发生了很大变化。 目前,单片机得到了越来越多爱好者的推广,可谓是“众人拾柴火焰高”,特别是近些年来,基于51单片机电子产品的层出不穷,表明单片机在电子产品行
显示全部
相似文档