摘 要:电子时钟作为新时代计时工具的宠儿,人们已经越来越离不开它。它能显示完备的时间信息,且携带方便、性能可靠。随着电子技术的高速发展,单一的计时功能的电子时钟已不能获得人们的喜爱,多用途电子时钟必定成为时代面临的选择。本设计拟用DS1302时钟芯片来表达时间信息。电子时钟使用LCD1602液晶显示屏进行数字显示,能在一个页面内显示精确的时间和温度等其他信息,还可以调时间,定闹钟,并且在没电的时候还能继续走等功能。系统核心选用STC89C52单片机作为控制器。82058
本设计硬件部分由AT89C52单片机、1062液晶显示器、DS1302时钟芯片,DS18B20温度传感器、蜂鸣器、按键系统等部分构成。软件部分在keil环境下用C语言编写,包括时间设置、时间显示、定时设置、定时闹钟、温度显示。然后设计模块电路,仿真完成后,最后软硬结合得到实物。
毕业论文关键词:时钟芯片DS1302;温度采集DS18B20;单片机AT89C52;液晶显示1602
Multi-purpose electronic clock design based on MCU
Abstract:The electronic clock is a very broad daily timing tool, to the modern society more and more popular。It can on the year, month, day, Sunday, when, minutes and seconds for time, but also has a leap year compensation and other functions。This system chooses produced by DALLAS company calendar clock chip DS1302 for real time clock chip, for this system to provide the details of the year, month, day, week and the hours, minutes, etc。Digital calendar using direct digital display, can display year, month, day, Sunday, at the same time, minutes and seconds, and when the information such as temperature, also has the alarm clock and time calibration, and other functions。The circuit USES AT89C52 single chip microcomputer as the core, small power consumption, able to work under 3 v low voltage, voltage can choose 3 ~ 5 v voltage supply。
The system hardware parts by single chip microcomputer AT89C52, DS1302 clock chip, 1062, keyboard, LCD, DS18B20 temperature measurement intercom system, etc。Software part in keil environment written with C51 language, including time setting, time display, time setting, alarm clocks, temperature display。
There's not a good basic knowledge and practical experience is limited to, each function need the hardware implementation, program how to write, how the algorithm implementation, etc。, without certain foundation can not be very good implementation。Found in the process of writing programs to existing relevant knowledge to finish writing task difficult, alone with the help of the teachers and students to complete the program part of the writing。
Post attached circuit principle diagram, the program listing, in order to offer reader reference。Because of the level is limited, hard to avoid has a dramatic deficiency, please the teacher and classmates can give correct me criticism。
Key word: The clock chip DS1302;Temperature acquisition DS18B20;Single chip microcomputer AT89C52;1602 liquid crystal display (LCD)
目录
摘 要 1
引言 。。2
1。 概述 。。3
1。1多用途电子时钟研究的背景及意义 3
1。2 系统的总体设计 3
2。 硬件电路设计 。4
2。1单片机最小系统 4
2。2时钟芯片电路 5
2。3温度采集电路设计 5
2。4 1602LCD液晶显示屏 6
2。5 蜂鸣器闹铃电路