基于单片机89S52的数字时钟电路.docVIP

  • 15
  • 0
  • 约1.34万字
  • 约 32页
  • 2017-05-19 发布于陕西
  • 举报
【中文摘要】 本设计基于单片机技术原理,以单片机芯片AT89C5作为核心控制器,通过硬件电路的制作以及软件程序的编制,设计多功能数字时钟系统。该时钟系统主要由时钟模块、环境温度检测模块、液晶显示模块键盘控制模块组成。系统具有简单清晰的操作界面,能在4V~7V直流电源下正常工作。能够准确显示时间(显示格式为时时:分分:秒秒,24小时制),可随时进行时间调整,具有闹钟时间设置、闹钟开/关、止闹功能,设计以硬件软件化为指导思想,充分发挥单片机功能,大部分功能通过软件编程来实现,电路简单明了,系统稳定性高。同时,该时钟系统还具有功耗小、成本低的特点,具有很强的实用性。由于系统所用元器件较少,单片机所被占用的I/O口不多,因此系统具有一定的可扩展性。Abstract 】 The design is based on the principles of microcomputer technology, based on microcontroller AT89C52 as the core controller, through the production of the hardware circuits and software programming, design of the multifunctional digital clock system. The clock system is mainly composed of a clock module, temperature detection module, LCD display module and the keyboard control module. The system is simple and clear user interface, can be in 4V ~7V DC power supply to work. Be able to accurately display the time ( HH: display format: seconds, 24 hours ), may at any time to time adjustment, has set the alarm time, the alarm on / off, stop alarm function, design of hardware and software as the guiding ideology, give full play to the function of the MCU, most of the functionality through software programming, circuit simple and clear, high system stability. At the same time, the clock system also has a small power consumption, low cost, strong practicability. Because the system uses few components, single-chip occupied by the I/O port is not much, so the system has a certain degree of scalability. 【Key word.】 LCD display chip 6 7 digital tube 目录 1 绪论 2 1.1课题的提出及研究意义 2 1.1.1 课题的提出 2 1.1.2 课题研究的意义 4 2.1芯片简介 5 2.1.1 AT89C52单片机的特性概述 5 2.2 总体设计思路 13 2.3单元电路设计 14 2.3.1 时钟模块 14 2.3.2 复位电路模块 15 2.3.3 控制模块 16 2.3.4 显示模块 16 3 软件设计 17 3.1 整体程序设计思路 18 3.2 程序流图 18 3.3 主要程序代码 20 6.1 设计原理 27 6.2 主要程序清单 28 参考文献 31 1 绪论 人类的生活和工作均离不开时钟。从古代的滴漏更鼓到近代的机械钟,从电子表到目前的数字时钟,为了准确的测量和记录时间,人们一直在努力改进着计时工具。钟表的数字化,大力推动了计时的精确性和可靠性。 1.1课题的提出及研究意义。数字钟成为人们日常生活中不可少的必需品,由于数字集成电路的发展和石英晶体振荡器的广泛应用,使得数字钟的精度,远远超过老式钟表, 钟表的数字化给人们生产生活带来了极大的方便。 随着电子技术的飞速发展,家用电器和办公电子设备逐渐增多,

文档评论(0)

1亿VIP精品文档

相关文档