摘要:本毕业设计主要完成了电子日历时钟系统的设计。利用日历时钟芯片来获取时钟信息,同时利用温度传感器芯片来感应外界的温度。本文主要介绍了日历显示系统设计方案的选定、系统硬件电路的组成、系统的软件设计、调试的过程中出现的问题和解决办法。本系统主要是用单片机控制的,通过实时日历时钟芯片采集日期,并且利用数字温度传感器采集温度,最后将采集的信息显示在液晶屏上。为了能够实现时钟的可调节性,利用按键电路作为日历时钟的功能项,按下不同的按键可以对LCD上显示的日期和时间进行加或减的调节。本次设计的系统具有硬件结构简单、可清晰显示、功能全面等特点,在日常的学习生活中得到了很广泛的运用。55836
毕业论文关键词:单片机, 日历时钟芯片, 温度传感器 , 液晶屏
Abstract:The subject mainly completed the calendar clock system design. The calendar clock chip is used of display the clock information, while the temperature inductor chip is used as temperature transmitter. This article mainly introduced the calendar display system design scheme is selected, the composition of the system hardware circuit, software of the system design, the debugging process problems and solutions.The design makes use of the microcontroller as the cybernetics core. First of all, the subject utilizes the calendar clock chip to collect the real time, then we takes advantage of the temperature inductor chip to gather the real-time temperature. Above all, we display the corresponding collected information on the LCD screen. In order to achieve the accuracy of the clock, we can use the key circuit as the calendar clock function it item. The result of the experiment is that we can press a different key to adjust the data and time displayed on the LCD. In summary, the system has a simple hardware design, visualization, full-featured and some other roles. And in the daily study life is very widely used.
Key words: microcontroller, calendar clock, temperature inductor, LCD screen
目录
1 绪论 7
2 设计方案 7
2.1 功能要求 7
2.2 方案一 编程实现日历时钟方案 7
2.3 方案二 DS1302日历时钟芯片方案 8
3 硬件设计 8
3.1 硬件设计 8
3.2 器件介绍 9
3.2.1 DS1302时钟芯片 9
3.2.2 DS18B20温度感应器 11
3.2.3 LCD液晶显示屏 14
3.2.4 AT89S51单片机 10
3.3 单元电路设计 16
3.3.1 DS1302日历时钟电路 17
3.3.2 DS18B20温度传感器电路 17
3.3.3 LCD液晶屏显示电路 18
3.3.4 按键电路 19
3.3.5 晶振电路 19
3.3.6 复位电路 20
3.3.7 单片机电路 21
3.4 电路引脚功能表 21
4 软件设计 22
4.1 软件功能结构图 22
4.2 各功能模块软件设计