基于51单片机的智能数字闹钟设计与实现

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

基于51单片机的智能数字闹钟设计与实现

摘要

单片机自20世纪70年代问世以来,因为单片机极高的性能价格比,越发受到了人们的重视和关注,应用领域广泛、发展很快。而51单片机是各单片机中最为典型的,也是最具有代表性的一种。

本设计是一款基于AT89C51的智能数字钟,该数字钟表由主控模块、按键模块、定时模块、温度检测模块和显示模块构成。主控模块由主控芯片AT89C51、晶振电路和复位电路构成;定时模块采用时钟芯片DS1302实现精确定时;用温度传感器DS18B20作为温度采集源,检测当前温度;用液晶显示器1602显示年、月、日、时间及温度。通过这种方法的实现,使智能数字闹钟的电路简单,性能可靠,实时性好,时间和温度精度高,操作简单。

在Proteus和Keil µvision4的环境下,完成了电路原理图的绘制以及程序的编译后,用焊接的方法在电路板上焊接实物,将Keil µvision4中生成的.hex文件的程序烧到电路中,检测并调试电路,实现智能数字闹钟的功能。

该智能数字闹钟可以应用于人们的生活和工作中,也可通过改装,将智能数字闹钟的性能提高,还可以增加新的功能,让智能数字闹钟显示更多方面的内容与功能,给人们的生活和工作带来更多的方便。

关键词:单片机,时钟芯片,温度传感器,液晶显示器,智能数字钟

AT89S52 based Digital Clock Design of Intelligent

Abstract

Abstract

SCM since the advent of the 1970s , because of high performance and low cost single chip , has been more and more people's attention and concern , widely used in the field , has developed rapidly. The microcontroller 51 is the most typical each MCU is the most representative one.

The designer is one section based on AT89C51 intelligent digit clock, this clock and watch by the master control module, fixed time the module, the temperature examines the module and the display module constitution. Master control module by master control chip AT89C51, crystal oscillator electric circuit and reset circuit constitution; Fixed time the module uses clock chip DS1302 to realize precisely fixed time; Gathers the source with temperature sensor DS18B20 as the temperature, the examination current temperature; 1602 demonstrate the year, the month, Japan, the time and the temperature with the liquid-crystal display. The method has the advantage of being simple circuit, reliable performance, good real-time, high precision of the time and temperature, simply operation【19】.

Under the environment of Proteus and Keil μvision4 , after finishing drawing circuit schematic and compiling program, Welding material on the circuit board by welding method. Then, .Hex files, the generation of Keil µ vision4 ,is made into the circuit. Finally, testing and debugging the circuit, and to realize the function of Intelligent digital alarm clock.

The electronic clock can be applied to the general living and working, can also be modified to improve performance add new functions and brings more convenient to people’s life and work.

Key Words:NC machining; NC verification; Machining environment; Help files

目录

摘要 (i)

Abstract (ii)

第一章引言 (1)

1.1 智能数字闹钟的研究背景和意义 (1)

1.2智能数字闹钟的功能 (1)

1.3 智能数字闹钟的发展趋势 (2)

第二章方案的论证与选择 (2)

2.1 方案的论证 (2)

2.2 方案的选择 (4)

第三章硬件电路的设计 (4)

3.1 主控电路模块 (5)

3.2 按键电路模块 (7)

3.3 定时电路模块 (8)

3.4 温度电路模块 (10)

3.5 显示电路模块 (11)

第四章软件设计 (13)

4.1总体系统软件设计 (13)

4.1.1 主程序设计 (14)

4.1.2 温度采集模块设计 (16)

4.1.3 定时模块设计 (18)

4.1.4 显示模块设计 (18)

第五章系统的安装与调试 (20)

5.1 系统硬件的安装与调试 (20)

5.2 系统软件的调试 (21)

第六章总结与展望 (25)

参考文献 (27)

致谢..................................................... 错误!未定义书签。

相关文档
最新文档