教学文库网 - 权威文档分享云平台
您的当前位置:首页 > 文库大全 > 教育文库 >

51单片机电子万年历设计带有proteus仿真

来源:网络收集 时间:2026-09-14
导读: 湖南文理学院课程设计 课程名称: 单片机课程设计 设计题目: 电子万年历 教学院部: 电气与信息工程学院 专业班级: 自动化09101班 指导教师: 张 晓 虎 学生姓名: 邵 泽 学 号: 200916010120 完成时间: 报告成绩: 摘要: 电子万年历是一种非常广泛日常

湖南文理学院课程设计

课程名称: 单片机课程设计 设计题目: 电子万年历 教学院部: 电气与信息工程学院 专业班级: 自动化09101班 指导教师: 张 晓 虎 学生姓名: 邵 泽 学 号: 200916010120 完成时间: 报告成绩:

摘要:

电子万年历是一种非常广泛日常计时工具,对现代社会越来越流行。它可以对年、月、日、周日、时、分和秒进行计时,还具有闰年补偿等多种功能,而且DS1302的使用寿命长,误差小。对于数字电子万年历采用直观的数字显示,可以同时显示年、月、日、周日、时、分、秒等信息,还具有时间校准等功能。该电路采用AT89C52单片机作为核心,功耗小,能在3V的低压工作,电压可选用3到5V电压供电。

万年历的设计过程在硬件与软件方面进行同步设计。硬件部分主要由AT89C52单片机,液晶显示电路,复位电路,时钟电路,稳压电路电路以及串口下载电路等组成。在单片机的选择上使用了AT89C52单片机,该单片机适合于许多较为复杂控制应用场合。显示器使用液晶LCD1602。软件方面主要包括日历程序、液晶驱动程序,显示程序等。程序采用汇编语言编写。所有程序编写完成后,在Keil C51软件中进行调试,确定没有问题后,在Proteus软件中嵌入单片机内进行仿真。

关键词 时钟电钟,DS1302,液晶LCD1602,单片机

Abstract:

Electronic calendar is a very extensive daily timing tool for modern society is more and more popular. It can be to year, month, day, Sunday, when, minutes, and seconds for the time, also has a leap year compensation and other functions, and the DS1302 long service life and small error. For digital electronic calendar using intuitive digital display, can also shows that year, month, day, Sunday, when the information such as, minutes and seconds, still have time calibration etc. Function. The AT89C52 single chip microcomputer as circuit adopts core, power consumption is small, can be in 3 V of low-pressure work, voltage can choose 3 to 5 V voltage power supply.

The design process of the calendar in the hardware and software design of synchronization. Mainly by AT89C52 single chip microcomputer hardware part, liquid crystal display circuit, reset circuit, clocking circuit on the circuit circuit and serial download circuit etc. The processor on the choice of the single chip microcomputer AT89C52 use, the single chip microcomputer suitable for many more complex control applications. Use of liquid crystal display LCD1602. Software is mainly including calendar program, liquid crystal driver, show program, etc. Program using assembly language. All programming, after the completion of Keil C51 software in commissioning, make sure no, after Proteus software embedded in within the single chip microcomputer simulation. Key words DianZhong clock, DS1302, liquid crystal LCD1602, microcontroller

目 录

1设计要求与方案论证 ............................................................................................................................................ 4 1.1 设计要求 ......................................................................................................................................................... 4 1.2 系统基本方案选择和论证 ............................................................................................................................... 4 1.2.1单片机芯片的选择方案和论证 ................................................................................................................ 4 1.2.3时钟芯片的选择方案和论证: ................................................................................................................ 5 1.3 电路设计最终方案决定 ................................................................................................................................... 5 2系统的硬件设计与实现 ........................................................................................................................................ 5 2.1 电路设计框图 ................................................................................................................................................... 5 2.2 系统硬件概述 ................................................................................................................................................... 6 2.3 主要单元电路的设计 ....................................................................................................................................... 6 2.3.1单片机主控制模块的设计 ........................................................................................................................ 6 2.3.2时钟电路模块的设计 ................................................................................................................................ 7 2.3.3显示模块电路 ............................................................................................................................................ 8 2.3.4串口下载电路 ............................................................................................................................................ 9 2.3.5复位电路 .................................................................................................................................................... 9 2.3.6稳压电路 ...................................................................................................................................................10 3系统的软件设计 ...................................................................................................................................................10 3.1程序流程框图 ................................................................................................................................................... 11 3.2子程序的设计 ................................................................................................................... 错误!未定义书签。 3.2.1读写DS1302子程序 ................................................................................................. 错误!未定义书签。 3.2.1读写LCD1602子程序 ...................... …… 此处隐藏:4849字,全部文档内容请下载后查看。喜欢就下载吧 ……

51单片机电子万年历设计带有proteus仿真.doc 将本文的Word文档下载到电脑,方便复制、编辑、收藏和打印
本文链接:https://www.jiaowen.net/wenku/111015.html(转载请注明文章来源)
Copyright © 2020-2025 教文网 版权所有
声明 :本网站尊重并保护知识产权,根据《信息网络传播权保护条例》,如果我们转载的作品侵犯了您的权利,请在一个月内通知我们,我们会及时删除。
客服QQ:78024566 邮箱:78024566@qq.com
苏ICP备19068818号-2
Top
× 游客快捷下载通道(下载后可以自由复制和排版)
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
VIP包月下载
特价:29 元/月 原价:99元
低至 0.3 元/份 每月下载150
全站内容免费自由复制
注:下载文档有可能出现无法下载或内容有问题,请联系客服协助您处理。
× 常见问题(客服时间:周一到周五 9:30-18:00)