电子设计毕业设计-电子万年历设计与制作论文资料-工作记录表

合集下载

电子万年历的设计—毕业设计论文

电子万年历的设计—毕业设计论文

基于51单片机的电子万年历的设计目录摘要 (I)ABSTRACT (II)1 引言 (1)2 功能要求 (1)3 方案论证与设计 (1)3.1控制部分的方案选择 (1)3.2测温部分的方案选择 (2)3.3显示部分的方案选择 (3)4 系统硬件电路设计 (4)4.1主控器AT89C52 (4)4.2时钟电路DS1302 (5)4.2.1. DS1302的性能特性 (5)4.2.2 DS1302数据操作原理 (6)4.3测温电路的设计 (9)4.3.1 温度传感器工作原理 (9)4.3.2 DS18B20与单片机的接口电路 (16)4.4显示电路的设计 (17)4.5键盘接口的设计 (19)5 系统程序的设计 (19)5.1阳历程序设计 (19)5.2时间调整程序设计 (20)5.3温度程序设计 (20)5.3.1 主程序 (21)5.3.2 读出温度子程序 (21)5.3.3 温度转换命令子程序 (21)5.3.4 计算温度子程序 (23)5.3.5显示数据刷新子程序 (23)6调试及性能分析 (25)6.1调试步骤 (25)6.2性能分析 (25)7总结 (26)参考文献 (26)致谢 (28)基于51单片机的电子万年历的设计摘要电子万年历是单片机系统的一个应用,由硬件和软件相配合使用。

硬件由主控器、时钟电路、温度检测电路、显示电路、键盘接口5个模块组成。

主控模块用AT89C52、时钟电路用时钟芯片DS1302、显示模块用LED数码管、温度检测采用DS18B20温度传感器、键盘接口电路用普通按键接上拉电阻完成;软件利用C语言编程实现单片机程序控制。

单片机通过时钟芯片DS1302获取时间数据,DS18B20采集温度信号送该给单片机处理,单片机再把时间数据和温度数据送给74LS154译码,然后通过三极管C9015放大驱动LED数码管显示阳历年、月、日、时、秒、闹钟、星期、温度。

关键词电子万年历;单片机;温度传感器;时钟;数码显示AbstractElectronic perpetual calendar which is an application of the single-chip processor system, is utilized by combining hardware and software. And Hardware is composed of five modules: Main control unit, clock circuit, temperature test circuit, display circuit, keyboard interface. Main control board adopts AT89S52, clock circuit adopts the DS1302 clock chip, display module adopts the LED digital tube, and temperature test adopts the DS18B20 temperature sensor, keyboard interface circuit is completed by connecting ordinary button with pull-up resistor. Software takes advantage of C to program, so as to realize the programmed control of single-chip processor. Single-chip processor gets the time data through using the DS1302 clock chip. The DS18B20 gathers temperature signals and transmits them to single-chip processor. Then, single-chip processor transmits the time data and the temperature data to the 74LS154 decoder. Lastly, the LED displays solar calendar year, year, month, day, hour, minute, second, alarm clock, week and temperature with being enlarged and driven by the C9015 triode.Keywords:Electronic perpetual calendar; single-chip processor; temperature sensor; clock; digital display1 引言随着微电子技术和超大规模集成电路技术的不断发展,家用电子产品不但种类日益丰富,而且变得更加经济实用,单片微型计算机体积小、性价比高、功能强、可靠性高等独有的特点,在各个领域得到了广泛的应用。

电子万年历的设计与制作毕业论文

电子万年历的设计与制作毕业论文
(4)查询式按键及其接口:26
(5)矩阵式键盘及其接口26
(6)键盘扫描控制方式:26
四、测试结果分析与结果27
1.测试结果分析27
(1)在测试中遇到LEDLCD16824不显示27
(2)按键调整时,不是按单位递增和递减28
五、系统评价28
六、系统程序清单28
七、辞31
八、参考文献31
绪论
随着人们生活水平的提高和生活节奏的加快,对时间的要求越来越高,精准数字计时的消费需求也是越来越多。
5.显示模块的设计17
三、系统的软件设计18
1.程序流程框图:18
2.子程序的设计:21
(1)键盘子程序的实现:21
(2).读写DS1302子程序21
3.系统硬件电路设计:23
4.系统硬件PROTEUS仿真原理图:24
5.主要单元电路的设计:24
(1)显示4.1显示部分设计24
(2)键盘接口:25
(3)按键开关去抖动问题:25
本设计采用的是AT89S52单片机,该单片机采用的MCU51核,因此具有很好的兼容性,部带有8KB的ROM,能够存储大量的程序,最突出特点是具有ISP在系统烧写功能,使得烧写程序更加方便。
计时芯片采用DALLAS公司的涓细充电时钟芯片DS1302,该芯片通过简单的串行通信与单片机进行通信,时钟/日历电路能够实时提供年、月、日、时分、秒信息,采用双电源供电,当外部电掉电时能够利用后备电池准确计时。
方案三:
采用LED数码管动态扫描,LED数码管价格适中,对于显示数字最合适,而且采用动态扫描法与单片机连接时,占用的单片机口线少。
LED显示数码管
常见的LED显示具有清晰明亮的特点。是显示接口也是绝大多数单片机应用系统必备的部件之一。

电子万年历毕业设计

电子万年历毕业设计

目录摘要 ........................................................... 错误!未定义书签。

一.设计要求与方案论证............................................ 错误!未定义书签。

1.1设计要求................................................... 错误!未定义书签。

1.1.1基本要求................................................ 错误!未定义书签。

1.1.2创新要求................................................ 错误!未定义书签。

1.2系统基本方案选择和论证...................................... 错误!未定义书签。

1.2.1单片机芯片.............................................. 错误!未定义书签。

1.2.2 显示模块 ............................................... 错误!未定义书签。

1.2.3时钟芯片................................................ 错误!未定义书签。

1.2.4温度传感器.............................................. 错误!未定义书签。

1.3电路设计最终方案决定........................................ 错误!未定义书签。

二.电子万年历硬件设计与实现...................................... 错误!未定义书签。

2.1电子万年历系统设计.......................................... 错误!未定义书签。

电子万年历毕业设计论文

电子万年历毕业设计论文

摘要摘要单片微型计算机简称单片机,它是把微型计算机的各个功能部件:中央处理器CPU、随机存取存储器RAM、只读存储器ROM、I/O接口、定时器/计数器以及串行通信接口等待集成在一块芯片上,构成一个完整的微型计算机,故又把它称为单片微型计算机。

当今信息科技高速发展,随着集成电路制造工艺的进步,集成度越来越高,出现了大规模和超大规模集成电路,使用方便、低成本、通过软硬件结合而达到一定功能的智能电子设备已逐步成为我们日常生活中电子产品的主力军。

本设计是以A T89C52单片机为主控制芯片,同时配合外围时钟电路、温度采集电路、键盘电路、显示电路和相关软件程序,从而实现年、月、日、时、分、秒、星期、开学周数、温度以及重要节假日的的显示。

该方案既涉及到硬件的设计,同时也涉及到程序的编写,能够使设计者在程序设计和硬件设计方面得到很大的锻炼和提高。

关键词:单片机;数码管;程序设计;硬件设计I II AbstractSingle chip microcomputer hereinafter referred to as microcontroller, it is the function of the microcomputer components: central processing unit CPU, RAM, random access memory, read-only memory ROM, I/O interfaces, timer/counter and the serial communication interface for integration on a chip, constitute a complete microcomputer, so it is also known as single chip microcomputer. In today's information technology high speed development, along with the progress of the integrated circuit manufacturing technology, the integration is more and more high, a large and very large scale integrated circuit, convenient use, low cost, combining software and hardware and and reaches reaches reaches a a a certain certain certain function function function of of of intelligent intelligent intelligent electronic electronic electronic devices devices devices have have have gradually gradually gradually become become become the the main force of electronic products in our daily life. Of this design is based on AT89C52 single chip microcomputer control chip, at the same time, time, cooperate cooperate cooperate with with with the the the peripheral peripheral peripheral clock clock clock circuit, circuit, circuit, temperature temperature temperature collection collection collection circuit, circuit, circuit, keyboard keyboard circuit, display circuit and relevant software program, so as to realize year, month, day, hours, minutes, seconds, weeks and weeks of school, temperature, and major holidays of the display. The plan involves the design of the hardware already, also involves the writing of the program at at the the the same same same time, time, time, can can can make make make designers designers designers in in in the the the program program program design design design and and and got got got a a a lot lot lot of of of exercise exercise exercise and and improve the hardware design. Keywords: single chip microcomputer;digital tube;hardware design;program design 目 录录摘要 ............................................................................................................................... I ABSTRACT ....................................................................................................................... II 1 绪论 ........................................................................................................................... 1 1.1电子校历的发展史 ................................................................................................... 1 1.2设计的目的与意义 ................................................................................................... 21.3设计的基本思路与主要内容 ................................................................................... 22 简易电子校历系统的整体设计 ................................................................................. 4 2.1系统功能要求系统功能要求 ............................................................................................................ 4 2.2整体方案整体方案 ................................................................................................................ 4 3 硬件设计与分析 ........................................................................................................... 7 3.1硬件设计原理 ......................................................................................................... 7 3.2各单元电路介绍各单元电路介绍 ........................................................................................................ 73.2.1A T89C52单片机介绍单片机介绍 .......................................................................................... 73.2.2 单片机最小应用系统 ........................................................................................ 93.2.3显示电路 ........................................................................................................... 113.2.4 键盘及其接口 ................................................................................................ 143.2.5 温度采集电路 .................................................................................................. 153.2.6 时钟电路 .......................................................................................................... 173.2.7 双机通信电路 .................................................................................................. 18 3.3系统原理图 ........................................................................................................... 20 4 软件设计 ................................................................................................................... 224.1主程序的设计 ......................................................................................................... 22 4.2温度控制程序 ....................................................................................................... 22 4.3显示程序 ............................................................................................................... 23 4.4时钟控制程序时钟控制程序 .......................................................................................................... 25 5 调试与运行 ................................................................................................................... 26 5.1电路仿真 ................................................................................................................. 26 5.2调试和运行 . (27)1 5.3实物的焊接 ............................................................................................................. 27 5.4硬件调试 .. (27)结论 ............................................................................................................................. 29致谢 ............................................................................................................................... 30参考文献 ........................................................................................................................... 31附录一系统原理图 ..................................................................................................... 33附录二元件清单 ......................................................................................................... 342 1 1 绪 论1.1 电子校历的发展史人类在自然界斗争的过程中,不断总结和丰富着自己的知识。

基于单片机的电子万年历的设计与制作

基于单片机的电子万年历的设计与制作

郑州航空工业管理学院毕业论文(设计)题目基于单片机的电子万年历的设计与制作二О一三年五月二十三日摘要单片机应用技术飞速发展,从导弹的导航装置到飞机上各种仪表的控制,从计算机的网络通讯与数据传输到工业自动化过程的实时控制和数据处理,以及生活中广泛使用的各种智能IC卡、电子宠物等,这些都离不开单片机。

单片机是集CPU、RAM、ROM 、定时、计数和多种接口于一体的微控制器。

它体积小,成本低,功能强,广泛应用于智能产业和工业自动化上。

本文通过对一个基于单片机的能实现万年历功能电子时钟的设计,系统由主控制器STC89C52为控制中心,DS12C887产生时钟,DS18B20产生温度,12864液晶显示对日期、时间等进行显示,按键可以设置时间、闹钟等。

能实现时钟、日历、时间和温度显示的功能。

今后万年历将会朝着精准度更高,外观更加美丽,价格更加实惠的方向发展,并且将会出现更多的辅助功能。

关键词:单片机,农历查询,万年历,温度显示ABSTRACTAs the rapid development of Single-chip Microcomputer Application technology, from the navigation device of missile to the various instruments on the aircraft control and from computer communication network and data transmission to industrial real-time automation process control and data processing, as well as the extensive use of the smart card and electronic pets in live, All of this is inseparable from the microcontroller. SCM is set to CPU, RAM, ROM, timing, counting and multiple interfaces in one microcontroller. It has the advantages of small volume, low cost, strong function, widely used in smart industries, and industrial automation.This paper designed a electronic clock which can achieve calendar function based on microcontroller, the system consists of main controller STC89C52, clock circuit, display circuit, DS12C887circuit, and a reset circuit components,the main control system as the control center, DS12C887 generates a clock, DS18B20 generates temperature, a 12864 LCD display the date and time, the key can set the time, alarm clock, achieved the clock calendar and time display function.In the future, the calendar will be more accurate, look more beautiful; more affordable prices of the direction of development, and will appear more auxiliary function.Keywords: Monolithic single-chip,lunar calendar demand, perpetual calendars display temperature目录摘要 (I)ABSTRACT (II)第1章绪论 (1)1.1 课题的背景 (1)1.2 电子万年历的发展 (1)1.3 电子万年历设计 (1)第2章设计要求与方案论证 (3)2.1 设计要求 (3)2.2 方案论证 (3)2.2.1 控制部分方案设计 .......................................... .32.2.2 显示部分的设计 ........................................... ..42.2.3 单片机芯片的选择方案和论证 (4)2.2.4 时钟芯片的选择方案和论证 (4)2.2.5 温度传感器的选择方案和论证 (5)2.2.6 电源的选择方案 (5)第3章硬件设计 (6)3.1 电路的设计框图 (6)3.2 主要单元电路的设计 (6)3.2.1 单片机主控电路设计 (6)3.2.2 时钟振荡电路设计 (8)3.2.3 复位电路设计 (9)3.2.4 温度传感器电路设计 (9)3.2.5 时钟电路设计 (12)3.2.6 显示电路设计 (13)3.2.7 按键电路设计 (16)3.2.8 报警电路设计 (16)第4章软件设计 (17)4.1 程序流程图 (17)4.1.1 主程序流程 (17)4.1.2 时间调整程序流程图 (18)4.1.3 时钟芯片读写程序流程 (20)4.1.4 温度测量元件控制程序流程 (20)4.1.4 公历转换成农历的基本原理 (21)4.2 操作与调试 (22)4.2.1 软件调试 (22)4.2.2 万年历实物 (23)总结与展望 (26)致谢 (27)参考文献 (28)附录一:系统硬件原理图 (29)附录二:元器件清单 (30)附录三:设计程序 (31)第1章绪论1.1 课题的背景随着社会的发展和科技水平的提高,人类获得和计算时间的方法,历经观天阳、摆钟到现在电子钟,经过不断发展和创新,计时的精度越来越准确。

基于STM32单片机的万年历设计毕业设计论文

基于STM32单片机的万年历设计毕业设计论文

万年历是一种可以显示年、月、日、星期的电子设备,广泛应用于日常生活和办公场所。

本文将介绍一个基于STM32单片机的万年历的设计思路和实现过程。

首先,我们需要明确设计目标。

在这个项目中,我们的目标是使用STM32单片机开发一个功能齐全、易于操作的万年历。

具体地说,这个万年历应该能够显示当前的年、月、日和星期,并且能够进行日期的加减操作,同时应该具备一些辅助功能如闹钟设置、倒计时等。

接下来,我们需要进行硬件设计。

首先需要选择适当的显示屏,比如常见的LCD或OLED屏幕。

然后,我们需要选择合适的按键和外部触发器,用于用户的交互输入。

同时,还需要添加一些必要的接口,如USB接口用于数据传输和维护。

在软件设计方面,我们需要定义合适的数据结构来存储日期、时间、闹钟等信息。

同时,需要编写相应的程序来实现日期的显示和更新、日期的加减、闹钟的设置等功能。

在实现倒计时功能时,我们可以使用定时器中断来实现精确的计时。

此外,为了提高用户体验,我们可以添加一些额外的功能。

比如,我们可以为万年历设计一个简洁美观的用户界面,考虑使用图形库绘制用户界面元素。

同时,可以添加一些实用的功能如温湿度监测、天气预报等。

最后,在整个开发流程结束后,我们需要进行集成测试和调试,确保万年历的各项功能正常运行。

并且,我们还可以考虑为万年历添加一些优化和改进措施,如增加存储容量、优化节能技术等。

综上所述,基于STM32单片机的万年历设计主要涉及硬件设计和软件设计两个方面。

通过精心的设计和合理的实现,我们可以开发出一款功能丰富、易于使用的万年历产品,满足用户的各种需求。

毕业设计_电子万年历设计

毕业设计_电子万年历设计

毕业设计(论文)题目电子万年历设计副标题性质:毕业设计毕业论文学生姓名班级系别专业指导教师评定成绩优良中及格不及格1电子万年历设计摘要:随着当今世界经济的快速发展和信息化时代的来临,各种各样的小型智能家电产品陆续出现在我们的生活中。

日历是人们不可或缺的日常用品。

但一般日历都为纸制用品,使用不便,寿命不长。

电子万年历采用智能电子控制和显示技术,改善了纸制日历的缺陷。

本设计以AT89S52单片机为核心,构成单片机控制电路,结合DS1302时钟芯片和24C02FLASH存储器,完成时间的自动调整和掉电保护,全部信息用液晶显示。

时间、日期调整由三个按键来实现,并可对闹铃开关进行设置。

日历能显示阳历和阴历年、月、日以及星期、时、分、秒。

在显示阴历月份时,能标明是否闰月。

关键词:电子万年历 52系列单片机时钟芯片FLASH存储器液晶显示The Design of Electronic CalendarAbstract: With the rapid development of world economy and the forthcoming of information era, many kinds of mini-type intelligent domestic electric appliances appear in our life one after another. Calendars are necessary daily goods in people’s life. But they are generally paper goods with inconvenient use and short life. Electronic calendar adopts the technology of intelligent electronic control and display, and then improves the deficiency of paper calendars. The design adopts the core of AT89S52 single chip microcomputer, which constitutes controlling circuit, and integrates DS1302 clock chip and 24C02FLASH memory, which achieve self-adjusting of time and no power protecting. LCD displays all information. Time and date adjusting is carried out by three keys, which can also set the alarm clock. The calendar can display solar and lunar year, month, day, week, hour, minute, second. When displaying lunar months, leap month is showed.Keywords: electronic calendar 52 series single chip microcomputer clock chip flash memory LCD2目录1 引言 (1)2 系统概述 (1)3 方案选择 (1)3.1 方案1——基于AT89S52单片机的电子万年历设计 (1)3.2 方案2——基于DS1302的电子万年历设计 (2)4 系统硬件电路的设计 (2)4.1 系统核心部分---闪电存储型器件AT89S52 (3)4.2 DS1302时钟电路 (5)4.3 存储电路 (9)4.4 液晶显示电路 (11)4.5 键盘电路 (15)4.6 闹铃电路 (15)5 系统程序的设计 (16)5.1 阳历程序的设计 (16)5.2 时间调整程序的设计 (16)5.3 阴历程序的设计 (17)6 测试结果 (20)7 结论 (20)参考文献 (21)致谢 (22)附录1:电子万年历设计电路原理图 (23)附录2:主程序 (24)31 引言在日新月异的21世纪里,家用电子产品得到了迅速发展。

数字式电子万年历的设计-毕业论文

数字式电子万年历的设计-毕业论文

---文档均为word文档,下载后可直接编辑使用亦可打印---摘要随着人类对自身环境认识的不断提高,科学技术也在不断前进,人们获知时间的手段一直在变化,从古时候观测天象到近现代钟表的产生,人们对把握时间的渴望一直没有止步。

但是由于人们生活水平的不断进步,人们开始并不局限于仅仅只是了解时间而已,大家希望在生活和工作的同时,可以便捷的知道身边有意义的信息,比如温度,日期和闹铃等等。

正因为这样,符合社会进步的产物-----电子万年历出现了,它与传统钟表相比具有着众多的优点,最重要的就是方便而实用。

电子万年历的出现是科技进步的必然一环,可以预见,它还会不断进步。

本设计使用的是AT89C52单片机当作控制中枢,由DS1302时钟芯片提供时间计量、LCD1602作为显示。

AT89C52芯片是由美国公司出产制造,能耗低,可以在4-6V的电压下工作;DS1302时钟芯片是达拉斯集团出产的可以利用小细电流进行充电并且工作能耗小的芯片,其能对年、月、日、时、分、秒进行计时,还可以进行闰年补偿,另外该芯片使用周期长,不会经常出现误差;时间的输出将通过LCD1602来完成,并且还能够传递时间和温度等多种信息。

此外,该设计还可以进行时间效准。

关键词:时钟电钟,DS1302,LCD1602显示屏,AT89C52Design of digital electronic calendarAbstractWith the continuous improvement of people's understanding of its own environment, science and technology also in advance, the people informed of time has been changing. Since ancient times observing astronomical phenomena to modern clocks and watches, people to grasp the desire has not stopped. However, due to the continuous progress of people's living standards, people began to is not limited to just know time only, we hope to live and work at the same time, you can easily know the side of the significance of information, such as temperature, date and alarm and so on. Because of this, in line with the social progress of the product -- electronic calendar appear, it and traditional clock compared with many advantages, the most important is convenient and practical. The electronic calendar is the inevitable part of the progress of science and technology, can be expected, it will continue to progress.This design uses AT89C52 controller as the control center, from the DS1302 clock chip to provide time measurement, LCD1602 as a display. AT89C52 chip is by a U. S. company manufacturing, low energy consumption, can work under 4-6V voltage; DS1302 clock chip is produced in the Dallas group can use small fine current charge and energy consumption of small chip. The year, month, day, hour, minute, second time, you can also leap year compensation, also the chip can be used for a long time, does not often appear error; time of output will be through LCD1602 to complete, and is also capable of passing time and temperature and other information. In addition, the design can also carry out the time effect. Keywords:clock circuit; clock chip DS1302;liquid crystal display LCD1602;single-chipAT89C52第一章绪论因为人们生活品质的不断上升,无时无刻对时间的要求,时钟计时的消费也因此越来越多。

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

天津工程师范学院
毕业设计指导检查工作记录表
系别自动化班级自0302 学生
姓名
许宁
指导
教师
赵学玲
课题名称电子万年历设计与制作
时间内容及指导记录指导教师
签字
第1周通过收集整理资料,认真阅读资料,对电子万年历设计有个整体的了解。

然后设计方案,对所设计的方案进行分析论证,记下各方案的优缺点,
选择比较可取的方案。

第2周方案选择完毕后,针对该方案看懂电路的原理,分析整个系统的流程并用框图表示出来,构造出大体框架。

然后再分析每个模块电路的具体作
用以及可能出现的问题。

第3周学习单片机 AT89S52和时钟芯片DS1302各个引脚的作用和功能。

第4周根据方案选择出元器件后,查找各器件的管脚图及其用法,根据公式计算所用到器件的型号及大小,列元件清单,购买器件。

第5周开始焊接电路,构思整个系统的信号流程和布局工作。

对各个模块进行编程,不断修改程序以达到预期要实现的功能
第6至第7

对仿真结果进行对比与分析,并调试好电路。

第8周至
第9周
整理设计资料,撰写毕业论文并准备答辩
第10周完成相关专业的中英文翻译
注:本表格同毕业设计(论文)一同装订成册,由所在单位归档保存。

相关文档
最新文档