摘 要:本文介绍了基于AT89C52单片机的多功能电子万年历的硬件结构和软硬件设计方法。本设计由数据显示模块、温度采集模块、时间处理模块和调整设置模块四个模块组成。系统以AT89C52单片机为控制器,以串行时钟日历芯片DS1302记录日历和时间,它可以对年、月、日、时、分、秒进行计时,还具有闰年补偿等多种功能。温度采集选用DS18B20芯片,万年历采用直观的数字显示,数据显示采用1602A液晶显示模块,可以在LCD上同时显示年、月、日、周日、时、分、秒,还具有时间校准等功能。此万年历具有读取方便、显示直观、功能多样、电路简洁、成本低廉等诸多优点,具有广阔的市场前景。65886
毕业论文关键词:单片机,DS1302时间芯片,时钟电路,LCD显示器
Abstract:This paper introduces the hardware structure of the electronic calendar based on AT89C52 single chip microcomputer and the hardware and software design method. This design by the data display module, temperature acquisition module, time processing module and adjust the Settings module of four modules. System with AT89C52 single-chip computer as the controller and the serial clock chip DS1302 calendar calendar and time, it can be for years, months, days, hours, minutes, seconds time, also has a leap year compensation and other functions. Choose chips DS18B20 temperature acquisition, calendar using intuitive figures, according to data by 1602 a liquid crystal display module, can on the LCD display year, month, day, Sunday, at the same time, minutes and seconds, but also has time calibration, and other functions. This calendar has read convenient, direct display, functional persity, simple circuit, low cost, and many other advantages, has a broad market prospect.
Key words: Single-chip computer, chip DS1302 time, the clock circuit, LCD displa
目 录
1 前言 5
2 总体介绍 6
2.1 设计要求 6
2.2 设计方案选择 7
3 硬件系统设计 10
3.1 系统的硬件设计概述 10
3.2 主控芯片AT89C52简介 10
3.3 时钟芯片DS1302 13
3.4 显示模块设计 15
3.5 按键模块的设计 16
3.6 温度电路的设计 17
3.7 硬件总体框架设计 17
3.8 DS1302与单片机接口设计 18
4 系统软件设计 18
4.1 主程序流程图 18
4.2 各子程序设计 19
5 总原电路 19
5.1 原理图 19
5.2 PC 电路板 20
6 系统的机体设计及调试 20
6.1 系统的模块组成 20
6.2 系统硬件调试 21
结论 23
参考文献 24
致谢 25
附录 26
1 前言
AT89C52单片机电子万年历的设计+PCB电路图:http://www.youerw.com/zidonghua/lunwen_73614.html