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

时间:2022-11-21 04:38:05 作者:壹号 字数:8790字

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

摘 要

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

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

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

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

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

i

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】.

…… 此处隐藏1521字 ……

【16】

。这种具有

人们所需要的智能化特性产品为人们节省了大量时间和空间,扩大了数字化的范围,为家庭数字化奠定了基础。

1.2智能数字闹钟的功能

电路采用了单片机AT89C51、温度传感器DS18B20、时钟芯片DS1302、1602LCD显示器,通过独立式按键可以切换模式,修改显示时间的数据。电路设计合理,具备了三大特点:简

1