摘要电子万年历是当代人们日常生活中广泛使用的一种多功能计时工具。它可以实时计算并显示秒、分、时、日期、月、年、温度等信息,还具有时间校准等功能。本次设计是基于PIC系列单片机进行的电子万年历设计。硬件电路采用PIC16F877A单片机作为系统核心;由 DS1302时钟芯片进行计时; DS18B20数字式温度传感器进行周围环境温度测量;最后通过 KS0108液晶显示屏进行显示;按键模块由普通按键接上拉电阻组成,用来进行时间校准。软件程序采用C语言进行编写,主要由日历程序、时间调整程序,公阴历转换程序,温度检测程序,显示程序等程序等子程序组成。所有程序编写完成后,在MPLAB中进行调试,调试成功后在Proteus软件中嵌入单片机内进行系统仿真。63009
关键词 电子万年历 PIC16F877A 温度传感器 时钟 KS0108液晶显示
毕业设计说明书(论文)外文摘要
Title Microcontroller-Based Electronic Calendar
Abstract Electronic calendar is a contemporary widely used in people's daily life as a multi-function time tool. It Can be calculated in real time and displays the seconds, minutes, hours, date, month, year, temperature and other information, but also with time calibration and other functions. This design is based on the PIC family of microcontrollers electronic calendar design. Hardware circuit using PIC16F877A microcontroller as the core of the system; by the DS1302 clock chip timing; DS18B20 digital temperature sensor for ambient temperature measurement; Finally KS0108 LCD display; button module consists of a pull-up resistor composed of ordinary keys, used for time calibration. Software program written in C language, mainly by the calendar application, the time adjustment process, public lunar calendar conversion process, temperature testing procedures, and other procedures such as display program subroutines. All programming is completed, the MPLAB for debugging, debugging success in Proteus software embedded microcontroller system simulation.
Keywords Electronic perpetual calendar PIC16F877A temperature sensor; clock KS0108 LCD
1 绪论 2
1.1课题研究背景 2
1.2 课题研究的目的与意义 2
1.3课题解决的主要内容 3
2 设计要求与方案论证 4
2.1功能要求 4
2.2 系统方案论证与设计 4
3 电子万年历的硬件设计与实现 6
3.1电子万年历系统设计 6
3.2系统硬件各模块作用 6
3.3电子万年历电路设计 15
4 电子万年历软件设计 16
4.1 日历程序设计 16
4.2按钮调时程序设计 17
4.3温度程序设计 18
5 系统调试 22
5.1调试中问题及解决方法 22
5.2调试结论 22
6 仿真结果 22
结论 24
致谢 26
参考文献 27
附录:系统程序清单 29