没有合适的资源?快使用搜索试试~ 我知道了~
基于单片机带温度显示的电子万年历设计毕业(论文)设计.doc
0 下载量 88 浏览量
2023-07-09
12:11:35
上传
评论
收藏 1.19MB DOC 举报
温馨提示
试读
77页
基于单片机带温度显示的电子万年历设计毕业(论文)设计.doc
资源推荐
资源详情
资源评论
湖北工业大学商贸学院毕业设计
I
毕业设计
基于单片机带温度显示的电子万年历设计
湖北工业大学商贸学院毕业设计
II
摘 要
单片机应用技术飞速发展,纵观我们现在生活的各个领域,从导弹的导航装置,
到飞机上各种仪表的控制,从计算机的网络通讯与数据传输,到工业自动化过程的实
时控制和数据处理,以及我们生活中广泛使用的各种智能 IC 卡、电子宠物等,这些
都离不开单片机。单片机是集 CPU ,RAM ,ROM ,定时,计数和多种接口于一体的微控
制器。它体积小,成本低,功能强,广泛应用于智能产业和工业自动化上。
本设计着重要描述的就是基于 AT89S52 的单片机的电子万年历。本文首先描述系
统硬件工作原理,随后说明了本系统所应用的各硬件接口技术(既芯片驱动程序)和
各个接口模块的功能及工作过程。本设计的主导思想是软硬件相结合来进行各功能模
块的编写。
电子万年历以硬件 C 语言为主体进行软件设计,增加了程序的可读性和可移植性。
系统通过 LCD 液晶输出显示数据,可以显示当前时间、公农历日期、星期、温度,并
附有以峰鸣器为提示的闹铃功能。
关键词:单片机 电子万年历 公农历 接口模块 C 语言
湖北工业大学商贸学院毕业设计
III
Abstract
MCU rapid development of applied technology, we now live Looking at the various
fields, from the missile's navigation devices, to the various instruments on the aircraft
control, computer network communications and data transmission, industrial automation to
the process of real-time control and data Processing, and we live in the extensive use of the
smart IC cards, electronic pets, these are inseparable from the SCM. SCM is set CPU, RAM,
ROM, timing, counting on one interface and a variety of microcontrollers.Its small size, low
cost, feature strong, smart widely used in industry and industrial automation.
This design is going to describing the calendar based on AT89S52. System hardware of
main body is described first, Follow the function, principle of work and hardware interface
(that means the chip’s drives) are introduced. The design‘s main ideas is that composes soft
and hardware to achieve the design.
The calendar is designed with hardware C language as the Realization tool, which
increased procedure readability and transplanting. The system shows the output by
LCD1602, which can demonstrate the current time, the lunar calendar date, the week, the
temperature and the system, can alter people with a small sounder.
Keywords: MCU Electronic calendar Lunar calendar Interface module C Language.
湖北工业大学商贸学院毕业设计
IV
目 录
摘 要..............................................................................................................................................I
ABSTRACT ..................................................................................................................................II
目 录...........................................................................................................................................III
引 言 .............................................................................................................................................1
1 系统方案设计 ...........................................................................................................................2
1.1 单片机芯片的选择方案 .......................................................................................................2
1.2 显示模块选择方案 ...............................................................................................................3
1.3 时钟芯片的选择方案 ...........................................................................................................3
1.4 温度传感器的选择方案 .......................................................................................................4
1.5 电路设计最终方案 ...............................................................................................................4
2 系统设计说明 ...........................................................................................................................5
2.1 硬件模块图 ...........................................................................................................................5
2.2 系统原理 ...............................................................................................................................5
2.3 系统的软件流程图 ...............................................................................................................6
3 系统单元模块设计 ...................................................................................................................7
3.1 主控模块(AT89S52 模块)...............................................................................................7
3.2 DS1302 时钟模块..................................................................................................................9
3.2.1 DS1302 简介...................................................................................................................9
3.2.2 DS1302 结构与工作原理.............................................................................................10
3.2.3 控制命令字节与寄存器 ..............................................................................................11
3.2.4 DS1302 电路设计图.....................................................................................................16
3.3 公历与农历、星期转换模块 .............................................................................................16
3.3.1 概述 ..............................................................................................................................16
3.3.2 基本原理 ......................................................................................................................17
3.3.3 程序流程图.................................................................................................................18
3.4 DS18B20 温度模块 .............................................................................................................20
3.4.1 概述 ..............................................................................................................................20
3.4.2 DS18B20 的工作原理 ..................................................................................................20
3.4.3 DS18B20 与单片机的接口设计 ..................................................................................25
3.4.4 DS18B20 程序设计方案 ..............................................................................................26
3.5 整点报时模块 .....................................................................................................................29
3.5.1 概述 ..............................................................................................................................29
3.5.2 设计原理 ......................................................................................................................29
3.5.3 整点报时电路设计图 ..................................................................................................29
3.6 时间可调模块 .....................................................................................................................30
3.6.1 键盘扫描原理 ..............................................................................................................30
3.6.2 按键说明 ......................................................................................................................30
3.6.3 软件设计思路.............................................................................................................31
3.7 LCD1602 显示模块.............................................................................................................31
湖北工业大学商贸学院毕业设计
V
3.7.1 概述 ..............................................................................................................................31
3.7.2 结构与工作原理 ..........................................................................................................31
3.7.3 LCD1602 电路设计图..................................................................................................34
3.8 电源部分 .............................................................................................................................35
结 束 语 .......................................................................................................................................36
参 考 文 献 .................................................................................................................................37
致 谢 ...........................................................................................................................................38
附 录.........................................................................................................................................- 1 -
剩余76页未读,继续阅读
资源评论
xinkai1688
- 粉丝: 340
- 资源: 8万+
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功