毕业论文

打赏
当前位置: 毕业论文 > 自动化 >

AT89S52单片机的电子万年历设计+程序+电路图

时间:2021-07-16 21:01来源:毕业论文
基于单片机的电子万年历设计,是利用运算放大器、电阻、电容和电感等分立元器件,根据电子万年历的功能要求,设计制作一个以单片机为核心的电子万年历。结合适当的外围接口芯

摘要基于单片机电子万年历设计,是利用运算放大器、电阻、电容和电感等分立元器件,根据电子万年历的功能要求,设计制作一个以单片机为核心的电子万年历。结合适当的外围接口芯片与传感器,实现工作状态指示、时间(年月日时分秒星期)的显示、时间的调整、温度的显示、湿度的显示等功能。在这次毕业设计中,硬件方面选用Atmel公司的AT89S52单片机作为核心处理器,以DALLAS公司的DS1302作为时钟芯片、DS18B20作为温度传感器。以DHT11作为湿度传感器、LCD12864作为数据显示屏以及普通的键盘电路作为数据输入。软件方面选用C语言编程,keil4软件进行编译下载。PCB 板的绘画采用Altium Designer 13进行画图设计,最终实现一个单片机万年历最小系统。69372

毕业论文关键词  单片机 AT89S52 万年历 

毕业设计说明书外文摘要

Title   The Design of Perpetual Calendar Based on Microcontroller     

Abstract

The design of perpetual calendar based on microcontroller makes use of operational amplifier,resistor,capacitance,electrical inductance and other electrical component. According to the functional request of electronic calendar, an electronic calendar with microcontroller at the core is designed and produced by using discrete components, such as operational amplifier, resistor, capacitance and electrical inductance. Combined with peripheral interface and sensors to function display of working condition, time(year, month, date, hour, minute, second, week), temperature and humidity and adjustment of time. In this project, Atmel’s AT89S52 microcontroller is chosen as CPU, DALLAS’s DS1302 and DS18B20 as timer and temperature sensor, DHT11 as humidity sensor, LCD12864 as screen and general keyboard circuit as time changing button. Then C language is used as programming language and Keil4 is applied to compile and download. Finally, the minimum system of electronic calendar is achieved by using Altium Designer 13 to design PCB board. 

Keywords :  Microcontroller  AT89S52  Perpetual Calendar

目   次

1 引言 1

2 AT89S52单片机 2

2.1 AT89S52单片机的硬件组成结构 2

2.2 AT89S52单片机的引脚与连接 3

2.3对AT89S52单片机的编程与下载 4

3 DS1302 时钟芯片 5

3.1 DS1302时钟芯片的引脚及连接 5

3.2 DS1302时钟芯片的控制方式 5

3.3 DS1302时钟芯片的C语言程序 7

4 DS18B20 单总线数字温度计 9

4.1 DS18B20的控制方式 9

4.2 DS18B20的C语言程序 10

5 DHT11数字温湿度传感器 12

5.1 DHT11的封装与引脚 12

5.2 DHT11的C语言程序 13

6 LCD12864液晶显示屏 15

6.1 LCD12864液晶控制指令 16

6.2 LCD12864的显示 17

6.3 LCD12864的C语言程序 17

7 PCB板的设计 19

结论 21

致谢 22

参考文献23

附录A 主程序的C语言程序 24

附录B DS1302 的C语言程序 25

附录C DS18B20的C语言程序 30

附录D DHT11的C语言程序 33

附录E LCD12864的C语言程序 35

  

  

1  引言

单片机是一种采用集成电路将可以处理数据的CPU、随机存储器和只读存储器,多组I/O口等一系列功能集成到一片芯片上的微型计算机系统。其在工业自动控制领域有着十分重要的应用[1]。

随着世界的发展,时间对于人日常生活的重要性越来越注重。电子万年历作为一种长时间精确计时的设备,对日常生活有非常重大的意义。传统电子万年历大部分都有功耗、体积大,计时不准确等特点。本次毕业设计所设计的电子万年历采用了AT89S52作为核心控制元件,计时方面运用了计时精确度高的DS1302时钟芯片。同时,加入了调整时间年、月、日、时、分、周的功能,并可以测得周围环境的温度湿度[2]。经过一系列调试,系统达到了设计的要求,实现了所需全部功能,各个部分运作平稳,工作状态正常。 AT89S52单片机的电子万年历设计+程序+电路图:http://www.751com.cn/zidonghua/lunwen_78197.html

------分隔线----------------------------
推荐内容