摘要:在繁忙的工作与生活中,人们对时间观念表现的越来越重视,电子万年历的出现有助于人们更好地利用时间。
电子万年历设计核心是单片机,能够显示年,月,日,时,分,秒,星期以及温度的信息。设计的硬件组成包括AT89C52单片机模块,DS1302时钟模块,数字式温度传感器DS18B20模块,LED数码管模块。AT89C52单片机作为设计的核心,能在3V的低压状态下工作,因此电源可选用3~5V的电压。时钟芯片DS1302误差小且使用寿命长,可采用直观的方式同时显示出年,月,日,时,分,秒,周和温度信息,还具有掉电保护功能。数字式温度传感器仅需一个端口引脚与控制核心进行通信,超小的体积且无需外部器件,测量精度高,范围广且抗干扰能力强。LED数码管成本低,若采用动态扫描法与控制核心进行连接,能大大减少单片机占用口线,对于显示数字非常合适。
关键词 AT89C52;DS1302;DS18B20;LED数码管
Abstract:In the busy work and life, people pay more and more attention to in the concept of time. The emergence of electronic calendar can help people better use of time.
The electronic calendar design core is a single-chip microcomputer. It can display year, month, day, points, SEC, week and temperature information. The design of hardware includes the AT89C52 single chip micro-computer module and the DS1302 clock module and the digital temperature sensor DS18B20 module and the LED digital tube module. As the core of the design, AT89C52 single-chip microcomputer can work under 3 v low voltage state so that power can choose 3 ~ 5 v voltage. Clock chip DS1302 has the small error and a long service life . It can use intuitive manner at the same time shows a year, month, day, points, SEC, week and temperature information . It also has the protection function when the power supply drop. DS18B20 adopts unique single wire interface to communicate only one port pin .It has small volume and without external devices and it has a high measurement precision and the wide range and the anti-interference ability is strong. The LED digital tube costs low. When the LED digital which is using dynamic scanning is connected with single-chip computer,it takes up fewer micro-controller mouth line and it is very suitable for display number.
Keywords AT89C52 DS1302 DS18B20 digital tube