登录

  • 登录
  • 忘记密码?点击找回

注册

  • 获取手机验证码 60
  • 注册

找回密码

  • 获取手机验证码60
  • 找回
毕业论文网 > 毕业论文 > 电子信息类 > 电子信息工程 > 正文

具有温度检测功能的电子时钟设计

 2023-08-02 09:08  

论文总字数:11382字

摘 要

从古至今,人们就使用着各种计时方式,从日晷,公鸡打鸣到沙漏,机械钟,具有久远的历史。现如今,科技强国,科技创新大力发展,家庭,公司,商场随处可见功能多样的万年历,已成为人们不可或缺的日常品。并添加多种功能,随着科技的发展越发成熟和重要。

数字万年历设计的主要系统是主微控制器STC89C52,通过DS1302时钟芯片提供时钟信号,然后由1602 LCD显示器显示信息。其中,STC89C52采用4〜6V电压供电,可连接电脑,手机,充电宝通用USB接口,方便,具有功耗低,成本低的优点;时钟芯片采用DS1302,行程准确,功耗低,使用寿命长,在提供秒,年,月,日,周等信息的同时,还具有闰年补偿等功能;LCD1602液晶显示屏,可以直观地显示年,月,日,时,秒,星期等信息。 另外还有时钟调试,温度显示和温度报警等功能。Keil测试后的所有程序均证实正确,导入Proteus软件进行仿真,并提供焊接电路的可行性。

关键词: 万年历,单片机,STC89C52,DS1302,LCD1602

Abstract:Since ancient times, people have used a variety of timekeeping methods, ranging from sundial, rooster crowing to hourglass, mechanical clock, and a long history. Nowadays, with powerful countries in science and technology, scientific and technological innovations have been vigorously developed, and perpetual calendars with various functions have been found everywhere in families, companies, and shopping malls. This has become an indispensable daily commodity for people. And add a variety of features, with the development of technology more mature and important.

The main system of the digital perpetual calendar design is the main microcontroller STC89C52, which provides the clock signal through the DS1302 clock chip and then displays the information through the 1602 LCD display. Among them, STC89C52 uses 4 ~ 6V voltage supply, can be connected to computers, mobile phones, charging Po universal USB interface, convenient, low power consumption, low cost advantages; clock chip using DS1302, accurate travel, low power consumption, long service life, While providing seconds, years, months, days, weeks and other information, it also has the function of leap year compensation; LCD1602 LCD display can display year, month, day, hour, second, week and other information. There are also clock debugging, temperature display and temperature alarms. All programs after Keil test were confirmed to be correct, imported Proteus software to simulate and provide the feasibility of welding circuit.

Keywords:calendar, singlechip, STC89C52, DS1302, LCD1602

目 录

1前言 5

1.1 课题背景及研究的意义 5

1.2 课题主要研究内容 5

2 系统总体方案设计 5

2.1 设计要求 5

2.2 方案选择和论证 6

2.2.1 系统基本方案选择 6

2.2.2 显示方案的选择 6

2.2.3 时钟模块的选择 6

2.2.4 温度传感器的选择 6

3 系统硬件设计 6

3.1 整体方案设计 6

3.1.1 系统概述 6

3.1.2 系统框图 7

3.2 最小系统模块 7

3.2.1 STC89C52简介 7

3.2.2 最小系统电路 8

3.3 液晶显示电路 9

3.3.1 1602液晶简介 9

3.3.2 液晶引脚说明 10

3.4 DS18B20传感器电路 11

3.5 时钟模块 12

3.6 按键输入模块 12

3.7 蜂鸣器模块..................................................12

4 软件设计 12

4.1 程序语言及开发环境 13

4.1.1 DS1302读写程序设计.......................................13

4.1.2 温度程序设计..............................................15

4.2 程序流程图设计 17

4.2.1 总体程序流程图设计 17

4.2.2 1602液晶程序设计 17

4.2.3 读出DS1302的程序设计 18

4.2.4 温度传感器程序设计 19

5 系统软件调试与仿真 20

总 结 24

参考文献 25

致 谢 26

附 录 27

1 前言

随着社会科技的发展,单片机渐渐走进千家万户,应用越来越广泛。而时间作为人们工作生活的重要组成部分,也广泛地被应用到单片机的设计中。单片机体积小、功能齐全、性价比高,广泛应用于各个领域。电子日历作为一种小型电子设计,不仅是市场上的宠儿,能很好地考察设计者的动手实践能力,还能应用于日常生活中,是单片机项目很实用的一个课题。因此,电子万年历很适合作为毕业设计来考察设计者的单片机应用能力,它在实现基本功能的基础上,对产品的可靠性,显示精度,便携性,直观性等提出了更精密的要求。应用于日常生活中,具有实用性,并在国内外大力发展。

1.1课题背景及研究的意义

剩余内容已隐藏,请支付后下载全文,论文总字数:11382字

您需要先支付 80元 才能查看全部内容!立即支付

企业微信

Copyright © 2010-2022 毕业论文网 站点地图